| name | docs-health |
| description | Audits CLAUDE.md, docs/DECISIONS.md, and memory files for staleness and accuracy. Use at session start or after a major feature lands. Checks last-updated dates, module paths, API table completeness, and memory entry validity. Outputs a health table with proposed edits — no auto-writes. |
| allowed-tools | Bash(git:*) Bash(ls:*) Bash(grep:*) Read |
Docs Health
Read-only audit. Output a ✅ / ⚠ / ❌ health table then propose specific line edits for user approval.
Check 1 — CLAUDE.md
grep "Last Updated" "$(git rev-parse --show-toplevel)/CLAUDE.md
git -C "$(git rev-parse --show-toplevel)" log -1 --format="%ci %s"
# Module paths — do declared paths exist?
grep -E "chatbot/modules/[a-z_]+\.py" "$(git rev-parse --show-toplevel)/CLAUDE.md \
| grep -oE "chatbot/modules/[a-z_/]+\.py" \
| while read p; do
[ -f "$(git rev-parse --show-toplevel)/$p" ] && echo "✅ $p" || echo "❌ $p"
done
grep -oE "chatbot/api/[a-z_/]+\.py" "$(git rev-parse --show-toplevel)/CLAUDE.md \
| while read p; do
[ -f "$(git rev-parse --show-toplevel)/$p" ] && echo "✅ $p" || echo "❌ $p"
done
# Flag stale confidence/version claims
grep -n "99\.5%\|93-96%\|v1\.[0-9]" "$(git rev-parse --show-toplevel)/CLAUDE.md
Check 2 — docs/DECISIONS.md
grep -E "^## [0-9]{4}-[0-9]{2}-[0-9]{2}" $(git rev-parse --show-toplevel)/docs/DECISIONS.md | tail -3
git -C "$(git rev-parse --show-toplevel)" log --oneline -5
Flag if the last decision entry is >7 days older than the most recent commit.
Check 3 — Memory files
cat \~/.claude/projects/<project>/memory/MEMORY.md
ls \~/.claude/projects/<project>/memory/
Read each memory file. For any line referencing a module path, commit hash, or script path — verify it still exists. Flag entries with broken references or advice that contradicts the current codebase.
Output Format
| File | Status | Issue | Proposed Fix |
|---|
| CLAUDE.md | ⚠ | "Last Updated: 2026-05-24" | Update to today's date |
| CLAUDE.md | ⚠ | "99.5% base" confidence claim | Update to reflect confidence_breakdown field |
| DECISIONS.md | ✅ | Last entry 2026-05-30, HEAD is 2026-05-30 | — |
| memory/project_roadmap.md | ✅ | All paths valid | — |
Then ask: "Apply any of these edits?"