Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/fockus/skill-memory-bank/donegit clone --depth 1 https://github.com/fockus/skill-memory-bankWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00016 | $0.01562 |
| Opus 5 | $0.00008 | $0.00781 |
| Sonnet 5 | $0.00003 | $0.00312 |
| Haiku 4.5 | $0.00002 | $0.00156 |
Grade A, and why
done scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Canonical session-end command. /mb done is an alias that dispatches here.
Storage note. Resolve the active bank path through
mb_resolve_path(inscripts/_lib.sh). Bank may be local (./.memory-bank/), global (<agent_config>/memory-bank/projects/<id>/.memory-bank/, registered via--storage=global), or legacy (.claude-workspace). Allmb-*scripts called below already respect the resolver — pass--mb <resolved-path>when needed. If[MEMORY BANK: ABSENT], this command is a no-op except for surfacing the absent state.
0. Mandatory done-gates (runs even without a plan)
Run the gate set first — these are mandatory whether or not a plan was active:
bash scripts/mb-done-gates.sh --mb .memory-bank
It runs three independent checks in sequence (each emits a structured JSON line):
- Tests — dispatches the test runner (scope=touched if a baseline commit is inferable, else scope=full).
not_applicable(no stack detected) counts as PASS with a logged WARN. - Rules (deterministic) —
scripts/mb-rules-check.shon the working tree; a CRITICAL violation fails the gate. - Placeholders —
scripts/mb-rules-check.sh --placeholders-onlyscans staged + uncommitted source forTODO|FIXME|XXX|...|pseudocode; any hit fails the gate. The deny list is configurable viapipeline.yaml:done_placeholders.deny.
Exit semantics: exit 0 only when every required gate passes. On any failure the script exits 2 and /mb done must stop — do not close the session.
Force override — bash scripts/mb-done-gates.sh --mb .memory-bank --force --reason "<one-line>":
--reasonis mandatory when forcing; the script refuses--forcewithout it (non-zero exit, no mutation).- On a forced run with failures the script appends
### NOTE: /mb done --force — gates failed: <gates>: <reason>toprogress.mdunder today's## YYYY-MM-DDheading (creating the heading if absent), writes the failure detail to.memory-bank/tmp/done-gate-failure-<ts>.json, then exits0so the close can proceed on the record. - Config lives in
pipeline.yaml:done_gates(enabled,required,allow_force). Whenallow_force: false,--forceis rejected outright.
If gates pass (or are forced), continue with the rest of this flow.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 74 lines · 16 tokens per session scan A c81f91e0fab6
done is a command published in the GitHub repository fockus/skill-memory-bank (25 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 1,562 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
todo
The quality-gated task list: tasks with real descriptions, testable acceptance criteria, and evidence — a task only closes when the controller agrees it is done.
release
The pre-tag controller: version sync, changelog, clean tree, gate, and suite — every failure listed, the tag printed, never run.
security
The security pass: secrets (blocking), SAST, dependency vulns — plus the index's entry points to review from.
init
Install the formatters this repository needs, with every command visible before it runs.
vitaecontext-github
Audit or improve GitHub profile and repository SEO.
test
Run the test suite for the given package and summarize failures.