ux-flows

ux-flows is a cursor rule for Cursor from ssheleg/super-ux. It costs 42 tokens per session (1,135 once invoked), scanned A, original, MIT.

Rules for documenting how people complete tasks in an interface, including the screens, states, decisions, and error paths they encounter.

In plain words
What is it for?
Use them to analyse tasks, draw user-flow diagrams, define screen states and wireframes, or improve an interface's user experience.
Why use it?
They keep the written user flow aligned with the actual interface and make missing states or unclear recovery steps easier to find.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them to analyse tasks, draw user-flow diagrams, define screen states and wireframes, or improve an interface's user experience.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/ssheleg/super-ux/ux-flows
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.

Clone the repo
git clone --depth 1 https://github.com/ssheleg/super-ux

Made for: Cursor.

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 ux-flows

README.md
[![agentmods](https://agentmods.dev/badge/rules/ssheleg/super-ux/ux-flows/github.svg)](https://agentmods.dev/rules/ssheleg/super-ux/ux-flows)
Your own site
<a href="https://agentmods.dev/rules/ssheleg/super-ux/ux-flows"><img src="https://agentmods.dev/badge/rules/ssheleg/super-ux/ux-flows/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ux-flows

Your own site · 80×15
<a href="https://agentmods.dev/rules/ssheleg/super-ux/ux-flows"><img src="https://agentmods.dev/badge/rules/ssheleg/super-ux/ux-flows.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 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,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00042 $0.01135
Opus 5.5 $0.00017 $0.00454
Sonnet 5.5 $0.00008 $0.00227
Haiku 4.5 $0.00004 $0.00113

Measured 19d ago against content hash 5f6f0b80c2ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ux-flows 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 19d ago.

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.

.cursor/rules/ux-flows.mdc · 84 lines

How it starts

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

ux-flows — Design HOW Users Move

docs/ux/flows.md is the HOW layer between foundation (stories) and scenarios: task analysis + mermaid user flows referencing screens by SCR-ID. The canonical per-screen spec lives in docs/ux/screens.md — the UI map: every screen and state with its Figma frame, wireframe, code coverage, scenarios, and resources. IDs FLW-NN/SCR-NN, sequential, never reused. Any interface change updates screens.md (and the Figma frame when enabled) in the same change — a screen whose code diverges from its record is drifted.

Flow entry (ux-contract v5; a v4 chain stays valid)

Fields: Traces (story/job IDs), Goal (observable end state), Entry points (ALL of them), Success exit, Task analysis (numbered user-visible micro-steps), mermaid flowchart (screens as Screen: <name>, decisions as diamonds, *_err error nodes with labeled recovery edges), Screens traversed table (| Screen | States used here | — SCR-IDs only; the full per-screen spec lives once in screens.md).

Each screen entry in screens.md: Used by, Purpose, Elements (mark the ONE primary action), States table (| State | Trigger | Figma frame | Story | Behavior | — a row per default/loading/empty/error/offline/ long-content/keyboard-up/first-run state that applies), Axes (viewport; theme; text; locale — or the Design system default), Wireframe, Coverage (file:line), Scenarios, Resources, Status (designed|blocked|built|drifted|retired); under v5 also Fronts (the CAP-NN it fronts, or none) and Why human (a serving reason with evidence), because flows and screens are drawn for the human lanes only. A flow that onboards records Onboarding: and First value:; the budget is one screen before the first value unless the director record says why.

Design rules

  • One flow = one user goal. Task analysis first: cut/merge/default-away every step that doesn't serve the job; pull first value as early as possible; happy path ≤5 steps or justified.
  • Every decision an explicit branch; every error edge lands on recovery — dead ends are defects; all entry points enumerated.
  • Wireframes optional (docs/ux/wireframes/FLW-NN.md, ASCII hierarchy + primary action, not pixels); storyboard only when usage context drives design.
  • Visual identity BEFORE any frame: screens.md → Design system → Style pack. Empty and no design system in the project → /sheleg-design decides from its own pack index and defaults and keeps the director record; record the pack + token file. A brief that leaves the look open gets directions first: one key screen in one state, two directions only when the fork is real, the human picks on a 2-up sheet, then the rest. Missing → offer the one-time install once (npx sheleg-design-skill) and continue on platform defaults; none still keeps the sheleg-design slop-marker floor where it is installed. The pack owns palette/type/motion and its bans; BP-079..090 stay the floors it must clear. Never invent a look per screen.
  • Figma mockups optional (default on): one Figma file per surface (App / Web / ASO). If the foundation's Design tooling enables Figma and a Figma MCP is available, mirror each screen-state into a frame built on the pack's tokens applying BP-079..090, and link every state to its frame. Critique the frames with get_screenshot (region → defect → fix) before approval; the art direction is approved separately from the flow and the approval cites the critique.
  • Backwards mode (existing product): reconstruct flows as they ARE from code with file:line evidence, tag inferred until confirmed; gaps between is/should become the improvement backlog.

Read the full file on GitHub · 84 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. 19d ago Changed · +10 lines 5f6f0b80c2ff
  2. 3mo ago First seen · 74 lines · 42 tokens per session scan A 3f5857c889cf

Subscribe to this mod's changes

ux-flows is a cursor rule published in the GitHub repository ssheleg/super-ux (8 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 1,135 once invoked, about $0.0002 per session on Opus 5.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-08-31.

Related

ux-flows compared with cursor rules from other repositories

ux-flows next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ux-flowsssheleg/super-uxCursor rule82d agoMITA42Cursor
sheleg-designssheleg/sheleg-design-skillCursor rule4yesterdayMITA40Cursor
tell-ui-designashishpatill/tell-proofCursor rule21mo agoMITA0Cursor
motion-designAI-by-design/Design-workflowCursor rule245mo agononeA3,740Cursor
ux-designAI-by-design/Design-workflowCursor rule245mo agononeA3,966Cursor
cross-platform-ux-consistencyspencergoldade/cursor-designerCursor rule389mo agoGPL-3.0A25Cursor
ui-components-and-statesspencergoldade/cursor-designerCursor rule389mo agoGPL-3.0A0Cursor