Measure the cheapest route from a start state to a goal state, step by step, and find what to cut. Users don't experience your architecture; they experience the decisions, fields and waits between them and the result. Counting makes that cost visible and comparable.
Take it from brief.md in the feature folder (docs/product/<feature-slug>/) when it exists; otherwise ask:
Find the entry points first: routes, navigation items, buttons and links, deep links from emails or notifications, command-palette entries. Pick the one a typical user takes from the start state. The shortest path isn't always the typical one; note both if they differ.
Then follow the flow: route → page component → interactive elements → event handlers → API calls → redirects, modals, toasts. On each screen, record what the user must read, decide, type and click to move on. Read validation rules (required fields, formats), conditional branches, default values and loading states — they all change the count.
If the app runs locally and you have browser automation, walk the path for real afterwards and correct the trace. Tag every number with its source:
One row per user action:
| # | Screen / route | Action | KLM operators | Typed | Wait | Decision | Notes |
|---|---|---|---|---|---|---|---|
| 1 | /dashboard | Click "New invoice" | M P BB | — | route change | — | Button below the fold on a 13" screen |
| 2 | /invoices/new | Pick client from dropdown | M P BB, M P BB | — | client list fetch | Which client | No search; 40 clients in seed data |
| 3 | /invoices/new | Fill amount | M P BB H K×6 | 6 chars | — | — | No default currency |
Then total:
Use the same definitions of clicks and fields as flow-test, so the budget you set here can be asserted there.
The Keystroke-Level Model (Card, Moran and Newell) turns operators into seconds:
| Operator | Meaning | Time |
|---|---|---|
| K | Keystroke | 0.28 s for an average typist, 0.2 s for a skilled one |
| P | Point at a target with the mouse | 1.1 s |
| B | Mouse button press or release (a click is BB) | 0.1 s |
| H | Move a hand between keyboard and mouse | 0.4 s |
| M | Mental preparation | 1.35 s |
| R | System response the user waits for | measured or estimated |
Simplified placement of M: one before each decision, before starting to type into a field, and before the first action on a new screen. No M between keystrokes of the same word, or between pointing and clicking in the same move. A click on a new screen is typically M P BB = 2.65 s.
On touch, don't reuse the mouse values: count taps and fields, and give seconds only when you can justify the numbers (for example, from measurements).
KLM models an expert performing without errors; first-time users are slower. Use it to compare versions of the same flow, never to promise users a duration. To see where real users struggle, run usability-test-plan.
Go through the step table and ask, for each step, whether it can be removed, merged, defaulted or made faster. Common levers, roughly by impact:
autocomplete="one-time-code" for codes.type and autocomplete attributes.For each proposal, give savings and cost:
| Proposal | Δ clicks | Δ fields | Δ time (KLM) | Effort | Trade-off |
|---|
Sort by savings divided by effort. State trade-offs honestly: a default can be wrong, removing a confirmation needs a reliable undo, a merged screen can become overloaded.
Propose a click budget and a field budget for the flow: today's totals, and the target once the recommended reductions land. flow-test turns them into a test that fails when the flow gets longer.
Write flow-audit.md to the feature folder: task definition, step table, totals, KLM estimate, reductions table, proposed budget, and the assumptions you couldn't verify.
To compare versions (before and after a redesign, main against a branch), produce one step table per version and a side-by-side totals table.
Summarize in the conversation: the current cost (clicks, fields, approximate seconds), the top three reductions with their savings, and the proposed budget.