/wiki-sdd:to-issuesfrom wiki-sdd
Decomposes wiki user stories into vertical-slice tracer-bullet checkboxes and optionally mirrors ready-for-agent slices to GitHub/GitLab issues with wikilinks.
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.
Take a wiki user story and decompose it into independently-grabbable vertical slices using tracer bullets. In GitHub/GitLab mode, also mirror ready-for-agent slices to the remote tracker.
Hand-off from /to-stories: /to-stories writes a rough slice draft (1-3 coarse slices) when synthesizing stories. /to-issues is the refinement pass — validates vertical-slice rules, splits coarse slices, sets blocked_by dependencies, and mirrors to GH/GitLab. Run /to-issues after /triage promotes a story to ready-for-agent, or earlier if the user wants to refine slicing before triage.
WIKI_SCOPE: <scope> declared in the project instructions.projects/<scope>/plan/<plan-name>/story-N-<slug>.md.WIKI_ISSUE_TRACKER declared in the project instructions (github, gitlab, or local).A slice is a thin path that cuts through ALL integration layers end-to-end, NOT a horizontal slice of one layer.
Slices may be AFK (autonomous-runnable) or HITL (needs human interaction — architectural decision, design review, manual testing). Prefer AFK over HITL where possible.
Anti-pattern: "Slice 1: build the schema. Slice 2: build the API. Slice 3: build the UI." That's horizontal — none of those slices is independently demoable. Convert to vertical: "Slice 1: end-to-end happy path. Slice 2: validation rules. Slice 3: error handling."
plan/plan-{name}.md for context.glossary.md for vocabulary; ADRs and specs referenced by the story for technical constraints.WIKI_ISSUE_TRACKER to determine remote-mirror behavior.If you haven't already explored, do so to understand the current state of code. Slice titles and descriptions should use the project's domain glossary, and respect ADRs in the area you're touching.
Walk the story's scenarios and propose slices. Each slice should:
Present the proposed slice breakdown as a numbered list. For each slice, show:
[[spec-X]] or [[adr-Y]]Ask:
Iterate until the user approves.
Replace the story's ## Slices section with the approved list:
## Slices
- [ ] **Slice 1** — Cart accepts checkout request and 200s for valid cart · `AFK` · covers: Scenario 1 · [[spec-cart-model]]
- [ ] **Slice 2** — Empty-cart guard returns 400 with structured error · `AFK` · covers: Scenario 2 · [[spec-cart-model]]
- [ ] **Slice 3** — Invalid-token rejection (auth check) · `AFK` · covers: Scenario 3 · [[adr-auth-token]]
Update updated: in story frontmatter.
If any slice in this story depends on a slice in another story, update the dependent story's blocked_by: frontmatter array (not the slice — slices live inside stories, dependencies are tracked at story level for indexability). Example:
blocked_by: [story-1-customer-can-add-items]
For each slice currently marked ready-for-agent at the story level (triage_state: ready-for-agent in frontmatter), create one remote issue. Skip slices in stories that aren't ready-for-agent yet — they go remote when /triage promotes them.
GitHub:
gh issue create \
--title "<Story title> — Slice N: <slice title>" \
--body "<see body template below>" \
--label "ready-for-agent,enhancement"
GitLab:
glab issue create \
--title "<Story title> — Slice N: <slice title>" \
--description "<see body template below>" \
--label "ready-for-agent,enhancement"
Issue body template (lifted from Matt's pattern, adapted to wiki):
> *This was generated by AI during triage.*
## Parent
Story: [story-N-<slug>](<github-link-to-vault-or-wiki-search>)
Plan: [plan-<name>](<...>)
## What to build
<concise description of this vertical slice — end-to-end behavior, not layer-by-layer>
## Acceptance criteria
- [ ] <derived from Scenario covered>
- [ ] <derived from Scenario covered>
## Touches
- [[spec-X]] / [[adr-Y]] (referenced from the story)
## Blocked by
- <link to blocking remote issue, or "None — can start immediately">
## Wiki canonical
This issue mirrors slice N of [story-N-<slug>](<vault-path>). The wiki story file is the source of truth for slice state and acceptance criteria.
If new ADRs/specs were created during slice refinement, add them to the parent plan's ## References section.
Harnesses with the posttool hook validate and sync automatically. Check kmd config: if the synced line did not advance past your edits, the hook is not wired — run kmd validate, fix findings, then kmd sync.
Report:
[[story-N-<slug>]]./triage if the story isn't ready-for-agent yet, or /tdd if it is.Before proposing slices, scan the story for these horizontal-slice signals and refuse to write them:
If you can't break a story into 1-5 vertical slices, the story is too coarse — suggest splitting the story before slicing.
kmd config's synced line did not advance, run kmd validate then kmd sync.What SKILL.md sets; muted values are Claude Code's defaults
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"./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`.