doctor

doctor is a command for Claude Code from sk-lim19f/Hypomnema. It costs 41 tokens per session (1,044 once invoked), scanned B, original, MIT.

A health-check command for a Hypomnema wiki installation.

In plain words
What is it for?
It checks the wiki structure, Claude Code hooks and settings, Git configuration, broken wiki links, and page verification dates.
Why use it?
It helps diagnose setup problems after installation, upgrades, or unexpected behaviour.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions Claude Code.

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 hypo plugin — 1 skill, 16 commands, 9 hooks shipped together

Good fit It checks the wiki structure, Claude Code hooks and settings, Git configuration, broken wiki links, and page verification dates.

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 sk-lim19f/Hypomnema
Claude Code
/plugin install hypo

Made for: Claude Code.

Or install hypo, the plugin that ships this one along with the rest of its 1 skill, 16 commands, 9 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 doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/sk-lim19f/hypomnema/doctor/github.svg)](https://agentmods.dev/commands/sk-lim19f/hypomnema/doctor)
Your own site
<a href="https://agentmods.dev/commands/sk-lim19f/hypomnema/doctor"><img src="https://agentmods.dev/badge/commands/sk-lim19f/hypomnema/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/commands/sk-lim19f/hypomnema/doctor"><img src="https://agentmods.dev/badge/commands/sk-lim19f/hypomnema/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 1,044 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.01044
Opus 5 $0.00020 $0.00522
Sonnet 5 $0.00008 $0.00209
Haiku 4.5 $0.00004 $0.00104

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

- `~/.claude/settings.json` contains all required hook registrations
commands/doctor.md · 81 lines

How it starts

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

You are running /hypo:doctor. Verify the health of the current Hypomnema wiki installation.

What this checks

  • Wiki root directory exists and has hypo-config.md marker
  • Required subdirectories and baseline files are present
  • Claude Code hook files are installed in ~/.claude/hooks/
  • ~/.claude/settings.json contains all required hook registrations
  • Git repository and remote origin are configured
  • No broken [[wiki-link]] references
  • No overdue or missing verify_by fields on tracked pages

Step 1 — Resolve Hypomnema directory

Bundled scripts here run via ${CLAUDE_PLUGIN_ROOT}/scripts/. To resolve that package root: if ${CLAUDE_PLUGIN_ROOT} is already an absolute path, use it; otherwise read pkgRoot from ~/.claude/hypo-pkg.json (only when non-empty and the target script exists under it); otherwise use the hypo@hypomnema (or legacy hypomnema@hypomnema) installPath in ~/.claude/plugins/installed_plugins.json; if none resolve, stop and tell the user to run hypomnema upgrade --apply (or /hypo:upgrade on a plugin install) or reinstall instead of guessing the cache layout.

If the user specified a Hypomnema directory, pass it as --hypo-dir="<path>". Otherwise omit the flag and the script resolves the Hypomnema root automatically: HYPO_DIR env → hypo-config.md scan → ~/hypomnema default.


Step 2 — Run the doctor script

node ${CLAUDE_PLUGIN_ROOT}/scripts/doctor.mjs [--hypo-dir="<path>"] [--json]
  • --hypo-dir=<path> — override Hypomnema root (takes precedence over HYPO_DIR env and auto-scan)
  • --json — output results as a JSON array (useful for programmatic use)

Step 3 — Report results

Show the script output verbatim. Each line is prefixed with:

  • — check passed
  • — warning (not blocking, but worth fixing)
  • — failure (installation is broken)

Then show the summary line: Result: N passed, N warnings, N failed


Step 4 — Recommend fixes

For any failures:

  • Missing Hypomnema root or required directories/files → run /hypo:init.
  • 0 hook files installed → run /hypo:init.
  • 0 hook registrations in settings.json → run /hypo:init.
  • Hook execution smoke test failed → show the stderr excerpt in the detail verbatim; it names the cause. The repair depends on the channel, and /hypo:init is only right on one of them. If Hook files installed says "provided by the plugin loader", the install is plugin-managed and /hypo:init deliberately leaves core hooks alone: tell the user to re-install the plugin. Otherwise (npm or manual install) /hypo:init repairs an incomplete copy. When the excerpt is not a missing module, have the user run the hook directly in their shell (echo '{}' | node <the path in the detail>) and read the error there.

Read the full file on GitHub · 81 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. 5d ago Changed · +14 lines 916a3765e63c
  2. 9d ago First seen · 67 lines · 41 tokens per session scan B 4f9ecac96e2d

Subscribe to this mod's changes

doctor is a command published in the GitHub repository sk-lim19f/Hypomnema (11 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 1,044 once invoked, about $0.0002 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.