/wiki-sdd:intentfrom wiki-sdd
Interview-style grilling that captures project intent, sharpens vocabulary, and scaffolds wiki structure. Walks one question at a time with recommended answers, creating artifacts like index.md, primer.md, glossary.md, and lazy ADRs. Auto-detects greenfield vs brownfield modes.
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.
Read when SKILL.md points to them.
Interview the user relentlessly about every aspect of a project's intent until you reach a shared understanding. Walk down each branch of the design tree, resolving dependencies one-by-one. For each question, provide your recommended answer.
Ask one question at a time, waiting for feedback before continuing.
If a question can be answered by exploring the codebase or wiki, explore instead of asking.
Before grilling, the project must declare WIKI_SCOPE: <scope> in its project instructions (AGENTS.md or the harness's equivalent). If missing, suggest /wiki first and stop.
Read projects/<scope>/index.md in the vault:
glossary.md and ADRs as the conversation reveals them.Announce the mode you're running in before starting.
New-scope guardrail: if <scope> is not in vault.yaml's scopes: field, STOP. New scopes need explicit user approval. Surface the current scope list and ask.
index.md)Collect, one question at a time:
sdd (spec-driven), tdd (test-driven), or hybrid? (Recommend hybrid for app-layer work, sdd for spec-heavy or contract-first work, tdd when the surface is mostly behavior-discoverable. State your reasoning per project.)0 for greenfield, 1 if a working prototype exists.)top_tags if prime(<scope>) is callable (MCP tool, or kmd prime <scope>); otherwise propose new ones with justification.Write projects/<scope>/index.md in the vault using the wiki://template/project/index template (MCP resource, or kmd resource wiki://template/project/index). Frontmatter only — body can be a single line summary. Do not invent fields outside the schema.
primer.md)Primer is co-authored. Don't invent prose. Create a stub in the served shape — four sections, the reader is an agent:
---
created: "<date -u +%Y-%m-%dT%H:%M:%SZ>"
updated: "<same clock>"
---
# Primer
## Focus
<three lines: what the scope is doing now and why — agreed with user>
## Next
1. <top item, from the Story Index once it exists>
2.
3.
## Open
- <[[intent-<slug>]] pointers only; a question without an intent is filed as one first — or none>
## Read order
1. <three links>
2.
3.
Use wiki://template/project/primer (MCP resource, or kmd resource <uri>) for the canonical shape. created is write-once — set it at creation and never bump it; only updated changes on later edits. The four sections are the whole shape, about 300 words at most; nothing a query or another surface derives goes in. /handoff rewrites it at every session close.
glossary.md at the scope root, lazy creation)As the user describes the system, watch for:
Order, Lot, Customer, Cart, Migration)Customer or User?)When the first term gets resolved, create projects/<scope>/glossary.md in the vault using wiki://template/project/glossary (MCP resource, or kmd resource <uri>). prime inlines the Language section verbatim under Vocabulary, so keep that section the term list alone; the other three stay on disk. Body shape:
# <Scope> glossary
## Language
**Term1**:
A concise definition (one sentence).
_Avoid_: aliases that shouldn't be used.
**Term2**:
A concise definition.
_Avoid_: aliases.
## Relationships
- A **Term1** has one or more **Term2**.
- A **Term2** belongs to exactly one **Term1**.
## Example dialogue
> **User:** "When a Customer places an Order, do we create the Invoice immediately?"
> **Domain expert:** "No — an Invoice is only generated once a Fulfillment is confirmed."
## Flagged ambiguities
- "account" was used to mean both **Customer** and **User** — resolved: distinct concepts.
Update glossary.md inline as more terms resolve. Don't batch.
Vocabulary rules:
_Avoid_.adr/adr-{topic}.md)Only offer to create an ADR when all three are true:
If any of the three is missing, skip the ADR.
Use wiki://template/project/adr (MCP resource, or kmd resource <uri>). Body shape:
# <Title>
## Status
active
## Context
What forced this decision? What constraints applied?
## Decision
The decision in one sentence, then a short paragraph elaborating.
## Rationale
Why this option over the alternatives. Reference the alternatives by name.
## Consequences
What becomes easier. What becomes harder. What knock-on effects exist.
## Alternatives considered
- **Alternative A** — why rejected.
- **Alternative B** — why rejected.
The greenfield grill is done when:
index.md exists with methodology declared.primer.md exists (stub at minimum, with Focus filled and Open pointing at intents or empty).glossary.md exists IF any domain terms were resolved (skip if the conversation was about pure infrastructure with no project-specific vocabulary).State the termination explicitly when reached:
"Scaffold complete. Run
prime(<scope>)(orkmd prime <scope>) to verify orientation. Next steps:/to-storiesif you want to draft a workstream from this conversation, or just start working in the project — the wiki will catch up via/intentagain later."
prime(<scope>) via the wiki MCP, or kmd prime <scope> where the harness exposes no MCP tools, to load identity, primer, active ADRs.glossary.md if it exists.Walk the codebase using the project's domain glossary. Look for contradictions:
glossary.md Language section → flag it.When the user states how something works, check whether the code agrees. If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible — which is right?"
Based on the conversation:
glossary.md Language section inline.spec/spec-{topic}.md. Don't queue corrections in the plan — that creates doc-debt.Per vault rules, primer is co-authored. Suggest changes; don't write them silently. If the user agrees, update Focus, Next, Open, Read order within the budget; Open points at intents only, and Read order holds three links.
When the session sharpened one idea rather than a workstream — a finding,
a feature candidate, a question worth a falsification path — write it as
an intent from wiki://template/project/intent (MCP resource, or
kmd resource wiki://template/project/intent) at
projects/<scope>/intent/intent-<slug>.md, origin: user, sightings: 1,
about fifteen lines, and stop. /triage promotes it; /to-stories
elaborates it into a story. A workstream continues below.
The brownfield grill is done when:
glossary.md.vault.yaml. Stop and ask if the user names a new scope.primer.md prose without user approval. Stub headers are fine; narrative is co-authored.glossary.md inline, not in batches.updated: field on any edit.summary: "..." — to avoid breaking the sync walker.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bartolli/kmd --plugin wiki-sdd10 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"./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"./signal-denseCanonical-vocabulary mode for agentic threads where assistant output re-enters context. Composable register predicates (technical, affect, safety, beginner) bind rule application; canonical handles, typed entities, and direct predicates extend an implicit KG across turns. Trigger on "signal-dense", "dense mode", "canonical mode", /dense, /signal-dense. Activate proactively in long technical threads, architecture reviews, ontology and KG work, and extended implementation sessions.
/tddImplement a single `ready-for-agent` slice from a wiki user story using disciplined red-green-refactor with vertical tracer bullets. Reads the slice description, the story's Gherkin scenarios (as the test specification), `glossary.md` (for vocabulary), and the referenced specs/ADRs. Refuses horizontal slicing (write-all-tests-then-all-impl). Ticks the slice checkbox when done. Use when the user says "let's TDD slice X", "implement slice 2 of story Y", "/tdd", "red-green-refactor this", or wants to start vertical-slice implementation on a wiki-tracked story./to-issuesBreak a wiki user story into vertical-slice tracer-bullet checkboxes (or refine existing slices), and in `github`/`gitlab` mode mirror `ready-for-agent` slices to the remote issue tracker with wikilinks back to the story file. Operates on `kind: story` files in the wiki. Quizzes the user on slice granularity, AFK vs HITL, and blocked-by dependencies. Use when the user says "break this story into slices", "refine the slicing", "/to-issues", "post these to GitHub", "publish issues from this story", or wants to validate vertical-slice rules on an existing story./to-storiesThis skill should be used to write wiki stories — Gherkin scenarios plus a first slice list — from either input: the current conversation, synthesized into a thin `plan/plan-{name}.md` with one `plan/{name}/story-N-{slug}.md` per story; or a promoted intent, elaborated into one story under the active plan with the intent linked and `promoted_to` reported back. Default `triage_state: needs-triage`. Does NOT interview — if intent is unclear it suggests `/intent` and stops. Use when the user says "turn this into a plan", "draft a PRD", "/to-stories", "write up what we discussed", "synthesize this into stories", "write the story for intent X", or "elaborate intent X". Reads `glossary.md` and existing ADRs to use the project's vocabulary correctly.