ssl-proxy-troubleshoot
What it does
This skill guides the AI agent through a structured check of SSL, proxy and connection problems for government sites. It is for people whose data pulls from official sites keep failing.
When to use it
- ✓When you cannot reach a government or institutional website from a script.
- ✓When SSL certificate validation errors appear for a public site.
- ✓When the same site works in a browser but fails in your automated tasks.
Skill link
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/ssl-proxy-troubleshoot/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My data pull from a state website keeps failing with a proxy error. Find out which step is breaking and suggest a fix.”
5 new skills a week. 1 minute to read.
How it works
The agent runs a Python request and sorts the result into SSL, proxy, connection or other errors. It then tries protocol variations, such as http and https, and checks which access method works.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
SSL/Proxy Troubleshooting for Government Websites
This skill provides a systematic approach to diagnosing and resolving SSL certificate and proxy connectivity issues when accessing government websites, which often have stricter security configurations than commercial sites.
When to Use This Skill
- Cannot access a government or institutional website
- SSL certificate validation errors occur
- Proxy configuration blocks or interferes with requests
- Primary data sources are intermittently or persistently inaccessible
Systematic Troubleshooting Workflow
Step 1: Diagnose the Connection Issue
First, identify what type of connectivity problem you're facing:
import requests
import ssl
url = "https://example.gov/data"
# Test basic connectivity
try:
response = requests.get(url, timeout=10)
print(f"Status: {response.status_code}")
except requests.exceptions.SSLError as e:
print(f"SSL Error: {e}")
except requests.exceptions.ProxyError as e:
print(f"Proxy Error: {e}")
except requests.exceptions.ConnectionError as e:
print(f"Connection Error: {e}")
except Exception as e:
print(f"Other Error: {e}")
Step 2: Try Protocol Variations
Government sites sometimes have misconfigured redirects or support only specific protocols:
urls_to_try = [
"https://example.gov/data",
"http://example.gov/data", # Try unencrypted
"https://www.example.gov/data", # Try www subdomain
"http://www.example.gov/data",
]
for url in urls_to_try:
try:
response = requests.get(url, timeout=10, verify=False)
if response.status_code == 200:
print(f"Success with: {url}")
break
except Exception as e:
print(f"Failed {url}: {e}")
Step 3: Disable SSL Verification (Temporary Debug)
Only use this for debugging. If it works, the issue is SSL certificate-related:
# Option A: Disable verification entirely (debug only)
response = requests.get(url, verify=False, timeout=30)
# Option B: Use custom SSL context with relaxed settings
import ssl
ssl_context = ssl.create_default_context()
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
response = requests.get(url, verify=False, timeout=30)
Warning: Never use verify=False in production. If this is the only working option, document the SSL issue and seek alternative data sources.
Step 4: Manipulate Proxy Settings
Government networks often require specific proxy configurations:
# Option A: Disable proxy entirely
session = requests.Session()
session.trust_env = False # Ignore environment proxy settings
response = session.get(url, timeout=30)
# Option B: Explicitly set proxy
proxies = {
"http": "http://proxy.example.com:8080",
"https": "http://proxy.example.com:8080",
}
response = requests.get(url, proxies=proxies, timeout=30, verify=False)
# Option C: Try without any proxy configuration
import os
os.environ.pop("HTTP_PROXY", None)
os.environ.pop("HTTPS_PROXY", None)
os.environ.pop("http_proxy", None)
os.environ.pop("https_proxy", None)
response = requests.get(url, timeout=30)
Step 5: Test Alternative Domains and Endpoints
Government data is often mirrored or available through alternative access points:
# Common alternative patterns for government sites
alternative_urls = [
url.replace(".gov", ".gov.uk"), # Regional variations
url.replace("data.", "api."), # API subdomain
url.replace("https://", "https://archive."), # Archive mirror
url.replace("/data", "/download"), # Alternative path
]
# Check for data.gov or similar portals
portal_search = f"site:data.gov {topic_keyword}"
Step 6: Use Different HTTP Clients
Some clients handle SSL/proxy differently:
# Try urllib instead of requests
import urllib.request
import ssl
ssl_context = ssl._create_unverified_context()
response = urllib.request.urlopen(url, context=ssl_context, timeout=30)
# Try curl via subprocess
import subprocess
result = subprocess.run(
["curl", "-k", "-L", "--max-time", "30", url],
capture_output=True,
text=True
)
Fallback Strategies When Primary Sources Fail
When all troubleshooting attempts fail after 5-10 iterations:
Strategy 1: Search for Alternative Data Sources
# Search for the same data from different sources
search_queries = [
f"{dataset_name} site:epa.gov",
f"{dataset_name} site:data.gov",
f"{dataset_name} state datab
FAQ
Why are government sites harder to reach?
The skill notes they often have stricter security settings than commercial sites.
What kinds of errors does it sort?
It sorts errors into SSL, proxy, connection and other categories.
Does it always produce a working fix?
No, the skill is a diagnostic process, so the fix depends on which step reveals the cause.
Details
Original description by the author
Systematic workflow for troubleshooting SSL/proxy connectivity issues with government websites
repo: HKUDS/AgentPilot
Popularity
- GitHub stars
- 7.8k
- Ranking position
- #13021
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
agentpilot
7.8kHelps your agent improve a project step by step by preparing a task and running the AgentPilot loop that proposes, tests and scores changes.
openspace
7.8kHelps your agent set up OpenSpace, a tool that stores and fetches agent skills, and connect it to your AI app through MCP.
rsi-arena
7.8kHelps your agent set up and run standard AI benchmark tests, such as AIME and Terminal-Bench, to compare different improvement methods.
experiment-guide
7.8kHelps your agent plan small experiments, read their results and record findings while it investigates how to improve a program.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.