agentleFS
study8677study8677/memobox/skills/using-memobox/SKILL.md

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.

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
  1. Very specific:

    Use MemoBox as an opt-in, index-first local file protocol.

    line 8
  2. Very specific:

    If .memobox is absent, continue the task without MemoBox.

    line 16
  3. Distinctive:

    Read only the chosen bodies:

    line 25
  4. Distinctive:

    Read raw trace only when the task requires source evidence:

    line 29
  5. Distinctive:

    Read the global index when the user asks for prior/cross-project experience, when the project index has no useful record for a repeatable …

    line 34
  6. Very specific:

    Keep global provenance separate: track opened_global_memory_ids and reused_global_memory_ids.

    line 39
  7. Distinctive:

    Write zero records when the task was simple, sensitive, speculative, already captured, or produced no durable insight.

    line 44
  8. Distinctive:

    Keep one coherent durable outcome per record.

    line 45
  9. Very specific:

    Before writing, confirm the CLI is available with command -v memobox.

    line 46
  10. Distinctive:

    Use structured fields instead of a transcript dump:

    line 47

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 .memobox directory 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.json before 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 .memobox is absent, continue the task without MemoBox. Initialize it only when the user explicitly opts in.

Start-Of-Task Read Loop

  1. Confirm the project is opted in and read the index:
    test -d .memobox && cat .memobox/index.json
  2. Let the model inspect subjects, summaries, tags, status, and timestamps and choose which ids, if any, merit opening. MemoBox makes no relevance decision.
  3. Read only the chosen bodies:
    cat .memobox/mails/<memory-id>.json
  4. Read raw trace only when the task requires source evidence:
    cat .memobox/traces/<memory-id>.jsonl
  5. Track opened_memory_ids separately from reused_memory_ids. A memory counts as reused only if it materially changes the plan, decision, implementation, or verification.
  6. 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"
  7. Keep global provenance separate: track opened_global_memory_ids and reused_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

  1. 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.
  2. 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.
  3. Keep one coherent durable outcome per record; most tasks should produce zero or one record.
  4. Before writing, confirm the CLI is available with command -v memobox. In a MemoBox source checkout only, the fallback is PYTHONPATH=src python3 -m memobox.cli.
  5. Use structured fields instead of a transcript dump:
    memobox --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
    Repeat --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.
  6. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.