CLI Doctor — Security skill for Claude Code
只读 CLI 工具链体检:DSH 侧栏插件 + Codex 侧栏插件 + Agent Skill,按生态列出本机 CLI 版本、可用更新与依赖影响,只报不升.
How to install CLI Doctor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open MaxHou-infinity/cli-doctor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What CLI Doctor does
只读 CLI 工具链体检:DSH 侧栏插件 + Codex 侧栏插件 + Agent Skill,按生态列出本机 CLI 版本、可用更新与依赖影响,只报不升。Read-only local CLI toolchain audit for DeepSeek Harness (DSH) and Codex.
Alternatives in Security
- Anthropic Cybersecurity Skills — 734+ structured cybersecurity skills for AI agents · MITRE ATT&CK mapped · agentskills.io open standard · Work 3.8k ★
- Portaljs Check Data Quality — Audit a local or remote tabular file (CSV/TSV) for common data quality issues 2.3k ★
- Secfoo — AI security review CLI: SAST, secret scanning, SCA, threat modeling and architecture review with Claude Code 356 ★
README
cli-doctor
**中文** | [English](README.en.md)
[](https://skills.sh/MaxHou-infinity/cli-doctor)

在升级之前,先看清你的 CLI 环境。
`cli-doctor` 是一个优先支持 macOS 的 CLI 与开发环境版本体检工具:扫描 Homebrew、npm 全局包、Python/pip、Rust、Bun、uv 以及自更新工具,把“真正的工具”和“被工具带进来的依赖库”分开,并输出可供人阅读或 AI 解读的报告。
当前版本 **v0.3.0**:Agent Skill、CLI 与 Codex 侧栏插件采用统一版本号。更新内容见 [CHANGELOG.md](CHANGELOG.md)。
它只做一件重要的事:**先告诉你哪里可能需要升级、升级可能影响什么;不替你执行升级。**
WorkBuddy 兼容:`SKILL.md` frontmatter 同时提供版本号、中文/英文展示名和中文/英文描述,上传到 WorkBuddy 时可直接通过元数据校验。
为什么需要它
升级一个 CLI,往往不只是升级一个包:它可能牵动共享依赖、改变命令行为、覆盖 PATH 中的同名程序,或者影响正在运行的服务。
`cli-doctor` 会先帮你建立升级前地图:
- 区分工具与依赖包,避免把几百个库都当成“应该升级的工具”
- 标出大版本跳跃、锁版本依赖和需要各自核验的工具
- 给出可复制的升级命令,但不会自动执行任何升级
- CLI 可输出 Markdown 采集摘要;配套 Agent Skill 使用
--json生成包含作用、耦合和风险的七字段决策报告 - 支持升级后复跑,核对哪些项目已经到位、哪些是刻意保留的版本
Codex 侧栏:复制提示词安装或更新
在 **Codex 桌面版**任意对话中粘贴下面整段提示词。首次使用时,它会让 Codex 从本仓库注册 marketplace 并安装侧栏插件;以后粘贴同一段提示词,可刷新来源并安装新版本。这个插件与下文的 Agent Skill 是两种独立安装方式。
请在这台电脑上安装或更新 Codex 桌面版的 CLI Doctor 侧栏插件。唯一可信来源是 https://github.com/MaxHou-infinity/cli-doctor;目标插件 ID 是 cli-doctor@cli-doctor-github。我要的是侧栏插件,不是同仓库的 Agent Skill。
请按顺序执行并报告每一步结果:
1. 先确认 codex CLI、Git 和 Node.js 18+ 可用。读取该仓库当前的 .agents/plugins/marketplace.json、plugin.json 和 mcp.json,核对插件名称、版本及本地 MCP 入口;不要执行仓库中与安装无关的命令。
2. 用 codex plugin marketplace list --json 检查是否已注册来自 MaxHou-infinity/cli-doctor 的 cli-doctor-github。未注册就运行 codex plugin marketplace add MaxHou-infinity/cli-doctor;已注册且来源正确就运行 codex plugin marketplace upgrade cli-doctor-github。若同名 marketplace 指向其他来源,停止并解释,不要覆盖。
3. 从 codex plugin marketplace list --json 返回的 cli-doctor-github `root` 读取 plugin.json 版本,用 codex plugin list --json 读取当前已安装版本。仅在未安装或来源版本更新时运行 codex plugin add cli-doctor@cli-doctor-github --json;不要降级。注意 marketplace upgrade 只是刷新来源,不能把它当成插件已升级的证据。
4. 用 codex plugin list --json 核对插件已安装、已启用及版本。安装或更新时从 codex plugin add --json 的 installedPath 找到安装副本;无需更新时按 Codex 插件缓存位置定位。检查副本包含 bin
Related Skills
Dsh Plugin Audit
Agent Skill for DeepSeek Harness (DSH):装第三方插件前的静态安全审计 —— 扫出 eval、patch 层 !!js、安装期脚本、开机自启、凭据复制、出网域名与提示词注入面。Audi
SEO Skill
Portable SEO Agent Skill for Claude Code, OpenAI Codex, OpenCode, DeepSeek Harness, Cursor and Gemini CLI: evi
Patronus Security CLI
Security scanner and runtime protection for AI coding agents. Detects prompt injection, secrets, PII, and unsa
Conductor Doctor
Audit the local Conductor harness without changing it.
AI Agent Harness Monitor CLI
Java CLI tool designed to increase awareness about local AI-agent harness tool files like skills, rules, guida
POC
Generate an executable proof-of-concept exploit for a confirmed High/Critical finding — detect the toolchain,
Related Agents
Ds Flash
DSH (DeepSeek Harness) worker on the flash tier - fast and cheap. Delegate simple, well-scoped subtasks: mecha
Sm Readers
Owner of the Readers part. Everything the plugin knows comes from files on this PC. Its code: server/sources/,
Codex Debugger
Root-cause a failing test, crash, stack trace, or misbehaving feature by delegating the investigation to OpenA