using-memobox
Skill2 starsChanged 5 months agoMITView on GitHub
Use automatically for non-trivial work when the current project already contains .memobox, or when the user explicitly asks to read, write, or maintain MemoBox memory.
In this repository3 other files it gives its agents.
- curateSkill
- index-memorySkill
- write-memorySkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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
Use MemoBox as an opt-in, index-first local file protocol.
- Very specific: line 16
If .memobox is absent, continue the task without MemoBox.
- Distinctive: line 25
Read only the chosen bodies:
- Distinctive: line 29
Read raw trace only when the task requires source evidence:
- Distinctive: line 34
Read the global index when the user asks for prior/cross-project experience, when the project index has no useful record for a repeatable …
- Very specific: line 39
Keep global provenance separate: track opened_global_memory_ids and reused_global_memory_ids.
- Distinctive: line 44
Write zero records when the task was simple, sensitive, speculative, already captured, or produced no durable insight.
- Distinctive: line 45
Keep one coherent durable outcome per record.
- Very specific: line 46
Before writing, confirm the CLI is available with command -v memobox.
- Distinctive: line 47
Use structured fields instead of a transcript dump:
≈ “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
Using MemoBox
Use MemoBox as an opt-in, index-first local file protocol. Read .memobox JSON files directly with Bash; use the memobox CLI only for writing and maintenance. MemoBox exposes memory structure. It does not rank memories, decide relevance, or orchestrate the task.
Activation Contract
- An existing
.memoboxdirectory is the project's opt-in signal. Do not initialize one merely because the plugin is installed. - At the start of every non-trivial task in an opted-in project, inspect
.memobox/index.jsonbefore broad investigation. - Skip the MemoBox loop for simple lookups, formatting, one-line or mechanical edits, and tasks with no likely cross-session value.
- Skip MemoBox for security-restricted or sensitive work unless the user explicitly authorizes safe, redacted persistence. Never persist secrets, credentials, tokens, personal data, or confidential raw content.
- If
.memoboxis absent, continue the task without MemoBox. Initialize it only when the user explicitly opts in.
Start-Of-Task Read Loop
- Confirm the project is opted in and read the index:
test -d .memobox && cat .memobox/index.json - Let the model inspect subjects, summaries, tags, status, and timestamps and choose which ids, if any, merit opening. MemoBox makes no relevance decision.
- Read only the chosen bodies:
cat .memobox/mails/<memory-id>.json - Read raw trace only when the task requires source evidence:
cat .memobox/traces/<memory-id>.jsonl - Track
opened_memory_idsseparately fromreused_memory_ids. A memory counts as reused only if it materially changes the plan, decision, implementation, or verification. - Read the global index when the user asks for prior/cross-project experience, when the project index has no useful record for a repeatable task, or when the task is likely to reuse portable setup, authentication, CI, deployment, plugin, toolchain, or incident knowledge:
test -f "${MEMOBOX_GLOBAL_STORE:-$HOME/.memobox-global}/index.json" && \ cat "${MEMOBOX_GLOBAL_STORE:-$HOME/.memobox-global}/index.json" - Keep global provenance separate: track
opened_global_memory_idsandreused_global_memory_ids. A global record still counts as reused only when it materially changes the work. Do not load global bodies merely because the index exists.
End-Of-Task Write Loop
- Apply a strict worthiness gate. Write only a durable decision or constraint, a non-obvious cause and verified fix, reusable evidence or exact artifacts, an important unresolved risk, or a cross-session handoff.
- Write zero records when the task was simple, sensitive, speculative, already captured, or produced no durable insight. Do not write merely because the task ended or merely to record usage.
- Keep one coherent durable outcome per record; most tasks should produce zero or one record.
- Before writing, confirm the CLI is available with
command -v memobox. In a MemoBox source checkout only, the fallback isPYTHONPATH=src python3 -m memobox.cli. - Use structured fields instead of a transcript dump:
Repeatmemobox --store .memobox write \ --subject "<short title>" \ --summary "<index-level summary>" \ --project "<project>" \ --body "<verified context and outcome>" \ --decision "<durable decision>" \ --artifact "file:<exact path or evidence URI>" \ --risk "<remaining caveat>" \ --next-action "<unfinished follow-up>" \ --source-ref "memobox:<reused-memory-id>" \ --json--source-ref "memobox:<id>"for every materially reused project memory. Use--source-ref "memobox-global:<id>"for a materially reused global memory. Omit fields that do not apply. - Confirm the returned id exists in
.memobox/mails/<id>.json.
Global Promotion Gate
Promote a project memory only when its lesson is verified, useful outside the current workspace, understandable without private repository context, and safe to expose to other local projects. Keep the global index deliberately small. Do not promote project status reports, one-off paths, speculative advice, secrets, personal data, or raw confidential evidence. Review the exact body before promotion and preserve the generated source reference back to the project store.
PreCompact Is Only A Safety Net
PreCompact(auto) may write a conservative needs_review checkpoint when .memobox already exists. By default it stores selected metadata and git state, not the full hook payload. It may not receive the full transcript and must not replace the deliberate end-of-task write loop. Curate or archive checkpoint records after review. Set MEMOBOX_PRECOMPACT_DISABLED=1 for sensitive sessions, MEMOBOX_PRECOMPACT_INCLUDE_PAYLOAD=1 only with explicit approval, and MEMOBOX_PRECOMPACT_INIT=1 only when the user explicitly wants automatic store creation.
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.

