Agent skill

Proxychains Network Fallback

by 2025Emma in 2025Emma/vibe-coding-cn

Retries failed network commands through proxychains4 and a local proxy when it sees timeouts, DNS failures or blocked access.

MITAuto-check: notesDevOps & Cloud

SKILL.md written in Chinese; this summary is our English description.

Install Proxychains Network Fallback

skills CLI
$ npx skills add 2025Emma/vibe-coding-cn --skill proxychains -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install 2025Emma/vibe-coding-cn proxychains --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/2025Emma/vibe-coding-cn.git skills-src && mkdir -p .claude/skills && cp -r skills-src/i18n/zh/skills/proxychains .claude/skills/proxychains && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
proxychains
GitHub stars
23k
Used in
1 other repo
Token cost
~1.1k tokens
SKILL.md length
178 words
Files
7 (incl. scripts, references)
Skills in repo
13
Repo updated
First seen
Licence
MIT

At a glance

Retries failed network commands through proxychains4 and a local proxy when it sees timeouts, DNS failures or blocked access.

  • Works in 3 steps: 检测到网络错误后,自动在命令前添加 proxychains4 → 使用默认代理配置:http://127.0.0.1:9910 → 如果代理失败,提示用户检查代理服务状态
  • Commands fail with connection timeouts or DNS errors
  • SKILL.md covers When to Use This Skill, Quick Reference, 配置详情 and 工作原理, plus 5 more sections
  • Runs Shell scripts from its folder; calls curl, git and pip; reaches github.com and google.com

What it does

The skill tells the agent to react to network failures by prefixing the failing command with proxychains4. The triggers are connection timeouts, DNS resolution failures, refused connections, HTTP 403 or 451 blocks, failures reaching GitHub, PyPI or npm, and failing curl, wget, git or pip commands. The default proxy is http://127.0.0.1:9910, and if the proxy also fails, the agent asks you to check the proxy service.

Examples cover git clone, pip and npm installs, wget and curl downloads, Docker pulls and SSH. The skill explains the configuration in ~/.proxychains/proxychains.conf or /etc/proxychains.conf, a setup script, and the limits of the LD_PRELOAD approach: statically linked programs and UDP are not supported and some network libraries may not work. A troubleshooting section tests the proxy with curl and checks the exit IP. The SKILL.md is mostly written in Chinese.

When your agent uses it

  • Commands fail with connection timeouts or DNS errors
  • Access to GitHub, PyPI or npm is blocked or very slow
  • Setting up proxychains4 with a local proxy

Example prompts

  • “git clone keeps timing out. Retry it through proxychains.”
  • “pip install fails with a connection error. Use the proxy and retry.”
  • “Set up proxychains4 to use my local proxy on port 9910.”

Requirements

  • proxychains4 installed
  • A local proxy service, by default at 127.0.0.1:9910

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 检测到网络错误后,自动在命令前添加 proxychains4
  2. 使用默认代理配置:http://127.0.0.1:9910
  3. 如果代理失败,提示用户检查代理服务状态

What it can do on your machine

Read from SKILL.md and the folder at commit 9b42dd1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • curl
    • git
    • pip
    • npm
    • wget
    • docker
    • ssh
    • apt
    • yum

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com
    • google.com
    • ipinfo.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Proxychains Network Fallback loads about 1.1k tokens when it runs, and up to ~9k if it reads all its reference files. Until then it costs about 53 tokens; SKILL.md has 178 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:207
    sudo apt install proxychains4  # Debian/Ubuntu
  • NoteRuns commands with sudoSKILL.md:208
    sudo yum install proxychains-ng  # CentOS/RHEL

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from 2025Emma/vibe-coding-cn at commit 9b42dd1, republished under its MIT licence (© 2025Emma). 178 words, ~1,149 tokens.

Download SKILL.mdSave it as .claude/skills/proxychains/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
proxychains
description
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

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 在遇到网络问题时自动使用代理,无需用户手动干预!

© 2025Emma, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references) in i18n/zh/skills/proxychains of 2025Emma/vibe-coding-cn.

  • SKILL.md
  • references/index.md
  • references/proxychains.conf
  • references/quick-reference.md
  • references/setup-guide.md
  • references/troubleshooting.md
  • scripts/setup-proxy.sh

Open the folder on GitHubat commit 9b42dd1

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in 2025Emma/vibe-coding-cn, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Proxychains Network Fallback next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Proxychains Network Fallback compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Proxychains Network Fallback this skill2025Emma/vibe-coding-cn23k1 repos~1.1kAutomated safety check: NotesMIT
Sysadmin ToolboxaAAaqwq/AGI-Super-Team1052 repos~775Automated safety check: PassMIT
Reflexo ReleaseMyriad-Dreamin/typst.ts1.2k—~1.5kAutomated safety check: PassApache-2.0
Add Agentmattolson/agent-sandbox208—~3.2kAutomated safety check: PassMIT
Gating Production DeploysPostHog/posthog-foss721—~751Automated safety check: PassMIT
Deploy Detect Skilljiushiwon/wg-skills110—~1.1kAutomated safety check: NotesApache-2.0

