design-flows
Skill3 starsChanged 3 months agoMITView on GitHub
Use whenever designing, specifying, or reviewing a user flow or journey across screens - onboarding, sign-up, checkout, approvals, invites, account recovery, subscription changes, import and export, multi-role or collaborative workflows, AI-assisted workflows - including edge cases, error and recovery paths, interruptions, state models, and flow diagrams (User Flow, Nutzerfluss, Journey, Ablauf, Statechart, Onboarding). Not for a single form's validation, which design-forms owns.
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- api-designSkill
- backend-craftSkill
- meilisearchSkill
- design-coreSkill
- design-datavizSkill
- design-formsSkill
- design-product-uiSkill
- design-researchSkill
- design-reviewSkill
- design-slidesSkill
- design-systemsSkill
- design-webSkill
- agent-syncSkill
- build-autonomous-agentsSkill
- coding-disciplineSkill
- completion-gateSkill
- deliver-dependency-upgradesSkill
- documentation-and-adrsSkill
- grill-harness-with-docsSkill
- learn-agentic-engineeringSkill
- pnpmSkill
- scaffold-harnessSkill
- scaffold-monorepoSkill
- shift-left-securitySkill
- start-gateSkill
- update-harnessSkill
- write-a-skillSkill
- frontend-craftSkill
- ansible-automationSkill
- gitea-actionsSkill
- gitea-teaSkill
- manage-infrastructure-as-codeSkill
- multi-stage-dockerfileSkill
- secure-linux-web-hostingSkill
- integrate-product-complianceSkill
- plain-numbersSkill
- product-craftSkill
- run-product-engineeringSkill
- playwright-best-practicesSkill
- testing-strategiesSkill
- writing-coreSkill
- writing-editorialSkill
- writing-engineeringSkill
- writing-marketingSkill
- writing-productSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Add alternative paths (another method, skip, later) and error paths with their recovery.
- Very specific: line 27
Write the state model as a Mermaid stateDiagram-v2, because interleaved async, retry, and approval states produce impossible combinations …
- Distinctive: line 31
Check keyboard and screen reader use along the whole path, and assisted-digital routes for people who cannot use it (supported) …
- Very specific: line 34
Run scripts/flow_lint.py FLOW.md: no unreachable state, no state without a way out, an error or recovery state present, all sections there.
- Very specific: line 36
Test the flow with concrete tasks (design-research), then cut steps that add no value.
- Distinctive: line 52
Every error state has a transition out that keeps the person's input.
- Distinctive: line 73
Every path has a start, an end, and recovery.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
User Flows
Specify a journey so that a person can always reach their goal or a clear, recoverable stop - and so that engineering can build every path, not only the happy one. A flow drawn only as the happy path hides exactly the cases engineering meets first: failures, interruptions, and missing permissions.
Golden path
- State the person's goal and what "done" means to them.
- Name the trigger and entry context: where they come from, what they already know, which device, which role.
- Define the start and end states, including the honest "could not finish" end.
- Mark the decisions the person makes and the responses the system gives.
- Add alternative paths (another method, skip, later) and error paths with their recovery; each failure keeps the person's work.
- Model interruptions: reload, back, timeout and re-authentication, closing the tab, switching device, a second person editing. Time limits follow WCAG 2.2.1 (verified) [SRC-FLOW-007].
- Write the state model as a Mermaid
stateDiagram-v2, because interleaved async, retry, and approval states produce impossible combinations unless they are enumerated (supported; benefit asserted, not measured) [SRC-FLOW-016] [SRC-FLOW-017]. - Check keyboard and screen reader use along the whole path, and assisted-digital routes for people who cannot use it (supported) [SRC-FLOW-005].
- Run
scripts/flow_lint.py FLOW.md: no unreachable state, no state without a way out, an error or recovery state present, all sections there. - Test the flow with concrete tasks (
design-research), then cut steps that add no value. - Hand over acceptance criteria and test scenarios per path.
Load when
references/flow-spec.md- always: the flow spec template, the edge-case checklist, multi-session task lists, save and resume, and the hand-over format.references/ai-and-collaborative-flows.md- when an AI proposes or applies changes, or several roles or people act on the same object.references/example-approval-flow.md- a complete worked example that passesflow_lint.py; copy its structure.
Rules that change the result
- Every error state has a transition out that keeps the person's input.
- A flow spanning sessions starts with the fewest task statuses (completed, incomplete) and adds more - cannot start yet, in progress, problem - only when research shows people need them, and defines what "complete" means (supported) [SRC-FLOW-019].
- Save and resume states a retention period, because the source pattern leaves it open and engineering will otherwise pick one silently (hypothesis; the pattern itself is supported) [SRC-FLOW-018].
- A flow must stay understandable without the diagram: the written paths are the spec, the diagram is a check.
- Onboarding or time-to-value claims need a primary source; otherwise they are hypotheses (no credible primary evidence found in the 2026-10 refresh).
Gates
Automated: scripts/flow_lint.py (tests in tests/test_flow_lint.py).
Manual: task-based walkthrough with keyboard only and with a screen reader;
review of each role's permissions; a walkthrough of every interruption.
Done when
Every path has a start, an end, and recovery; the lint passes; acceptance criteria and test scenarios exist per path; open assumptions are listed as hypotheses with the test that would settle them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

