done

done is a command for Claude Code from fockus/skill-memory-bank. It costs 40 tokens per session (2,068 once invoked), scanned A, original, MIT.

A session-ending command for a project that uses a memory bank, a set of files storing project context and progress. It runs required checks, updates the core memory-bank files and adds a progress note.

In plain words
What is it for?
Use it when finishing a work session to run tests and rule checks, scan for placeholders, update project notes and append progress information.
Why use it?
It provides a defined closing step for recording the current state and checking for problems. If no memory bank exists, it reports that state without making those updates.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Good fit Use it when finishing a work session to run tests and rule checks, scan for placeholders, update project notes and append progress information.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fockus/skill-memory-bank/done
Install

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.

Clone the repo
git clone --depth 1 https://github.com/fockus/skill-memory-bank

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for done

README.md
[![agentmods](https://agentmods.dev/badge/commands/fockus/skill-memory-bank/done/github.svg)](https://agentmods.dev/commands/fockus/skill-memory-bank/done)
Your own site
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/done"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/done/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for done

Your own site · 80×15
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/done"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/done.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,068 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.02068
Opus 5.5 $0.00016 $0.00827
Sonnet 5.5 $0.00008 $0.00414
Haiku 4.5 $0.00004 $0.00207

Measured 13d ago against content hash 5f21a28ebdea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 13d 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.

commands/done.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 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 (in scripts/_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). All mb-* 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.

Set SKILL_DIR to the absolute directory containing the loaded SKILL.md (or use MB_SKILLS_ROOT), and MB_AGENT to the current host id for global registry lookup. Keep cwd at the project. Include this setup in the same shell invocation as each command below.

SKILL_DIR="${MB_SKILLS_ROOT:-${SKILL_DIR:?Set SKILL_DIR from the loaded skill path}}"
source "$SKILL_DIR/scripts/_lib.sh"
BANK="$(mb_resolve_path)"
if [ ! -d "$BANK" ]; then
  echo "[MEMORY BANK: ABSENT]"
  exit 0
fi
BANK="$(cd "$BANK" && pwd -P)"
export MB_PATH="$BANK"

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 "$SKILL_DIR/scripts/mb-done-gates.sh" --mb "$BANK" --dir "$PWD"

It runs three independent checks in sequence (each emits a structured JSON line):

  1. 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.
  2. Rules (deterministic) — scripts/mb-rules-check.sh on the working tree; a CRITICAL violation fails the gate.
  3. Placeholders — scripts/mb-rules-check.sh --placeholders-only scans staged + uncommitted source for TODO|FIXME|XXX|...|pseudocode; any hit fails the gate. The deny list is configurable via pipeline.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 "$SKILL_DIR/scripts/mb-done-gates.sh" --mb "$BANK" --dir "$PWD" --force --reason "<one-line>":

  • --reason is mandatory when forcing; the script refuses --force without it (non-zero exit, no mutation).
  • On a forced run with failures the script appends ### NOTE: /mb done --force — gates failed: <gates>: <reason> to progress.md under today's ## YYYY-MM-DD heading (creating the heading if absent), writes the failure detail to <bank>/tmp/done-gate-failure-<ts>.json, then exits 0 so the close can proceed on the record.
  • Config lives in pipeline.yaml:done_gates (enabled, required, allow_force). When allow_force: false, --force is rejected outright.

If gates pass (or are forced), continue with the rest of this flow.

Read the full file on GitHub · 90 lines

Changes

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.

  1. 13d ago Changed · +24 tokens per session 5f21a28ebdea
  2. 1mo ago Changed · +15 lines 021added8a41
  3. 1mo ago Changed · +1 lines 80f0581e89f2
  4. 1mo ago First seen · 74 lines · 16 tokens per session scan A c81f91e0fab6

Subscribe to this mod's changes

done is a command published in the GitHub repository fockus/skill-memory-bank (28 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 2,068 once invoked, about $0.0002 per session on Opus 5.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.