memory-management
Skill0 starsChanged 8 months agoMITView on GitHub
Protocol for persisting and recalling context across sessions using the kit's two-tier memory. Use when you need to remember a decision, recall prior context, record a preference or convention, or prune stale memory.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- jau123/claude-memory-managertheir own version, first seen Oct 5, 2026
- ruvnet/ruflotheir own version, first seen Sep 10, 2026
- Soulcynics404/AgentForgetheir own version, first seen Aug 24, 2026
- Leostruka/devin-bundletheir own version, first seen Aug 15, 2026
- Jylhis/skillstheir own version, first seen Aug 5, 2026
- soden46/syarif-laravel-ai-skillstheir own version, first seen Jul 16, 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 3 projects that use this
ZekiogSkillagent-analyze-code-quality
Agent skill for analyze-code-quality - invoke with $agent-analyze-code-quality
Also in 3 projects that use this
- +10 more from Zekiog
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- ruvnet/ruflo★ 74ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- xiaolai/echo-sleuth-for-claude★ 9same name
- DojoCodingLabs/claude-code-waypoint★ 4same name
- grandamenium/claude-code-memory-skill★ 4same name
- hajekim/agentic-design-patterns-skills★ 4same name
- jau123/claude-memory-manager★ 4same name
- mmccalla/coding-agent-skill-library★ 4same name
- soden46/syarif-laravel-ai-skills★ 4same name
- Zekiog/ruflo★ 2same name
7 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 repository25 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-patternsSkill
- architectureSkill
- brainstormingSkill
- clean-codeSkill
- code-review-checklistSkill
- database-designSkill
- data-engineeringSkill
- frontend-designSkill
- llm-evaluationSkill
- mcp-builderSkill
- react-best-practicesSkill
- nodejs-best-practicesSkill
- observabilitySkill
- parallel-agentsSkill
- powershell-windowsSkill
- prompt-engineeringSkill
- python-patternsSkill
- rag-patternsSkill
- seo-fundamentalsSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- vulnerability-scannerSkill
- webapp-testingSkill
- web-design-guidelinesSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
All access goes through scripts/memory_manager.py.
- Very specific: line 39
If a memory names a file/flag/decision, verify it still holds — memory reflects what was true when written.
“Common” is measured: kept by at least 6 in 10 of the 16 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
The kit's durable-context protocol. Pairs with the
memory-keeperagent and the/memoryworkflow.
Overview
Memory has two tiers, both under memory/:
- Short-term (
short_term.json) — working context for the current session; cleared between sessions. - Long-term (
long_term.json) — durable decisions, preferences, project facts, conventions; survives sessions. Indexed byMEMORY.md.
All access goes through scripts/memory_manager.py. Never hand-edit long_term.json or MEMORY.md — the engine keeps the schema and index in sync.
The Engine
python scripts/memory_manager.py init # create files if missing
python scripts/memory_manager.py recall "<query>" # search title/content/tags
python scripts/memory_manager.py save --type <T> --title "<...>" --content "<...>" [--tags a,b] [--related id1,id2]
python scripts/memory_manager.py list [--type <T>]
python scripts/memory_manager.py show <id>
python scripts/memory_manager.py forget <id>
python scripts/memory_manager.py session-clear
python scripts/memory_manager.py statsRecall-Before-Act
At the start of any non-trivial task:
recallusing the task's key nouns.- Note anything relevant before you begin.
- If a memory names a file/flag/decision, verify it still holds — memory reflects what was true when written.
What to Save (and what not to)
| Type | Save when… |
decision | A choice future work must respect — include the why |
preference | The user/team states how they want things done |
project | A goal/constraint/milestone not derivable from code or git |
convention | A naming/structure/style rule |
reference | A URL, dashboard, ticket, external resource |
fact | A non-obvious truth not written down elsewhere |
Never save: code/README/git-derivable facts, secrets or credentials, session-only details, or duplicates.
Curation Rules
- Recall before saving — if a similar entry exists, update it (forget + save), don't duplicate.
- One fact per entry — scannable title, one or two sentences of content.
- Absolute dates — convert "next sprint"/"yesterday" to a real date before saving.
- Prune —
forgetanything reversed or proven wrong. - Link related entries with
--related.
Anti-Patterns
| ❌ | ✅ |
| Save everything "just in case" | Save only what future sessions need |
| Hand-edit JSON/index | Go through memory_manager.py |
| Recall after acting | Recall first |
| Trust stale memory | Verify before relying |
| Store secrets | Never |
A small, accurate memory beats a large, doubtful one.
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.

