UI Patterns

Agent skills

Agent skills for UI work — React, shadcn/ui, visual design, interface guidelines.

A skill is a folder with a SKILL.md file that a coding agent (Claude Code, Codex, Cursor and others) loads when a task matches its description. It's a way to give the agent rules it would otherwise guess at. This page lists the skills relevant to building UI.

Check before you trust

Apart from React best practices, which this site uses and trusts, the skills below have not been verified here. Treat them as candidates: read the SKILL.md, and compare the agent's output with and without the skill on your own code before keeping it.

Trusted

React best practices

vercel-react-best-practices by Vercel: rules in 8 categories on React and Next.js performance — waterfalls, bundle size, server components, re-renders — ordered by impact. Used for the code on this site.

npx skills add vercel-labs/agent-skills # pick react-best-practices

To check

shadcn/ui

The official shadcn skill gives the agent project context: it reads components.json and reports the framework, aliases, installed components, icon library and base library. To get that, it runs npx shadcn@latest info --json — a shell command, so read it before installing.

pnpm dlx skills add shadcn/ui

Interface guidelines

web-design-guidelines by Vercel reviews code against the Web Interface Guidelines: interactions, forms, accessibility, animation, layout. It is the closest to what this site covers — details of behaviour rather than looks.

The rules aren't bundled: the skill downloads them from GitHub each time it runs. What it checks can change without the skill changing, so pin the version if you need repeatable reviews.

Visual design

  • Refactoring UI. Skills built from the book by Adam Wathan and Steve Schoger, the authors of Tailwind CSS: fixed scales for spacing, type, color and shadows, hierarchy through weight and color instead of size. These are community skills, not from the authors — for example gnurio/refactoring-ui-plugin, which splits the book into 10 smaller skills. Check whether a skill says how it was checked against the book, and that it states the rules in its own words instead of copying the text.
  • frontend-design by Anthropic: picking an aesthetic direction, typography, and avoiding layouts that look generated.
  • Impeccable by Paul Bakaus: builds on frontend-design with design commands and a list of anti-patterns. Very popular; covers the same ground as the two above.

Sources

On this page