/memory-kit:code-syncfrom Multi-Agent Driven Development Kit
Reconciles project documents (specs, README map) with current code after merges or builds. Updates spec statuses (building→done/stale), ratifies assumed specs, and verifies READMES. Surgical edits only.
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.
close-session reconciles the SESSION with memory. This reconciles a PROJECT's documents with
the CODE: every claim a spec still makes is checked against what is in the tree right now.
Two rails hold the whole skill up. Evidence, never a claim — a spec becomes done only from
a gate YOU ran in this session or a Verified cell someone already filled. Surgical edits
only — the only things you write are a status value, a Verified cell, one Stale since:
line, a map row, Last verified:, and a BACKLOG Done line. Everything else keeps its bytes.
Glob projects/*/README.md. If the repo keeps its documents elsewhere, read the root
CLAUDE.md / README.md for the docs home and use the map it names. Nothing found → say so
and stop. This skill never scaffolds.**Workflow tier:** line, which sets how much evidence a done needs:| Tier | Evidence a done needs |
|---|---|
prototype | the gate output, run by you |
alpha | + an integrator acceptance walk named in the Verified cell |
beta | + a qa/qa-run-*.md record and tests naming each AC-n |
ga | + a review pass and a document entry for the change |
Read the header of every plans/*.md (**Created:** YYYY-MM-DD · **Status:** …; one grep over
the folder is enough). A plain Status: … line counts too, and a spec with no Created: takes its
date from a YYYY-MM-DD-<slug>.md file name — the SessionStart spec flags read them the same way.
A spec with no status line at all is counted as no status in the table, never guessed. Statuses are draft · decided · building · done · assumed · stale. Build the working table: spec · status · created · age in days.
building goes to step 2, assumed to step 3. draft, decided, done and stale are counted
and left untouched. A superseded spec (an older kit's status) is counted and named under Heads up
as one to delete — reference/doc-governance.md R3.
building spec against the codeRead its Acceptance table and its ## Gates block in full. For each AC-n row hunt evidence in
this order and stop at the first that holds:
Verified cell is already filled (date + pointer) → taken as is;grep -l "AC-3" projects/<name>/qa/qa-run-*.md — and it
records a pass;## Gates block yourself, from the repo root,
and read the output. A gate you did not run is not evidence.Report per AC: evidence found (what · where) or missing. Then exactly one of:
done and fill each Verified cell you
earned with YYYY-MM-DD · <the command you ran, or the record>. Cells already filled stay as
they are.Glob/Grep each one. A named file gone, a symbol renamed, a signature the spec
depends on changed → set the status to stale and append, directly under the status line, one
line: **Stale since:** YYYY-MM-DD — <reason, file:line>. A stale spec is never also done.building exactly as it is and name what is missing: which AC-n,
and what evidence would settle it. Half-evidence is not a flip.assumed specs owed ratificationAn assumed spec is an executor's recorded override, not a decision. List every one of them:
| Assumed spec | Parent spec | Owed decision | Authorized by | Age |
|---|
Take Owed decision from the file's ## Owed decision section, one line, and the authorizer from
its header. Print the table under the heading Owed ratification and recommend which to take
first (the oldest, or the one whose Code area the current work touches).
Never flip or edit an assumed spec yourself. The kit has no architect skill: the main
session deliberates, then either writes the real spec and deletes the assumed one (its live
references repointed in the same change), or confirms the assumption and flips it to decided. Your output is that agenda, nothing more.
A task moves to ## Done only when BOTH hold: its **Spec:** points at a spec you flipped to
done in step 2, AND every box in its Acceptance list is already ticked. Then move it as one
line, newest first, in the file's own format:
- [YYYY-MM-DD] T-NNN — <its one line> · verified by `<the gate you ran>`
Everything else in that file — priorities, ordering, wording, TODO / IN PROGRESS / BLOCKED
statuses — is untouched. Never tick an acceptance box yourself: an unticked box is the
integrator's open question, not your paperwork.
Last verifiedFor every document class that now has files on disk but no row in the map table, add the row
(Class · Path · Written by), using the classes the project template already names: Tasks ·
Plans / specs · Research + evidence · Decisions ledger · Review-finding classes · QA protocol +
runs · Client materials. An empty folder is not a row. A row that points at the wrong place is
the integrator's call — report the mismatch, don't repoint it. Then set **Last verified:** to
today. Nothing else in the README changes.
Four lines, the kit's shape:
N specs reconciled: a done · b stale · c still building · d assumed owed.building spec, or the assumed spec to ratify first.stale or one is left to delete — one line each, spec + reason.With the argument --dry-run — or when the user says "just show me" / "покажи, не трогай" — do
the whole walk and run the gates (reading is not writing), but print the plan of edits as a
table (file · line · from → to) instead of applying it. Nothing is written, not even
Last verified:. Close with the same four-line report plus the command to run it for real.
done from a claim — not an executor's report, not a subagent's summary, not
"the tests should pass". Run the gate yourself (reference/orchestrator-fact-check.md).assumed spec. You list it; the integrator decides..claude/memory/MEMORY.md, context/handoffs/, knowledge/ or
.claude/rules/ — promotion lives in /memory-kit:close-session, on the user's yes.reference/doc-governance.md,
R3). You name it under Heads up; stale is a status you set, not a removal.draft, decided, done or superseded spec at all — they are not yours
to reconcile.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"./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./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