Skip to content
Skills Library
Design & UX · Planning

ux-flows

/ux-flows

Use to derive the user flows of a UI-touching feature after the spec is clarified — one mermaid flowchart per UI-touching §4 user story (happy + alt/error branches from §5 ACs), a screen inventory (SCR-NN ids), and an AC→flow map, written to docs/features/{slug}/ux-flows.md. Triggers on "ux flows for {slug}", "user flows for {slug}", "screen flow for {slug}", "/sdd:ux-flows {slug}", "юзер-флоу для {slug}", "потік екранів {slug}", "намалюй флоу користувача". Always markdown + mermaid regardless of the design tool; the Socratic pass confirms each flow in prose, never raw mermaid. Feeds design (t

Repository
sdd ↗
Licence
MIT
Last repository change
15.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 15.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use to derive the user flows of a UI-touching feature after the spec is clarified — one mermaid flowchart per UI-touching §4 user story (happy + alt/error branches from §5 ACs), a screen inventory (SCR-NN ids), and an AC→flow map, written to docs/features/{slug}/ux-flows.md. Triggers on "ux flows for {slug}", "user flows for {slug}", "screen flow for {slug}", "/sdd:ux-flows {slug}", "юзер-флоу для {slug}", "потік екранів {slug}", "намалюй флоу користувача". Always markdown + mermaid regardless of the design tool; the Socratic pass confirms each flow in prose, never raw mermaid. Feeds design (t

Triggers from the description

ux flows for {slug}user flows for {slug}screen flow for {slug}юзер-флоу для {slug}потік екранів {slug}намалюй флоу користувача
Original author description

Use to derive the user flows of a UI-touching feature after the spec is clarified — one mermaid flowchart per UI-touching §4 user story (happy + alt/error branches from §5 ACs), a screen inventory (SCR-NN ids), and an AC→flow map, written to docs/features/{slug}/ux-flows.md. Triggers on "ux flows for {slug}", "user flows for {slug}", "screen flow for {slug}", "/sdd:ux-flows {slug}", "юзер-флоу для {slug}", "потік екранів {slug}", "намалюй флоу користувача". Always markdown + mermaid regardless of the design tool; the Socratic pass confirms each flow in prose, never raw mermaid. Feeds design (t

How it works

  1. Owner
  2. Inputs
  3. Protocol
  4. Definition of Done
  5. Anti-patterns
  6. References & template
Original SKILL.md headings · 114 lines, 955 words
SKILL.md preview
---
name: ux-flows
model: inherit
effort: high
agents: []
description: >
  Use to derive the user flows of a UI-touching feature after the spec is clarified — one mermaid
  flowchart per UI-touching §4 user story (happy + alt/error branches from §5 ACs), a screen
  inventory (SCR-NN ids), and an AC→flow map, written to docs/features/{slug}/ux-flows.md.
  Triggers on "ux flows for {slug}", "user flows for {slug}", "screen flow for {slug}",
  "/sdd:ux-flows {slug}", "юзер-флоу для {slug}", "потік екранів {slug}",
  "намалюй флоу користувача". Always markdown + mermaid regardless of the design tool; the
  Socratic pass confirms each flow in prose, never raw mermaid. Feeds design (target-surface
  evidence), sequences (SCR alignment), screens (the inventory) and plan-tests (e2e-through-UI
  paths). Hard-refuse if spec.md is missing; skipped for features with no human-facing UI.
---

# Skill: ux-flows

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`](../_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`](../_shared/ask-style.md); each diagram is confirmed
**in prose, never as raw mermaid** → [`../_shared/diagram-presentation.md`](../_shared/diagram-presentation.md).
Flow labels + prose follow `artifact_language` — mermaid keywords, SCR ids and AC ids stay English
→ [`../_shared/artifact-language.md`](../_shared/artifact-language.md).

## Owner

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).

## Inputs

- `<slug>` — feature slug.
- **Gate (hard-refuse if missing):** `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».
- (Expected) `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.
- (Optional) `CONTEXT.md` (both levels, per-feature wins) — canonical roles for the actors.
- (Optional) `docs/features/<slug>/.size` / `.route` — depth + handoff resolution; absent → default
  M / standard and say so in the handoff.

## Protocol

1. **Gate + read.** `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).
2. **Set the depth dial + platform.** Read `interview_depth` from `.claude/sdd.local.md` (else
   medium); unless `--depth=` was passed, ask ONE depth-selection `AskUserQuestion` per
   [`../_shared/ask-style.md`](../_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`](../_shared/interview-depth.md)); coverage never shrinks.
