forked from bchanot/claude
New personal skill to maintain memory registry hygiene. Gap identified between existing tools: - /caveman:compress — text-compresses one file, no curation - /close — appends new entries end-of-session, doesn't prune - /prune-memory (new) — audits, classifies, applies user-approved cleanup Operations: - Mark obsolete entries `status: superseded by <ID>` or `status: deprecated` (no hard delete — append-only per CLAUDE.md memory rule). - Merge similar entries (new ID, sources marked superseded). - Caveman-compress bloated prose-heavy entries inline. - Repair Index drift (missing rows, orphaned rows). Workflow: STEP 0 precheck (refuses dirty working tree, git = backup) → STEP 1 audit (A obsolete / B similar / C bloated / D drift) → STEP 2 plan + mandatory user approval → STEP 3 apply safe→destructive → STEP 4 verify Index sanity + line-count report. Follows superpowers:writing-skills CSO conventions: "Use when..." trigger description (under 1024-char spec), Quick Reference table, Common Mistakes table, Failure Paths table. v1 ships without baseline TDD test (noted in skill body); STEP 2 approval gate is the safety net. Co-Authored-By: Claude <noreply@anthropic.com>