From self-improving-agent
Audits Claude Code auto-memory (MEMORY.md, topic files) for promotion candidates to CLAUDE.md, stale entries, duplicates, consolidation opportunities, and health metrics.
How this skill is triggered — by the user, by Claude, or both
Slash command
/self-improving-agent:reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Performs a comprehensive audit of Claude Code's auto-memory and produces actionable recommendations.
Performs a comprehensive audit of Claude Code's auto-memory and produces actionable recommendations.
/si:review # Full review
/si:review --quick # Summary only (counts + top 3 candidates)
/si:review --stale # Focus on stale/outdated entries
/si:review --candidates # Show only promotion candidates
# Find the project's auto-memory directory
MEMORY_DIR="$HOME/.claude/projects/$(pwd | sed 's|/|%2F|g; s|%2F|/|; s|^/||')/memory"
# Fallback: check common path patterns
# ~/.claude/projects/<user>/<project>/memory/
# ~/.claude/projects/<absolute-path>/memory/
# List all memory files
ls -la "$MEMORY_DIR"/
If memory directory doesn't exist, report that auto-memory may be disabled. Suggest checking with /memory.
Read the full MEMORY.md file. Count lines and check against the 200-line startup limit.
Analyze each entry for:
Recurrence indicators
Staleness indicators
find to verify)Consolidation opportunities
Promotion candidates — entries that meet ALL criteria:
.claude/rules/If MEMORY.md references or the directory contains additional files (debugging.md, patterns.md, etc.):
Read the project's CLAUDE.md (if it exists) and compare:
Also check .claude/rules/ directory for existing scoped rules.
Output format:
📊 Auto-Memory Review
Memory Health:
MEMORY.md: {{lines}}/200 lines ({{percent}}%)
Topic files: {{count}} ({{names}})
CLAUDE.md: {{lines}} lines
Rules: {{count}} files in .claude/rules/
🎯 Promotion Candidates ({{count}}):
1. "{{pattern}}" — seen {{n}}x, applies broadly
→ Suggest: {{target}} (CLAUDE.md / .claude/rules/{{name}}.md)
2. ...
🗑️ Stale Entries ({{count}}):
1. Line {{n}}: "{{entry}}" — {{reason}}
2. ...
🔄 Consolidation ({{count}} groups):
1. Lines {{a}}, {{b}}, {{c}} all about {{topic}} → merge into 1 entry
2. ...
⚠️ Conflicts ({{count}}):
1. MEMORY.md line {{n}} contradicts CLAUDE.md: {{detail}}
💡 Recommendations:
- {{actionable suggestion}}
- {{actionable suggestion}}
/si:status shows MEMORY.md is over 150 lines/si:review --quick frequently (low overhead)5plugins reuse this skill
First indexed Mar 9, 2026
npx claudepluginhub stillquietlyloud/claude_skills --plugin self-improving-agentAudits Claude Code auto-memory (MEMORY.md, topic files) for promotion candidates to CLAUDE.md, stale entries, duplicates, consolidation opportunities, and health metrics.
Reviews auto-memory entries and proposes promotions to CLAUDE.md, CLAUDE.local.md, or shared memory. Also detects outdated, conflicting, and duplicate entries across memory layers.
Organizes, extracts, prunes, and verifies Claude Code persistent memory files to keep MEMORY.md under the 200-line truncation limit and topic files up to date with project state.