ux-foundation

ux-foundation is a cursor rule for Cursor from ssheleg/super-ux. It costs 50 tokens per session (897 once invoked), scanned A, original, MIT.

A set of rules for documenting who uses a product, what they are trying to achieve, and how their journeys and user stories connect. Jobs to Be Done means recording the underlying outcome a person wants, not just a feature request.

In plain words
What is it for?
It is for defining personas, user goals, customer journeys, and traceable user stories in docs/ux/foundation.md.
Why use it?
It keeps product decisions tied to observed users and their reasons for using the product.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is for defining personas, user goals, customer journeys, and traceable user stories in docs/ux/foundation.md.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/ssheleg/super-ux/ux-foundation/github.svg)](https://agentmods.dev/rules/ssheleg/super-ux/ux-foundation)
Your own site
<a href="https://agentmods.dev/rules/ssheleg/super-ux/ux-foundation"><img src="https://agentmods.dev/badge/rules/ssheleg/super-ux/ux-foundation/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-foundation

Your own site · 80×15
<a href="https://agentmods.dev/rules/ssheleg/super-ux/ux-foundation"><img src="https://agentmods.dev/badge/rules/ssheleg/super-ux/ux-foundation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 897 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.00050 $0.00897
Opus 5.5 $0.00020 $0.00359
Sonnet 5.5 $0.00010 $0.00179
Haiku 4.5 $0.00005 $0.00090

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

Security

Grade A, and why

ux-foundation 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-foundation.mdc · 65 lines

How it starts

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

ux-foundation — The WHY Layer

docs/ux/foundation.md holds the chain scenarios trace to: Personas (P-NN) → Jobs to Be Done (JTBD-NN) → Customer journeys (JRN-NN) → User stories (ST-NNN). IDs sequential, never reused; dropped entries kept, not deleted.

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

  • Persona P-NN: 1–3 sentences, grounded in data/observation, recognizable by a real user.
  • JTBD JTBD-NN: When <situation>, I want to <motivation>, so I can <outcome> + personas + type (functional|emotional|social) + forces (push/pull/anxiety/habit) + success metric (user outcome, never a feature).
  • Journey JRN-NN (persona × job): stage table — # | Stage | User action | Touchpoint | Emotion (1-5) | Pain | Opportunity; end-to-end (before/during/after product); opportunity priority = Frequency × Severity × Solvability.
  • Story ST-NNN: As <persona>, I want <capability>, so that <benefit> + Traces (JTBD, JRN/stage) + Given/When/Then acceptance criteria + priority (must|should|could) + status (proposed|validated|delivered|dropped). Quality bar: INVEST.
  • v5 (opt-in; new projects): persona Agent use: none|some|most with evidence; actors A-NN under ## Actors (Kind: agent|system, Acts for: P-NN, Grant); a journey Performed by column; and docs/ux/capabilities.md, one CAP-NN per must/should story with Traces, Actors, Agent excluded, Roles, Gate, Tools, Emits, Data, Automation, Human surface, Since, Status. A person enters at a gate (body|approval|legal) or for a serving reason, each with evidence; everything else stays reachable by agents.

Workflows

  • Init (interview): greenfield — ask one question at a time: who uses it; what situation triggers the job; what outcome = success; walk the path end-to-end; derive stories from pains and outcomes.
  • Init (reverse): existing product — reverse-engineer jobs/personas from the UI and scenarios; tag entries observed vs inferred; flag features serving no job and jobs with no support.
  • Update: locate by ID, update, mark dropped (never delete), then cascade: list scenarios tracing to changed IDs and update them in the same change.
  • Validate: integrity (IDs, references), quality (no features in JTBD, INVEST, observable criteria), coverage (persona→job→journey→story chain complete; must/should stories have scenarios).

Read the full file on GitHub · 65 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 · +8 lines d05abc9d2745
  2. 3mo ago First seen · 57 lines · 50 tokens per session scan A 449855bc3996

Subscribe to this mod's changes

ux-foundation is a cursor rule published in the GitHub repository ssheleg/super-ux (8 stars, last pushed 2d ago), licensed MIT. It adds 50 tokens to every session and 897 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-foundation compared with cursor rules from other repositories

ux-foundation next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ux-foundationssheleg/super-uxCursor rule82d agoMITA50Cursor
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