doctor

doctor is a command for Claude Code from AratKruglik/claude-sdlc. It costs 38 tokens per session (6,231 once invoked), scanned B, original, MIT.

A read-only diagnostic command for checking whether an SDLC pipeline is set up correctly. It reports missing add-ons, runtime checks, active stack profiles, model-routing settings, and the cost baseline.

In plain words
What is it for?
Use it to inspect pipeline dependencies, confirm stack detection, review runtime status, and troubleshoot setup before starting feature work.
Why use it?
It helps explain why a pipeline may not run as expected without making project changes, except for creating a missing cost-baseline scaffold. It also shows which technology profile would be selected.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

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 sdlc plugin — 3 skills, 5 commands, 5 agents shipped together

Good fit Use it to inspect pipeline dependencies, confirm stack detection, review runtime status, and troubleshoot setup before starting feature work.

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 AratKruglik/claude-sdlc
Claude Code
/plugin install sdlc

Made for: Claude Code.

Or install sdlc, the plugin that ships this one along with the rest of its 3 skills, 5 commands, 5 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/aratkruglik/claude-sdlc/doctor/github.svg)](https://agentmods.dev/commands/aratkruglik/claude-sdlc/doctor)
Your own site
<a href="https://agentmods.dev/commands/aratkruglik/claude-sdlc/doctor"><img src="https://agentmods.dev/badge/commands/aratkruglik/claude-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/aratkruglik/claude-sdlc/doctor"><img src="https://agentmods.dev/badge/commands/aratkruglik/claude-sdlc/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,231 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00038 $0.06231
Opus 5.5 $0.00015 $0.02492
Sonnet 5.5 $0.00008 $0.01246
Haiku 4.5 $0.00004 $0.00623

Measured 2d ago against content hash eed8d34e1072, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

doctor scanned grade B with 1 finding 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 2d 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.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

2. **Run the same preflight algorithm as Step 0a in `pipeline-orchestrator/SKILL.md`** (Step 0a-2 through 0a-3, in `pipeline-orchestrator/references/fallback-steps.md` — enumerate available skills via `mcp__skills__list_
plugins/sdlc/commands/doctor.md · 348 lines

How it starts

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

/sdlc:doctor

Snapshot of the pipeline's runtime environment. Reuses the same Step 0a preflight code-path that /sdlc:start runs on every invocation, but in a diagnostic mode that never aborts.

Execution (script-first)

Steps 1–8 below are implemented by one read-only script; run it and render its output:

bash "${CLAUDE_PLUGIN_ROOT}/scripts/doctor.sh" --repo . [--json]

Development checkout fallback: bash plugins/sdlc/scripts/doctor.sh --repo . --dev-root .. With --json print stdout as-is; otherwise print the human table it renders (same format as below). The script performs the one permitted write itself (seeding docs/cost-baseline.md from the template when absent) and delegates the dependency status to scripts/deps-preflight.sh. Fall back to the inline steps only when the script exits 3 (jq missing).

What this command does

  1. Locate the runtime dependencies file. Try these paths in order, take the first that exists:

    • ~/.claude/plugins/cache/sdlc/runtime-dependencies.json
    • <repo>/plugins/sdlc/runtime-dependencies.json (development checkout)

    If neither exists, print 🔌 Dependency preflight: no runtime-dependencies.json found. and skip step 2.

  2. Run the same preflight algorithm as Step 0a in pipeline-orchestrator/SKILL.md (Step 0a-2 through 0a-3, in pipeline-orchestrator/references/fallback-steps.md — enumerate available skills via mcp__skills__list_skills with FS fallback to ~/.claude/plugins/cache/*/{plugin}/*/skills/{skill}/SKILL.md, then compute per-dependency status). DO NOT enforce policy in /sdlc:doctor — block does NOT exit here. Just collect status.

  3. Locate active stack profiles. Doctor always computes this fresh — same discipline as its git-flow check below ("a doctor that echoes a stale cache cannot diagnose a stale cache"): run scripts/detect-stack.sh --repo . (resolve the path the same three-way way as every other script: ${CLAUDE_PLUGIN_ROOT}/scripts/detect-stack.sh, then the installed cache copy, then <repo>/plugins/sdlc/scripts/detect-stack.sh in a development checkout). This is the exact same algorithm pipeline-orchestrator/SKILL.md Step 0b runs — reusing the script instead of re-deriving the Glob+Read+parse sequence by hand keeps this command from silently drifting out of sync with it.

Read the full file on GitHub · 348 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. 2d ago Changed eed8d34e1072
  2. 11d ago Changed · +10 lines bdbeb6190046
  3. 1mo ago Changed · +59 lines 38c39b863704
  4. 1mo ago Changed · +22 lines d879764f1d5c
  5. 1mo ago First seen · 257 lines · 38 tokens per session scan B b576a0d67ad6

Subscribe to this mod's changes

doctor is a command published in the GitHub repository AratKruglik/claude-sdlc (53 stars, last pushed 2d ago), licensed MIT. It adds 38 tokens to every session and 6,231 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.