Skip to content

Instantly share code, notes, and snippets.

View evanvandyke's full-sized avatar

Evan Van Dyke evanvandyke

View GitHub Profile
@evanvandyke
evanvandyke / memory-cleanup.md
Created May 19, 2026 19:52
Claude Code Memory Cleanup Skill — Audits and consolidates the hidden memory directory that silently bloats your context window. Save as ~/.claude/commands/memory-cleanup.md and run /memory-cleanup in any project.
description Audit and clean up Claude Code's hidden memory directory. Consolidates bloated memory files, resolves contradictions, and installs templates that prevent re-bloating. Run periodically or when drift is suspected.

Memory Cleanup

Audit and repair the project's memory structure. Claude Code silently creates individual .md files for every memory it saves — this skill consolidates them into 2 managed files and installs instructions that prevent the bloat from recurring.

Works on both bloated projects (consolidation) and new projects (clean setup). Re-run periodically to catch any drift that accumulates between sessions.