memory
Skill2 starsChanged 7 months agoMITView on GitHub
Manage your persistent hierarchical memory — save, update, search, and organize knowledge as markdown files in the memory/ folder. Use when: you learn something worth remembering, the user asks you to remember something, you want to recall past knowledge, you need to reorganize or update existing memories, or you want to search through your memories. Triggers: 'remember this', 'save to memory', 'what do you remember about', 'update memory', 'search memory', 'forget', or when you decide something is worth persisting.
We split this skill into the rules it gives an agent
10 rules. 0 are common, 5 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 73 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Every memory file MUST have YAML frontmatter with name and summary fields:
- Very specific: line 53
Create the category folder if it doesn't exist: mkdir -p memory/<category>
- Very specific: line 54
Write the .md file with proper frontmatter
- Very specific: line 69
Read the existing file, modify its content, and write it back.
- Distinctive: line 73
Search through memory content using grep:
- Very specific: line 109
When reorganizing, ensure the name field in frontmatter matches the new filename.
- Distinctive: line 121
Save proactively: When you learn user preferences, project details, important decisions, or anything that would be useful across …
- Distinctive: line 124
Update over create: If a memory already exists on the topic, update it rather than creating a duplicate.
- Distinctive: line 125
Merge when appropriate: If you notice related memories scattered around, consolidate them.
- Distinctive: line 126
Prune stale memories: Remove or update memories that are no longer accurate.
“Common” is measured: kept by at least 6 in 10 of the 73 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
Manage your persistent hierarchical memory system. Memories are stored as markdown files in the memory/ folder in your workspace, organized into a folder hierarchy that acts as categories/groups.
Memory Structure
memory/
├── project-setup.md ← root-level memory
├── preferences/ ← category folder
│ ├── coding-style.md
│ └── communication.md
├── projects/ ← category folder
│ ├── overview.md
│ └── webapp/ ← nested category
│ ├── architecture.md
│ └── api-endpoints.md
└── people/
└── team-contacts.mdMemory File Format
Every memory file MUST have YAML frontmatter with name and summary fields:
---
name: coding-style
summary: User prefers functional style, TypeScript strict mode, no semicolons
---
Detailed notes about the user's coding preferences:
- Functional programming style over OOP
- TypeScript with strict mode enabled
- No semicolons (relies on ASI)
- Prefer const over let
- Use arrow functions for callbacks- name: Same as the filename (without .md extension). Acts as the memory identifier.
- summary: A short one-line summary of what this memory contains. This is what appears in the memory index — make it informative enough to decide whether to read the full file.
- Body: The detailed memory content after the frontmatter. Can be as long as needed.
Saving a Memory
- Decide which category folder it belongs in (or root
memory/if it's top-level) - Create the category folder if it doesn't exist:
mkdir -p memory/<category> - Write the
.mdfile with proper frontmatter
cat > memory/preferences/coding-style.md << 'EOF'
---
name: coding-style
summary: User prefers functional TypeScript, strict mode, no semicolons
---
Detailed preferences documented here...
EOFUpdating a Memory
Read the existing file, modify its content, and write it back. Update the summary in frontmatter if the core meaning changed.
Searching Memories
Search through memory content using grep:
# Search all memories for a keyword
grep -r "keyword" memory/ --include="*.md"
# Search only summaries (frontmatter)
grep -r "summary:" memory/ --include="*.md"
# Find memories in a specific category
ls memory/projects/Reading a Memory in Detail
The memory index in AGENTS.md only shows name + summary. To read the full content:
cat memory/<path-to-file>.mdReorganizing Memory
You can move, rename, or restructure the hierarchy at any time:
# Create a new category
mkdir -p memory/new-category
# Move a memory to a different category
mv memory/old-location/file.md memory/new-category/file.md
# Rename a memory (update the name field in frontmatter too)
mv memory/old-name.md memory/new-name.mdWhen reorganizing, ensure the name field in frontmatter matches the new filename.
Deleting a Memory
rm memory/path/to/memory.md
# Remove empty category folders
rmdir memory/empty-category/Guidelines
- Save proactively: When you learn user preferences, project details, important decisions, or anything that would be useful across conversations — save it.
- Keep summaries concise: The summary appears in the index that's loaded every conversation. Make it count.
- Use hierarchy wisely: Group related memories into folders. Don't create too many levels of nesting (2-3 levels max).
- Update over create: If a memory already exists on the topic, update it rather than creating a duplicate.
- Merge when appropriate: If you notice related memories scattered around, consolidate them.
- Prune stale memories: Remove or update memories that are no longer accurate.
Other versions90 projects use a version of this.
Word for word · 3
- jlia0/tinyclaw★ 3.6k100% same
- TinyAGI/tinyagi★ 3.6k100% same
- TinyAGI/tinyclaw★ 3.6k100% same
Edited · 0
None found.
Wrote their own version · 87
- google-gemini/gemini-cli★ 109ksame name
- Chachamaru127/claude-code-harness★ 3.2ksame name
- codeaholicguy/ai-devkit★ 1.7ksame name
- Muuuun/luxas★ 1.2ksame name
- shobcoder/shob★ 575same name
- boshu2/agentops★ 452same name
- ambient-code/platform★ 131same name
- deathbyknowledge/gsv★ 130same name
- jh941213/ADLC-harness★ 125same name
- jh941213/my-cc-harness★ 125same name
77 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.
Used alongsideProjects with it also use docs-ci, docs-interfaces and 9 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.
jh941213Skilldocs-ci
문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.
Also in 3 projects that use this
jh941213Skilldocs-interfaces
API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.
Also in 3 projects that use this
naman10parikhSkillecosystem-reference
Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.
Also in 3 projects that use this
naman10parikhSkillfractal-delegation
Also in 3 projects that use this
- +4 more from jh941213
- +3 more from naman10parikh
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- agent-browserSkill
- imagegenSkill
- scheduleSkill
- send-user-messageSkill
- skill-creatorSkill
- tasksSkill
- zoobot-adminSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

