ui
Skill12 starsChanged 23 days agoMITView on GitHub
Opinionated constraints for building better web interfaces with coding agents. Use this skill whenever the user asks you to build, review, or fix a UI — landing pages, dashboards, components, or any frontend code — and whenever you write Tailwind CSS, motion/react animations, accessible component primitives (Base UI, React Aria, Radix), or review agent-generated interface code for quality, accessibility, and performance. Also trigger for "make the UI better", "review my interface", "clean up this component", or any frontend work in React, Next.js, or plain HTML/CSS.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/genai-tk/references/agents.mdAGENTS.md
- skills/mastra/references/agents.mdAGENTS.md
- adaption-aiSkill
- api-designSkill
- clairicSkill
- database-designSkill
- dddSkill
- genai-tkSkill
- langchainSkill
- linkup-extractSkill
- linkup-fetchSkill
- linkup-researchSkill
- linkup-searchSkill
- linkup-workflowSkill
- mastraSkill
- microservices-patternsSkill
- performance-optimizationSkill
- prime-rlSkill
- scalingoSkill
- security-best-practicesSkill
- smolagentsSkill
- testing-patternsSkill
- typesafe-aiSkill
- unsloth-hf-jobsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
42 rules. About 0 are common, 18 are distinctive, and 24 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
24
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
When invoked, apply these opinionated constraints for building better interfaces.
- Distinctive: line 31
MUST use Tailwind CSS defaults unless custom values already exist or are explicitly requested
- Very specific: line 32
MUST use motion/react (formerly framer-motion) when JavaScript animation is required
- Very specific: line 33
SHOULD use tw-animate-css for entrance and micro-animations in Tailwind CSS
- Very specific: line 34
MUST use cn utility (clsx + tailwind-merge) for class logic
- Very specific: line 38
MUST use accessible component primitives for anything with keyboard or focus behavior (Base UI, React Aria, Radix)
- Distinctive: line 39
MUST use the project’s existing component primitives first
- Distinctive: line 40
NEVER mix primitive systems within the same interaction surface
- Very specific: line 41
SHOULD prefer Base UI for new primitives if compatible with the stack
- Very specific: line 42
MUST add an aria-label to icon-only buttons
- Distinctive: line 43
NEVER rebuild keyboard or focus behavior by hand unless explicitly requested
- Very specific: line 47
MUST use an AlertDialog for destructive or irreversible actions
- Distinctive: line 48
SHOULD use structural skeletons for loading states
- Very specific: line 49
NEVER use h-screen, use h-dvh
- Very specific: line 50
MUST respect safe-area-inset for fixed elements
- Distinctive: line 51
MUST show errors next to where the action happens
- Very specific: line 52
NEVER block paste in input or textarea elements
- Distinctive: line 56
NEVER add animation unless it is explicitly requested
- Very specific: line 57
MUST animate only compositor props (transform, opacity)
- Very specific: line 58
NEVER animate layout properties (width, height, top, left, margin, padding)
- Very specific: line 59
SHOULD avoid animating paint properties (background, color) except for small, local UI (text, icons)
- Very specific: line 60
SHOULD use ease-out on entrance
- Very specific: line 61
NEVER exceed 200ms for interaction feedback
- Distinctive: line 62
MUST pause looping animations when off-screen
- Distinctive: line 64
NEVER introduce custom easing curves unless explicitly requested
- Distinctive: line 65
SHOULD avoid animating large images or full-screen surfaces
- Very specific: line 69
MUST use text-balance for headings and text-pretty for body/paragraphs
- Very specific: line 70
MUST use tabular-nums for data
- Very specific: line 71
SHOULD use truncate or line-clamp for dense UI
- Very specific: line 72
NEVER modify letter-spacing (tracking-*) unless explicitly requested
- Very specific: line 76
MUST use a fixed z-index scale (no arbitrary z-*)
- Very specific: line 77
SHOULD use size-* for square elements instead of w-* + h-*
- Very specific: line 81
NEVER animate large blur() or backdrop-filter surfaces
- Very specific: line 82
NEVER apply will-change outside an active animation
- Very specific: line 83
NEVER use useEffect for anything that can be expressed as render logic
- Distinctive: line 87
NEVER use gradients unless explicitly requested
- Distinctive: line 88
NEVER use purple or multicolor gradients
- Distinctive: line 89
NEVER use glow effects as primary affordances
- Distinctive: line 90
SHOULD use Tailwind CSS default shadow scale unless explicitly requested
- Distinctive: line 91
MUST give empty states one clear next action
- Distinctive: line 92
SHOULD limit accent color usage to one per view
- Distinctive: line 93
SHOULD use existing theme or Tailwind CSS color tokens before introducing new ones
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
UI Skills
When invoked, apply these opinionated constraints for building better interfaces.
How to use
/ui-skills
Apply these constraints to any UI work in this conversation./ui-skills <file>
Review the file against all constraints below and output:- violations (quote the exact line/snippet)
- why it matters (1 short sentence)
- a concrete fix (code-level suggestion)
Stack
- MUST use Tailwind CSS defaults unless custom values already exist or are explicitly requested
- MUST use
motion/react(formerlyframer-motion) when JavaScript animation is required - SHOULD use
tw-animate-cssfor entrance and micro-animations in Tailwind CSS - MUST use
cnutility (clsx+tailwind-merge) for class logic
Components
- MUST use accessible component primitives for anything with keyboard or focus behavior (
Base UI,React Aria,Radix) - MUST use the project’s existing component primitives first
- NEVER mix primitive systems within the same interaction surface
- SHOULD prefer
Base UIfor new primitives if compatible with the stack - MUST add an
aria-labelto icon-only buttons - NEVER rebuild keyboard or focus behavior by hand unless explicitly requested
Interaction
- MUST use an
AlertDialogfor destructive or irreversible actions - SHOULD use structural skeletons for loading states
- NEVER use
h-screen, useh-dvh - MUST respect
safe-area-insetfor fixed elements - MUST show errors next to where the action happens
- NEVER block paste in
inputortextareaelements
Animation
- NEVER add animation unless it is explicitly requested
- MUST animate only compositor props (
transform,opacity) - NEVER animate layout properties (
width,height,top,left,margin,padding) - SHOULD avoid animating paint properties (
background,color) except for small, local UI (text, icons) - SHOULD use
ease-outon entrance - NEVER exceed
200msfor interaction feedback - MUST pause looping animations when off-screen
- SHOULD respect
prefers-reduced-motion - NEVER introduce custom easing curves unless explicitly requested
- SHOULD avoid animating large images or full-screen surfaces
Typography
- MUST use
text-balancefor headings andtext-prettyfor body/paragraphs - MUST use
tabular-numsfor data - SHOULD use
truncateorline-clampfor dense UI - NEVER modify
letter-spacing(tracking-*) unless explicitly requested
Layout
- MUST use a fixed
z-indexscale (no arbitraryz-*) - SHOULD use
size-*for square elements instead ofw-*+h-*
Performance
- NEVER animate large
blur()orbackdrop-filtersurfaces - NEVER apply
will-changeoutside an active animation - NEVER use
useEffectfor anything that can be expressed as render logic
Design
- NEVER use gradients unless explicitly requested
- NEVER use purple or multicolor gradients
- NEVER use glow effects as primary affordances
- SHOULD use Tailwind CSS default shadow scale unless explicitly requested
- MUST give empty states one clear next action
- SHOULD limit accent color usage to one per view
- SHOULD use existing theme or Tailwind CSS color tokens before introducing new ones
Anti-Patterns to Avoid
The most common agent-generated UI mistakes — flag these immediately:
- Gradient backgrounds everywhere — never use gradients unless explicitly requested, and never purple or multicolor gradients
h-screenfull-viewport layouts — breaks on mobile URL bars; useh-dvh- Animating layout properties —
width,height,top,leftcause reflows; animate onlytransformandopacity - Hand-rolled focus & keyboard behavior — rebuilding what accessible primitives already provide
- Icon-only buttons without
aria-label— invisible to screen readers - Blocking paste in inputs — breaks password managers and legitimate users
- Custom easing curves and
tracking-*tweaks — unrequested style noise that fights the design system will-changeand largeblur()everywhere — GPU memory and paint cost with no benefit- Ignoring
prefers-reduced-motion— motion must be optional, never mandatory
When to Use / Not Use
Use this skill when:
- Building new UI from scratch (components, pages, dashboards, forms)
- Reviewing agent-generated or existing frontend code for quality, accessibility, or performance
- Adding animations, loading states, or interactive elements
- Working with Tailwind CSS, motion/react, or accessible component primitives
Do NOT use this skill when:
- The project has an established design system with conflicting conventions — the project's system wins
- The stack has no Tailwind and no component library (e.g., plain server-rendered HTML) — still apply the accessibility and interaction principles, but skip class-level rules
- The task is backend, data, or infrastructure work with no UI surface
- The ask is visual direction or creative design (brand work, image generation) — this skill defines constraints, not aesthetics
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.

