mm-doctor

mm-doctor is a skill for Claude Code from mworldorg/markdown-memory. It costs 126 tokens per session (5,408 once invoked), scanned B, original, MIT.

A diagnostic workflow for checking the health of the mm system, including its configuration, project links, note vault, passports, session archive, and planning consistency.

In plain words
What is it for?
Use it to check configuration files, required directories and skills, Obsidian connections, project records, bridge archives, and consistency between project planning documents.
Why use it?
It helps locate broken setup or mismatched project records before they cause later workflows to fail, and can identify obvious repairs without changing files silently.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to check configuration files, required directories and skills, Obsidian connections, project records, bridge archives, and consistency between project planning documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mworldorg/markdown-memory/mm-doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mworldorg/markdown-memory --skill mm-doctor
Clone the repo
git clone --depth 1 https://github.com/mworldorg/markdown-memory

Made for: Claude Code.

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 mm-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/mworldorg/markdown-memory/mm-doctor/github.svg)](https://agentmods.dev/skills/mworldorg/markdown-memory/mm-doctor)
Your own site
<a href="https://agentmods.dev/skills/mworldorg/markdown-memory/mm-doctor"><img src="https://agentmods.dev/badge/skills/mworldorg/markdown-memory/mm-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 mm-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/mworldorg/markdown-memory/mm-doctor"><img src="https://agentmods.dev/badge/skills/mworldorg/markdown-memory/mm-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,408 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.00126 $0.05408
Opus 5.5 $0.00050 $0.02163
Sonnet 5.5 $0.00025 $0.01082
Haiku 4.5 $0.00013 $0.00541

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

Security

Grade B, and why

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

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls -la ~/.claude/skills/
skills/mm-doctor/SKILL.md · 276 lines

How it starts

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

mm-doctor — System Health Check & Auto-Fix

Прогон диагностики всей mm-системы. Не пишет ничего без подтверждения.

Конфиг

Загрузи mm-config.json по алгоритму из <repo>/docs/CONFIG-LOADING.md. Поддержка mm-config.local.json overlay обязательна. Loader должен инжектировать _repo_root.

Если loader падает — это уже первая ошибка, выведи её и предложи фикс из CONFIG-LOADING.md.

Чек-лист (выполнять по порядку, помечать ✅ / ⚠️ / ❌)

1. Конфиг

  • ✅ mm-config.json найден (откуда: env / junction / fallback)
  • ✅ Валидный JSON
  • ⚠️ Если использован legacy fallback (см. docs/CONFIG-LOADING.md) — предложи [Environment]::SetEnvironmentVariable("MM_REPO_ROOT", "<repo>", "User")
  • ✅ mm-config.local.json (если есть) валидный, deep-merged
  • ✅ Ключевые пути присутствуют: obsidian_*, _repo_root

2. Repo integrity

  • ✅ <repo>/templates/passport.md существует
  • ✅ <repo>/templates/project-instructions.md существует
  • ✅ <repo>/skills/mm-bridge/SKILL.md, mm-init-project, mm-setup, mm-resume, mm-handoff, mm-save-session, mm-instructions, mm-projects, mm-doctor, mm существуют (10 skills)
  • ✅ <repo>/scripts/register-skills.py существует

3. Симлинки / Junction'ы (~/.claude/skills/mm-*)

Для каждого mm-* в <repo>/skills/ и <repo>/vendor/:

  • ✅ Ссылка ~/.claude/skills/mm-<name> существует
  • ✅ Является reparse-point/symlink (симлинк на Mac/Linux, junction на Windows)
  • ✅ Target указывает на <repo>/skills/mm-<name> (или vendor/mm-<name>)

Проверка на macOS/Linux:

ls -la ~/.claude/skills/
readlink ~/.claude/skills/mm-bridge  # должно вести на <repo>/skills/mm-bridge

PowerShell-проверка (Windows):

$item = Get-Item "$env:USERPROFILE\.claude\skills\mm-bridge" -Force
$item.Attributes -band [System.IO.FileAttributes]::ReparsePoint  # должно быть != 0
$item.Target  # должно совпадать с <repo>/skills/mm-bridge

При ошибках предложи: Запустить scripts/register-skills.py для пере-создания ссылок? (y/n). Если y — запусти.

Read the full file on GitHub · 276 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 · 276 lines · 126 tokens per session scan B da967e1426b9

Subscribe to this mod's changes

mm-doctor is a skill published in the GitHub repository mworldorg/markdown-memory (25 stars, last pushed 22d ago), licensed MIT. It adds 126 tokens to every session and 5,408 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.