/markdown-health-check

Tracks the live Claude Code spec — thresholds are fetched from the official docs and cached weekly, so the audit never drifts from the product.
A .claude/ ecosystem auditor for Claude Code. One slash command scans your skills, commands, hooks, agents, settings, plugins, and auto-memory — across both the user tree (~/.claude) and the project tree (./.claude) — and prints one flat, prioritized health report.
It finds dead references, weak or mismatched triggers, token bloat, skill-listing-budget overflow, frontmatter violations, dormant skills, failing hooks, drifted permissions, dead memory links, and per-session context bloat.
It reports first and waits. Nothing is edited, moved, or deleted until you reply naming which findings to fix — that autonomy gate is built into the command.
Demo

A scorecard with a letter grade, an always-on per-file CLAUDE.md score, and findings grouped by area — each a plain-language line led by a colored 🔴 / 🟠 / 🟡 / 🔵 badge with the trailing machine tag. It reports first and waits — nothing is touched until you reply.
What it checks
| Area | Examples of findings |
|---|
| Skills | missing or oversized description, frontmatter name ≠ directory, triggers that don't match real usage, oversized SKILL.md with no references/, dead internal paths, XML tags / reserved words in names, Windows paths, time-sensitive wording, vague names, skill bodies over the post-/compact 5,000-token cap, and (plugin trees) bundled scripts with a network surface, hidden-behaviour wording, Server:tool_name MCP references, or a hard directive in a path-scoped rule |
| Context engineering | prose that is mostly shouted absolutes (NEVER / MUST / DO NOT) where judgement would do, the same directive repeated verbatim across CLAUDE.md and a skill, and directives that contradict each other across files |
| Skill-listing budget | cumulative description + when_to_use block exceeding Claude Code's 1%-of-context budget; low-relevance and duplicate-domain skills |
| Skill usage | dormant skills (no fires in 30d), never-fired skills, misfiring skills (loaded but no follow-through), orphan ledger entries |
| Skill–tool contract | tools declared in allowed-tools but never called, tools called but not declared |
| Frontmatter schema | description too short, model not in whitelist (opus/sonnet/haiku/fable families), model outside the org's availableModels when enforceAvailableModels is on, allowed-tools malformed, unknown fields |
| Hooks | files on disk not registered in settings.json, duplicate logic, suspicious timeouts, matchers that match no real tool, array or lower-case matchers and a bare mcp__server matcher that match nothing, and per-event timeout defaults (UserPromptSubmit 30s, MessageDisplay 10s, SessionEnd capped at 60s) |
| Hook reliability | high failure-rate hooks, hooks registered but never fired, event-type mismatches (suppressed when disableAllHooks is set) |
| Hook safety | hook script with no #! shebang, a script that emits a block/deny decision but exits 1 (non-blocking) instead of 2, eval of dynamic input, an http hook leaking the whole environment (auth header, no allowedEnvVars), an http hook whose URL matches no allowedHttpHookUrls pattern (Claude Code blocks it, so it never runs) |
| Agents | triggers unreachable from CLAUDE.md, overlapping agents, agents on disk never spawned in 30d |
| Agent frontmatter | subagent schema violations — bad model/color/permissionMode/tools value, missing description, duplicate agent name, permissionMode: bypassPermissions, plugin agents declaring silently-ignored hooks/mcpServers/permissionMode, agent files whose YAML does not parse |
| Settings | malformed JSON, duplicate JSON keys, duplicate array entries, MCP servers missing from preApprovedTools, over-broad Bash patterns, stale reminders, risky security keys (defaultMode: bypassPermissions, enableAllProjectMcpServers: true, sandbox.disabled: true, a whole-tool wildcard in autoMode.allow), keys set in a scope that ignores them, deprecated or removed keys (also in ~/.claude.json), dead claudeMdExcludes patterns, and worktree.sparsePaths omitting .claude |