doctor

doctor is a command for Claude Code from ktoulgaridis/forge. It costs 18 tokens per session (660 once invoked), scanned B, original, MIT.

A command that checks whether a Forge project has the required command-line tools, MCP servers, credentials, roles, and folders.

In plain words
What is it for?
Use it to inspect every configured integration and role, run basic login checks, verify the wiki structure, and receive a report of passed checks, warnings, and errors.
Why use it?
It shows missing installations, authentication, configuration, or project files before they cause later commands to fail.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the forge plugin — 7 commands shipped together

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 commands/ktoulgaridis/forge/doctor
Clone the repo
git clone --depth 1 https://github.com/ktoulgaridis/forge

Made for: Claude Code.

Or install forge, the plugin that ships this one along with the rest of its 7 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/ktoulgaridis/forge/doctor.svg)](https://agentmods.dev/commands/ktoulgaridis/forge/doctor)
Your own site
<a href="https://agentmods.dev/commands/ktoulgaridis/forge/doctor"><img src="https://agentmods.dev/badge/commands/ktoulgaridis/forge/doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 660 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00018 $0.00660
Opus 5 $0.00009 $0.00330
Sonnet 5 $0.00004 $0.00132
Haiku 4.5 $0.00002 $0.00066

Measured 5d ago against content hash b94bebc709c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

└─ Add to ~/.claude/settings.json:
commands/doctor.md · 69 lines

How it starts

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

/forge:doctor — Check the forge environment

Run inside a forge-stamped project. Reports what's working, what's missing, and what to install.

Invocation

/forge:doctor

What this command does

  1. Read .forge.config.yaml
  2. For every adapter listed in tracker, scm, integrations:
    • Read the adapter's required_clis and optional_mcp_servers
    • Test each CLI: command -v <cli>; if present, run a smoke check (gh auth status, glab auth status, jira me, etc.)
    • Test each MCP server: check Claude Code's /mcp registration
  3. For every role in roles[]:
    • Verify roles/<name>.md exists in the project
    • Verify .claude/skills/prime/SKILL.md recognizes the role name
  4. For the wiki structure:
    • Verify CLAUDE.md exists at root
    • Verify decisions/, services/, themes/, roles/ dirs exist
    • Verify requirements/ (or equivalent canonical-requirements dir) exists
  5. Print a tabular report:
forge:doctor v0.1.0  ──────────────────────────────────  ✓ N passed  ⚠ M warnings  ✖ K errors

CLIs (X/Y passed)
  ✓ git
  ✓ gh — authed as <user>
  ⚠ jira — installed but not configured (run `jira init`)
  ✖ glab — not installed
      └─ Install: brew install glab  (or apt install glab)

MCP servers (X/Y registered)
  ✓ figma — connected
  ⚠ slack — declared in config but not registered in /mcp
      └─ Add to ~/.claude/settings.json:
          { "mcpServers": { "slack": { "type": "http", "url": "..." } } }

Roles (X/Y present)
  ✓ orchestrator, architect, implementer, reviewer, wiki-maintainer, migration-analyst

Wiki structure (passed)
  ✓ CLAUDE.md present
  ✓ decisions/, services/, themes/, roles/ all populated
  1. Exit code 0 if all checks pass; non-zero if errors

When to run

  • After /forge:new — confirms the bootstrap landed cleanly
  • After /forge:add-adapter — confirms the new integration's dependencies are met
  • Periodically — catches local environment drift (a CLI auth expired, etc.)
  • In CI for the wiki repo — verify the wiki is forge-compliant

Read the full file on GitHub · 69 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 · 69 lines · 18 tokens per session scan B b94bebc709c2

Subscribe to this mod's changes

doctor is a command published in the GitHub repository ktoulgaridis/forge (10 stars, last pushed 8d ago), licensed MIT. It adds 18 tokens to every session and 660 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.