memory
Skill15 starsChanged 2 months agoMITView on GitHub
Unified memory CRUD: write/update/delete/query file-based markdown entries and sync to MCP semantic store. TRIGGER when: saving a new memory entry, updating or deleting an existing entry, querying stored memories, or deduplicating before write. SKIP: 3-tier agent memory (use agent-memory); in-task vector recall (use semantic-memory-mcp).
66 other projects use a version of this.
Adopted by
Most recently taken up by
- ProjectAJ14/eklavyatheir own version, first seen Oct 4, 2026
- DioNanos/nexuscrewtheir own version, first seen Oct 3, 2026
- Quad4-Software/skillstheir own version, first seen Oct 3, 2026
- pobsteta/aigoratheir own version, first seen Oct 2, 2026
- vbcherepanov/total-agent-memorytheir own version, first seen Sep 30, 2026
- harshanandak/forgetheir own version, first seen Sep 28, 2026
Used with
Projects with it also use harness-review, postmortem 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.
fockusSkillharness-review
Harness v3 統合レビュースキル。コード・プラン・スコープを多角的にレビュー。以下で起動: レビュー、コードレビュー、プランレビュー、スコープ分析、セキュリティ、品質チェック、harness-review。実装・新機能・バグ修正・セットアップ・リリースには使わない。
Also in 3 projects that use this
Hongyu-yuSkillpostmortem
Use when analyzing failures, outages, incidents, or negative outcomes, conducting blameless postmortems, documenting root causes with 5 Whys or fishbone diagrams, identifying corrective actions with owners and timelines, learning from near-misses, establishing prevention strategies, or when user mentions postmortem, incident review, failure analysis, RCA, lessons learned, or after-action review.
Also in 4 projects that use this
MicrosoftSkilldev
Development workflows for the playwright-cli repository. Use when the user asks about rolling dependencies, releasing, or other repo maintenance tasks.
Also in 3 projects that use this
AnthropicSkillstart
Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.
Also in 4 projects that use this
MicrosoftSkillsync
Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 4 projects that use this
Other versions66 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 66
- google-gemini/gemini-cli★ 107ksame name
- Chachamaru127/claude-code-harness★ 3.1ksame name
- codeaholicguy/ai-devkit★ 1.6ksame name
- Muuuun/luxas★ 1.2ksame name
- rshankras/claude-code-apple-skills★ 777same name
- memvid/claude-brain★ 578same name
- shobcoder/shob★ 577same name
- boshu2/agentops★ 447same name
- lokikill123/codex-token-skills★ 119same name
- 686f6c61/alfred-dev★ 116same name
56 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 repository38 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-commsSkill
- agent-memorySkill
- api-designSkill
- context-engineeringSkill
- database-optimizationSkill
- distillSkill
- docker-templatesSkill
- error-handlingSkill
- github-actions-templateSkill
- git-operationsSkill
- logging-standardsSkill
- mcp-toolsSkill
- monitoring-observabilitySkill
- mui-stylingSkill
- pattern-recognitionSkill
- planning-methodologySkill
- python-patternsSkill
- quality-validationSkill
- react-patternsSkill
- research-methodologySkill
- security-review-checklistsSkill
- semantic-memory-mcpSkill
- semantic-memory-storeSkill
- skill-authoringSkill
- sofa-searchSkill
- spec-designSkill
- spec-developSkill
- spec-researchSkill
- spec-reviewSkill
- spec-workflowSkill
- state-managementSkill
- systematic-debuggingSkill
- testing-strategySkill
- ui-ux-pro-maxSkill
- verification-before-completionSkill
- watch-patternsSkill
- worktree-managementSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 10 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 57 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Use this skill when an explicit memory management action is requested: save a new entry, update or delete an existing one, query/search …
- Distinctive: line 49
Every entry file MUST begin with YAML frontmatter followed by the body:
- Distinctive: line 72
Do NOT store secrets, tokens, or passwords.
- Distinctive: line 98
Create the file with the frontmatter + body template above.
- Distinctive: line 100
If MCP semantic memory is available, call:
- Distinctive: line 110
Do NOT store secrets or file-system paths in the vector store.
- Distinctive: line 115
Read the file, apply the change to frontmatter or body.
- Very specific: line 117
Update the bullet in MEMORY.md if the description changed.
- Distinctive: line 118
If MCP available, re-store with updated content (the backend deduplicates by content hash and merges tags/timestamp).
- Very specific: line 123
Delete the .md file.
- Very specific: line 124
Remove the corresponding bullet from MEMORY.md.
- Distinctive: line 133
Read matching files and return their body content.
- Distinctive: line 155
Before every WRITE check:
- Distinctive: line 164
If unsure, prefer UPDATE over creating a duplicate.
- Very specific: line 170
If mcp__memory__* tools are not accessible (MCP server not wired or returns an error), skip all MCP calls silently.
- Very specific: line 174
Check by attempting a no-op recall — if it throws, set a local flag mcp_available = false and proceed without MCP for the remainder of the …
“Common” is measured: kept by at least 6 in 10 of the 57 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 Skill
Purpose
Unified CRUD operations over the scaffolding memory system. Handles file-based
markdown entries under ~/.claude/projects/.../memory/ and synchronises every
write/delete with the MCP semantic vector store when available.
Use this skill when an explicit memory management action is requested: save a
new entry, update or delete an existing one, query/search stored entries, or
rebuild the MEMORY.md index.
Memory Types
| Type | File prefix | Use for |
user | user_*.md | Personal preferences, identity, recurring instructions |
feedback | feedback_*.md | Corrections, tone/style adjustments, behavioural feedback |
project | project_*.md | Stack details, environment facts, team conventions |
reference | reference_*.md | External resources, URLs, credentials pointers |
File Layout
~/.claude/projects/{project-slug}/memory/
├── MEMORY.md ← index (one bullet per entry)
├── user_*.md ← user-type entries
├── feedback_*.md ← feedback-type entries
├── project_*.md ← project-type entries
└── reference_*.md ← reference-type entriesThe project slug is the filesystem-safe version of the working directory path
(hyphens replacing /, e.g. -home-komluk-repos).
Entry File Format
Every entry file MUST begin with YAML frontmatter followed by the body:
---
name: <kebab-case-slug>
description: "<one-line summary>"
metadata:
node_type: memory
type: <user|feedback|project|reference>
originSessionId: <session-uuid-or-unknown>
---
<Body content — concise markdown. Max ~40 lines per file.>
**Why:** <rationale or context>
**How to apply:** <when/how to use this entry>Rules:
namemust be kebab-case and equal the file slug (after the prefix).descriptionis the single line shown in MEMORY.md.- Body MUST include Why and How to apply sections.
- Do NOT store secrets, tokens, or passwords.
MEMORY.md Index Format
# Memory Index
- [<Title>](<filename>.md) — <one-line description>One bullet per file, alphabetical order within each type group. The title is
the human-readable name; the description matches the frontmatter description.
Operations
WRITE (new entry)
- Deduplicate first — scan existing
*.mdfiles in the memory dir for entries with the samenameor near-identicaldescription. If a match exists, perform UPDATE instead of creating a new file. - Determine the
typeand derive the file slug from the entry name:<type>_<slug>.md(e.g.feedback_pve-env-confusion.md). - Create the file with the frontmatter + body template above.
- Append a bullet to
MEMORY.md(create the index if absent). - If MCP semantic memory is available, call:
Do NOT store secrets or file-system paths in the vector store.mcp__memory__semantic_store( content="<description + key facts from body, ≤500 chars>", agent_name="memory", content_type="learning", tags=["<type>", "<slug>", ...], project_id="scaffold:831a4a3fd343b902" )
UPDATE (existing entry)
- Identify the target file by name/slug or MEMORY.md lookup.
- Read the file, apply the change to frontmatter or body.
- Overwrite the file (preserve frontmatter structure).
- Update the bullet in
MEMORY.mdif the description changed. - If MCP available, re-store with updated content (the backend deduplicates by content hash and merges tags/timestamp).
DELETE (remove entry)
- Delete the
.mdfile. - Remove the corresponding bullet from
MEMORY.md. - MCP semantic store does not expose a delete API — leave the vector entry (it will decay naturally and will not surface unless re-queried with high similarity).
QUERY (search/recall)
File-based query:
- Scan
MEMORY.mdfor keyword match in title or description. - Read matching files and return their body content.
Semantic query (if MCP available):
mcp__memory__semantic_search(
query="<natural-language query>",
project_id="scaffold:831a4a3fd343b902"
)or
mcp__memory__semantic_recall(
context="<task context summary>",
project_id="scaffold:831a4a3fd343b902"
)Return both file-based and semantic results, deduplicating overlaps.
Deduplication Rules
Before every WRITE check:
| Check | Method | Action on match |
Exact name match | frontmatter name field | UPDATE existing |
| Near-identical description | string similarity > 80 % | UPDATE existing |
| Same slug | filename match | UPDATE existing |
| Semantic duplicate | MCP semantic_search score > 0.92 | UPDATE existing |
If unsure, prefer UPDATE over creating a duplicate.
MCP Availability
If mcp__memory__* tools are not accessible (MCP server not wired or
returns an error), skip all MCP calls silently. File-based memory is always
sufficient; semantic memory is an optional enhancement layer.
Check by attempting a no-op recall — if it throws, set a local flag
mcp_available = false and proceed without MCP for the remainder of the task.
Anti-Patterns
| Avoid | Instead |
| Storing secrets or tokens | Note that the secret is in Vault/env; link the location |
| Duplicate files for the same topic | Deduplicate before writing; run UPDATE |
| MEMORY.md out of sync with files | Always update index on every write/delete |
| Oversized entry files (>60 lines) | Split into two entries with distinct slugs |
| Storing raw code snippets | Summarise the insight; keep ≤500 chars for MCP |
Using generic slugs (notes, info) | Use descriptive kebab-case slugs |
| Writing to MCP without file write | Always write file first; MCP is the mirror |
Quality Checklist
- File has valid YAML frontmatter with
name,description,metadata namein frontmatter equals the slug in the filename- Entry has Why and How to apply sections
MEMORY.mdupdated (bullet added, modified, or removed)- No secrets, tokens, or passwords in any file or MCP content
- Deduplication check ran before creating a new file
- If MCP available:
semantic_storecalled withproject_id="scaffold:831a4a3fd343b902" - File is under 60 lines
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.

