write-memory
Skill2 starsChanged 5 months agoMITView on GitHub
Use at the end of non-trivial work in an opted-in .memobox project only when the result passes the durable-memory worthiness gate, or when the user explicitly asks to save a memory.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- MooseDesign1/DDD-DesignDrivenDevelopmenttheir own version, first seen Mar 30, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- MooseDesign1/DDD-DesignDrivenDevelopment★ 9same 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 repository3 other files it gives its agents.
- curateSkill
- index-memorySkill
- using-memoboxSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Write a Memory Mail only for a durable, verified outcome.
- Distinctive: line 12
Write only when at least one of these is true:
- Distinctive: line 24
Keep one coherent durable outcome per record.
- Distinctive: line 25
Create a concise subject and a one-sentence summary useful from the index alone.
- Very specific: line 27
If this result replaces an older project memory, add one --supersedes <id> per replaced record.
- Very specific: line 28
Add one --source-ref "memobox:<id>" for each previously stored project memory that materially influenced this result, or --source-ref …
- Distinctive: line 30
Run, omitting empty flags:
- Very specific: line 52
Never store secrets, credentials, private tokens, personal data, confidential raw content, or unredacted logs.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Write MemoBox Memory
Write a Memory Mail only for a durable, verified outcome. Store decisions and reusable evidence, not a transcript dump. An existing .memobox directory is the opt-in signal; do not create one automatically.
Worthiness Gate
Write only when at least one of these is true:
- A durable decision, constraint, or project convention was established.
- A non-obvious cause was found and the fix was verified.
- Exact files, commands, URLs, or other artifacts will save meaningful investigation later.
- An unresolved risk or next action must survive the current session.
- The result is a useful cross-session or cross-agent handoff.
Write nothing when the task was a simple lookup, formatting or mechanical edit, contains sensitive material that cannot be safely excluded, produced only speculation, duplicates an existing memory, or has no likely persistent value. Do not create a record merely because the task ended or merely to log that another memory was opened.
Steps
- Keep one coherent durable outcome per record; most tasks should write zero or one record.
- Create a concise subject and a one-sentence summary useful from the index alone.
- Include verified context in
--body; put decisions, artifacts, risks, and next actions in their structured flags. When recency matters, set--last-verified-at; set--valid-untilonly when there is a real review horizon. - If this result replaces an older project memory, add one
--supersedes <id>per replaced record. MemoBox will link the new record and mark those exact sourcesstale; review the old bodies before doing this. - Add one
--source-ref "memobox:<id>"for each previously stored project memory that materially influenced this result, or--source-ref "memobox-global:<id>"for global memory. Do not cite ids that were merely opened. - Confirm
command -v memobox. In a MemoBox source checkout only, usePYTHONPATH=src python3 -m memobox.clias the fallback. - Run, omitting empty flags:
memobox --store .memobox write \ --subject "<short title>" \ --summary "<index-level summary>" \ --project "<project>" \ --team "<team>" \ --role "<role>" \ --tags "<comma,separated,tags>" \ --body "<verified context and result>" \ --decision "<decision worth preserving>" \ --last-verified-at "<ISO-8601 date or timezone-aware datetime>" \ --valid-until "<ISO-8601 review horizon>" \ --supersedes "<replaced-memory-id>" \ --artifact "file:<exact path or evidence URI>" \ --risk "<remaining caveat>" \ --next-action "<follow-up if any>" \ --source-ref "memobox:<reused-memory-id>" \ --json - Confirm the returned id exists in
.memobox/mails/<id>.json; if--supersedeswas used, confirm the exact old records are nowstalein the index.
Never store secrets, credentials, private tokens, personal data, confidential raw content, or unredacted logs. Use --raw-trace-file only when the user explicitly wants the evidence retained and it has been checked for sensitive data.
PreCompact(auto) is a safety net, not the primary write path. Its needs_review checkpoints may be partial and should not replace a deliberate, structured end-of-task Memory Mail.
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.

