REA
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Claude Guardian is an all-in-one Claude account safety and risk prevention skill.Claude防封实战 It intelligently assesses your device, account history, network environment, and payment options, then provides personalized guidance for local, VPS, or virtual machine setups.
Si lo creaste tú, pega este código en tu README. La insignia enlaza a esta página.
[](https://mcp.popnx.com/en/skills/dunhkpcc-claude-guardian)Servidores MCP que conectan la IA a servicios para el mismo trabajo
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Codebase intelligence for TypeScript and JavaScript, exposed as structured MCP analysis tools.
MCP server for terminal commands, file operations, and process management
Mismo tipo de trabajo, ordenadas como la lista de Skills
| Este Claude-Guardian | rea | andrej-karpathy-skills | graphify | MoneyPrinterTurbo | |
|---|---|---|---|---|---|
| Autor | DUNHKpcc | morluto | multica-ai | Graphify-Labs | harry0703 |
| Skills | 1 | 1 | 1 | 1 | 1 |
| Estrellas de GitHub | 2170 | 468.733 | 234.332 | 150.287 | 144.566 |
| Último cambio de código | 18 nov 2026 | 19 nov 2026 | 20 abr 2026 | 18 nov 2026 | 18 nov 2026 |
| Licencia | GPL-3.0 | MIT | – | Apache-2.0 | MIT |
1 skills (conjuntos de instrucciones) de DUNHKpcc que la IA lee y sigue · no es un MCP server
MCP = las manos
Conecta la IA a un servicio o dato externo, como leer Notion o crear una factura. Necesita un programa o servidor en marcha.
Skill = el manual
Un archivo de texto que enseña a la IA cómo hacer una tarea. No se conecta a nada.
A veces se parecen: algunas Skills ejecutan scripts que llaman herramientas y algunos MCP solo envían conocimiento. Empieza por la tarea que quieres hacer.
Claude CodeCodex
Según el README del autor y las carpetas del repo
GitHub account DUNHKpcc (person), 2 years old
★ 2170 stars · code last changed 18 nov 2026
43 scripts that can run on a computer: assets/mac-killswitch/guardian-pf-killswitch.sh, assets/remote-hardening/flclash-crash-heal.sh, assets/remote-hardening/install-reverse-tunnel.sh, assets/killswitch/switch.js and 39 more
Scripts that go online: assets/vm-killswitch/install-flclash-tun.sh, assets/killswitch/switch.js, scripts/update_check.py
Scripts that touch settings folders (~/.claude or settings.json): scripts/native_claude_state_mac.py
Checked automatically from the repo files at commit d31e8e3 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
Primero: ¿qué IA usas?
Elige tu app y esta página mostrará solo cómo instalarlo en ella
This skill uses the GPL-3.0 license, which is not on the list we redistribute, so we do not hand out a ZIP from our site. Download it from GitHub and arrange the folder yourself, or use "Let the AI install it" above, which is easier
Download from GitHub (whole repo) ↗
Unzip it, then zip only the skills/claude-guardian folder again. The ZIP must have a claude-guardian folder with SKILL.md at the top level, no loose files
+Create skillUpload a skillpick claude-guardian.zip
SettingsCapabilitiesCode execution and file creation
Turn on Code execution and file creation first (newer menus: Create and edit files) · personal plans: Settings → Capabilities · Team/Enterprise: an admin turns it on under Organization settings → Plugins & skills · every plan, including Free
Upload once; it works in claude.ai and Claude Desktop, and in recent Claude Code signed in with a Claude account (not with an API key)
Cowork and cloud sessions use the skills turned on in your claude.ai account, not ~/.claude/skills on your computer (Claude Desktop scheduled tasks run locally and still load it)
Checked against official docs 12 nov 2026 · Source: support.claude.com, support.claude.com, code.claude.com
Copia esta frase y pégala en un chat de Claude Code
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Vuelve a abrir Claude Code y escribe /claude-guardian, o pide una tarea relacionada y Claude lo usará
Checked against official docs 12 nov 2026 · Source: code.claude.com
Un Skill son instrucciones que la IA seguirá. Lee los archivos antes de instalar e instala solo de autores de confianza.
Mac: pulsa Command+Espacio y escribe Terminal · Windows: el comando no funciona en PowerShell; usa «Que la IA lo instale» arriba
Descarga el repo a una carpeta temporal y copia solo las carpetas con SKILL.md
git clone --depth 1 https://github.com/dunhkpcc/claude-guardian.git /tmp/popnx-skill-dunhkpcc-claude-guardian-d31e8e3 && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-dunhkpcc-claude-guardian-d31e8e3/skills/claude-guardian' ~/.claude/skills/claude-guardianLa app de escritorio de ChatGPT incluye Codex, y Codex lee las skills de la carpeta ~/.agents/skills
Abre Codex en la app de escritorio de ChatGPT y pega esta frase en el chat
The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Coloca la carpeta claude-guardian en ~/.agents/skills/claude-guardian
~ es tu carpeta de inicio ($HOME)
Un Skill son instrucciones que la IA seguirá. Lee los archivos antes de instalar e instala solo de autores de confianza.
Mac: pulsa Command+Espacio y escribe Terminal · Windows: el comando no funciona en PowerShell; usa «Que la IA lo instale» arriba
Descarga el repo a una carpeta temporal y copia solo las carpetas con SKILL.md
git clone --depth 1 https://github.com/dunhkpcc/claude-guardian.git /tmp/popnx-skill-dunhkpcc-claude-guardian-d31e8e3 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-dunhkpcc-claude-guardian-d31e8e3/skills/claude-guardian' ~/.agents/skills/claude-guardianChecked against official docs 15 nov 2026 · Source: learn.chatgpt.com
Las skills que instalas tú no funcionan aquí; solo las que vienen con un plugin del directorio
Para usar esta skill con ChatGPT, usa la app de escritorio de ChatGPT como se indica arriba
Checked against official docs 15 nov 2026 · Source: learn.chatgpt.com
Copia esta frase y pégala en un chat de Codex · Sirve en Codex dentro de la app de escritorio de ChatGPT, en Codex CLI y en la extensión del IDE
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Codex detecta solo las skills recién instaladas; si una no aparece, reinicia Codex · Para usarla: en ChatGPT escribe @ y elige la skill · en Codex CLI o la extensión del IDE ejecuta /skills o escribe $ y el nombre de la skill
Checked against official docs 15 nov 2026 · Source: learn.chatgpt.com
Un Skill son instrucciones que la IA seguirá. Lee los archivos antes de instalar e instala solo de autores de confianza.
Mac: pulsa Command+Espacio y escribe Terminal · Windows: el comando no funciona en PowerShell; usa «Que la IA lo instale» arriba
Descarga el repo a una carpeta temporal y copia solo las carpetas con SKILL.md
git clone --depth 1 https://github.com/dunhkpcc/claude-guardian.git /tmp/popnx-skill-dunhkpcc-claude-guardian-d31e8e3 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-dunhkpcc-claude-guardian-d31e8e3/skills/claude-guardian' ~/.agents/skills/claude-guardianCopia esta frase y pégala en un chat de Cursor
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
En el chat Agent de Cursor escribe / y elige claude-guardian
Checked against official docs 12 nov 2026 · Source: cursor.com
Un Skill son instrucciones que la IA seguirá. Lee los archivos antes de instalar e instala solo de autores de confianza.
Mac: pulsa Command+Espacio y escribe Terminal · Windows: el comando no funciona en PowerShell; usa «Que la IA lo instale» arriba
Descarga el repo a una carpeta temporal y copia solo las carpetas con SKILL.md
git clone --depth 1 https://github.com/dunhkpcc/claude-guardian.git /tmp/popnx-skill-dunhkpcc-claude-guardian-d31e8e3 && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-dunhkpcc-claude-guardian-d31e8e3/skills/claude-guardian' ~/.cursor/skills/claude-guardianPara otras apps que leen skills. La frase incluye las rutas de Claude Code, Codex y Cursor para que la IA elija la de tu app · Copy this sentence into the app’s chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Checked against official docs 12 nov 2026 · Source: code.claude.com, learn.chatgpt.com, cursor.com
Otras apps con Agent Skills (como Gemini CLI o GitHub Copilot) usan otras carpetas. Mira la guía de esa app y copia allí la carpeta con el SKILL.md.
Carpetas de skills comprobadas con las guías oficiales de Claude Code, Codex y Cursor el 11 nov 2026
✓ Comandos revisados el 19 nov 2026
El texto siguiente viene del repo del autor, no de PopNx MCP
Se muestran los primeros 8000 caracteres · Abrir el archivo completo en GitHub
---
name: claude-guardian
description: 带着作者和社区的真实经验,陪用户准备 Claude 的订阅、账号、固定出口 IP 和运行环境:订阅与支付渠道、注册与养号节奏、本机(Clash TUN、Windows 防火墙、Mac PF)/ VM / VPS 三条路线的搭建与防火墙、整机只走 IPv4 的出口验证、线路优化、403/429/529 等故障分诊、旧设备清理规划;改动按 A/B/C 三档授权。也可直接用作 VPS、家宽、线路和封号经验的帖子与论坛搜索工具。
---
# Claude Guardian
**0.2.0 工作流增量版**:访谈、检查、离线分析、面板、修复计划,以及由 Agent 按分级授权执行的配置、部署和复测。
## 和用户说话的方式(先读这一节)
本 Skill 的门禁是**写给你执行的规则,不是念给用户听的台词**。
1. **说做了什么、看到了什么、下一步谁做什么。**
2. **结论按证据直接说:**查过的说结果,没查的说“还没查,下一步查”。一句话,不附免责。
3. **限制只在用户要越过时说,一次,并给出路:**用户让你代付款,就说“付款要你本人在官方页面完成,步骤我列好了”,不讲一段为什么。
4. **不说这些句式:**不保证、不承诺、不成立、不改变、不代表、不等于、不构成、不证明、不为……背书、仅供参考、不能据此……、“这不是……而是……”。资料里出现这些说法,是给你判断用的;转述时换成“还要查 X”“下一步做 Y”,或者直接省略。
5. **免封只在用户问到时说一次:**“没人能保证不封,这套做法是把能控制的风险降到最低。”不要每个回答都附。
6. **参考资料中的经验按事实直接说**,不加“可能”“据说”。
7. **汇报三段,各段短:**已确认 / 还没查 / 下一步(谁做)。
## 开始方式
**每次使用前先查 Skill 更新:**运行 `scripts/update_check.py check`(只读,只连 GitHub),结果按 [skill-update.md](references/skill-update.md) 处理,没查成不阻塞。
1. 优先由 **Codex** 编排。分别确认执行宿主与实际目标:云端 shell 看到的是云端,用户的 Mac 要在用户的 Mac 上查。没有结构化提问界面时用短问句。
2. **默认用中文交流、提问、解释报告**,保留技术 ID/命令原文;用户明确选择其他语言时跟随。先复用已有事实,再补缺口。普通订阅准备的首个缺失业务问题是 **Q-J01:首次准备订阅、到期后重新订阅,还是当前已有订阅?** 随后询问 Mac/Windows 与用途。紧急事故优先。明确的清理任务直接进入目标和保护范围,跳过购买问卷;用户说过去被封过、但没说是哪台设备时,先问 Q-D01。
3. 本机是默认建议,但要问用户接受本机、选择 VM/VPS,还是先比较。三者是并列方案。已明确的目标优先;用户有 VPS 时,问清是当开发机还是当出口。
4. 按需读取 [intake.md](references/intake.md),使用稳定问题 ID 和 G1/G2/G3。**Q-C07 永久停用**,不得换名称恢复账号归属/控制权问题。首次订阅无实际冲突时跳过旧套餐/旧渠道题。
5. 每次工具操作前遵守 [contact-and-safety.md](references/contact-and-safety.md)。从 **PC0** 开始:不接触 Claude/Anthropic、不安装或运行客户端、不登录、不查看订阅页。公开文档、DNS、HEAD、`claude --version` 及委派 Claude 工具也不是例外。使用随包历史依据,待核验的现行事实明确标出。
6. 只在获准目标范围内使用已实现 CLI 检查(先查看 `scripts/guardian.py --help`)。缺依赖不静默安装;未支持的检查记为未知。内置功能未开放时,Agent继续调查实际环境;不得用临时命令绕过权限拒绝、PC0或既有执行门禁。修复按 [agent-remediation.md](references/agent-remediation.md) 授权、备份及复测;Windows 网络写入先读[独立恢复](references/windows-network-transaction.md)。
7. 交付具体问题、目标范围、证据、未知项、最小修复建议、保留项及下一步。`pass/fail/unknown/not_applicable/blocked/skipped` 只描述指定检查。
## 环境入口顺序(2026-10-19 更新)
先明确本轮任务和本机/VM/VPS 运行路线,再了解网络资源与配置状态,最后进入目标环境检测或修复。路线没定(还在比较、拒绝、撤回或冲突)时只做访谈和解释;用户明确接受本机建议后才算选定本机。VPS 当出口时,运行路线仍是本机或 VM。
选定路线后先做**能力核实**:在目标机核实 Python,查看 `inventory_cli.py capabilities` 和检测脚本帮助,写入状态 `capabilities`;缺 Python 必须补齐,统一使用我们的 `network_check.py` 与 `egress_verifier.py`,不以手写检查替代。安装按档授权,未获准或失败记检测未完成。步骤见 [agent-remediation.md](references/agent-remediation.md#capability-checkpoint)。随后仅收集资源是否已有、明确选中哪个非识别别名、代理入口类型、最终出口协议及配置状态;不索取或保存 IP、订阅链接、密码、UUID 或配置全文。HTTP/mixed 本地入口和 SOCKS5 最终出口是不同层;Claude Code 要用 HTTP 或 mixed 入口。配置导入后要实测确认生效。
本机与 VM 做适用的详细检查,VM 宿主和客机分别绑定;VPS 路线是开发机,指引见 [vps-guidance.md](references/vps-guidance.md);本阶段只做基础非侵入检查;用户给出 VM/VPS 访问方式后,Agent 可按分级授权部署,买服务器、付款、注册、登录由用户本人完成。没有代理资源、不清楚或选直连,仍可在原授权下做离线预检,不要求先购买。
入口由 `scripts/environment_entry.py` 的 `assess_entry` / `require_entry` 校验(细节见 [host-libraries.md](references/host-libraries.md))。路线或资源变了,旧检查结论和计划作废,重新核实;已有的恢复义务照旧完成。
## 同一电脑默认统一代理路径,可明确指定分流例外
网络准备/修复默认要求同一目标电脑的所有普通应用、子进程和后台服务的公网 TCP/UDP/DNS 经同一指定代理路径/出口,普通应用到目标采用 `IPv4_ONLY`,禁止 IPv6 fallback;代理失效不得直连或切换未经批准的出口。不是只保护 Claude,也不能因某软件忽略系统代理就排除它。
配置前必须先告知将如何接管整机流量,例如 TUN,以及对其他应用、LAN/VPN、DNS和控制连接的影响、明确例外、备份与独立恢复方案,取得具体批准后才执行。TUN 和 Clash 的 global 模式是两回事,故障防直连要靠防火墙另外做;只走 IPv4:核心和 DNS 关 IPv6,Windows 默认关闭网卡 IPv6(B 档),节点用 IPv4 地址。
用户明确要求某软件/进程独立路径时,核实精确范围、路径、协议/地址族和失败行为,作为明确例外分别配置与验收;也可明确选择仅 Claude 的窄范围模式。存在例外就不能仍称全软件同一路径。完整默认、例外、能力与证据边界以 [Agent 整机路径要求](references/agent-remediation.md#ipv4-only-policy) 为准;[网络参考](references/network-and-remedies.md)的旧目标范围方法仅用于相应窄范围方案或局部诊断。
整机是否达标用 [whole-machine-ipv4.md](references/whole-machine-ipv4.md) 的取证和 `scripts/egress_verifier.py` 判定;`traffic_policy`、访谈评估和面板只输出旧的目标范围结论,不拿它们当整机结论。没取到的证据标 unknown,单次 curl 成功不算整机通过。环境修复后的浏览器验收网址是 https://ip.net.coffee/claude/:用户本人在实际用的浏览器打开,**除语言外必须全绿**(时区要和出口一致),一项不绿就不算过([做法](references/whole-machine-ipv4.md#browser-acceptance))。不给无关任务强加网络修改。
## 完整访谈入口
完整访谈用 `scripts/interview_cli.py`:answer JSON 传入事实,`--input` 读档,仅明确要求保存才用 `--output`。中断续接加 `--resume <事件别名>`,按 [续接规则](references/intake.md#interruption-and-resume) 核实变化;Q-C07 停用,`guardian.py interview` 为简化入口。开局先读私有待办:有 `blocking_next_session` 先提示并优先完成相关验收;手动交接先完成前置依赖([规则](references/agent-remediation.md#handoff-and-follow-up))。
由 Agent 编排检测、解释、选择内置动作、具体确认、执行和复测,详见 [agent-remediation.md](references/agent-remediation.md)。`scripts/agent_remediation.py select --input <本地报告.json> --target-ref <目标别名>` 生成结构化动作清单;清单只是选择,不执行;内置脚本修不了时,由 Agent 在实际环境里用获准的工具做最小修复、备份恢复和复测。内置门禁不绕过,授权来自用户在对话里的明确回复。
## 内置脚本与宿主库
内置入口按动作能力分流,常用的几个:
- **网络基础检测用 `scripts/network_check.py run`**(三平台,B 档批准后跑):路由、IPv4 出口、IPv6、DNS 泄露、UDP,`--failure-drill` 做故障演练,`--evidence-output` 交给 `egress_verifier.py`。`guardian.py check` 不测网络。
- `scripts/repair_cli.py`:精确文件的 `preflight / plan / diff / execute`;当前开放的写入只有 macOS 上 Clash Verge Rev 2.5.8 的 `rules-prepend`(应用须已退出,已在真机验证写入与回滚),其他组合返回 `NATIVE_REPAIR_ADAPTER_UNAVAILABLE`,由 Agent 按 [agent-remediation.md](references/agent-remediation.md) 在实际环境里做最小修复。用应用界面改 2.5.8 的 rules 扩展时按 [agent-rules-task.md](references/agent-rules-task.md) 生成候选。
- `scripts/inventory_cli.py capabilities`:查看实际开放范围;`scripts/status_dashboard.py`:把已有报告生成离线 HTML 面板。
- `scripts/recovery_cli.py`:POSIX 回执检查与精确文件恢复。
- DNS、STUN、监听者核对、原生上下文、配置候选等是供可信宿主集成的库,没有 CLI,不自动执行。
各入口和库的输入格式、阻塞条件和边界见 [host-libraries.md](references/host-libraries.md),用到哪个读哪个小节;脚本清单见 [scripts-index.md](references/scripts-index.md)。
## 首问示例
“这次先在 Codex 中做环境准备。你是第一次准备订阅、以前订阅过现在准备重订,还是目前已有订阅来处理问题?”
第一次订阅、拿不定主意的新手,直接推荐 [A0a 新手试错推荐组合](references/account-onboarding.md#a0a):苹果内购、Gmail/Outlook 邮箱、VPS 纯净个人 IP、在 VM 或本机上使用、Pro 订阅(2026-10-25:退款成功率高、稳定率高)。
已回答就跳过。每轮一个主要决策,可合并少量同主题事实;不整页展示问题库。报告摘要使用“已确认/尚未核实/建议下一步”,不报虚假的完成百分比。
## 来源原文阅读
**资料随答附带(2026-10-21,ADR-011):** 项目参考资料不能静默使用。凡回答涉及某主题,回答末尾必须附“参考资料”,给出对应本地文件链接并指出章节或 PDF 页码,不必等用户来问。按主题只附相关的几份,不一次塞入全部资料;完整对应表见 [来源资料库](references/source-library.md):
| 回答主题 | 必附资料 |
| --- | --- |
| 支付、订阅渠道、礼品卡、虚拟卡、API 充值 | **第一项:[AI 所有支付方式汇总(核验版)](sources/S02-ai-payments.md)**,核心参考,Agent 可据此向用户推荐支付方式(规则见 accounts-and-payments.md 的 B1) |
| 账号阶段、IP、设备、注册与养号节奏 | [S03 经验 PDF](sources/S03-claude-experience.pdf)(文字版 [S03-extracted-text.md](sources/S03-extracted-text.md)、[S03-source-text.md](sources/S03-source-text.md);第 4、5 页是图片表格)、[S04 指南](sources/S04-claude-guide.md)、[account-onboarding.md](references/account-onboarding.md) |
| 本地防护、代理、浏览器档案、WebRTC 检查 | [S05 本地防护](sources/S05-local-protection.md);WebRTC 可用包内的[本地探测页](assets/webrtc-probe.html)(`scripts/serve_webrtc.py` 提供) |
| macOS 清理 | [S06 清理教程](sources/S06-macos-cleanup-sanitized.md)、[cleanup-cli-usage.md](references/cleanup-cli-usage.md)(执行用 `native_cleanup_mac.py`,必附) |
| 在用户的机器上做改动时的授权方式(路线选定后;A、B、C 档) | [authorization-tiers.md](references/authorization-tiers.md)(必附);Agent 就在被改网络的机器上时加 [agent-on-target.md](references/agent-on-target.md) |
| 手机端(注册、选择 Apple/Google 内购、仅手机) | [mobile-guidance.md](references/mobile-guidance.md)、[S03 经验 PDF 第 4 页](sources/S03-claude-experience.pdf)(必附) |
| VM 路线(客机系统、网卡、出口、防火墙脚本) | [vm-guidance.md](references/vm-guidance.md)、[egress-ip-options.md](references/egress-ip-options.md)(必附)、[VPS 推荐报告索引 R01](sources/vps-recommendations/INDEX.md)(出口选自建梯、要选 VPS 时)、[S07 IP 质量清单](sources/S07-vps-script-catalog.md)(检查出口 IP 时)、[VM 搭建脚本](assets/vm-killswitch/enable-guest-ssh.sh)(开客机 SSH)、[FlClash TUN 安装](assets/vm-killswitch/install-flclash-tun.sh)、[VM 防火墙脚本](assets/vm-killswitch/install-flclash-killswitch.sh)(Linux 客机,按这个顺序) |
| 进阶路线(VM/VPS:远端 Linux 管理) | [advanced-route.md](references/advanced-route.md)、[VM 指引](references/vm-guidance.md)(必附)、[反向隧道](assets/remote-hardening/install-reverse-tunnel.sh)、[自愈](assets/remote-hardening/flclash-crash-heal.sh)、[防火墙](assets/vm-killswitch/install-flclash-killswitch.sh)(最后装,C 档) |
| Windows 整机白名单双开关;Mac/Linux GUI | [指引](references/killswitch-switch.md) |
| 本机路线:Clash(TUN)与防火墙 | [本机流程与退出复查](references/local-firewall-prompts.md)([交付验收](references/local-firewall-prompts.md#delivery-scope))、[Mac DNS](references/macos-dns-case-lessons.md)、[S05](sources/S05-local-protection.md)、[S10 本机经验](sourPregunta, comparte un consejo o avisa de que no funciona. Ordenado por lo que la gente marcó como útil.
Aún no hay publicaciones. Sé la primera persona en preguntar o compartir.
Lo publicado aquí lo escriben usuarios, no el equipo de PopNx.