Skip to content

doctor command

Command

Verify the active host install, package, command ownership, enforcement, and harmless live-fire probe. Read-only.

Invoke it
Claude Code/ca:doctor
Codex$ca-doctor
Pi/ca-doctor

Availability is read from each shipped host catalog. Preview-only commands are marked on the page.

Use it when
You want proof that the install is actually enforcing its checks and not just present, for example after an update or when something seems to have stopped firing.
Don't use it for
Statusline wiring alone, which is /ca:statusline status; scaffold state alone, which is /ca:init --check; or project progress, which is /ca:status.
What it asks you
Nothing. It takes no arguments and is read-only.
What it produces
A report with one OK, WARN or FAIL line per check, a harmless live probe of the hook layer, and an exact fix for every problem it finds.

Proves the install is actually enforcing, rather than just present. codeArbiter’s worst failure shape is silent dormancy: a plugin cache surviving claude plugin update unchanged, hooks that look wired but never fire, and nothing that says so. This command checks in two parts. First a static pass — interpreter resolution, plugin payload integrity, stale cached versions, repo activation state, git identity, statusline wiring — reported one OK/WARN/FAIL line per check. Then, in an arbiter-enabled repo, a live-fire probe: it actually attempts a real, gate-tripping command (a dry-run git add --all) and checks whether the hook layer blocks it. A healthy install blocks the probe; if the probe instead executes, that is reported as CRITICAL — the static checks alone cannot catch a hook that’s registered but not actually firing.

It is read-only end to end. Because the probe uses --dry-run, getting blocked is the outcome it wants to see — that block is the passing verdict, not a failure to route around.

/ca:doctor

Takes no arguments.

> /ca:doctor
OK python3 resolves and runs (/usr/bin/python3)
OK plugin payload at /home/x/.claude/plugins/ca (version 3.8.9)
OK hooks.json parses: 6 events, 11 entries
OK all 6 hook scripts present
OK single cached plugin version (no stale siblings)
OK repo is arbiter-enabled (CONTEXT.md frontmatter)
OK project is initialized (<!--INITIALIZED--> marker present)
OK git identity for audit attribution: dev@example.com
OK statusline wired in ~/.claude/settings.json
doctor: 0 FAIL, 0 WARN, 9 OK
verdict: healthy (static checks) — the live-fire probe in /ca:doctor proves hooks actually fire
live-fire probe: git add --all --dry-run
BLOCKED [H-03]: 'git add -A' / 'git add .' / 'git add --all' / 'git add -u' are
prohibited. Stage files explicitly (commit-gate skill).
verdict: healthy — hooks firing

Find this entry in the workflow atlas. Compare its related teaching maps, host spelling and context inputs. The exact procedure below remains the owner.

Source — plugins/ca/commands/doctor.md (v3.8.9)
---
description: Verify the active host install, package, command ownership, enforcement, and harmless live-fire probe. Read-only.
argument-hint: (none)
---
# /ca:doctor — install health
Silent dormancy is the worst failure shape this plugin has: the gates look installed but never fire.
This command proves the active host is healthy and reports every non-OK finding with an exact
remediation.
## Flow
1. Resolve the interpreter once by presence — `PY=python3; { command -v python3 >/dev/null 2>&1 && python3 --version >/dev/null 2>&1; } || PY=python` — never `python3 X || python X`, which reruns X on any nonzero exit and reports the second run's code instead of the first's (#577). Run
`"$PY" "${CLAUDE_PLUGIN_ROOT}/hooks/doctor.py"` and present its report verbatim.
2. In an arbiter-enabled repo, attempt `git add --all --dry-run` via Bash. `[H-03]` means hooks are
firing; execution means **CRITICAL: gates dormant**.
The mechanical report also invokes the installation-pinned artifact client's `capabilities`
operation. When the repository contains an HTML authority, it performs a bounded catalog read to
surface invalid or ambiguous artifacts. It MUST NOT load the artifact schema, search `PATH`, use a
repository binary, mutate an artifact, or silently fall back to Markdown.
Its executing-adapter identity comes from the already admitted plugin root. The observed adapter
manifest version is separate from the native helper manifest's declared version and the native
executable digest verified by the on-demand capability probe. A newer cached sibling is not the
executing version. Missing or malformed identity data is reported as unknown; it never grants
package trust.
- `CAPABILITY_MISSING` or another installation identity failure is unhealthy: report “repair or
reinstall the pinned artifact payload; HTML work is blocked.” Unrelated legacy Markdown remains
usable.
- An invalid HTML artifact is unhealthy: preserve the bounded engine code and direct the user to
inspect `repair-preview` before any explicit reviewed repair.
## Remediation ladder
1. Restart Claude Code so hooks register at session start.
2. Uninstall and reinstall `ca`; an unchanged marketplace version can preserve stale cache bytes.
3. If dormancy was intended, `/ca:init` opts the repository in.
## When NOT to use
- Statusline wiring only → `/ca:statusline status`.
- Scaffold state only → `/ca:init --check`.
- Project progress, not install health → `/ca:status`.
## Hard gate
Read-only. MUST NOT create markers, stage files, grant trust, weaken a block, or retry the live-fire
probe with different spelling. MUST surface a failed probe as CRITICAL, never as a footnote.
For an arbiter-enabled repository, the mechanical report treats the Git backstop as healthy only
after exact managed-shim and live-enforcer validation, plus a harmless selected-Git
`git hook run pre-push` probe with empty input. It never executes a foreign hook.

View in repo