proxychains
Auto-detect network issues and force proxy usage with proxychains4. Use this skill when encountering connection timeouts, DNS failures, or blocked network access. Default proxy is http://127.0.0.1:9910
Best use case
proxychains is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Auto-detect network issues and force proxy usage with proxychains4. Use this skill when encountering connection timeouts, DNS failures, or blocked network access. Default proxy is http://127.0.0.1:9910
Auto-detect network issues and force proxy usage with proxychains4. Use this skill when encountering connection timeouts, DNS failures, or blocked network access. Default proxy is http://127.0.0.1:9910
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "proxychains" skill to help with this workflow task. Context: Auto-detect network issues and force proxy usage with proxychains4. Use this skill when encountering connection timeouts, DNS failures, or blocked network access. Default proxy is http://127.0.0.1:9910
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/proxychains/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How proxychains Compares
| Feature / Agent | proxychains | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Auto-detect network issues and force proxy usage with proxychains4. Use this skill when encountering connection timeouts, DNS failures, or blocked network access. Default proxy is http://127.0.0.1:9910
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Proxychains Network Proxy Skill **自动使用代理解决网络问题** - 当遇到网络连接失败、超时或访问受限时,自动使用 proxychains4 强制走代理。 ## When to Use This Skill **触发条件(自动应用):** - ❌ Connection timeout errors - ❌ DNS resolution failures - ❌ "Connection refused" errors - ❌ HTTP 403/451 blocked access - ❌ GitHub/PyPI/npm 等国外资源访问失败 - ❌ curl/wget/git/pip 等命令失败 **Claude 应该:** 1. 检测到网络错误后,自动在命令前添加 `proxychains4` 2. 使用默认代理配置:`http://127.0.0.1:9910` 3. 如果代理失败,提示用户检查代理服务状态 ## Quick Reference ### 基本用法模式 ```bash # ❌ 原命令失败 curl https://github.com/user/repo # ✅ 使用代理重试 proxychains4 curl https://github.com/user/repo ``` ### 常见场景自动应用 **场景 1: Git 操作失败** ```bash # 原命令 git clone https://github.com/user/repo.git # 自动改为 proxychains4 git clone https://github.com/user/repo.git ``` **场景 2: Python pip 安装失败** ```bash # 原命令 pip install requests # 自动改为 proxychains4 pip install requests ``` **场景 3: npm/yarn 安装失败** ```bash # 原命令 npm install package-name # 自动改为 proxychains4 npm install package-name ``` **场景 4: wget/curl 下载失败** ```bash # 原命令 wget https://example.com/file.tar.gz # 自动改为 proxychains4 wget https://example.com/file.tar.gz ``` **场景 5: Docker 拉取镜像失败** ```bash # 原命令 docker pull image:tag # 自动改为 proxychains4 docker pull image:tag ``` **场景 6: SSH 连接失败** ```bash # 原命令 ssh user@remote-host # 自动改为 proxychains4 ssh user@remote-host ``` ## 配置详情 ### 默认代理配置 **本地代理地址:** `http://127.0.0.1:9910` **配置文件位置:** - `~/.proxychains/proxychains.conf` (推荐) - `/etc/proxychains.conf` (系统级) ### 快速配置脚本 创建用户级配置(自动使用 127.0.0.1:9910): ```bash mkdir -p ~/.proxychains cat > ~/.proxychains/proxychains.conf << 'EOF' # Proxychains configuration strict_chain proxy_dns remote_dns_subnet 224 tcp_read_time_out 15000 tcp_connect_time_out 8000 [ProxyList] http 127.0.0.1 9910 EOF ``` ### 环境变量方式(临时使用) ```bash # 设置代理环境变量 export PROXYCHAINS_SOCKS5_HOST=127.0.0.1 export PROXYCHAINS_SOCKS5_PORT=9910 # 使用 proxychains4 curl https://github.com ``` ## 工作原理 Proxychains 通过 LD_PRELOAD 机制拦截程序的网络调用: 1. **拦截系统调用**:Hook socket 相关的 libc 函数 2. **重定向连接**:将所有 TCP 连接重定向到代理服务器 3. **DNS 代理**:通过代理服务器解析域名 4. **透明代理**:应用程序无需修改 **重要限制:** - 只支持动态链接的程序(statically linked 程序不支持) - 只支持 TCP 连接(UDP 不支持) - 部分使用特殊网络库的程序可能不兼容 ## Claude 自动化规则 ### 规则 1: 网络错误自动重试 ``` IF 命令返回网络相关错误(timeout, connection refused, DNS failure) THEN 自动使用 proxychains4 重试该命令 ``` ### 规则 2: 已知慢速源强制代理 ``` IF 访问以下域名/服务: - github.com - raw.githubusercontent.com - pypi.org - npmjs.org - registry.npmjs.org - docker.io - gcr.io THEN 直接使用 proxychains4(不等待失败) ``` ### 规则 3: 失败提示 ``` IF proxychains4 命令也失败 THEN 提示用户: 1. 检查代理服务是否运行(127.0.0.1:9910) 2. 检查 proxychains 配置文件 3. 尝试其他代理地址 ``` ## 故障排除 ### 检查代理服务状态 ```bash # 测试代理是否可用 curl -x http://127.0.0.1:9910 https://www.google.com # 检查端口是否监听 netstat -tunlp | grep 9910 # 或 ss -tunlp | grep 9910 ``` ### 验证 proxychains 配置 ```bash # 测试配置是否正确 proxychains4 curl https://ipinfo.io/json # 应该显示代理服务器的 IP,而不是本机 IP ``` ### 常见错误处理 **错误 1: "proxychains: command not found"** ```bash # 安装 proxychains4 sudo apt install proxychains4 # Debian/Ubuntu sudo yum install proxychains-ng # CentOS/RHEL ``` **错误 2: "timeout"** ```bash # 检查代理地址配置是否正确 cat ~/.proxychains/proxychains.conf | grep -A 2 "\[ProxyList\]" # 修改超时时间(在配置文件中) tcp_connect_time_out 15000 tcp_read_time_out 30000 ``` **错误 3: "can't read configuration file"** ```bash # 创建配置文件 mkdir -p ~/.proxychains cp /etc/proxychains.conf ~/.proxychains/proxychains.conf # 然后编辑配置 ``` ## 高级用法 ### 多代理链 ```conf # ~/.proxychains/proxychains.conf strict_chain # 按顺序使用所有代理 [ProxyList] http 127.0.0.1 9910 socks5 127.0.0.1 1080 ``` ### 动态代理链 ```conf dynamic_chain # 自动跳过死代理 [ProxyList] http 127.0.0.1 9910 http 127.0.0.1 8080 socks5 127.0.0.1 1080 ``` ### 随机代理链 ```conf random_chain chain_len = 2 # 随机选择 2 个代理 [ProxyList] http 127.0.0.1 9910 socks5 127.0.0.1 1080 socks5 127.0.0.1 1081 ``` ### 自定义 DNS 服务器 ```bash # 使用自定义 DNS 通过代理解析 export PROXY_DNS_SERVER=8.8.8.8 proxychains4 curl https://example.com ``` ## 参考资源 - **官方仓库**: https://github.com/haad/proxychains - **配置文件**: `references/proxychains.conf` (完整示例) - **故障排除**: `references/troubleshooting.md` - **命令速查**: `references/quick-reference.md` ## 总结 **记住这些原则:** 1. ❌ **遇到网络错误** → ✅ 自动加上 `proxychains4` 2. 🌐 **访问国外资源** → ✅ 主动使用 `proxychains4` 3. 🔧 **代理也失败** → ✅ 提示用户检查代理服务 **默认代理:** `http://127.0.0.1:9910` --- **这个技能让 Claude 在遇到网络问题时自动使用代理,无需用户手动干预!**
Related Skills
azure-quotas
Check/manage Azure quotas and usage across providers. For deployment planning, capacity validation, region selection. WHEN: "check quotas", "service limits", "current usage", "request quota increase", "quota exceeded", "validate capacity", "regional availability", "provisioning limits", "vCPU limit", "how many vCPUs available in my subscription".
raindrop-io
Manage Raindrop.io bookmarks with AI assistance. Save and organize bookmarks, search your collection, manage reading lists, and organize research materials. Use when working with bookmarks, web research, reading lists, or when user mentions Raindrop.io.
zlibrary-to-notebooklm
自动从 Z-Library 下载书籍并上传到 Google NotebookLM。支持 PDF/EPUB 格式,自动转换,一键创建知识库。
discover-skills
当你发现当前可用的技能都不够合适(或用户明确要求你寻找技能)时使用。本技能会基于任务目标和约束,给出一份精简的候选技能清单,帮助你选出最适配当前任务的技能。
web-performance-seo
Fix PageSpeed Insights/Lighthouse accessibility "!" errors caused by contrast audit failures (CSS filters, OKLCH/OKLAB, low opacity, gradient text, image backgrounds). Use for accessibility-driven SEO/performance debugging and remediation.
project-to-obsidian
将代码项目转换为 Obsidian 知识库。当用户提到 obsidian、项目文档、知识库、分析项目、转换项目 时激活。 【激活后必须执行】: 1. 先完整阅读本 SKILL.md 文件 2. 理解 AI 写入规则(默认到 00_Inbox/AI/、追加式、统一 Schema) 3. 执行 STEP 0: 使用 AskUserQuestion 询问用户确认 4. 用户确认后才开始 STEP 1 项目扫描 5. 严格按 STEP 0 → 1 → 2 → 3 → 4 顺序执行 【禁止行为】: - 禁止不读 SKILL.md 就开始分析项目 - 禁止跳过 STEP 0 用户确认 - 禁止直接在 30_Resources 创建(先到 00_Inbox/AI/) - 禁止自作主张决定输出位置
obsidian-helper
Obsidian 智能笔记助手。当用户提到 obsidian、日记、笔记、知识库、capture、review 时激活。 【激活后必须执行】: 1. 先完整阅读本 SKILL.md 文件 2. 理解 AI 写入三条硬规矩(00_Inbox/AI/、追加式、白名单字段) 3. 按 STEP 0 → STEP 1 → ... 顺序执行 4. 不要跳过任何步骤,不要自作主张 【禁止行为】: - 禁止不读 SKILL.md 就开始工作 - 禁止跳过用户确认步骤 - 禁止在非 00_Inbox/AI/ 位置创建新笔记(除非用户明确指定)
internationalizing-websites
Adds multi-language support to Next.js websites with proper SEO configuration including hreflang tags, localized sitemaps, and language-specific content. Use when adding new languages, setting up i18n, optimizing for international SEO, or when user mentions localization, translation, multi-language, or specific languages like Japanese, Korean, Chinese.
google-official-seo-guide
Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation
github-release-assistant
Generate bilingual GitHub release documentation (README.md + README.zh.md) from repo metadata and user input, and guide release prep with git add/commit/push. Use when the user asks to write or polish README files, create bilingual docs, prepare a GitHub release, or mentions release assistant/README generation.
doc-sync-tool
自动同步项目中的 Agents.md、claude.md 和 gemini.md 文件,保持内容一致性。支持自动监听和手动触发。
deploying-to-production
Automate creating a GitHub repository and deploying a web project to Vercel. Use when the user asks to deploy a website/app to production, publish a project, or set up GitHub + Vercel deployment.