user-flow

user-flow is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 6 tokens per session (1,832 once invoked), scanned A, original, MIT.

A user-flow design command that maps the steps a person takes to complete a task, including their goals, context, device, and constraints.

In plain words
What is it for?
Use it to plan journeys such as registration or checkout, with details about the target person, device, environment, and business requirements.
Why use it?
It exposes confusing steps and missing states before the interface is built.

Command for Claude Code

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/thebeardedbearsas/claude-craft/user-flow
Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for user-flow

README.md
[![agentmods](https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/user-flow.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/user-flow)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/user-flow"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/user-flow.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,832 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00006 $0.01832
Opus 5 $0.00003 $0.00916
Sonnet 5 $0.00001 $0.00366
Haiku 4.5 $0.00001 $0.00183

Measured yesterday against content hash 811a57a0f79d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

user-flow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/uiux/user-flow.md · 273 lines

How it starts

The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Conception Parcours Utilisateur

Tu es un Expert UX/Ergonome. Tu dois concevoir un parcours utilisateur (user flow) complet et optimisé.

Arguments

$ARGUMENTS

Arguments :

  • Nom du parcours à concevoir
  • (Optionnel) Persona cible
  • (Optionnel) Contraintes spécifiques

Exemple : /uiux:user-flow "Inscription utilisateur" ou /uiux:user-flow "Checkout" persona:"Mobile user" contrainte:"< 30 secondes"

MISSION

Étape 1 : Définir le contexte

  • Objectif utilisateur
  • Persona cible
  • Contexte d'usage (device, environnement)
  • Contraintes business

Étape 2 : Concevoir le flow

══════════════════════════════════════════════════════════════
🧭 PARCOURS UTILISATEUR : {NOM}
══════════════════════════════════════════════════════════════

Date : {date}
Version : 1.0

──────────────────────────────────────────────────────────────
👤 CONTEXTE
──────────────────────────────────────────────────────────────

### Persona
| Attribut | Valeur |
|----------|--------|
| Nom | {persona} |
| Rôle | {rôle} |
| Niveau tech | Débutant / Intermédiaire / Expert |
| Device principal | Mobile / Desktop / Les deux |
| Contexte | {environnement d'usage} |

### Objectif utilisateur
> "{Ce que l'utilisateur veut accomplir}"

### Objectif business
> "{Ce que le business veut obtenir}"

### Contraintes
- Temps max : {X secondes/minutes}
- Nombre d'étapes max : {Y}
- Device : {contraintes techniques}
- Offline : Oui / Non

──────────────────────────────────────────────────────────────
🗺️ VUE D'ENSEMBLE
──────────────────────────────────────────────────────────────

┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐ │Start │───▶│Step 1│───▶│Step 2│───▶│Step 3│───▶│ End │ └──────┘ └──────┘ └──────┘ └──────┘ └──────┘ │ │ ▼ ▼ ┌────────┐ ┌────────┐ │Error A │ │Error B │ └────────┘ └────────┘


──────────────────────────────────────────────────────────────
📋 FLOW DÉTAILLÉ
──────────────────────────────────────────────────────────────

### Étape 0 : Déclencheur

**Point d'entrée** : {Comment l'utilisateur arrive}
- Via : {menu / lien / CTA / deep link}
- État préalable : {connecté / anonyme / données existantes}
- Pré-conditions : {ce qui doit être vrai}

---

### Étape 1 : {Nom de l'étape}

**Écran** : {Nom de l'écran}
**Objectif** : {Ce que l'utilisateur doit faire}

#### Actions disponibles
| Action | Élément UI | Résultat |
|--------|------------|----------|
| Principale | {bouton/lien} | Passe à étape 2 |
| Secondaire | {bouton/lien} | {alternative} |
| Tertiaire | {lien} | {autre option} |

#### Données requises
| Champ | Type | Validation | Obligatoire |
|-------|------|------------|-------------|
| {field} | {type} | {règles} | Oui/Non |

#### Feedback système
| Événement | Feedback | Type |
|-----------|----------|------|
| Focus input | {feedback} | Visuel |
| Erreur validation | {message} | Inline |
| Succès | {feedback} | Toast/inline |

#### Points d'attention
- ⚠️ {friction potentielle}
- 💡 {opportunité d'amélioration}

---

### Étape 2 : {Nom de l'étape}

{Même structure...}

---

### Étape N : Confirmation (Fin)

**Écran** : {Confirmation / Success}
**État final** : {Ce qui a été accompli}

#### Contenu
- Message de succès
- Récapitulatif des actions
- Prochaines étapes suggérées

#### Actions suivantes
| Action | Destination |
|--------|-------------|
| CTA principal | {next flow} |
| Retour | {dashboard/liste} |
| Partager | {si applicable} |

──────────────────────────────────────────────────────────────
⚠️ CHEMINS ALTERNATIFS
──────────────────────────────────────────────────────────────

### Erreur : {Type d'erreur}

**Déclencheur** : {Ce qui cause l'erreur}
**Écran** : {Inline / Modal / Page dédiée}

#### Message d'erreur

Titre : {Titre clair} Description : {Explication du problème} Action : {Comment résoudre}


#### Options utilisateur
- Réessayer : {comportement}
- Modifier : {retour à l'étape X}
- Abandonner : {sauvegarde état ?}

---

### Abandon : Sauvegarde d'état

**Comportement** :
- Brouillon sauvegardé automatiquement
- Durée de rétention : {X jours}
- Notification de rappel : Oui / Non

---

### Cas limite : {Description}

**Situation** : {Contexte particulier}
**Comportement** : {Adaptation du flow}

──────────────────────────────────────────────────────────────
📊 MÉTRIQUES & KPIs
──────────────────────────────────────────────────────────────

### Objectifs quantitatifs

| Métrique | Objectif | Mesure |
|----------|----------|--------|
| Temps de complétion | < {X} sec | Time-on-task |
| Taux de complétion | > {Y}% | Funnel analytics |
| Taux d'erreur | < {Z}% | Error rate |
| Nombre de clics | ≤ {N} | Click tracking |
| Score satisfaction | > {S}/5 | Survey post-task |

### Points de mesure

| Étape | Event à tracker |
|-------|-----------------|
| Entrée | `flow_started` |
| Étape 1 | `step_1_completed` |
| Étape 2 | `step_2_completed` |
| Succès | `flow_completed` |
| Abandon | `flow_abandoned` avec `last_step` |
| Erreur | `flow_error` avec `error_type` |

──────────────────────────────────────────────────────────────
🧠 ERGONOMIE
──────────────────────────────────────────────────────────────

### Charge cognitive

| Étape | Complexité | Justification |
|-------|------------|---------------|
| 1 | Faible | {1-2 actions simples} |
| 2 | Moyenne | {formulaire court} |
| 3 | Faible | {confirmation seule} |

### Principes appliqués

| Principe | Application |
|----------|-------------|
| Progressive disclosure | {comment} |
| Valeurs par défaut | {lesquelles} |
| Validation inline | {quand} |
| Auto-save | {fréquence} |

──────────────────────────────────────────────────────────────
♿ ACCESSIBILITÉ
──────────────────────────────────────────────────────────────

### Navigation clavier
- Tab order : {logique séquentielle}
- Skip links : {si formulaire long}
- Focus management : {sur changement d'étape}

### Lecteur d'écran
- Annonce étape : "Étape X sur Y"
- Erreurs : aria-live="assertive"
- Progression : aria-describedby

### Temps
- Pas de time-out automatique
- Si délai : prolongeable ou désactivable

──────────────────────────────────────────────────────────────
✅ CHECKLIST VALIDATION
──────────────────────────────────────────────────────────────

### UX
- [ ] Objectif utilisateur clair
- [ ] Étapes minimales nécessaires
- [ ] Feedback à chaque action
- [ ] Chemins d'erreur documentés
- [ ] Abandon avec sauvegarde

### Mesurabilité
- [ ] KPIs définis
- [ ] Events de tracking listés
- [ ] Objectifs quantifiés

### Accessibilité
- [ ] Navigation clavier
- [ ] Annonces SR
- [ ] Pas de time limits

Read the full file on GitHub · 273 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 273 lines · 6 tokens per session scan A 811a57a0f79d

Subscribe to this mod's changes

user-flow is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 2d ago), licensed MIT. It adds 6 tokens to every session and 1,832 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.