/mimi:mimi-closefrom mimi
Close a work session by writing what this session learned into the project's mimi/ folder (ISSUES, decisions, memory/, STATE), then index and check it.
Ships in mimi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bring the project's memory up to date with this session before it ends. Follow every step in order. Write only what this session actually produced. Never write something because a file has an empty section.
mimi/MIMI.md does not exist, stop and tell the user to set the project up first with
the mimi-start skill. Do not create files here.memlayer.py: its path is on the Find rot: line of mimi/MIMI.md. Call it $ML below. Run it
with python, or python3 where python is missing.mimi/. Paths below are written from the project root..harness/ directory untouched.Collect candidates from three sources:
git status --short, git diff --stat, and git log --oneline for this session's commits.mimi/STATE.md, and the files the work touched, found through the
mimi/MIMI.md index.For each candidate, ask: could someone learn this in under a minute by reading the code or running a command? If yes, drop it. Ask it of each fact on its own, not of the message the fact came in. A number, date, measurement, deadline, decision or constraint that a person stated is never derivable from the code, even when the code touches the same topic: "CI runs Oracle 19c on a self-hosted runner with a 45-minute timeout" keeps the runner and the timeout even though the code shows 19c is supported. Also drop:
Scope is never a reason to drop. A fact the user states about their own deployment, infrastructure, vendors, team, owners, deadlines or downstream use of this code is project memory, even when this repository's code never touches it: "our ingest service runs this on Lambda, where only /tmp is writable" is kept. The code cannot tell a future session that, so it is exactly what memory is for. The only reasons to drop are the three above, the one-minute test, and nothing checkable behind the fact. A fact a person states is checkable as "told ".
A session with nothing durable in it writes nothing to mimi/ISSUES.md, mimi/decisions.md or mimi/memory/. That is
a correct outcome.
| Candidate | Goes to | Form |
|---|---|---|
| A bug found or fixed | mimi/ISSUES.md | Append in the file's existing entry format. With none, use ## ISS-<n> — <title> with Symptom: (exact text), Cause:, Fix: (commit hash, or uncommitted: <files>), Test:, Status: |
| A choice someone could argue again | mimi/decisions.md | Next DEC-<n>: Why:, Rejected:, Reverse if:, Date:. If it replaces an older entry, mark that one Superseded by DEC-<n> and leave its reasoning intact |
| A correction to something memory already says | Wherever the old value lives | Grep every memory file for the old value and fix it in place, in all of them. Never add the new value beside the old one |
| An external fact, a measurement, a trap, a non-obvious why | mimi/memory/<topic>.md | Under its own ## heading, named the way a future task would describe it (error text, library, table, command), not by topic. Cite a commit, issue ID, command, or date with sample size. Set Last verified: to today only if this session actually checked the file's facts; otherwise leave the date |
mimi/memory/<topic>.md only when
no file fits. Split by external boundary or subsystem, never by code folder, and add its line to the
mimi/MIMI.md index.mimi/memory/.python "$ML" index .
Run it now, before mimi/STATE.md is written, so the state is written against the final index.
mimi/STATE.mdRewrite it entirely, keeping the header comment under # State. Do not append.
Goal: one line, unchanged unless the goal changed.Deployed: what is deployed and where, or unknown.Broken: only what is broken now and was observed, with the symptom.Open threads: work started and not finished.Next 3: concrete next actions.Last updated: today.## Last session (<today>), about 10 lines, rewritten every time:
Branch: the current branch.Uncommitted: the project files from git status --short, run now, or none. mimi/ is git-ignored
by default, so it does not appear there.Stopped at: the task in one line: which steps are done and which step is next.Tried, failed: approaches that were actually tried this session, or that the user said were
tried, each with the reason. These are the only record of dead ends, so never drop one the user
mentioned. Write none if there were none.Resume with: the first concrete action for the next session, such as a command or a file to
open.mimi/STATE.md says what is happening, not what is known. A fact already written to mimi/memory/,
mimi/decisions.md or mimi/ISSUES.md is referenced there by file (see mimi/memory/client-db.md), not
repeated.
Remove anything finished. Stay within 60 lines. Only claim something works if it ran in this session.
A plan the user gave for multi-step work stays in Stopped at and Next 3 until it is done.
Then run python "$ML" check ., fix every line it prints, and run it again until it prints
memory layer clean.
mimi/. It must appear in one memory
file, plus at most its mimi/MIMI.md index line. Merge any duplicate.mimi/STATE.md holds no finished work.Tell the user:
check.
Do not commit unless the user asks. mimi/ is git-ignored by default. If the user deleted
mimi/.gitignore to share memory and asks for a commit, name the project facts in the message, never the
memory file names.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/mimiSet up, adopt, or audit a project's mimi memory (the mimi/ folder - MIMI.md map, STATE.md, ISSUES.md, decisions.md, memory/<topic>.md - loaded from CLAUDE.md, AGENTS.md or GEMINI.md) so the agent checks memory before grepping the repo. Use when the user says "/mimi", "mimi", "set up memory", "add the memory layer to this project", "adopt memory layer", "check memory for rot", or starts a new project./mimi-loggingShow what mimi costs and saves in this project, from its Claude Code session logs, and save the report under mimi/logs/. Covers memory size, tokens loaded every session, tokens and searches per prompt before and after adoption, and which memory files get read./mimi-startSet a project up with mimi, once. Run again later only when you want a brief of where the last session stopped; the memory loads into every session without it.npx claudepluginhub candybutcher27/candy-skills --plugin mimi