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.5 | $0.00000 | $0.00165 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (6 stars, last pushed 2mo 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.
pantoum-doctor compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pantoum-doctorpantoum-spfx/pantoum | Command | 6 | 2mo ago | MIT | A | 0 | Claude Code |
| debugHigorAlves/orc | Command | 7 | yesterday | MIT | A | 53 | Claude Code |
| ciHigorAlves/orc | Command | 7 | yesterday | MIT | A | 47 | Claude Code |
| fix-issuexiaobei930/cc-best | Command | 49 | 4mo ago | MIT | A | 23 | Claude Code |
| hotfixxiaobei930/cc-best | Command | 49 | 4mo ago | MIT | A | 20 | Claude Code |
| cleanupxiaobei930/cc-best | Command | 49 | 4mo ago | MIT | A | 7 | Claude Code |
| parallax-statusMaster0fFate/parallax-claudecode | Command | 0 | 15d ago | MIT | A | 13 | Claude Code |