Design a User Flow
Purpose
Define exactly how a specific user reaches a specific goal in the product, including every decision, system response and failure path, so wireframes, requirements and tests all start from the same complete picture.
When to use
- A new feature or journey needs to be designed before wireframes.
- An existing flow has drop-off or support tickets and must be redesigned.
- Designers, product and engineering need a shared view of happy and unhappy paths.
When not to use
- The need is the end-to-end experience across channels and time, including emotions. Use
customer-journey-map.
- The question is how content and navigation are organized across the product. Use
information-architecture.
- The flow is agreed and screens need detailing. Use
wireframe-spec.
Inputs
Required:
- The user (persona or role) and the goal the flow serves.
Optional, improves quality:
- Requirements or user stories, business rules, current flow and its analytics, platform (web, mobile, kiosk), authentication state, regulatory constraints.
If the user or goal is missing, ask for them. Other gaps become [ASSUMPTION] or open questions in the flow.
Process
- State the flow's user, goal, trigger and success end state in one line each; one flow serves one goal.
- List all entry points (deep link, notification, menu, error redirect) and the user's state at entry (logged in or not, data already present, device).
- Draft the happy path as the minimal sequence of steps; for each step note screen, user action and system response.
- Mark every decision point (user choice or system condition) as a diamond with all branches named; each branch must end in a step, an exit or a loop back.
- Add unhappy paths per step: validation errors, system/network failure, timeouts, permission denied, business-rule rejection, cancellation and back navigation; define recovery for each so no path dead-ends.
- Add edge states: first use / empty, partial data, returning mid-flow (saved progress), concurrent sessions, limits (lockout, rate limits), accessibility needs affecting the path.
- Remove unnecessary steps: challenge each screen and input (can the system infer it, defer it or prefill it?) and count steps to the goal.
- Mark external dependencies and system actions (emails, SMS, third-party calls) and where the user waits.
- Produce the step table and a diagram as code (e.g. Mermaid flowchart) with consistent shapes: start/end, screen, decision, system action.
- Label inferred rules
[ASSUMPTION], list open questions, and suggest wireframe-spec for screens and edge-case-elicitation or acceptance-criteria for requirements.
Output format
# User Flow: <goal>
User: <persona/role> · Trigger: <...> · Success end state: <...> · Platform: <...>
## Entry Points
- ...
## Steps
| # | Screen / State | User action | System response | Next | Errors / branches |
|---|---|---|---|---|---|
## Decision Points
- D1 <condition>: yes → <step>, no → <step>
## Error and Recovery Paths
| Where | Failure | Message intent | Recovery |
|---|---|---|---|
## Edge States
- ...
## Diagram
```mermaid
flowchart TD
A([Start]) --> B[Screen]
B --> C{Decision}
```
## Assumptions and Open Questions
- ...
Quality checklist
Common pitfalls
- Drawing only the happy path. Most support tickets come from the error and edge paths.
- Mixing several goals into one giant flow. Split per goal and link flows at their exits.
- Designing screens instead of decisions. Keep layout out of the flow; it belongs in wireframes.
Example
Input: "Password reset in mobile banking, including errors and lockout."
Excerpt of output:
- Success end state: user signed in with a new password; old sessions revoked.
- D1 Customer number and phone match? no → generic message "We couldn't verify these details" (no account enumeration) → retry; 3 failures → lockout 30 min
[ASSUMPTION: confirm policy].
- Error: SMS code expired → "Code expired, send a new one" → resend with 60 s cooldown.
- Open question: Is branch or call-center verification a fallback when the phone number has changed?
1---2name: user-flow3description: "Designs a user flow for one user goal, covering entry points, screens and steps, decision points, system actions, error and recovery paths, empty and edge states and exit points, as a step table plus a diagram-as-code flowchart. Use when a feature or journey must be designed screen by screen, when someone asks \"what are the steps\" or \"map the happy and unhappy paths\", or before wireframing."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/user-flow7 version: "1.0.0"8 language: en9 category: 10-design10 role: ux-ui-designer11 area: design12 title: "Design a user flow"13 related: "customer-journey-map, wireframe-spec, information-architecture, edge-case-elicitation, diagram-as-code"14 prompt: "Design the user flow for resetting a forgotten password in our mobile banking app, including errors and lockout."15---1617# Design a User Flow1819## Purpose20Define exactly how a specific user reaches a specific goal in the product, including every decision, system response and failure path, so wireframes, requirements and tests all start from the same complete picture.2122## When to use23- A new feature or journey needs to be designed before wireframes.24- An existing flow has drop-off or support tickets and must be redesigned.25- Designers, product and engineering need a shared view of happy and unhappy paths.2627## When not to use28- The need is the end-to-end experience across channels and time, including emotions. Use `customer-journey-map`.29- The question is how content and navigation are organized across the product. Use `information-architecture`.30- The flow is agreed and screens need detailing. Use `wireframe-spec`.3132## Inputs33Required:34- The user (persona or role) and the goal the flow serves.3536Optional, improves quality:37- Requirements or user stories, business rules, current flow and its analytics, platform (web, mobile, kiosk), authentication state, regulatory constraints.3839If the user or goal is missing, ask for them. Other gaps become `[ASSUMPTION]` or open questions in the flow.4041## Process421. State the flow's user, goal, trigger and success end state in one line each; one flow serves one goal.432. List all entry points (deep link, notification, menu, error redirect) and the user's state at entry (logged in or not, data already present, device).443. Draft the happy path as the minimal sequence of steps; for each step note screen, user action and system response.454. Mark every decision point (user choice or system condition) as a diamond with all branches named; each branch must end in a step, an exit or a loop back.465. Add unhappy paths per step: validation errors, system/network failure, timeouts, permission denied, business-rule rejection, cancellation and back navigation; define recovery for each so no path dead-ends.476. Add edge states: first use / empty, partial data, returning mid-flow (saved progress), concurrent sessions, limits (lockout, rate limits), accessibility needs affecting the path.487. Remove unnecessary steps: challenge each screen and input (can the system infer it, defer it or prefill it?) and count steps to the goal.498. Mark external dependencies and system actions (emails, SMS, third-party calls) and where the user waits.509. Produce the step table and a diagram as code (e.g. Mermaid flowchart) with consistent shapes: start/end, screen, decision, system action.5110. Label inferred rules `[ASSUMPTION]`, list open questions, and suggest `wireframe-spec` for screens and `edge-case-elicitation` or `acceptance-criteria` for requirements.5253## Output format54````markdown55# User Flow: <goal>56User: <persona/role> · Trigger: <...> · Success end state: <...> · Platform: <...>5758## Entry Points59- ...6061## Steps62| # | Screen / State | User action | System response | Next | Errors / branches |63|---|---|---|---|---|---|6465## Decision Points66- D1 <condition>: yes → <step>, no → <step>6768## Error and Recovery Paths69| Where | Failure | Message intent | Recovery |70|---|---|---|---|7172## Edge States73- ...7475## Diagram76```mermaid77flowchart TD78 A([Start]) --> B[Screen]79 B --> C{Decision}80```8182## Assumptions and Open Questions83- ...84````8586## Quality checklist87- [ ] The flow serves one user and one goal with a clear success end state.88- [ ] Every decision has all branches, and every branch ends in a step, exit or loop.89- [ ] Each step that can fail has a recovery path; no dead ends.90- [ ] Empty, first-use, interrupted and limit states are covered.91- [ ] The diagram and the step table match one-to-one.92- [ ] Business rules not given by the user are marked `[ASSUMPTION]`.93- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.9495## Common pitfalls96- Drawing only the happy path. Most support tickets come from the error and edge paths.97- Mixing several goals into one giant flow. Split per goal and link flows at their exits.98- Designing screens instead of decisions. Keep layout out of the flow; it belongs in wireframes.99100## Example101Input: "Password reset in mobile banking, including errors and lockout."102103Excerpt of output:104- Success end state: user signed in with a new password; old sessions revoked.105- D1 Customer number and phone match? no → generic message "We couldn't verify these details" (no account enumeration) → retry; 3 failures → lockout 30 min `[ASSUMPTION: confirm policy]`.106- Error: SMS code expired → "Code expired, send a new one" → resend with 60 s cooldown.107- Open question: Is branch or call-center verification a fallback when the phone number has changed?