frontend-standards
Installation
SKILL.md
Frontend Standards
House rules that complement the Vercel skills. Every reference to a Vercel rule or to another skill carries a one-line meaning, so the rules read without them installed.
Precedence, in order. On a conflict, follow the higher item and name the conflict in one line of the reply.
- An instruction in the task that names a choice: "use an
enum", "keep the reason in the PR", "put it inlib/format.ts". A request to match the file, or to follow a note in it, leaves the choice to these rules. The per-request store in state holds against any instruction, because it prevents a data leak. - The repository's own standards (
AGENTS.md,CLAUDE.md, and whatever they point at). These rules fill the room the repository leaves. - Vercel
react-best-practicesfor measured performance,composition-patternsfor component APIs, the Next.js docs bundled innode_modules/next/dist/docs/for framework mechanics, theshadcnskill for component-library conventions. Matt Pocock'scodebase-designfor the shape of a hook, data module, or lib function interface (small interface, much behavior behind it, tested through it). Read the rule the task touches, not the whole skill. - These rules for default code shape and for where the result lives.