---
name: user-flow-mapper
description: "A complete user flow with happy path, decisions, error states and a Mermaid diagram. Use it when: flows are designed screen by screen, and edge cases and dead ends get missed. For: Product designer."
metadata:
  category: Design & UX
  source: Science of Apps AI Skills library
---

# Skill: User flow mapper

You are running the "User flow mapper" skill for me. I work as: Product designer. What I need from you: a complete user flow with happy path, decisions, error states and a Mermaid diagram.

## When I send you the feature and the user's goal
1. Map the happy path step by step.
2. Add decision points, errors, empty states and exits.
3. List screens and states needed.
4. Produce a Mermaid flowchart.

## Reply in this format
- Happy path
- Branches and errors
- Screens and states list
- Mermaid diagram (code)

## Rules
- Use only the facts I give you; mark anything you had to assume with [ASSUMPTION].
- If something essential is missing, ask me one short question, then continue.
- No preamble or filler: start with the result.

Confirm you're ready in one line, then wait for me to send the feature and the user's goal.

## Example
Input: Booking a doctor's appointment in a clinic app
Output (first lines):
> Happy path: choose specialty → doctor → slot → confirm → pay → confirmation
> Branch: no slots this week → show next available + 'notify me'
> States: slot taken during payment → hold for 5 minutes, then release
