Loop / rules
Cursor rule18 starsChanged 8 months agoMITView on GitHub
High-signal frontend art direction, system design, and anti-generic guardrails.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .cursor/rules/frontend-10x-browser-debugging.mdcCursor rule
- .cursor/rules/frontend-10x-external-skills.mdcCursor rule
- .cursor/rules/frontend-10x-motion.mdcCursor rule
- .cursor/rules/frontend-10x-prompting.mdcCursor rule
- public/llms.txtllms.txt
- gsap-scrolltriggerSkill
The file
Show its rules and text
We split this frontend-10x-system.mdc into the rules it gives an agent
18 rules. About 0 are common, 13 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
When generating or editing frontend code:
- Distinctive: line 11
Start by choosing an explicit art direction.
- Very specific: line 15
Default to Tailwind CSS v4 @theme plus runtime CSS variables for token transport.
- Distinctive: line 16
Use tokens for color, spacing, radii, shadows, blur, z-index, and motion.
- Distinctive: line 17
Prefer OKLCH when authoring custom color scales.
- Distinctive: line 19
Prefer a type triad: display, sans, mono.
- Distinctive: line 20
Avoid Inter, Roboto, default shadcn aesthetics, and generic purple gradients unless the existing product already uses them or the user …
- Distinctive: line 21
Keep the primary UI to 3 active colors or fewer plus neutrals.
- Distinctive: line 22
Use authored line breaks in headlines.
- Very specific: line 23
Use text-wrap: balance for headings and important short copy when helpful.
- Very specific: line 24
Use antialiased at the app layout level when it improves the chosen fonts.
- Very specific: line 25
Use tabular-nums for metrics, dates, prices, and changing numeric UI.
- Distinctive: line 27
Keep navigation, CTA hierarchy, and proof blocks simple and obvious.
- Distinctive: line 29
Default to bold but coherent decisions, not safe average ones.
- Very specific: line 30
When the problem is craft quality, learn from manual-grade references like userinterface.wiki, Rauno, Devouring Details, Interface Craft, …
- Distinctive: line 32
Prefer subtle layered shadows over hard borders when the goal is depth.
- Distinctive: line 48
do not cargo-cult patterns because they were trendy on one reference site
- Distinctive: line 61
If the task is docs-heavy, preserve docs usability first and add taste second.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: High-signal frontend art direction, system design, and anti-generic guardrails.
globs: ["**/*.{ts,tsx,js,jsx,css,scss,md,mdx}"]
alwaysApply: true
---
# High-Signal Frontend System
When generating or editing frontend code:
- Start by choosing an explicit art direction. Do not default to generic SaaS.
- Choose a methodology lens before choosing tactics: discovery, system, and evaluation.
- Pick one primary visual thesis: editorial technical, premium AI SaaS, cinematic 3D, architectural blueprint, neo-brutalist, or experimental.
- Build or extend a real design system before adding one-off styling.
- Default to Tailwind CSS v4 `@theme` plus runtime CSS variables for token transport.
- Use tokens for color, spacing, radii, shadows, blur, z-index, and motion.
- Prefer OKLCH when authoring custom color scales.
- Reject raw hex colors, arbitrary spacing, and accidental radius/shadow drift.
- Prefer a type triad: display, sans, mono.
- Avoid Inter, Roboto, default shadcn aesthetics, and generic purple gradients unless the existing product already uses them or the user explicitly asks for them.
- Keep the primary UI to 3 active colors or fewer plus neutrals.
- Use authored line breaks in headlines.
- Use `text-wrap: balance` for headings and important short copy when helpful.
- Use `antialiased` at the app layout level when it improves the chosen fonts.
- Use `tabular-nums` for metrics, dates, prices, and changing numeric UI.
- Make the product shot, dashboard mock, or diagram obey the same token system as the rest of the page.
- Keep navigation, CTA hierarchy, and proof blocks simple and obvious.
- Favor optical alignment over perfect geometry when they conflict.
- Default to bold but coherent decisions, not safe average ones.
- When the problem is craft quality, learn from manual-grade references like `userinterface.wiki`, Rauno, Devouring Details, Interface Craft, and UI Playbook, not only from spectacle-heavy marketing sites.
- Preserve concentric radii on nested surfaces: outer radius = inner radius + padding.
- Prefer subtle layered shadows over hard borders when the goal is depth.
- Give images and screenshots a low-opacity outline when they need a cleaner edge.
- CSS is the substrate for layout, tokens, and fallbacks. Do not default to raw CSS as the primary motion architecture.
- For React frontends, prefer Motion, GSAP, Lenis, R3F/drei, OGL, and React transitions where appropriate.
- If the product touches auth, user data, or public forms, include trust checks in the implementation: Supabase RLS where relevant, tested auth flows, rate limits, server-side validation, locked-down env vars, CAPTCHA on public forms when needed, CORS restrictions, and error handling that does not leak internals.
Composition rules:
- One hero focal point.
- One dominant CTA.
- One proof pattern near the claim.
- One repeated motif across the page.
Tactic rules:
- choose tactics intentionally: shell, density, motion, 3D/shaders, forms, data display, wait UX, resilience, search, AI, or docs
- do not cargo-cult patterns because they were trendy on one reference site
Ban these by default:
- centered-everything landing pages
- blur blobs with no material logic
- glassmorphism on white for no reason
- several competing accents
- five unrelated section styles on one page
- mismatched nested border radii
- important headlines left to accidental wrapping
- JS-only token systems when Tailwind v4 runtime vars would do the job better
If the task is docs-heavy, preserve docs usability first and add taste second.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

