/sdd:ux-flowsfrom sdd
Derives user flows for UI-touching features from spec.md, producing mermaid flowcharts per user story with screen inventory and AC-to-flow mapping. Writes to docs/features/{slug}/ux-flows.md.
Ships in 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.
Draws how the user moves through a UI-touching feature — after clarify, before design. For
each UI-touching §4 user story it produces a mermaid flowchart (happy path + the alt/error
branches the §5 ACs demand), builds the screen inventory (SCR-NN — the id contract screens
details later), and maps every UI-touching AC to the flow/branch that shows it. The artifact is
always markdown + mermaid whatever docs/design-system.md picks as the drawing tool — flows
are flow-altitude, not visual design. design then reads it as evidence for the
target-surface + UI-architecture decisions (the formal target_surfaces declaration stays
design's); sequences aligns UI-driven flows on the SCR ids; plan-tests takes the
e2e-through-UI paths from here.
This stage is optional by surface, not by size: its N/A condition (no human-facing UI) lives in
../_shared/size-matrix.md and is evaluated by clarify's handoff
(specify's when clarify was legally skipped). Invoked directly, it always runs.
Question phrasing → ../_shared/ask-style.md; each diagram is confirmed
in prose, never as raw mermaid → ../_shared/diagram-presentation.md.
Flow labels + prose follow artifact_language — mermaid keywords, SCR ids and AC ids stay English
→ ../_shared/artifact-language.md.
PM + designer (or whoever owns the user experience). The PM confirms each flow matches a real user
story; the Tech Lead flags flows that imply architecture (they become design input, not decisions
here).
<slug> — feature slug.docs/features/<slug>/spec.md — the flows derive from §4 user
stories + §5 ACs. Absent → STOP: «run specify <slug> first — ux-flows derives from its user
stories».docs/design-system.md — the platform posture (the default platform assumption) +
the tool. Absent → not a block: work in code-mode assumptions, recommend
/sdd:design-system in the handoff.CONTEXT.md (both levels, per-feature wins) — canonical roles for the actors.docs/features/<slug>/.size / .route — depth + handoff resolution; absent → default
M / standard and say so in the handoff.test -f docs/features/<slug>/spec.md → missing = refuse with the pointer
above. Read spec §1 (context), §4 (user stories — which touch a UI?), §5 (ACs), CONTEXT.md
glossary, and docs/design-system.md (posture + tool; note its absence for the handoff).interview_depth from .claude/sdd.local.md (else
medium); unless --depth= was passed, ask ONE depth-selection AskUserQuestion per
../_shared/ask-style.md, then confirm the platform posture in
the same call (second question): the design-system posture as «(Recommended)», deviation
allowed + recorded with its why. Depth governs the per-flow question volume
(→ ../_shared/interview-depth.md); coverage never shrinks.SCR-NN + purpose/entry/exit); flow nodes reference the SCR ids. A
backend-only user story is listed as out of scope, not drawn.../_shared/diagram-presentation.md: write each flow into
docs/features/<slug>/ux-flows.md (bootstrapped from ./templates/ux-flows.md
on the first flow; each flow lands on disk as soon as it's drafted — progressive writes per
../_shared/write-and-commit.md),
validate it parses per ../_shared/mermaid-check.md, then
describe it in plain words (every branch) and confirm — at medium/hard one AskUserQuestion per
flow (Accept / Fix / Save-as-OQ / Drop); at easy, write + one-line summary into the
assumptions ledger and proceed.N/A: <reason>) on disk, re-validate every mermaid block, stamp
updated_at. No commit yet — it follows the self-check.../_shared/self-check.md: re-read
the file from disk and verify 4 items: (1) every UI-touching §4 user story has a flow;
(2) every flow node's SCR id exists in the inventory (and every inventory row appears in ≥1
flow); (3) every UI-touching §5 AC appears in the coverage table with a flow/branch or an
explicit N/A; (4) every mermaid block parses. Fix + re-check ≤2 cycles; surface anything
unresolved.../_shared/write-and-commit.md — one commit for
ux-flows.md (ux-flows: <slug> ux-flows.md); an unresolved item means no commit. Then emit the
stage-handoff block per ../_shared/handoff.md
— What I did (incl. «self-check: 4/4 pass» + the commit SHA; + «docs/design-system.md absent — run
/sdd:design-system» when it was) + Review (docs/features/<slug>/ux-flows.md) + Run next:
/clear, then /sdd:design <slug> (it reads these flows as target-surface evidence).docs/features/<slug>/ux-flows.md exists: platform decisions, the SCR-NN inventory, one flow per
UI-touching §4 user story (happy + AC-demanded branches), the AC-coverage table — zero silently
uncovered UI ACs.screens; this artifact is the
movement between screens, not their content.design decides and declares target_surfaces.diagram-presentation.md exists to kill../templates/ux-flows.md — output scaffold; inline comments are the
generation contract.../_shared/diagram-presentation.md ·
../_shared/mermaid-check.md — confirm-in-prose + parse-validation.../_shared/size-matrix.md — the N/A condition (no human-facing UI)
evaluated by the upstream handoff.../_shared/interview-depth.md — the depth dial set in step 2.What SKILL.md sets; muted values are Claude Code's defaults
inherithighThree short reads, in order
npx claudepluginhub genkovich/sdd --plugin sdd23 skills in this plugin
/apiUse to derive the API contract for a feature — an OpenAPI 3.1 document at docs/features/{slug}/contracts/openapi.yaml plus a drift/sync report (and an events doc when the feature has async flows). Triggers on "api for {slug}", "openapi for {slug}", "API contract for {slug}", "lock the interface for {slug}", "events for {slug}", "/sdd:api {slug}", "контракт API для {slug}", "OpenAPI для {slug}", "опиши ендпоінти". The contract is never hand-written: it is a derived function of data-model.md (typed fields + constraints), the sad.md §6 sequence diagrams (error branches, async actors), and spec.md acceptance criteria. Runs an inline drift check (does the contract match the model and the sequences?) and a reconcile mode. Hard-refuse if data-model.md is missing AND the feature changes the schema → run `data-model {slug}` first; on a legal no-schema-change skip it derives from the existing schema instead.
/clarifyUse to run an ambiguity sweep over a written spec.md and close every under-specified point before planning or design proceeds — so two engineers can't reasonably build different things from the same spec. Triggers on "clarify {slug}", "find ambiguities in {slug}", "is the spec ready", "sharpen the spec", "/sdd:clarify {slug}", "прояснити специфікацію", "знайди неоднозначності {slug}", "чи готова специфікація". Re-reads the spec, dispatches a clean-context devil's-advocate subagent to list where the spec forks, then for each ambiguity runs AskUserQuestion to RESOLVE it (tighten §1/§5/§6 in place) or DEFER it (→ §8 Open questions with owner+due). Output: an updated docs/features/{slug}/spec.md with every ambiguity resolved or deferred — none dangling. Hard-refuse if spec.md is missing.
/classify-sizeUse to classify a feature into XS/S/M/L/XL and write docs/features/{slug}/.size plus the pipeline route docs/features/{slug}/.route (quick|standard|full) so later skills know how much of each artifact to produce and how handoffs resolve skips. Triggers on "classify size", "feature size", "is this XS or M for {slug}", "size {slug}", "change route", "/sdd:classify-size {slug}", "класифікуй розмір {slug}", "який розмір фічі", "XS чи M". Asks four AskUserQuestion (PR count / time / new module-API-migration / breaking changes), maps to a size class via the shared size matrix, derives the default route (XS/S→quick, M→standard, L/XL→full), confirms size + route in ONE question, and writes the one-line .size and .route files — the source of truth; the feature_size: frontmatter mirrors in spec.md and sad.md are re-synced to it on every (re)classification.
/configUse to create and tune the per-project settings file `.claude/sdd.local.md` — the one place that decides how deeply the pipeline interviews you, which model tier its judgment agents run at, how strict the TDD gates are, how tasks execute and commit, and what language your documents are written in. Triggers on "config", "settings", "configure sdd", "tune the pipeline", "change the judgment model", "set the interview depth", "write documents in Ukrainian", "/sdd:config", "налаштування", "налаштуй sdd", "зміни модель", "глибина опитування", "мова документів". Creates the file with documented defaults FIRST (so you have a working config before answering anything), reads what already differs from the defaults, then asks six grouped questions and patches only the keys you confirm — preserving your comments, key order and unknown keys. Never touches the pipeline's artifacts; the settings file is gitignored, only the .gitignore patch is committed.
/data-modelUse to design the data model AND generate the actual forward + rollback migrations in one pass — shippable SQL, not a plan. Triggers on "data model for {slug}", "schema for {slug}", "generate migrations for {slug}", "DB design + migration", "/sdd:data-model {slug}", "модель даних для {slug}", "схема для {slug}", "згенеруй міграції". Reads spec.md §5 + sad.md §5 building blocks + the §6 sequence diagrams, then writes docs/features/{slug}/data-model.md plus paired *.up.sql / *.down.sql migrations STAGED under docs/features/{slug}/migrations/ (NOT the live migrations/ tree — implement promotes them when the feature is actually built) and an audit report. Greenfield-first; brownfield delta via --mode brownfield; drift-only via --drift-only. Hard-refuses if spec.md or sad.md is missing. Stack-agnostic: detects and FOLLOWS the repo's DB + migration conventions and domain layer — it imposes no DB philosophy and writes no rules file.
/decide-adrUse to record a post-hoc or asynchronous architecture decision as a MADR ADR when it was NOT captured during the synchronous design pass — a choice made in code, in a chat, on a whiteboard, or one a tasks/review gate flagged as missing. Triggers on "ADR for {decision}", "adr for {slug}", "document the decision on {topic}", "lock in the decision about {X}", "MADR for {topic}", "/sdd:decide-adr {slug} {title}", "створи ADR для рішення", "задокументуй рішення", "ADR на {тему}". Confirms the decision is ADR-worthy via the blast-radius gate, picks the next 4-digit number, copies design's MADR template, and fills context / drivers / considered options / outcome / honest consequences. Supports a Proposed → Accepted review flow. Output: docs/features/{slug}/adr/NNNN-{title}.md. For decisions made live with the user, use `design` — it spawns ADRs inline (Accepted).
2 plugins ship this exact skill · first indexed Oct 14, 2026
Other plugins' skills for the same job