/wiki-sdd:retrofrom wiki-sdd
Runs a three-question session retrospective to catch drift, blind spots, and detours mid-session. Closes findings immediately or files an intent for blocked work. Use before handoff, release cuts, or after bug-hunting detours.
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 session that did the work is the worst judge of its own blind spots and the last to notice its own drift. Verification gates check what the session claimed; the retro asks what it did not claim, and whether the work still points at the slice it started on.
A retro is judged by what is true when it ends, not by what it wrote down. Right now the code is open, the measurements are fresh, and the operator is present. A finding filed for later is paid for twice: this session describes it, and a cold session rebuilds what this one already knew before it can start. So the product of a retro is findings closed. An intent is what is left when a finding cannot be closed here, and it says what stopped it.
It is a grooming step, cheap enough to run whenever drift is suspected,
not a closing ceremony. The session close is /handoff, which is gated
on a retro note newer than the primer.
WIKI_SCOPE: <scope> declared in the project instructions. If
missing, suggest /wiki.intent kind served: wiki://template/project/intent via MCP,
or kmd resource wiki://template/project/intent where the harness
exposes no MCP resources.notes/ folder for the dated retro note
(projects/<scope>/notes/retro-YYYY-MM-DD.md)./handoff — the handoff gate blocks
a primer write until a retro note is newer than the primer.Before answering anything, re-read the story and slice in progress from disk, and list the scope's open intents:
search(query, scope=<scope>, kind="intent");
CLI: kmd search "<terms>" --scope <scope> --kind intent.The re-read is the point. A degraded context cannot diagnose its own drift by introspection; reading the contract back is the cheapest refresh there is.
In order:
What makes an answer useful:
Each concern from questions 1 and 2, and each drift from question 3, is a finding. Take the most consequential first and carry each one as far as this session can. Use the first of these that closes it:
sightings and updated, and work it from that
page. A second page for one cause splits the evidence.Reading, searching, read-only queries, tests, dry runs that roll back, and edits to the repository and the wiki need no approval inside a retro. Work through ordinary obstacles such as a failing command or an unclear cause. Leave deliberate blockers alone and report them: an ADR gate, a file marked not to be touched, access that was withheld.
Record a change where it lives. A corrected assumption is corrected inline in its story, spec or ADR. A sequencing call or a risk that shapes what ships next is a Decisions entry in the owning story, with its falsification path. A detour classified decision names where it is recorded, and one classified done is the slice tick.
A slice owns its findings. A finding about the slice in progress is worked before the slice is ticked, and a ticked slice that a finding contradicts is fixed in the same session or unticked.
Three endings a retro avoids, because each hands hot work to a cold session: a list of findings with an intent for each; a list of decisions for the operator when none of them blocks the rest; a closing plan of next steps with none of them started.
An intent is a cold-start capture: its six sections hold what a later session cannot recover from the code. File one when the finding is real, the options above did not close it, and something specific stands in the way:
Use the template: status: draft, origin: retro, sightings: 1,
the six sections, about fifteen lines, a concrete Falsification path.
Open the Constraints section with Blocked by: and the blocker. "It
needs a decision" is not a blocker while the operator is present: ask.
Most retros file nothing, and that is a passing retro. A second intent
from one retro is a reason to check that it is not the first one's
cause seen from another side. When an open intent's fix turns out to be
within reach, make the fix and archive the intent with fixed_by
naming what proves it.
One note per day at projects/<scope>/notes/retro-YYYY-MM-DD.md, no
kind field, updated taken from date -u +%Y-%m-%dT%H:%M:%SZ. Each
invocation appends a section headed by the UTC time and a label, with
only the lines that have content:
## 14:30Z — mid-session, resolver
- Fixed: <one line each, with the check that ran>
- Pending approval: <one line each>
- Asked: <one line each>
- Decisions: [[story-<slug>]] § Decisions, sequencing of the engine publish
- Intents: [[intent-<other>]] sightings → 2; [[intent-<slug>]] filed, blocked by <what>
- Detours: <one line each, classified>
Ten lines or fewer, pointers only. The substance lives in the code, the stories and the intents. The note is the freshness signal the handoff and tag gates read, so its clock must move every time.
Write the response for someone who has not seen the tool calls. Lead with the outcome, in this order, leaving out what is empty:
Then the three answers, each with its location and what became of it,
and one line naming what the session is re-anchored on: the work in
plain words, then its address (story-<slug>, slice N).
/triage promotes it, on a second sighting, a confirmed
falsification, or the operator's call. A story written at filing
grows the backlog by ceremony./triage
against the story's stop rule before any fix. A retro closes what the
session found about its own work./handoff, from the corrected
state. A retro that edits it carries over the blind spots it was run
to surface.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/handoffThis skill should be used to close a session so the next one starts cold from corrected truth. Operator-invoked, gated on a retro note newer than the scope's last edit. Rewrites the primer within its budget first, then runs the status sweep (fully-resolved stories proposed for archiving, flipped only on approval) and reconciles every plan's Story Index — Focus, Next, Open, Read order, about 300 words, nothing another surface derives — confirms the index synced, and prints the one line the next session starts with. Use when the user says "/handoff", "hand off", "close the session", "wrap up the session", "prep the primer", "get the primer ready", "cold session prep", or "what does the next session start with"./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`.npx claudepluginhub bartolli/kmd --plugin wiki-sdd