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.

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/orlando-japan/claude-code-setting/doctor
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.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.svg" alt="Measured on agentmods" 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. 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.00011 $0.00274
Opus 5 $0.00005 $0.00137
Sonnet 5 $0.00002 $0.00055
Haiku 4.5 $0.00001 $0.00027

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

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. 6d 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 3mo ago), licensed MIT. It adds 11 tokens to every session and 274 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.

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