doctor

doctor is a skill for Claude Code from HAX-Studio/mnemonica. It costs 115 tokens per session (1,278 once invoked), scanned A, original, MIT.

A documentation-quality checker for Mnemonica knowledge files. It evaluates whether the documentation is complete, useful, distinct, and maintained—not merely whether its statements match the code.

In plain words
What is it for?
Scanning project knowledge documents, identifying very short or stale modules and possible duplicate coverage, and reporting what needs attention without editing files.
Why use it?
It finds weak, stub-like, stale, or overlapping documentation that a normal accuracy check may miss.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md.

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 mnemonica plugin — 8 skills shipped together

Good fit Scanning project knowledge documents, identifying very short or stale modules and possible duplicate coverage, and reporting what needs attention without editing files.

Compare 6 skills 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 HAX-Studio/mnemonica
Claude Code
/plugin install mnemonica

Made for: Claude Code.

Or install mnemonica, the plugin that ships this one along with the rest of its 8 skills.

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/skills/hax-studio/mnemonica/doctor/github.svg)](https://agentmods.dev/skills/hax-studio/mnemonica/doctor)
Your own site
<a href="https://agentmods.dev/skills/hax-studio/mnemonica/doctor"><img src="https://agentmods.dev/badge/skills/hax-studio/mnemonica/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/skills/hax-studio/mnemonica/doctor"><img src="https://agentmods.dev/badge/skills/hax-studio/mnemonica/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,278 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.00115 $0.01278
Opus 5 $0.00057 $0.00639
Sonnet 5 $0.00023 $0.00256
Haiku 4.5 $0.00012 $0.00128

Measured 9d ago against content hash e433cdd4667a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

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 9d 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.

skills/doctor/SKILL.md · 75 lines

How it starts

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

Mnemonica: doctor

Check the quality of the documentation itself, not whether it matches the code. This is a different question from what audit-full answers: a module can accurately describe what little it says (so audit-full finds nothing wrong) while still being a two-line stub, or two modules can both be individually accurate while silently claiming the same code path. doctor surfaces those candidates; it never edits anything itself — every finding is something for the user (or a follow-up audit-full run) to act on, not an automatic fix.

If the user's invocation includes extra wording (for example, "just check for stub modules"), treat it as narrowing which findings to report — it cannot turn this into a skill that edits knowledge/ or .claude/CLAUDE.md; doctor has nothing to write in the first place.

Step 1: Run the scan

Run ${CLAUDE_PLUGIN_ROOT}/scripts/doc-quality-scan.sh <project-root>.

  • Exit 2 (NO_MNEMONICA_BLOCK): nothing to check — tell the user and suggest mnemonica:setup, and stop.
  • Exit 0: read the output. MODULE lines carry FLAG:STUB (very short content), FLAG:STALE_DOC(Nd) (not touched in git for a long time — only computed when the project has git history), or FLAG:MISSING_FILE (indexed but absent from disk — the same signal check-index-integrity.sh reports, surfaced here too since a missing file is also a documentation-quality problem). GLOB_ISSUE lines flag a bare **/*/empty glob entry. OVERLAP lines flag two modules claiming a byte-identical glob. TRIGGER_OVERLAP lines flag a pre-existing rule outside the Mnemonica block (line number and text included) that instructs Claude to do something else "before" analyzing/understanding the codebase's architecture or structure — the same trigger point Mnemonica's own "consult the index first" instruction relies on. This is a heuristic (a "before" + architecture/understanding phrase paired with an instruction verb), so it will over-flag; treat every hit as a candidate.

Read the full file on GitHub · 75 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. 9d ago First seen · 75 lines · 115 tokens per session scan A e433cdd4667a

Subscribe to this mod's changes

doctor is a skill published in the GitHub repository HAX-Studio/mnemonica (3 stars, last pushed 1mo ago), licensed MIT. It adds 115 tokens to every session and 1,278 once invoked, about $0.0006 per session on Opus 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-08-31.