ux

ux is a cursor rule for Cursor from felipebarcelospro/igniter-js. It costs 30 tokens per session (2,508 once invoked), scanned A, original, Apache-2.0.

A set of rules for designing user interfaces and user experiences in Igniter.js and Next.js projects using Shadcn UI and shared design tokens.

In plain words
What is it for?
Use it when building UI components, applying a design system, choosing interface styles, or improving user journeys.
Why use it?
It helps keep interface components visually consistent and guides decisions about user flows and reusable styling.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when building UI components, applying a design system, choosing interface styles, or improving user journeys.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/felipebarcelospro/igniter-js/ux
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/felipebarcelospro/igniter-js

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

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/felipebarcelospro/igniter-js/ux"><img src="https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/ux.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00030 $0.02508
Opus 5.5 $0.00012 $0.01003
Sonnet 5.5 $0.00006 $0.00502
Haiku 4.5 $0.00003 $0.00251

Measured 1mo ago against content hash 5870e1c61142, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

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. 1mo ago 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 (240 stars, last pushed 19d ago), licensed Apache-2.0. It adds 30 tokens to every session and 2,508 once invoked, about $0.0001 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-09-01.