X Proxy Skills — DevOps skill for Claude Code
国内网络环境下的 Agent Skill:探测最快镜像 → 整文件备份 → 应用 → 验证 → 一键回滚(pip/npm/conda/cargo/go/HF/GitHub/Docker/apt).
How to install X Proxy Skills
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open bbjson/X-Proxy-Skills and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What X Proxy Skills does
国内网络环境下的 Agent Skill:探测最快镜像 → 整文件备份 → 应用 → 验证 → 一键回滚(pip/npm/conda/cargo/go/HF/GitHub/Docker/apt).
Alternatives in DevOps
- Docker 71.9k ★
- Skill Claw — OpenClaw instance administration — manage hosts across macOS, Ubuntu/Debian, Docker, OCI, and Proxmox 2.8k ★
- Open Agent Email — Open-source email infrastructure for AI agents: secure inboxes, REST and MCP APIs, SMTP, human approval workfl 2.1k ★
README
X-Proxy-Skills (xps)
[](https://github.com/bbjson/X-Proxy-Skills/actions/workflows/ci.yml)
国内网络环境下的开发环境加速器:**探测 → 备份 → 应用 → 验证 → 回滚**。 一个 Agent Skill,也是一条命令行工具。不猜镜像、不关 TLS、不改 git 全局配置。
xps doctor # 体检:系统 / 代理 / 配置现状 / 连通性 / 免密 sudo
xps probe # 并行测 9 类镜像站,★ 标最快(结果缓存 1h)
xps apply --dry-run # 看 diff,不写任何文件
xps apply --only pip,npm # 只配你抱怨的那几个
xps verify # 回读配置证明改对了
xps rollback --yes # 不满意一条命令回原样
为什么不是"再写一份换源命令清单"
网上这类 skill 已经很多(见 `docs/调研-国内网络skill清单.md`),但绝大多数是「把 npm/pip 的换源命令抄一遍」。问题在于:
| 常见做法 | 实际后果 |
|---|---|
| 写死一个镜像地址 | 镜像站关停后配置变成毒药,且没人知道要改 |
直接覆盖 .condarc / .cargo/config.toml |
用户原有的 channels / build 配置消失 |
| 没有备份 | 出问题只能凭记忆手改回来 |
| 换完不验证 | 项目级 .npmrc 覆盖了全局,用户以为配好了其实没生效 |
| 为了"能跑"关掉 TLS 校验 | 中间人从此无法被发现 |
全局 insteadOf 劫持 github.com |
私有仓库和 git push 一起走第三方,token 泄漏 |
`xps` 针对每一条都做了对应设计:
- 探测驱动:
data/mirrors.json里每个源都带探测 URL,apply默认选当前最快的;镜像死了probe一眼能看出来。 - 最小改动:只动目标键(
index-url/registry/registry-mirrors),注释和其它配置原样保留。 - 托管标记:本工具写的文件带
# managed-by: x-proxy-skills;已有非托管配置一律要求--force。 - 整文件备份 + 逆序回滚:
~/.local/share/x-proxy-skills/backups//,应用前不存在过的文件回滚时会被删除。 - 验证器:每个生态都有回读校验,
verify失败会返回非零退出码(可直接进 CI)。 - 安全红线:不关 TLS、不打印凭据、带凭据的 URL 拒绝走第三方前缀。
支持矩阵
| 生态 | 配置落点 | 探测 | 自动选最快 | 备份 | 需要 sudo |
|---|---|---|---|---|---|
| pip | ~/.config/pip/pip.conf |
✅ | ✅ | ✅ | — |
| uv | ~/.config/uv/uv.toml |
✅ | ✅ | ✅ | — |
| poetry | /pyproject.toml |
✅ | ✅ | ✅ | —(项目级,--project) |
| npm / pnpm / yarn / bun | ~/.npmrc |
✅ | ✅ | ✅ | — |
| conda / mamba | ~/.condarc |
✅ | ✅ | ✅ | — |
| cargo | ~/.cargo/config.toml(sparse) |
✅ | ✅ | ✅ | — |
| go modules | go env -w GOPROXY |
✅ | ✅ | ✅ | — |
| HuggingFace | HF_ENDPOINT + ~/bin/hfd |
✅ | ✅ | ✅ | — |
| 下载器二进制 | env.sh:Playwright/Puppeteer/Electron/node-gyp/Flutter |
Related Skills
Lockdown
Per-repo supply-chain hardening — detects the package managers, Dockerfiles, and CI in use, then guides you th
Cratos Setup
Cratos 프로젝트 초기 설정 - Cargo workspace, 크레이트 스캐폴딩, Docker 설정
Multiterm
Central visual para executar e acompanhar varios terminais/agentes ao mesmo tempo (Claude Code, Codex CLI, Gem
Payload Upgrade
Claude Code skill that upgrades Payload CMS safely: pins payload and every @payloadcms/ package to one exact v
Cccc
Coordinate your coding agents like a group chat — read receipts, delivery tracking, and remote ops from your p
Yolo Docker Maxxing
YOLO docker-maxxing - instant DevContainer with Python, Node, Go, AWS/Azure CLI, Terraform, Tailscale, PDF too
Related Agents
Dependency Auditor
Audit dependencies for vulnerabilities, outdated versions, and deprecations. C#/.NET first (dotnet list packag
What Skeletons Are Hiding In Node Modules?
npm audit --json 2>/dev/null true cargo audit 2>/dev/null true pip-audit 2>/dev/null true grep -rn "password\
Dep Cve Auditor
Audits dependency manifests for CVEs (npm/pip/cargo/govulncheck) to disk. Manifests only — security-audit-work