From claude-code
Consolidate and prune memory files using the 4-phase Orient/Gather/Consolidate/Prune algorithm. Use when asked to "dream", "consolidate memory", "clean up memory", or when memory files have grown stale or bloated.
npx claudepluginhub agentic-utils/skills --plugin claude-codeThis skill uses the workspace's default tool permissions.
Consolidate and prune memory files on demand using a 4-phase process.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
Consolidate and prune memory files on demand using a 4-phase process.
Read every memory file relevant to this project. Look for:
CLAUDE.md, .cursor/rules, AGENTS.md, or equivalent)For each file, note:
stat <file>)Do not make changes yet. Build a picture of what exists.
Identify concrete learnings from recent work not yet captured in memory:
Check git log for recent commits:
git log --oneline -20 2>/dev/null
Flag anything worth adding that is currently missing.
For each memory file:
Merge overlapping entries — if two entries say the same thing differently, keep the more specific one
Update stale entries — if an entry refers to a file, function, or config that no longer exists, verify it:
ls <path> 2>/dev/null && echo EXISTS || echo MISSING
grep -r "functionName" --include="*.ts" --include="*.py" -l 2>/dev/null | head -5
Remove or correct entries that no longer reflect reality
Add missing learnings — write new entries for anything found in Phase 2
Remove entries with low future value:
For index files: remove pointers to files that no longer exist.
Report:
Do not delete memory files entirely — only prune entries within them.