doctor

doctor is a skill for Claude Code, Codex from MountainUnicorn/add. It costs 25 tokens per session (1,578 once invoked), scanned A, original, MIT.

A diagnostic command that checks whether an ADD installation is actually working, rather than merely appearing installed. It reports the status of applicable configuration, hooks, agents, and version checks.

In plain words
What is it for?
Use it to verify installation health and find configuration, hook, agent, or version problems.
Why use it?
Some installations can silently stop working when a coding-agent runtime ignores expected files or settings. The command identifies failures and gives a remedy without changing anything.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mountainunicorn/add/doctor
Any agent
npx skills add MountainUnicorn/add --skill doctor
Clone the repo
git clone --depth 1 https://github.com/MountainUnicorn/add

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/mountainunicorn/add/doctor.svg)](https://agentmods.dev/skills/mountainunicorn/add/doctor)
Your own site
<a href="https://agentmods.dev/skills/mountainunicorn/add/doctor"><img src="https://agentmods.dev/badge/skills/mountainunicorn/add/doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.01578
Opus 5 $0.00013 $0.00789
Sonnet 5 $0.00005 $0.00316
Haiku 4.5 $0.00003 $0.00158

Measured 5d ago against content hash 61be86c9e042, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

core/skills/doctor/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ADD Doctor Command v{{VERSION}}

Distinguish "seems installed" from "provably healthy". An ADD install can be silently dead — e.g. Codex ≥0.14x ignoring agents and hooks with no error (issue #24). This command runs a check battery and reports per-check status with a one-line remedy for every failure. Doctor only reports — it never repairs (remediation: /add:init --reconfigure or re-running the installer).

Execution

1. Detect runtime

Same model as /add:version — probe ${CLAUDE_PLUGIN_ROOT}/, first hit wins:

  1. .claude-plugin/plugin.json exists → Claude runtime
  2. plugin.toml or VERSION exists (and ${CLAUDE_PLUGIN_ROOT} resolves under ~/.codex) → Codex runtime

Checks that don't apply to the detected runtime are skipped silently — do not list them in the output at all.

2. Run the check battery

ID Check Runtime Severity
D-VER plugin / project / core versions agree both warn (behind) / error (ahead)
D-CFG config.toml feature gates (collab, codex_hooks) codex error
D-HOOKS hooks.json nested ≥0.14x schema; scripts exist + executable codex error
D-AGENTS agent TOMLs use developer_instructions, never prompt_skill codex error
D-PATHS every installed plugin.toml path resolves codex error
D-STALE stale artifacts from prior versions both warn
D-MANIFEST install-manifest.json files all present (missing = error; checksum drift = info "user-modified") codex error
D-CACHE marketplace cache version vs project version drift claude warn

Library-backed checks (D-CFG, D-HOOKS, D-AGENTS, D-PATHS, D-MANIFEST — Codex runtime only). Run the shared library against the Codex home directory:

DOCTOR_LIB="${CLAUDE_PLUGIN_ROOT}/lib/doctor-checks.sh"
CODEX_ROOT="${CODEX_HOME:-$HOME/.codex}"
for fn in check_config_features check_hooks_schema check_agent_tomls check_plugin_paths check_manifest; do
  bash -c "source '$DOCTOR_LIB' && $fn '$CODEX_ROOT'"
done

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 101 lines · 25 tokens per session scan A 61be86c9e042

Subscribe to this mod's changes

doctor is a skill published in the GitHub repository MountainUnicorn/add (11 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 1,578 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.