save-memory
Skill1 starsChanged 4 days agoMITView on GitHub
Use when the user asks to "save memory", "record memory", "save to ledger", "save to sidecar", "record mistake", "save learning", "remember this decision", "log anti-pattern", "persist task context", or whenever the agent needs to record an architectural decision, active task context, or hard-won lesson learned from mistakes without context bloat.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- nailulgh/antigravity-obsidian-memorytheir own version, first seen Nov 1, 2026
- TOKTOKHAN-DEV/agent-companytheir own version, first seen Aug 11, 2026
- sevenschulte/agentic-harnesstheir own version, first seen Apr 20, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- TOKTOKHAN-DEV/agent-company★ 74same name
- sevenschulte/agentic-harness★ 2same name
- nailulgh/antigravity-obsidian-memory★ 1same name
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 repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-orchestratorSkill
- algorithmic-complexity-analyzerSkill
- api-securitySkill
- architectural-planningSkill
- caching-queues-reviewerSkill
- code-reviewerSkill
- csharp-developerSkill
- design-pattern-detectorSkill
- detect-overengineeringSkill
- github-security-scanner-hookSkill
- java-developerSkill
- legacy-code-modernizationSkill
- llm-as-judgeSkill
- load-memorySkill
- nodejs-executorSkill
- playwright-bdd-testerSkill
- powershell-writerSkill
- python-api-writerSkill
- python-developerSkill
- python-linterSkill
- react-developerSkill
- remote-pod-log-analyzerSkill
- scan-halucinated-testsSkill
- scan-repo-readmeSkill
- skill-creatorSkill
- sql-connectorSkill
- sql-executorSkill
- sync-github-forksSkill
- trace-code-contextSkill
- troubleshoot-and-fixSkill
- typescript-developerSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
NO Raw Code Dumps: Never paste entire source files or diffs into summary.
- Distinctive: line 32
NO Stack Traces or Logs: Never dump raw terminal outputs, stack traces, or base64 blobs into memory.
- Distinctive: line 34
Mandatory Learnings: Every save MUST detail the specific mistake, trap, or wrong assumption that was made or avoided, why it happened, and …
- Very specific: line 35
Summary Limit: Keep summary under 1,500 characters.
- Very specific: line 36
Title Limit: Keep title under 150 characters, descriptive and searchable.
- Distinctive: line 69
Ensure the returned response contains:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Save Memory Skill
Persist high-signal, non-bloated project memory into the project-memory MCP server.
This skill strictly partitions memories into 3 categories (ledger, sidecar, journal), enforces crisp summaries (no raw data or stack traces), and mandates documenting learnings from mistakes and errors encountered or avoided.
The 3 Memory Categories
| Category | Purpose | When to Save | Required Structure |
ledger | High-impact project truths & architectural decisions | Permanent conventions, tech stack choices, schema rules, security policies | Summary: Clear architectural truth or constraint.<br>Learnings: Rationale and traps avoided. |
sidecar | What the agent is currently working on | Active task state, current WIP, pending refactoring steps | Summary: Active WIP status & next steps.<br>Learnings: Pitfalls to watch out for during current task. |
journal | Summary of the current session with learnings | At checkpoints or conclusion of a working session | Summary: What was worked on and accomplished during the session.<br>Learnings: Key lessons learned, traps navigated, or mistakes made/avoided during the session. |
[!IMPORTANT] Journal Entries Require BOTH Session Summary AND Learnings: A journal entry captures the summary of the current session with learnings. Never save a journal entry with just learnings alone! An agent reading the journal in a future session needs the context of what was accomplished/transpired in that session (
summary) alongside what lessons and mistakes were learned/avoided (learnings).
Anti-Bloat Rules (STRICT)
- NO Raw Code Dumps: Never paste entire source files or diffs into
summary. Use 2–4 concise bullet points. - NO Stack Traces or Logs: Never dump raw terminal outputs, stack traces, or base64 blobs into memory.
- Session Summary WITH Learnings for Journal: For
journal,summarycaptures the session's work and progress, andlearningscaptures the lessons learned and mistakes avoided. Both are required and must not be duplicates. - Mandatory Learnings: Every save MUST detail the specific mistake, trap, or wrong assumption that was made or avoided, why it happened, and how to prevent it. Never write placeholder text like "none" or "n/a".
- Summary Limit: Keep
summaryunder 1,500 characters. - Title Limit: Keep
titleunder 150 characters, descriptive and searchable.
Workflow
Step 1 — Classify the Memory
Select the category:
- Is this a permanent project truth or architecture decision? →
ledger - Is this transient context about what is currently being worked on? →
sidecar - Is this a session summary with lessons and takeaways? →
journal
Step 2 — Construct Summary and Extract Learnings
For a journal entry, construct both parts:
summary(Current Session Summary): What was worked on, accomplished, or altered during the current session?learnings(Takeaways & Mistakes Avoided): What key lessons were learned, what errors or traps were encountered, and what rule ensures future sessions succeed?
Step 3 — Invoke save_memory via MCP
{
"name": "save_memory",
"arguments": {
"category": "journal",
"title": "Session: Scaffolded SQLite MCP Memory Server & Hybrid Search",
"summary": "Completed initial scaffolding of project-memory MCP server with node:sqlite DatabaseSync and verified 40% semantic hybrid search test suite.",
"learnings": "Native C++ node addons fail on Windows sandbox without build tools; standardizing on built-in node:sqlite DatabaseSync avoids node-gyp build failures completely.",
"tags": ["sqlite", "mcp", "session-recap", "hybrid-search"]
}
}Step 4 — Verify Output
Ensure the returned response contains:
success: true- Clean
MemorySummaryobject with ID and timestamps - Confirm that NO vector embeddings or raw payloads are returned
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.

