ssl-proxy-troubleshoot
하는 일
이 스킬은 정부 사이트에서 SSL, 프록시, 연결 문제를 구조적으로 점검하도록 AI 에이전트를 안내합니다. 공공 기관 사이트에서 데이터를 가져오는 작업이 계속 실패하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓스크립트로 정부나 공공 기관 웹사이트에 접속할 수 없을 때.
- ✓공개 사이트에서 SSL 인증서 검증 오류가 나타날 때.
- ✓같은 사이트가 브라우저에서는 작동하지만 자동화 작업에서는 실패할 때.
스킬 링크
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/ssl-proxy-troubleshoot/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“주 정부 사이트에서 데이터를 가져오는데 계속 프록시 오류가 납니다. 어느 단계에서 문제가 생기는지 찾고 해결 방법을 제안해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 Python 요청을 실행하고 결과를 SSL, 프록시, 연결, 기타 오류로 나눕니다. 그다음 http와 https 같은 프로토콜 변형을 시도하고, 어떤 접근 방법이 작동하는지 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
정부 사이트는 왜 접근하기가 더 어렵나요?
스킬은 정부 사이트가 일반 상업 사이트보다 보안 설정이 엄격한 경우가 많다고 설명합니다.
어떤 종류의 오류를 분류하나요?
SSL, 프록시, 연결, 기타 범주로 오류를 나눕니다.
항상 작동하는 해결책을 주나요?
아니요, 이 스킬은 진단 과정이므로 원인을 드러내는 단계에 따라 해결책이 달라집니다.
상세 정보
작성자의 원본 설명
Systematic workflow for troubleshooting SSL/proxy connectivity issues with government websites
repo: HKUDS/AgentPilot
인기도
- GitHub 스타
- 7.8k
- 순위
- #13021
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
agentpilot
7.8k작업을 준비하고 AgentPilot 루프를 실행해 변경을 제안, 테스트, 점수화하면서 프로젝트를 단계적으로 개선하도록 돕습니다.
openspace
7.8k에이전트 스킬을 저장하고 가져오는 도구인 OpenSpace를 설정하고, MCP를 통해 AI 앱에 연결하도록 돕습니다.
rsi-arena
7.8kAIME나 Terminal-Bench 같은 표준 AI 벤치마크 테스트를 설정하고 실행해 서로 다른 개선 방법을 비교하도록 돕습니다.
experiment-guide
7.8k프로그램을 개선하는 방법을 조사하면서 작은 실험을 계획하고, 결과를 읽고, 발견 사항을 기록하도록 돕습니다.