memory-management
Skill0 starsChanged 7 months agoMITView on GitHub
Smart memory operations for Claude Code's file-based memory system - daily hygiene, weekly rollups, monthly archives, cross-referencing, and pruning. Use during maintenance, when memory files grow large (>100 lines), or when user asks about something from weeks/months ago
23 other projects use a version of this.
Adopted by
Most recently taken up by
- composio-community/opencode-skillstheir own version, first seen Nov 1, 2026
- ruvnet/ruflotheir own version, first seen Oct 21, 2026
- anthropics/knowledge-work-pluginstheir own version, first seen Oct 13, 2026
- shahbazaliofficial/Claude-Skillstheir own version, first seen Oct 13, 2026
- edu6565/claude-skillstheir own version, first seen Oct 11, 2026
- garri333/Skillstheir own version, first seen Oct 11, 2026
Used with
Projects with it also use agent-agent, agent-analyze-code-quality and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ZekiogSkillagent-agent
Agent skill for agent - invoke with $agent-agent
Also in 5 projects that use this
ZekiogSkillagent-analyze-code-quality
Agent skill for analyze-code-quality - invoke with $agent-analyze-code-quality
Also in 5 projects that use this
- +10 more from Zekiog
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- ruvnet/claude-flow★ 80ksame name
- ruvnet/ruflo★ 79ksame name
- anthropics/knowledge-work-plugins★ 35ksame name
- taxueseek/session-digger★ 34same name
- composio-community/opencode-skills★ 14same name
- xiaolai/echo-sleuth-for-claude★ 9same name
- opencue/cuecards★ 6same name
- DojoCodingLabs/claude-code-waypoint★ 4same name
- grandamenium/claude-code-memory-skill★ 4same name
- hajekim/agentic-design-patterns-skills★ 4same name
13 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- deploy-pipelineSkill
- ecommerce-builderSkill
- hackathon-copilotSkill
- know-meSkill
- obsidian-memory-syncSkill
- polymarket-multi-agentSkill
- polymarket-vps-opsSkill
- researcherSkill
- self-healingSkill
- self-improvementSkill
- strategy-preflightSkill
- trade-journalSkill
- visual-promptingSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 12 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Update relevant memory files with new learnings
- Distinctive: line 35
Create new memory files for genuinely new topics
- Distinctive: line 36
Update MEMORY.md index if files were added/removed
- Distinctive: line 48
Check feedback memories — are they still relevant?
- Distinctive: line 49
Verify user memories — has anything changed?
- Distinctive: line 53
When writing new memories, check for connections:
- Distinctive: line 85
Keep the index scannable:
- Distinctive: line 92
When looking for past context:
- Distinctive: line 93
Check MEMORY.md index for relevant pointers
- Distinctive: line 94
Read the specific memory file
- Distinctive: line 95
If not found, grep across all memory files
- Distinctive: line 96
Only if still not found, check Obsidian vault for partner agent memories
“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Memory Management
Memory Architecture (Claude Code)
~/.claude/projects/<project>/memory/
MEMORY.md # Index file — pointers to memory files
user_*.md # User profile memories
feedback_*.md # Working style / correction memories
project_*.md # Active project context
reference_*.md # External system pointersEach memory file has frontmatter:
---
name: descriptive name
description: one-line summary for relevance matching
type: user|feedback|project|reference
---MEMORY.md is the index — one-line pointers, not content. Keep under 200 lines.
Operations
1. Daily Session Hygiene
At session end (or via obsidian-memory-sync skill):
- Update relevant memory files with new learnings
- Create new memory files for genuinely new topics
- Update MEMORY.md index if files were added/removed
- Never duplicate — check existing memories before creating new ones
2. Weekly Rollup (Every 7 Days)
Review all memory files:
- Merge related memories that have grown fragmented
- Update project memories with current status
- Verify reference memories still point to valid resources
- Remove memories that are now captured in code/git history
3. Monthly Archive
- Review all project memories — archive completed projects
- Check feedback memories — are they still relevant?
- Verify user memories — has anything changed?
- Audit MEMORY.md index — remove dead links, ensure all files are indexed
4. Cross-Reference Protocol
When writing new memories, check for connections:
- Does this relate to an existing project? -> Update that memory instead
- Does this contradict something previously noted? -> Flag and resolve
- Does this complete/update an open question? -> Close the loop
- Is this a pattern we've seen before? -> Note the pattern
5. Pruning Rules
Keep forever:
- User preferences and working agreements
- Business decisions and rationale
- Important relationships and context
- Lessons learned from mistakes
- Financial data and commitments
Prune after 30 days:
- Routine task completion notes
- Transient debugging sessions
- Superseded information (old plans replaced by new ones)
Prune after 90 days:
- Resolved blockers
- Completed one-off tasks
- Temporary workarounds that were properly fixed
Never store (use code/git instead):
- Code patterns, conventions, architecture, file paths
- Git history, recent changes, who-changed-what
- Debugging solutions or fix recipes
- Anything already in CLAUDE.md files
6. MEMORY.md Index Curation
Keep the index scannable:
- Group by type (User, Feedback, Projects, References)
- Each entry:
- [Title](file.md) — one-line hook(under 150 chars) - Alphabetize within groups
- Total lines under 200
7. Search & Retrieval
When looking for past context:
- Check MEMORY.md index for relevant pointers
- Read the specific memory file
- If not found, grep across all memory files
- Only if still not found, check Obsidian vault for partner agent memories
Maintenance Schedule
| Task | Frequency | Trigger |
| Session memory update | Every session end | Session close / obsidian-memory-sync |
| Weekly rollup | Every 7 days | Self-improvement Sunday review |
| Monthly archive | Every 30 days | First session of new month |
| MEMORY.md curation | Every 14 days | During weekly rollup |
| Pruning pass | Every 30 days | During monthly archive |
Integration Points
- self-improvement: Weekly review triggers memory rollup
- know-me: User preferences detected get stored via memory management protocols
- obsidian-memory-sync: Session end captures cross-skill context to Obsidian vault
- All skills: Memory captures cross-skill context (VPS sessions, store builds, research)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

