/memory-kit:memory-auditfrom Multi-Agent Driven Development Kit
Audits MEMORY.md for oversized sections, settled patterns, session blocks, stale entries, and rule restatements. Produces a move plan for approval and executes approved moves atomically.
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.
This is the cap-trip response, not the daily ritual. /memory-kit:close-session runs every
session and captures; this runs when the hot cache has actually outgrown itself and something
must LEAVE it. Keeping them separate is the point: a daily ritual that also has to do surgery
becomes a ritual people skip.
Always pause for approval before writing. The user talks; you write — including here.
.claude/memory/MEMORY.md — read in full.knowledge/concepts/*.md — filenames + first 5 lines, for duplicate detection (the directory
may not exist yet; the first move creates it).context/handoffs/ — to confirm a session narrative already lives there → drop, not move.context/audits/memory-audit-deferred-*.md, if one exists — the candidates the
previous audit left; start from them.Scan by ## heading (and ### inside a long section). For each, count lines and mark exactly
one action. Also read the project's CLAUDE.md, the .claude/rules/*.md without paths: and
the plugin's reference/ titles — you need them for restates-rule.
| Mark | When |
|---|---|
move (create) | a settled pattern (confirmed on 3+ distinct dates) with >25 lines of reference detail |
move (merge) | same, but a concept article on the topic already exists |
session-block | the heading names a session or a date, not a topic (### s66 (2026-09-25), ## Session 65 wrap, ## Findings [date] — …; the SessionStart hook flags these) → dissolve by topic: each settled lesson → one line under its topic heading or a concept; the rest → drop |
drop | a per-session chronicle — it already lives in a handoff; distil at most one settled line |
restates-rule | the entry says what CLAUDE.md, an always-loaded rule or a reference/ file already says → drop, or one pointer line if the link is not obvious. The agent reads those files every session; a second copy only drifts |
point to SSOT | a derivable number — price, count, version, limit — whose source of truth lives elsewhere (a price table in code, a config, a vendor page) → replace the value with a pointer to that source (reference/doc-governance.md R1). A copied number outlives the thing it described |
update in-place | stale: names a deleted file, a closed ticket, a superseded decision |
simplify | true and useful, but three times longer than it needs to be |
keep | earns its lines |
| # | Section | Lines | Action | Target | Reason |
|---|---|---|---|---|---|
| 1 | … | N | move / merge / session-block / drop / restates-rule / point to SSOT / simplify / keep | knowledge/concepts/<slug>.md or — | … |
Close the table with: estimated line savings, and the projected line/byte count afterwards against the caps (180 lines / 32 KB / 3000 chars per line). Target well below the caps — at most ~60 % of the byte cap (≈ 20 KB). A cache audited to «just under» refills past the cap within days: the cap works as a fill line, not a ceiling. If the plan does not reach the target, say which sections keep it above and why they earn their bytes.
Print the plan and ask for approval. Wait for an explicit yes or edits. No writes before that.
knowledge/concepts/<slug>.md with frontmatter matching
knowledge/index.md's spec, then add its one-line entry to that index in the same pass.[since YYYY-MM-DD]); the line it replaces is deleted — no ## History section, the past lives in git.
Never append a dated «From MEMORY.md» block at the end — appended blocks turn an article into a log nobody can
read as current truth. Never duplicate a section that already says the same thing.Replace the MEMORY.md current-state header (≤3 lines, dated — or the one pointer line to the newest
handoff, when the project's session-close document sets that form). Report before/after line and byte
counts, every file touched, and save declined candidates to
context/audits/memory-audit-deferred-YYYY-MM-DD.md (create the dir if absent) so the next audit
starts from them. Not in context/handoffs/: the SessionStart hook injects the newest file there
as the session handoff, so a deferred list saved there replaces the real handoff at the next start.
context/audits/ as above and stop.drop.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub awrshift/agent-memory-kit --plugin memory-kit10 skills in this plugin
/close-sessionEnd-of-session ritual — audit today's patterns against accumulated memory, propose promotions, refresh MEMORY.md, and write the session handoff. Use when the user says "/memory-kit:close-session", "закрой сессию", "закрываем", "we're done for today", "wrap up"./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.
/qa-sweepRun a multi-lens agent QA sweep of the RUNNING product: spawn `qa` agents (one per lens — user-flow · edge-state · honesty · contract · ux-critique), collect their structured findings, integrator-verify the load-bearing ones, and land verified findings as backlog tickets + a run record in the project's qa/ folder. Use whenever the user asks to QA, test, or probe the product from the user's side — "qa sweep", "test the UI", "walk the flows", "find inconsistencies", "check how this looks to a client" — and proactively after integrating any large UI slice, before a milestone, or when a manual walk found one bug and siblings are likely. Trigger even when the user names only one angle (e.g. "check the API errors") — pick the matching lens subset. NOT for unit testing (your test suite does that) and NOT a replacement for the integrator's own acceptance walk.
/second-opinionCross-check the agent's own answer with independent reviewers before bringing it to the user. Use when the user says 'second opinion', 'sanity check', 'cross-check', 'am I missing something', 'stress-test', 'devil's advocate', 'run a full review', 'this is important', 'high-stakes', 'help me choose between', 'critique this', or similar. Three review styles: Devil's Advocate (single critique), Boardroom Debate (parallel multi-reviewer validation), Round-Table (multi-round brainstorm for choosing between paths). Not for factual lookups — use WebSearch for those. Skip this skill when a user-level review board or second-opinion skill exists — use that one instead./session-reviewEnd-of-session adversarial review loop. Assemble the session's work into a role-assigned, self-contained brief, then run independent reviewers in parallel — an isolated code-reader (the idea-validator agent) that reads the ACTUAL files and web-checks technology currency, plus an external-family model if you have one — synthesize where they agree vs diverge, apply the cheap-safe fixes immediately, record a measurable plan for the rest, and CHALLENGE reviewer claims you disagree with (never blind-accept). Use at the close of a substantive coding or design session, when the user says "session review", "review my session", "stress-test this session", or types /session-review. Skip for trivial one-off edits.Other plugins' skills for the same job