doctor

doctor is a command for Claude Code from koolamusic/claudefiles. It costs 50 tokens per session (2,058 once invoked), scanned A, original, MIT.

A read-only health-check command for a project's `.warden/` setup. It inspects the test runner, supporting shell files, runtimes, configuration, audit records, and plan formats.

In plain words
What is it for?
Use it to check engine files, shell syntax, required libraries, runtime availability, audit trails, gitignore rules, and plan formatting. It groups findings as okay, advisory, or error.
Why use it?
It finds setup errors and drift that could make Warden checks fail or produce unreliable records. It reports problems without changing project files.

Command for Claude Code

Written for Claude Code: allowed-tools 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 warden plugin — 5 commands shipped together

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 koolamusic/claudefiles
Claude Code
/plugin install warden

Made for: Claude Code.

Or install warden, the plugin that ships this one along with the rest of its 5 commands.

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/koolamusic/claudefiles/doctor.svg)](https://agentmods.dev/commands/koolamusic/claudefiles/doctor)
Your own site
<a href="https://agentmods.dev/commands/koolamusic/claudefiles/doctor"><img src="https://agentmods.dev/badge/commands/koolamusic/claudefiles/doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,058 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00050 $0.02058
Opus 5 $0.00025 $0.01029
Sonnet 5 $0.00010 $0.00412
Haiku 4.5 $0.00005 $0.00206

Measured 6d ago against content hash 1c26cc09b9d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

doctor scanned grade A 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `curl` present. Required by `lib/auth.sh`, `lib/api.sh`, and any HTTP wait. Missing → error.
plugins/warden/commands/doctor.md · 128 lines

How it starts

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

Run a full health check on .warden/. Print a structured report grouped by area. Findings are tagged ok, advisory (informational; nothing broken), or error (will or already does cause failures).

This command does NOT auto-fix anything. Drift between the project's runner and the plugin template is project-owned and expected; the user decides whether to sync. Missing runtimes, broken config, and malformed artifacts are the user's call too. After the report, offer to walk through whichever items the user wants resolved.

Precondition

if [ ! -d .warden ]; then
  echo "No .warden/ in this project. Run /warden:design to bootstrap."
  exit 1
fi

Checks

Run each check, collect findings. Use Read and Glob/Grep for inspection, Bash for parsing.

Engine integrity

  • .warden/run.sh present? Record the version stamp from its first comment line if present.
  • .warden/lib/ present and contains all 10 expected files: assert.sh, audit.sh, auth.sh, api.sh, db.sh, browser.sh, hurl.sh, env.sh, wait.sh, parse.sh. List any missing.
  • Bash syntax: bash -n on run.sh and every lib/*.sh.

Engine drift vs plugin template

For run.sh and each lib/*.sh, diff against ${CLAUDE_PLUGIN_ROOT}/templates/run.sh and ${CLAUDE_PLUGIN_ROOT}/templates/lib/<name>.sh. Report:

  • Files that match the template byte-for-byte: ok.
  • Files that differ: advisory with a line-count summary (run.sh: 3 added, 1 removed vs template). Do not include the diff body inline; offer to show the full diff if the user asks.
  • Files in .warden/lib/ with no counterpart in the template: advisory ("project-specific lib helper").
  • Files missing from .warden/lib/ that the template ships: error.

Frame drift as expected and project-owned. The runner being a thin bash script that survives plugin uninstall is the whole point; drift is a feature, not a bug.

Config

Source .warden/warden.config.sh in a subshell. Verify:

  • The file is sourceable (bash -n clean and no errors when sourcing into a fresh subshell with set -u).
  • WARDEN_PHASES, ENV_FILES, PREFLIGHT, RUNTIME_CHECKS, DESTRUCTIVE are all defined (the runner pre-declares them, but a custom config could break this if rewritten).
  • If WARDEN_AUTH_STRATEGY is set:
    • cookie-session, jwt-bearer, jwt-cookie: WARDEN_AUTH_SIGNIN_URL must be set. Missing → error.
    • jwt-bearer: optional WARDEN_AUTH_TOKEN_PATH (default .token).
    • api-key: optional WARDEN_AUTH_HEADER (default X-API-Key) and WARDEN_AUTH_TOKEN_ENV (default AUTH_API_KEY).
    • custom: WARDEN_AUTH_CUSTOM must point at a readable script.
  • If WARDEN_USERS_<slot>_email is set, the matching _password must also be set, and vice versa.

Read the full file on GitHub · 128 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. 6d ago First seen · 128 lines · 50 tokens per session scan A 1c26cc09b9d1

Subscribe to this mod's changes

doctor is a command published in the GitHub repository koolamusic/claudefiles (131 stars, last pushed 7d ago), licensed MIT. It adds 50 tokens to every session and 2,058 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories

qa-changes

This skill should be used when the user asks to "QA a pull request", "test PR changes", "verify a PR works", "functionally test changes", or when an automated workflow triggers QA validation of code changes. Provides a structured methodology for setting up the environment, exercising changed behavior, and reporting…

OpenHands/extensions · 63 tokens

doctor

Diagnosticar y reparar problemas del framework Don Cheli, git y entorno. Usa cuando el usuario dice "doctor", "problemas del framework", "don cheli no funciona", "repair Don Cheli", "debug setup", "setup broken", "framework broken", "reparar entorno". Detecta y repara issues de configuración, git y dependencias…

doncheli/don-cheli-sdd · 76 tokens

fix

Universal debugging and fix application with semantic code analysis.

stefan-jansen/claude-code-toolkit · 9 tokens

gh-issue-use-cypress

Like /gh-issue-use-browser, but pinned to the Cypress MCP — use when your project runs the Cypress MCP for browser automation. Example — /gh-issue-use-cypress "Composer > Save" saving toasts failure but the record persists.

skyfox675/agents-skills · 49 tokens

http-service

Build, review or debug a Bun HTTP service. Loads the http-service skill, then works the task through its workflow.

MadAppGang/magus · 27 tokens

auditar-cascading

Invoca cascading-failures-auditor — audita serviço para 5 triggers de cascade (sem timeout, retry sem jitter, sem circuit breaker, sem deadline, queue unbounded) e gera CASCADING-AUDIT.md.

luanpdd/kit-mcp · 54 tokens