doctor

doctor is a command for Claude Code from gf-labs/claude-toolbox. It costs 7 tokens per session (3,270 once invoked), scanned C, original, MIT.

A command that checks the health and setup of a Claude Code project. Claude Code is a coding assistant that works inside a software repository.

In plain words
What is it for?
Use it before development work to inspect the repository, available commands and scripts, hooks, plugin settings, project metadata, and JSON validity.
Why use it?
It gathers common setup details and checks important project files and JSON syntax in one run. This makes missing files or invalid configuration easier to spot.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Part of the tools plugin — 2 skills, 13 commands, 5 agents, 4 hooks shipped together

Good fit Use it before development work to inspect the repository, available commands and scripts, hooks, plugin settings, project metadata, and JSON validity.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/gf-labs/claude-toolbox/doctor
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.

Clone the repo
git clone --depth 1 https://github.com/gf-labs/claude-toolbox

Made for: Claude Code.

Or install tools, the plugin that ships this one along with the rest of its 2 skills, 13 commands, 5 agents, 4 hooks.

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/gf-labs/claude-toolbox/doctor.svg)](https://agentmods.dev/commands/gf-labs/claude-toolbox/doctor)
Your own site
<a href="https://agentmods.dev/commands/gf-labs/claude-toolbox/doctor"><img src="https://agentmods.dev/badge/commands/gf-labs/claude-toolbox/doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,270 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00007 $0.03270
Opus 5 $0.00003 $0.01635
Sonnet 5 $0.00001 $0.00654
Haiku 4.5 $0.00001 $0.00327

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

Security

Grade C, and why

doctor scanned grade C with 2 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 8d 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.

cat ~/.claude/settings.json 2>/dev/null || echo "NOT FOUND"

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

cat .mcp.json 2>/dev/null || echo "NOT FOUND"
commands/doctor.md · 347 lines

How it starts

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

Collect context

Run each command below now before proceeding. Store results mentally.

Today's date, repo, CLAUDE.md:

echo "DATE:" && date +%Y-%m-%d
echo "REPO:" && (basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "(not a git repo)")
echo "CLAUDE_MD:" && (test -f CLAUDE.md && echo "present" || echo "MISSING")

Commands and scripts:

echo "COMMANDS:" && (ls commands/*.md 2>/dev/null || echo "none")
echo "SCRIPTS:" && (ls scripts/*.py 2>/dev/null || echo "none")

hooks.json:

cat hooks/hooks.json 2>/dev/null || echo "NOT FOUND"

plugin.json:

cat .claude-plugin/plugin.json 2>/dev/null || echo "NOT FOUND"

pyproject.toml:

test -f pyproject.toml && echo "EXISTS" || echo "MISSING"

JSON validity:

python3 -c "
import json, glob
files = []
for pattern in ['*.json', '.claude/*.json', '.claude-plugin/*.json', 'hooks/*.json']:
    files.extend(glob.glob(pattern))
files = sorted(set(files))
if not files:
    print('no JSON files found')
else:
    for f in files:
        try:
            json.load(open(f))
            print('OK: ' + f)
        except Exception as e:
            print('ERROR: ' + f + ': ' + str(e))
" 2>/dev/null || echo "python3 not available"

Python syntax:

python3 -c "
import py_compile
from pathlib import Path
files = [str(f) for f in Path('.').rglob('*.py')
         if not any(p in f.parts for p in ['.git', '.venv', '__pycache__', 'node_modules'])]
if not files:
    print('no Python files found')
else:
    for f in sorted(files):
        try:
            py_compile.compile(f, doraise=True)
            print('OK: ' + f)
        except py_compile.PyCompileError as e:
            print('ERROR: ' + f + ': ' + str(e))
" 2>/dev/null || echo "python3 not available"

.gitignore:

cat .gitignore 2>/dev/null || echo "not found"

Invocation mode:

echo "${ARGUMENTS:-}"

Scope:

python3 -c "
import os, sys
sys.path.insert(0, os.environ.get('CLAUDE_TOOLBOX_ROOT', '') + '/scripts')
from _scope import get_scope
mode, data, cwd = get_scope()
if mode == 'single':
    print(f'SINGLE {cwd.name} ({data})')
elif mode == 'parent':
    print(f'PARENT {cwd} — {len(data)} child projects:')
    for _key, path in data:
        print(f'  {path}')
else:
    print('GLOBAL')
" 2>/dev/null || echo "GLOBAL"

Global settings:

cat ~/.claude/settings.json 2>/dev/null || echo "NOT FOUND"

Project settings:

cat .claude/settings.json 2>/dev/null || echo "NOT FOUND"

Project MCP config:

cat .mcp.json 2>/dev/null || echo "NOT FOUND"

Global commands:

ls ~/.claude/commands/ 2>/dev/null || echo "EMPTY"

Global agents:

ls ~/.claude/agents/ 2>/dev/null || echo "NONE"

Current repo:

basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "(not a git repo)"

Read the full file on GitHub · 347 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. 8d ago First seen · 347 lines · 7 tokens per session scan C 1ee9f65119d3

Subscribe to this mod's changes

doctor is a command published in the GitHub repository gf-labs/claude-toolbox (2 stars, last pushed 2d ago), licensed MIT. It adds 7 tokens to every session and 3,270 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 2 findings (reads agent configuration directories, reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.