40-ui

40-ui is a cursor rule for Cursor from ConlinJoe/ai-platform. It costs 27 tokens per session (9,119 once invoked), scanned A, original, MIT.

A set of rules for frontend, user-interface, user-experience, and design-system work. It routes design tasks, protects existing project design systems, and requires rendered verification where allowed.

In plain words
What is it for?
Use it when changing frontend layouts, components, visual styles, or design-system behavior, especially when checking the rendered result.
Why use it?
It keeps interface changes consistent with the project’s own design rules and prevents unrelated design guidance from overriding established constraints.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when changing frontend layouts, components, visual styles, or design-system behavior, especially when checking the rendered result.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/conlinjoe/ai-platform/40-ui
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/ConlinJoe/ai-platform

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 40-ui

README.md
[![agentmods](https://agentmods.dev/badge/rules/conlinjoe/ai-platform/40-ui/github.svg)](https://agentmods.dev/rules/conlinjoe/ai-platform/40-ui)
Your own site
<a href="https://agentmods.dev/rules/conlinjoe/ai-platform/40-ui"><img src="https://agentmods.dev/badge/rules/conlinjoe/ai-platform/40-ui/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 40-ui

Your own site · 80×15
<a href="https://agentmods.dev/rules/conlinjoe/ai-platform/40-ui"><img src="https://agentmods.dev/badge/rules/conlinjoe/ai-platform/40-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 9,119 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.00027 $0.09119
Opus 5.5 $0.00011 $0.03648
Sonnet 5.5 $0.00005 $0.01824
Haiku 4.5 $0.00003 $0.00912

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

Security

Grade A, and why

40-ui 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 4d 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/40-ui.mdc · 1,016 lines

How it starts

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

UI / UX

Canonical UI router. Use the smallest appropriate design-skill set. Do not load multiple design skills by default or dump reference corpora into context.

Instruction priority (00-platform) still applies: project/harness rules outrank Impeccable and Hallmark. Vendor skills do not authorize browser automation beyond what 60-browser-qa allows.

These platform-owned design and usability constraints outrank design skills. If a design skill recommends a technique prohibited here, do not use it. Do not modify vendor content to encode developer preferences. Keep those preferences in this rule.

Design philosophy: product-specific, spacious, hierarchy-driven design. The interface exists to help the user complete the current task. Avoid recognizable AI/template conventions. These are usability and craft principles, not a native-platform imitation guide.

Design-system ownership

If the project already has tokens, a Tailwind/theme config, a component library, a design contract, design.md / DESIGN.md, or equivalent project-owned design documentation, that system is authoritative.

Reuse and extend existing tokens, typography, components, spacing rules, and interaction patterns before inventing replacements. A design skill must not silently create a parallel design system.

If an approved visual reference, design brief, or locked design.md exists, treat it as higher-authority creative direction than a skill default.

Design skills never outrank: approved project design briefs, approved visual references/comps, project tokens/components/design systems, accessibility requirements, or this global UI floor. Resolve conflicts among those authorities through 00-platform instruction priority.

Impeccable or Hallmark may reason within the established system or propose a deliberate evolution. A skill must not silently replace it. If the task requires changing the established system, say so explicitly before drifting.

Load relevant feature contracts from docs/README.md (design system, page behavior, component contracts) before implementing. Update those contracts when user-visible behavior changes.

Read the full file on GitHub · 1,016 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. 4d ago Changed · +6 lines a649f20ba051
  2. 5d ago Changed · +3 lines 54c074d46172
  3. 7d ago Changed · +79 lines ba2c50095f98
  4. 1mo ago Changed · +91 lines · +8 tokens per session 21e0d884e5fa
  5. 1mo ago Changed · +115 lines · -3 tokens per session 468f9397efaf
  6. 1mo ago Changed · +133 lines 6d91e6856c0a
  7. 2mo ago First seen · 589 lines · 22 tokens per session scan A 860565b1d6e8

Subscribe to this mod's changes

40-ui is a cursor rule published in the GitHub repository ConlinJoe/ai-platform (2 stars, last pushed 4d ago), licensed MIT. It adds 27 tokens to every session and 9,119 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-08-31.