/memory-kit:close-sessionfrom Multi-Agent Driven Development Kit
End-of-session ritual that audits patterns against accumulated memory, proposes promotions to rules or concepts, refreshes MEMORY.md, and writes a session handoff. Use when wrapping up work.
Ships in Multi-Agent Driven Development Kit. 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.
You close the session in four steps. Don't just dump — audit. Everything you write, you announce briefly; anything promoted to rules/concepts needs the user's verbal "yes" first.
A project may adapt the close. Its own close list is opened FROM these steps — each item says how a step is done in that project and what the project adds — never run instead of them. A step the list does not name is still done: a close run only from the project's list skips the repeat audit of step 2. (one project's working practice; no count)
Scan this session for observations worth keeping. Append each to .claude/memory/MEMORY.md
as a ONE-LINE [YYYY-MM-DD]-prefixed entry. Short, scannable, no essays (long rationale
belongs in a concept article, step 2).
### s66 (2026-09-25), ## Session 65 wrap): the date lives in each
line's prefix, the session narrative lives in the handoff (step 4). The SessionStart hook
flags such headings.[d1→d2]) — never stacked.
(one project's working practice; no count)CLAUDE.md, rules without
paths:) or a number whose source of truth lives elsewhere (a price table, a config) —
point at the source instead of copying the value.Read the date-tagged entries in MEMORY.md. Look for repetition: did this pattern appear on 3+ different dates? Surface 2-4 candidates, be specific: "noticed [date], [date], [date] you said X — codify as a rule or a concept article?"
knowledge/concepts/<topic>.md (facts + rationale; frontmatter per
knowledge/index.md spec) or .claude/rules/<name>.md (mechanical always/never constraint;
a rule is promoted on a family's 3rd counted occurrence — reference/review-loop.md §2 — or on
a user's correction). Update knowledge/index.md (one line per concept).reference/doc-governance.md — one SSOT per fact, and when
a fact changes you grep its restatements in the same pass. A product or architecture decision
goes to the ledger instead — projects/<name>/decisions-log.md, format in
reference/decisions-log.md. A plan, a spec, a research finding or a QA record is NOT memory:
it belongs in that project's folder, per the map in its README.md.The header (everything above the first ---) is «current state of work», at most 3 lines,
REPLACED every close — never a chronicle of past sessions. Per-session detail lives in the
handoff, not stacked in the header. A project may make the header one pointer line to the newest
handoff — then it is replaced only when it no longer points right; where the project's
session-close document sets the form, it wins.
A project that closes many sessions a day may run Step 2's 3-date audit once a day (the first
close after a set hour) instead of at every close; its session-close document says so.
When the project has its own context/handoffs/HANDOFF-TEMPLATE.md, copy it →
context/handoffs/<topic>-<YYYY-MM-DD>.md and fill that template's sections, whatever they are
named. Only when there is none, copy the plugin's templates/HANDOFF-TEMPLATE.md and fill its five
sections (what was done · where things stand · memory updates · next steps · opening note). The
SessionStart hook injects the newest handoff next time — this file IS the "remember where we left
off" mechanism. With parallel windows, the handoff carries no windows table — one line pointing at
the round file that holds each window's state (reference/window-cycle.md §7); a hand copy of that
state at the close is how a written-but-unsent brief once became «working».
experiments/*-YYYYMMDD/ older than 30 days → ask: still active
or close (distill → delete)?projects/*/BACKLOG.md task statuses reflect today's reality — a DONE
nobody verified is still IN PROGRESS.README.md map, and the map's Last verified is today's date.building after a merge, or any assumed spec → run
/memory-kit:code-sync (it reconciles statuses from repo evidence; this ritual does not).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub awrshift/agent-memory-kit --plugin memory-kit10 skills in this plugin
/code-syncReconcile the project's documents with what the code now shows, after a merge or at the end of a build: spec statuses (building → done only with a named gate, or → stale with the reason), assumed specs owed ratification, the project README map and its Last verified date. Surgical edits only. Use when the user says "/memory-kit:code-sync", "sync the docs", "sync specs with code", "синхронизируй доки с кодом", "что устарело в спеках", or right after merging an executor branch.
/documentWrite the human-facing prose about a change — PR body · changelog entry · release note · postmortem — and put it in the right file. Use when the user says "write the PR", "PR description", "PR body", "changelog", "changelog entry", "release note", "release notes", "postmortem", "write up the incident", "напиши PR", "описание PR", "чейнджлог", "релиз-ноут", "постмортем". Every draft is built ONLY from `git diff` / `git log` output this skill runs itself — never from the session's memory of what it did, never from what it intended. Writes no code, no tests, no specs; it never edits an implementation file and never edits a spec.
/memory-auditAudit MEMORY.md against the memory discipline — oversized sections, settled multi-session patterns that belong in knowledge/concepts/, session-headed chronicle blocks, restated rules, copied numbers, stale entries. Produces a move plan as a table for approval, then executes the approved moves atomically. Use when the SessionStart hook reports a tripped cap or session-headed blocks, when PreCompact blocks on an oversized cache, or when the user says "/memory-kit:memory-audit", "audit memory", "проверь память", "почисти память". Refuses only when no cap is tripped, no session block is flagged AND no settled-pattern candidate exists.Other plugins' skills for the same job