pm-doctor

pm-doctor is a command for Claude Code from VandanaAjayDubey111/great-pm. It costs 41 tokens per session (771 once invoked), scanned A, original, MIT.

A read-only health check for GreatPM itself. It examines whether its agents, skills, hooks, commands, memory layers, session logs, audit trail, and lessons are connected and working.

In plain words
What is it for?
Checking the health of a GreatPM installation and verifying that its workflows and records are wired together.
Why use it?
It helps find broken or missing parts in the GreatPM setup without changing them.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the great-pm plugin — 114 skills, 34 commands, 48 agents, 5 hooks shipped together

Good fit Checking the health of a GreatPM installation and verifying that its workflows and records are wired together.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add VandanaAjayDubey111/great-pm
Claude Code
/plugin install great-pm

Made for: Claude Code.

Or install great-pm, the plugin that ships this one along with the rest of its 114 skills, 34 commands, 48 agents, 5 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 pm-doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/vandanaajaydubey111/great-pm/pm-doctor/github.svg)](https://agentmods.dev/commands/vandanaajaydubey111/great-pm/pm-doctor)
Your own site
<a href="https://agentmods.dev/commands/vandanaajaydubey111/great-pm/pm-doctor"><img src="https://agentmods.dev/badge/commands/vandanaajaydubey111/great-pm/pm-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 pm-doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/vandanaajaydubey111/great-pm/pm-doctor"><img src="https://agentmods.dev/badge/commands/vandanaajaydubey111/great-pm/pm-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 771 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00041 $0.00771
Opus 5.5 $0.00016 $0.00308
Sonnet 5.5 $0.00008 $0.00154
Haiku 4.5 $0.00004 $0.00077

Measured 1mo ago against content hash e5f5b2b3aa9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pm-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 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.

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.

commands/pm-doctor.md · 69 lines

How it starts

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

You are the great-pm /pm-doctor command. Audit great-pm itself — recursively.

What this command checks

great-pm-on-great-pm: the agent roster, the skill library, the hooks, the commands, the memory layers — is it actually wired? Are sessions being logged? Is the audit trail accumulating? Are lessons being captured?

Operating procedure

  1. Step 0 — refine the user's query (transparent Mode B). Invoke query-refiner-pm with $ARGUMENTS. The refiner returns:

    You typed:  <original>
    
    Refined to: <refined brief>
    
    What changed: <one line>
    
    Proceeding with refined. Reply "use original" to override.
    

    Use the refined version as the brief for subsequent steps UNLESS the user replies "use original". Log the refinement to .great-pm/refinements/$(date +%Y-%m-%d).log. This wiring is universal across great-pm commands per the gate-policy: explicit discipline — you make the user's leverage visible while preserving their ability to override.

  2. Run the mechanical harness check first. Execute bash "${CLAUDE_PLUGIN_ROOT:-$HOME/great-pm}/scripts/great-pm-skill-doctor.sh" and include its output — skills-per-agent overload, dangling skill cross-links, and skills missing depth sections (pitfall #5 + the recurring GC pass). This is fast, deterministic, and catches drift the agent audit might miss.

  3. Invoke /pm-audit with scope=great-pm and --read-only (so nothing gets filed as a Beads task — this is diagnostic only).

  4. pm-auditor will assess great-pm's own setup against the 15-dimension rubric, with the meta lens:

    • Discovery → are we listening to OUR great-pm users (you)?
    • Strategy → does the design doc still match what's built?
    • Specs → do agents have clean, locked patterns?
    • Metrics → are verdicts/cost being tracked?
    • Governance → are hooks firing? skill-scout running?
    • Memory → are lessons accumulating? is ~/.great-pm/decisions.md getting populated through /pm-crystallize?
  5. Surface the report to the human.

Read the full file on GitHub · 69 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. 1mo ago First seen · 69 lines · 41 tokens per session scan A e5f5b2b3aa9c

Subscribe to this mod's changes

pm-doctor is a command published in the GitHub repository VandanaAjayDubey111/great-pm (3 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 771 once invoked, about $0.0002 per session on Opus 5.5. 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-09-21.