/wiki-sdd:handofffrom wiki-sdd
Closes a session by rewriting the primer from corrected truth after a retro, then running a status sweep and reconciling the Story Index. Operator-invoked via /handoff.
Ships in wiki-sdd. 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.
The primer is the first thing a cold session reads, and the session
that writes it is the one with the blind spots. So the primer is
written once, at the close, after a retro has surfaced what the
session did not claim — and the write is gated: retro-before-primer
denies it until a retro note postdates the scope's last edit. The
handoff is the operator's ceremony, never the agent's; the retro is
the grooming step that precedes it.
WIKI_SCOPE: <scope> declared in the project instructions. If
missing, suggest /wiki.projects/<scope>/notes/retro-YYYY-MM-DD.md whose
updated is at or after the newest page under the scope's plan/,
spec/, adr/, and intent/ folders. Otherwise stop and run
/retro first.projects/<scope>/primer.md.Read the newest retro note's updated and the newest updated under
the four working folders. If the retro is older, stop: /retro, then
back here. The pretool gate enforces this deterministically; checking
first avoids a denied write mid-ceremony.
Write the primer first — the gate compares the retro note against the scope's newest page, and the sweep and reconcile below move story clocks past it. The primer's reader is an agent: prime inlines it into the next
session's context. Write for that reader. Activate the signal-dense
register (/signal-dense) before drafting, and read
projects/<scope>/glossary.md first — every term the primer
uses is a canonical handle from there, typed the way the glossary
types it, never a synonym or a narrative paraphrase. Direct
predicates, no hedging, no register shifts.
Four sections, about 300 words, updated from the clock:
sightings. A slice named where one is in
progress.The rule: nothing in the primer that a query or another surface
derives. Invariants live in the project instructions; versions and
release state in the changelog and tags; counts and active ADRs come
from prime. Write it through the harness's file tool or with a
literal vault path, so the gate and the resync both see the write.
Slices tick during a session, and a story whose slices and acceptance
are all resolved archives at the last tick (/tdd). The sweep catches
what that missed: list every story whose slices are all resolved —
ticked, or declined with recorded rationale — and whose status is
still active or draft. For each,
name any outstanding verification debt from its Decisions or its
intents. Propose the set. Flip status: archived only on the
operator's approval, with updated from the clock
(date -u +%Y-%m-%dT%H:%M:%SZ). The operator decides whether debt
blocks closure. A scope that skips this buries live work under
finished work.
For each plan under the scope, the Story Index rows match story
frontmatter: state, category, archived stories marked as such, and a
row for every story promoted from an intent this session. The plan's
updated moves only if a row changed.
kmd config: the synced line advanced past the primer write. If
not, kmd validate, fix findings, kmd sync.
One line, last: Next session starts with: <the work in plain words> (story-<slug>, slice N) — or the top intent, named the same way, when
nothing is in progress.
Visible response: the sweep proposal and its outcome, the Story Index changes, the primer's word count, the sync confirmation, and the next line. No separate report.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
session-handoff, primer, retro, story-index, project-management
10 skills in this plugin
/intentInterview-style grilling that captures intent, sharpens vocabulary, and scaffolds wiki structure for a project scope. Use when the user wants to start a new workstream, refine an existing scope's intent, stress-test a plan against the project's domain language, or write a `glossary.md` (terms + relationships). Walks one question at a time, recommends an answer for each, and creates artifacts (`index.md`, `primer.md`, `glossary.md`, lazy ADRs) inline as decisions crystallize. Auto-detects greenfield (scope folder missing → scaffold) vs brownfield (scope exists → refine + cross-reference code). Triggers on phrases like "grill me", "grill the plan", "let's nail down what we're building", "set up a new scope", "refine the intent", "capture the intent", "write an intent", or `/intent`./retroThis skill should be used for a session retrospective at any point in a session — mid-session when drift is suspected, after a bug-hunting detour, after compaction, before a release cut, and always before /handoff. Asks three questions — 'What are you least confident about?', 'What's the biggest thing we're missing? What don't I realize?', and 'Where are we relative to the slice we started, and what were the detours?' — then works each finding while the context is hot — fixes it, prepares it up to the operator's approval, or asks — and files an intent only for what is blocked, with the blocker named — never a new story and never the primer. Use when the user says "/retro", "run the retro", "lightweight retro", "mid-session retro", "session retro", "retro protocol", "check for drift", "what are we least confident about", "what are we missing", or "what don't you realize".npx claudepluginhub bartolli/kmd --plugin wiki-sdd