manage-memory
Installation
SKILL.md
Manage Memory
Maintain Claude Code's persistent memory directory so it stays accurate, concise, and useful across sessions. MEMORY.md is loaded into the system prompt on every conversation — lines after 200 are truncated, so this file must be a lean index pointing to topic files for detail.
When to Use
- MEMORY.md is approaching the 200-line truncation threshold
- A session produced durable insights worth preserving (new patterns, architecture decisions, debugging solutions)
- A topic section in MEMORY.md has grown beyond 10-15 lines and should be extracted
- Project state has changed (renamed files, new domains, updated counts) and memory entries may be stale
- Starting a new area of work and checking whether relevant memory already exists
- Periodic maintenance between sessions to keep the memory directory healthy
Inputs
- Required: Access to the memory directory (typically
~/.claude/projects/<project-path>/memory/) - Optional: Specific trigger (e.g., "MEMORY.md is too long," "just finished a major refactor")
- Optional: Topic to add, update, or extract
Related skills