Borrowing it
Nothing to install: this file belongs to pantoum-spfx/pantoum. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/pantoum-spfx/pantoum/main/.claude/commands/pantoum-doctor.mdgit clone --depth 1 https://github.com/pantoum-spfx/pantoumWrote 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.
[](https://agentmods.dev/commands/pantoum-spfx/pantoum/pantoum-doctor)<a href="https://agentmods.dev/commands/pantoum-spfx/pantoum/pantoum-doctor"><img src="https://agentmods.dev/badge/commands/pantoum-spfx/pantoum/pantoum-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.
<a href="https://agentmods.dev/commands/pantoum-spfx/pantoum/pantoum-doctor"><img src="https://agentmods.dev/badge/commands/pantoum-spfx/pantoum/pantoum-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00412 |
| Opus 5 | $0.00000 | $0.00206 |
| Sonnet 5 | $0.00000 | $0.00082 |
| Haiku 4.5 | $0.00000 | $0.00041 |
Grade A, and why
pantoum-doctor scanned grade A with 0 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 12d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
PANTOUM Doctor — Environment Health Check
Run the PANTOUM doctor script to check the user's environment for all prerequisites needed for SPFx upgrades.
Instructions
-
Run the doctor script:
node scripts/claude-doctor.cjs -
Parse the JSON output. The script returns a JSON object with check categories:
system,dependencies,ai,pantoum, andwebapp. Each check hasname,status(ok,warn,error),value, and optionallyrequiredandmessage. -
Display the results as a formatted table grouped by category:
- Use checkmarks for
ok, warning signs forwarn, and X marks forerror - Show the check name, value, and any required version
- Group under headers: System, Dependencies, AI, PANTOUM, Studio
- Use checkmarks for
-
After displaying results:
- If all checks pass: confirm the environment is ready
- If there are warnings: note them but confirm the environment is usable
- If there are errors: list each error with its fix recommendation and offer to help resolve issues (e.g., suggest install commands, link to docs)
-
If the user wants help fixing an issue, provide specific guidance:
- Node.js: suggest nvm or nodejs.org
- npm: comes with Node.js
- M365 CLI:
npm install -g @pnp/cli-microsoft365 - Claude Code: link to https://docs.anthropic.com/en/docs/claude-code
- Agent SDK:
npm installin the pantoum directory - Auth: explain both Claude Code subscription and ANTHROPIC_API_KEY options
- Studio:
npm run webappfrom the pantoum root directory (auto-installs deps and starts server)
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.
- 12d ago First seen · 32 lines · 0 tokens per session scan A 51e50c838909
pantoum-doctor is a command published in the GitHub repository pantoum-spfx/pantoum (5 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 412 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
bootstrap
Verifies and repairs the Claude Code Toolkit installation.
build-fix
A build-error fixing procedure for TypeScript projects. It runs the project build, groups and explains errors, applies fixes one at a time, and checks the build again.
fix-issue
Analyze and fix the GitHub issue: $ARGUMENTS.
gates-csk
Gate report — what the tool-level gates actually did, and which rules nothing has tripped.
perf-profile.template
This prompt was authored for Claude-style slash workflows. In Codex runtime, adapt tool calls as follows.
refactor-cleanup.template
This prompt was authored for Claude-style slash workflows. In Codex runtime, adapt tool calls as follows.