ux-foundation

ux-foundation is a cursor rule for coding agents from ssheleg/super-ux. It costs 50 tokens per session (734 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

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.

agentmods
npx agentmods add rules/ssheleg/super-ux/ux-foundation
Clone the repo
git clone --depth 1 https://github.com/ssheleg/super-ux

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.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.svg" alt="Measured on agentmods" 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 734 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00050 $0.00734
Opus 5 $0.00025 $0.00367
Sonnet 5 $0.00010 $0.00147
Haiku 4.5 $0.00005 $0.00073

Measured 3d ago against content hash 449855bc3996, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 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 v4)

  • 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.

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).

Two more sections this file owns, filled when they apply: Monetization (model + value metric + free boundary + purchase surface + money moments + acquisition coherence — each money moment becomes a first-class flow, and a web/web2app purchase surface makes the web funnel and the paid handoff flows of this product too) and Design tooling (the Figma on/off choice, default on, plus the project's Figma file URL — asked once per project). Everything else about the visual layer, the design system and the style pack, lives in docs/ux/screens.md.

Read the full file on GitHub · 57 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. 3d 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 (2 stars, last pushed 3d ago), licensed MIT. It adds 50 tokens to every session and 734 once invoked, about $0.0003 per session on Opus 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.