ux

Use when working on UI/UX tasks, user experience design, interface components, and user journey optimization - provides comprehensive UX workflow with design systems integration.

Cursor rule for Cursor

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/felipebarcelospro/igniter-js/ux
Clone the repo
git clone --depth 1 https://github.com/felipebarcelospro/igniter-js

Made for: Cursor.

Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,508 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.00030 $0.02508
Opus 5 $0.00015 $0.01254
Sonnet 5 $0.00006 $0.00502
Haiku 4.5 $0.00003 $0.00251

Measured yesterday against content hash 5870e1c61142, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ux 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 yesterday.

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.

apps/starter-nextjs/.cursor/rules/ux.mdc · 340 lines

How it starts

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

UX/UI Workflow & Design System

This rule provides comprehensive guidance for UI/UX development in Igniter.js + Next.js + Shadcn UI projects, ensuring consistent design systems, user experience optimization, and seamless integration with existing workflows.

1. Design System Integration Protocol

1.1 Mandatory Design Token Usage

CRITICAL: Always use design tokens from globals.css instead of hardcoded values. This ensures consistency across the application and proper theme support.

Available Design Tokens:

/* Background & Surface */
--background: oklch(1 0 0);                    /* Main background */
--card: oklch(0.21 0.006 285.885);           /* Card backgrounds */
--popover: oklch(0.21 0.006 285.885);        /* Popover backgrounds */
--muted: oklch(0.967 0.001 286.375);         /* Muted backgrounds */

/* Foreground & Text */
--foreground: oklch(0.141 0.005 285.823);    /* Primary text */
--card-foreground: oklch(0.985 0 0);         /* Card text */
--muted-foreground: oklch(0.552 0.016 285.938); /* Muted text */

/* Interactive Elements */
--primary: oklch(0.21 0.006 285.885);        /* Primary actions */
--primary-foreground: oklch(0.985 0 0);      /* Primary text */
--secondary: oklch(0.967 0.001 286.375);     /* Secondary actions */
--accent: oklch(0.967 0.001 286.375);        /* Accent elements */

/* Interactive States */
--ring: oklch(0.705 0.015 286.067);          /* Focus rings */
--border: oklch(0.92 0.004 286.32);          /* Borders */
--input: oklch(0.92 0.004 286.32);           /* Input backgrounds */

/* Sidebar System */
--sidebar: oklch(0.985 0 0);                 /* Sidebar background */
--sidebar-foreground: oklch(0.141 0.005 285.823); /* Sidebar text */
--sidebar-primary: oklch(0.488 0.243 264.376); /* Sidebar accents */
--sidebar-accent: oklch(0.274 0.006 286.033); /* Sidebar hover states */
--sidebar-border: oklch(1 0 0 / 10%);       /* Sidebar borders */

Usage Pattern:

// ✅ CORRECT - Using design tokens
<div className="bg-background text-foreground border border-border">
  <button className="bg-primary text-primary-foreground hover:bg-primary/90">
    Action
  </button>
</div>

// ❌ INCORRECT - Hardcoded values
<div className="bg-white text-gray-900 border border-gray-200">
  <button className="bg-blue-600 text-white hover:bg-blue-700">
    Action
  </button>
</div>

Read the full file on GitHub · 340 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. yesterday First seen · 340 lines · 30 tokens per session scan A 5870e1c61142

Subscribe to this mod's changes

ux is a cursor rule published in the GitHub repository felipebarcelospro/igniter-js (242 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 2,508 once invoked, about $0.0002 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-09-01.