3. **Derive flows + inventory.** For every **UI-touching** §4 user story: one flow — happy path +
   an alt/error branch per relevant §5 AC. Collect every screen the flows visit into the
   **Screen inventory** (`SCR-NN` + purpose/entry/exit); flow nodes reference the SCR ids. A
   backend-only user story is listed as out of scope, not drawn.
4. **Socratic pass — prose, never raw mermaid.** Per
   [`../_shared/diagram-presentation.md`](../_shared/diagram-presentation.md): write each flow into
   `docs/features/<slug>/ux-flows.md` (bootstrapped from [`./templates/ux-flows.md`](./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`](../_shared/write-and-commit.md)),
   validate it parses per [`../_shared/mermaid-check.md`](../_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.
5. **Fill the AC map + write.** Complete the AC-coverage table (every UI-touching §5 AC →
   flow/node/branch, or an explicit `N/A: <reason>`) on disk, re-validate every mermaid block, stamp
   `updated_at`. No commit yet — it follows the self-check.
6. **Structural self-check** — per [`../_shared/self-check.md`](../_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.
7. **Commit + handoff.** On a passing self-check, **commit per
   [`../_shared/write-and-commit.md`](../_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`](../_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).

## Definition of Done

- `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.
- Every flow was confirmed in prose (or written + ledgered at easy); every mermaid block parses.
- No visual design leaked in: no component names, no layout, no styling — flow altitude only
  (screens is where states + components live).

## Anti-patterns

- **Drawing screens here.** Components, states, layout belong to `screens`; this artifact is the
  movement between screens, not their content.
- **Deciding architecture here.** «SPA vs SSR», «this needs a websocket» — flag it as design input;
  `design` decides and declares `target_surfaces`.
- **Raw mermaid as the confirmation prompt** — the anti-pattern
  [`diagram-presentation.md`](../_shared/diagram-presentation.md) exists to kill.
- **Skipping backend-only stories silently.** List them as out of scope with one line — the reader
  must see they were considered.
- **Blocking on a missing design-system.** Its absence degrades (code-mode assumptions + a handoff
  recommendation), never blocks the flow work.

## References & template

- [`./templates/ux-flows.md`](./templates/ux-flows.md) — output scaffold; inline comments are the
  generation contract.
- [`../_shared/diagram-presentation.md`](../_shared/diagram-presentation.md) ·
  [`../_shared/mermaid-check.md`](../_shared/mermaid-check.md) — confirm-in-prose + parse-validation.
- [`../_shared/size-matrix.md`](../_shared/size-matrix.md) — the N/A condition (no human-facing UI)
  evaluated by the upstream handoff.
- [`../_shared/interview-depth.md`](../_shared/interview-depth.md) — the depth dial set in step 2.
Files in this package (2)
  • SKILL.md 8 KB
  • templates/ux-flows.md 2 KB

Versions

RepositoryScoreLicence
This page · genkovich/sdd90MIT
ssheleg/super-ux90MIT
genkovich/sdlc87MIT

Database snapshot: 13.11.2026 · package version 2927554640af (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90screens
    Use to produce the canonical screen manifest for a UI feature — every screen in every state (default / loading / empty / error / success / validation), with reuse-first component picks — written to docs/features/{slug}/screens.md between api and tasks. Draws per the…
  • 100api
    Use 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}",…
  • 100complete-sequence-diagrams
    Use to add Mermaid sequenceDiagram blocks to the SAD's runtime view (sad.md §6) — one per critical flow, showing how a request moves between generic participants with happy + error paths. Triggers on "complete sequences for {slug}", "sequence diagram for {slug}", "draw the…
  • 87screens
    Use to produce the screen manifest for a UI feature — every screen in every state (the six classes default / loading / empty / error / success / validation, each real or N/A, plus named states from flow branches) with reuse-first component picks — written to…
  • 100user-flow-mapping
    Visualize and map user flows with Mermaid diagrams, decision points, error states, and conversion metrics to optimize user journeys. Use when the user requests user flow mapping or provides relevant inputs for this workflow.
  • 9009-mermaid
    Generate a valid Mermaid diagram from a written source through a plan, generate, review loop. Use when the user wants to turn an architecture, lifecycle, or flow into a Mermaid diagram. Not for other diagram formats or image rendering.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.