doctor

doctor is a command for Claude Code from ai-sdlc-framework/ai-sdlc. It costs 41 tokens per session (1,128 once invoked), scanned A, original, Apache-2.0.

A command that audits the health of an ai-sdlc project's configuration. It checks items such as plugin versions, manifest agreement, and governance settings, with an optional fix mode.

In plain words
What is it for?
It is for checking and, when requested, mechanically fixing configuration issues in an ai-sdlc project.
Why use it?
It finds configuration problems in one read-only check instead of requiring manual inspection of several project files.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ai-sdlc plugin — 1 skill, 23 commands, 14 agents shipped together

Good fit It is for checking and, when requested, mechanically fixing configuration issues in an ai-sdlc project.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ai-sdlc-framework/ai-sdlc
Claude Code
/plugin install ai-sdlc

Made for: Claude Code.

Or install ai-sdlc, the plugin that ships this one along with the rest of its 1 skill, 23 commands, 14 agents.

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/commands/ai-sdlc-framework/ai-sdlc/doctor/github.svg)](https://agentmods.dev/commands/ai-sdlc-framework/ai-sdlc/doctor)
Your own site
<a href="https://agentmods.dev/commands/ai-sdlc-framework/ai-sdlc/doctor"><img src="https://agentmods.dev/badge/commands/ai-sdlc-framework/ai-sdlc/doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/ai-sdlc-framework/ai-sdlc/doctor"><img src="https://agentmods.dev/badge/commands/ai-sdlc-framework/ai-sdlc/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00041 $0.01128
Opus 5.5 $0.00016 $0.00451
Sonnet 5.5 $0.00008 $0.00226
Haiku 4.5 $0.00004 $0.00113

Measured today against content hash c0981b6a5e27, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 today.

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.

ai-sdlc-plugin/commands/doctor.md · 103 lines

How it starts

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

Run ai-sdlc doctor — the config-health audit described in docs/operations/doctor.md — and surface its output verbatim. This is a thin wrapper: all logic lives in the orchestrator package's doctor command (orchestrator/src/cli/commands/doctor.ts

  • doctor-checks.ts).

Usage

/ai-sdlc doctor
/ai-sdlc doctor --fix
/ai-sdlc doctor --strict

Pass any trailing arguments straight through to the ai-sdlc doctor CLI (--fix, --strict, -f json / -f minimal).

Implementation contract

Resolve the ai-sdlc CLI binary in this order and run the first one found, forwarding $ARGUMENTS:

set -e

# 1. Plugin's own vendored install (marketplace/npm install topology).
if [ -x "${CLAUDE_PLUGIN_ROOT}/node_modules/.bin/ai-sdlc" ]; then
  "${CLAUDE_PLUGIN_ROOT}/node_modules/.bin/ai-sdlc" doctor $ARGUMENTS
  exit $?
fi
if [ -f "${CLAUDE_PLUGIN_ROOT}/node_modules/@ai-sdlc/orchestrator/dist/cli/index.js" ]; then
  node "${CLAUDE_PLUGIN_ROOT}/node_modules/@ai-sdlc/orchestrator/dist/cli/index.js" doctor $ARGUMENTS
  exit $?
fi

# 2. Dogfood monorepo (this repo checked out directly).
if [ -f "$(pwd)/orchestrator/dist/cli/index.js" ]; then
  node "$(pwd)/orchestrator/dist/cli/index.js" doctor $ARGUMENTS
  exit $?
fi

# 3. Last resort — npx without triggering an install prompt.
if command -v npx >/dev/null 2>&1; then
  npx --no-install ai-sdlc doctor $ARGUMENTS && exit 0
fi

echo "ai-sdlc doctor: could not locate the orchestrator CLI. Run \`ai-sdlc-plugin/scripts/install-runtime-deps.sh\` (or, in the dogfood monorepo, \`pnpm --filter @ai-sdlc/orchestrator build\`) and retry." >&2
exit 1

Resolved pipeline-cli build (AISDLC-716)

Before running the audit, report which pipeline-cli build this session resolves and its version, so a stale plugin cache shadowing the repo's own build is visible. The resolver prefers the repository's own pipeline-cli build over the plugin cache and warns on stderr (with the rebuild command pnpm --filter @ai-sdlc/pipeline-cli build) when that build is stale or missing:

Read the full file on GitHub · 103 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. today Changed · +2 lines c0981b6a5e27
  2. 2d ago Changed · +7 lines e5c2a436c88f
  3. 8d ago Changed 034c3ce186ea
  4. 11d ago Changed · +21 lines 9044c0853f9f
  5. 1mo ago First seen · 73 lines · 41 tokens per session scan A 17fa55678b19

Subscribe to this mod's changes

doctor is a command published in the GitHub repository ai-sdlc-framework/ai-sdlc (415 stars, last pushed yesterday), licensed Apache-2.0. It adds 41 tokens to every session and 1,128 once invoked, about $0.0002 per session on Opus 5.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-09-06.