Manually reviews and prunes stale project_* memory entries older than 30 days. Keeps MEMORY.md under the 200-line auto-load limit without auto-deleting.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-skills-library:memory-pruneThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The memory system at `~/.claude/projects/C--Users-frank-Arcanea/memory/` accumulates ~2-3 entries/day. Once `MEMORY.md` exceeds ~200 lines the auto-loader truncates it and entries silently disappear from future-session context. This skill prevents that without auto-deleting things that might still matter.
The memory system at ~/.claude/projects/C--Users-frank-Arcanea/memory/ accumulates ~2-3 entries/day. Once MEMORY.md exceeds ~200 lines the auto-loader truncates it and entries silently disappear from future-session context. This skill prevents that without auto-deleting things that might still matter.
feedback, decision, reference, user — these are durable.project_* — these are session snapshots; old ones rarely re-load.~/.claude/projects/C--Users-frank-Arcanea/memory/ for .md filesproject_*.md last-modified > N days ago (default 30)[k]eep | [a]rchive | [p]in | [s]kipmemory/archive/YYYY-MM/, remove from MEMORY.md<original>_pinned.md, ensure indexed in MEMORY.md| Pattern | Recommendation |
|---|---|
project_*_session_*.md (session log) | archive — these are ephemeral by nature |
project_pp_audit_*.md (PP audits) | archive after 60 days |
project_*_strategy.md (strategy docs) | keep or pin — usually evergreen |
project_overnight_*.md | archive — overnight session snapshots |
project_mega_session_*.md | archive — date-bound sessions |
project_*_2026_03_* | archive after 90 days |
| Any with content > 4 KB explaining a decision rationale | suggest pin |
Run via PowerShell in Windows:
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE/.claude/skills/memory-prune/prune.ps1"
Or set up an alias in your shell:
function prune-memory { & "$env:USERPROFILE/.claude/skills/memory-prune/prune.ps1" }
feedback_*, decision_*, reference_*, user_*Run once per month or whenever MEMORY.md exceeds 180 lines (check via wc -l MEMORY.md).
This skill itself decays only if memory architecture migrates (e.g., to a vector DB). At that point rebuild against the new substrate.
npx claudepluginhub frankxai/claude-skills-library --plugin claude-skills-libraryAudits and selectively forgets stored Claude Code memories. Use when memory is large/uncurated, project state has shifted, or retrieval quality degraded.
Reviews, consolidates, and prunes Claude Code project memory files. Supports dry-run and atomic apply modes for safe batch maintenance.
Runs memory maintenance: verifies IDs/duplicates, reconciles metadata, demotes working entries over 1500-word budget by score, cleans superseded entries.