Similar skills

  • Sysadmin Toolbox

    aAAaqwq/AGI-Super-Team

    Tool discovery and shell one-liner reference for sysadmin, DevOps, and security tasks.

    105 GitHub starsUsed in 2 repos~775 tokens
    DevOps & CloudAuto-check passed
  • Reflexo Release

    Myriad-Dreamin/typst.ts

    Guide Reflexo/typst.ts release preparation and operator handoffs.

    1.2k GitHub stars~1.5k tokensUpdated 12 days ago
    DevOps & CloudAuto-check passed
  • Add Agent

    mattolson/agent-sandbox

    Add a new AI coding agent to Agent Sandbox. An agent skill from mattolson/agent-sandbox.

    208 GitHub stars~3.2k tokensUpdated 6 days ago
    DevOps & CloudAuto-check passed
  • Gating Production Deploys

    PostHog/posthog-foss

    Official

    A skill your agent uses when adding or editing a GitHub Actions workflow that pushes a container image to a registry (ECR/ghcr/Docker Hub via build-push-action) or dispatches a production deploy (a…

    721 GitHub stars~751 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Deploy Detect Skill

    jiushiwon/wg-skills

    用于自动检测项目根目录的技术栈(语言、Web 框架、前端框架、数据库、缓存/消息),并生成标准化的「项目部署画像 deploy-profile.md」,作为 server-setup-skill、static-nginx-skill、deploy-native-skill、deploy-docker-skill 共享的事实来源。当用户说「部署检测」「detect…

    110 GitHub stars~1.1k tokensUpdated 3 days ago
    DevOps & CloudAuto-check: notes
  • GitHub Runner

    magnus919/agent-skills

    Deploy, manage, and troubleshoot self-hosted GitHub Actions runners.

    111 GitHub stars~1.7k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

More from 2025Emma/vibe-coding-cn

All 13 skills in this repo
  • Claude Cookbooks Reference

    2025Emma/vibe-coding-cn

    Reference of Claude API examples and guides covering tool use, vision, RAG, classification, summarization, text-to-SQL, prompt caching and agent patterns.

    23k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Skill Authoring and Refactoring

    2025Emma/vibe-coding-cn

    Builds new skills from scattered docs, specs or code, and refactors existing skills for clear triggers, reliable activation and a quality checklist.

    23k GitHub starsUsed in 2 repos~2k tokens
    Auto-check passed
  • CCXT Crypto Exchange Library

    2025Emma/vibe-coding-cn

    Reference help for the CCXT library covering crypto exchange APIs, market data, trading and order management across 150+ exchanges in JavaScript, Python and PHP.

    23k GitHub starsUsed in 2 repos~4.4k tokens
    Auto-check passed
  • CoinGecko API Reference

    2025Emma/vibe-coding-cn

    CoinGecko API documentation - cryptocurrency market data API, price feeds, market cap, volume, historical data. Use when integrating CoinGecko API, building…

    23k GitHub starsUsed in 2 repos~646 tokens
    Auto-check passed
  • Hummingbot Trading Bot Reference

    2025Emma/vibe-coding-cn

    Reference documentation for building, configuring and debugging automated trading strategies, market making and exchange connectors with Hummingbot.

    23k GitHub starsUsed in 1 repo~998 tokens
    Auto-check passed
  • SnapDOM Capture Guide

    2025Emma/vibe-coding-cn

    Explains how to use the snapDOM library to turn an HTML element into an SVG, PNG, JPG or WebP image while keeping its fonts, pseudo-elements and shadows.

    23k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed

Works with

Categories

Questions about Proxychains Network Fallback

What does Proxychains Network Fallback do?

Retries failed network commands through proxychains4 and a local proxy when it sees timeouts, DNS failures or blocked access. The skill tells the agent to react to network failures by prefixing the failing command with proxychains4. The triggers are connection timeouts, DNS resolution failures, refused connections, HTTP 403 or 451 blocks, failures reaching GitHub, PyPI or npm, and failing curl, wget, git or pip commands.

When should I use Proxychains Network Fallback?

Proxychains Network Fallback fits situations like: commands fail with connection timeouts or DNS errors; access to GitHub, PyPI or npm is blocked or very slow; setting up proxychains4 with a local proxy.

How do I install Proxychains Network Fallback in Claude Code?

Run `npx skills add 2025Emma/vibe-coding-cn --skill proxychains -a claude-code`. Or copy the skill folder (i18n/zh/skills/proxychains in 2025Emma/vibe-coding-cn) into .claude/skills/proxychains in your project. Claude Code loads it when a task matches its description.

How do I install Proxychains Network Fallback in Codex?

Run `npx skills add 2025Emma/vibe-coding-cn --skill proxychains -a codex`. Or copy the skill folder (i18n/zh/skills/proxychains in 2025Emma/vibe-coding-cn) into .agents/skills/proxychains in your project. Codex loads it when a task matches its description.

Can I use Proxychains Network Fallback in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add 2025Emma/vibe-coding-cn --skill proxychains -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/proxychains, .gemini/skills/proxychains, .github/skills/proxychains and .opencode/skills/proxychains in your project.

What does Proxychains Network Fallback need to run?

Going by SKILL.md and its folder, Proxychains Network Fallback needs a shell for the scripts in its folder and the command-line tools its instructions call (curl, git, pip, npm, wget and docker). Our summary lists: proxychains4 installed; A local proxy service, by default at 127.0.0.1:9910.

Does Proxychains Network Fallback access the network?

SKILL.md names 3 domains. In commands or code: github.com, google.com and ipinfo.io; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Proxychains Network Fallback safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Proxychains Network Fallback use?

Proxychains Network Fallback is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Proxychains Network Fallback use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.9k tokens, read only when the agent opens those files.

What are the alternatives to Proxychains Network Fallback?

Skills that share tags, products or a category with Proxychains Network Fallback: Sysadmin Toolbox (aAAaqwq/AGI-Super-Team, 105 stars), Reflexo Release (Myriad-Dreamin/typst.ts, 1.2k stars), Add Agent (mattolson/agent-sandbox, 208 stars) and Gating Production Deploys (PostHog/posthog-foss, 721 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Proxychains Network Fallback?

2025Emma (a GitHub user) maintains it in 2025Emma/vibe-coding-cn, which has 23,033 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on December 17, 2025.

Source: 2025Emma/vibe-coding-cn on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.