doctor

doctor is a command for Claude Code from orlando-japan/claude-code-setting. It costs 11 tokens per session (274 once invoked), scanned B, original, MIT.

A read-only health check for a company Claude Code harness. It verifies the command-line setup, configuration files, rule directories, optional OpenSpec setup, and executable hooks.

In plain words
What is it for?
Use it to confirm the harness is installed and active, inspect Claude configuration and permissions, check required directories, and find setup problems that may need repair.
Why use it?
A broken or incomplete harness can prevent the expected rules, permissions, commands, and hooks from working. The check identifies failures without changing the installation.

Command for Claude Code

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

Good fit Use it to confirm the harness is installed and active, inspect Claude configuration and permissions, check required directories, and find setup problems that may need repair.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/orlando-japan/claude-code-setting/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/orlando-japan/claude-code-setting

Made for: Claude Code.

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/orlando-japan/claude-code-setting/doctor/github.svg)](https://agentmods.dev/commands/orlando-japan/claude-code-setting/doctor)
Your own site
<a href="https://agentmods.dev/commands/orlando-japan/claude-code-setting/doctor"><img src="https://agentmods.dev/badge/commands/orlando-japan/claude-code-setting/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/orlando-japan/claude-code-setting/doctor"><img src="https://agentmods.dev/badge/commands/orlando-japan/claude-code-setting/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 274 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.00011 $0.00274
Opus 5.5 $0.00004 $0.00110
Sonnet 5.5 $0.00002 $0.00055
Haiku 4.5 $0.00001 $0.00027

Measured 1mo ago against content hash bbf73e3171ca, 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 1mo 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.

3. Verify `~/.claude/settings.json` is valid JSON and has a `permissions.allow` list.
templates/claude-user/commands/doctor.md · 23 lines

What it actually says

Run a health check on the current Claude Code harness.

Checks to perform:

  1. company-cc doctor — run the CLI check and report its output.
  2. Verify ~/.claude/CLAUDE.md exists and imports the five rule files.
  3. Verify ~/.claude/settings.json is valid JSON and has a permissions.allow list.
  4. Verify the rules/, commands/, agents/, skills/ directories exist with expected content.
  5. If OpenSpec is in use, verify openspec --version works and there is an openspec/ directory in the current project.
  6. Verify any hooks referenced by settings.json are executable.

Output format:

  • One line per check: ✓/✗ + name + 1-line detail
  • Summary at the end: "all checks passed" or "N failed — run company-cc init --user to repair"

Do not modify anything in this command. It is read-only diagnostics. If something is broken, tell the user how to fix it and let them decide.

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. 1mo ago First seen · 23 lines · 11 tokens per session scan B bbf73e3171ca

Subscribe to this mod's changes

doctor is a command published in the GitHub repository orlando-japan/claude-code-setting (2 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 274 once invoked, about $0.0000 per session on Opus 5.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.