agentleFS
ldaumeldaume/agentic-engineering-harness/skills/design/design-flows/SKILL.md

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.

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
  1. Distinctive:

    Add alternative paths (another method, skip, later) and error paths with their recovery.

    line 22
  2. Very specific:

    Write the state model as a Mermaid stateDiagram-v2, because interleaved async, retry, and approval states produce impossible combinations …

    line 27
  3. Distinctive:

    Check keyboard and screen reader use along the whole path, and assisted-digital routes for people who cannot use it (supported) …

    line 31
  4. Very specific:

    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.

    line 34
  5. Very specific:

    Test the flow with concrete tasks (design-research), then cut steps that add no value.

    line 36
  6. Distinctive:

    Every error state has a transition out that keeps the person's input.

    line 52
  7. Distinctive:

    Every path has a start, an end, and recovery.

    line 73

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. State the person's goal and what "done" means to them.
  2. Name the trigger and entry context: where they come from, what they already know, which device, which role.
  3. Define the start and end states, including the honest "could not finish" end.
  4. Mark the decisions the person makes and the responses the system gives.
  5. Add alternative paths (another method, skip, later) and error paths with their recovery; each failure keeps the person's work.
  6. 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].
  7. 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].
  8. Check keyboard and screen reader use along the whole path, and assisted-digital routes for people who cannot use it (supported) [SRC-FLOW-005].
  9. 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.
  10. Test the flow with concrete tasks (design-research), then cut steps that add no value.
  11. 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 passes flow_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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.