process: Add Vercel's React best-practice and composition skills for every agent
Back to our planType
process
Summary
Add expert, maintained engineering guidance as repo skills, so every agent writes and reviews React and Next.js code against established practice instead of asking the owner.
The owner's request
Summary of the owner's direction (2026-10-26, Claude Code session, answering a design question on #163):
The most effective approach would be to consult Claude's commands and tools and apply the best, most effective skill sets, so that code is generated properly and is also enterprise-grade, with strong modularity and easy upkeep. He knows of skills that can steer the AI to make strong engineering decisions on its own. He wants best engineering practices applied from the start, giving a modular, extensible, scalable website that new things plug into, rather than him answering single questions one by one.
What was checked (native first, then official, then open source)
- Next.js: its best-practice guidance now ships with the framework (
node_modules/next/dist/docs/and theAGENTS.mdblocknext devwrites). Vercel retired the separatenext-best-practicesskill for this reason (vercel-labs/next-skills README, opens in a new tab). The repo already uses both, so nothing to add. - Payload: the official agent skill ships inside the
payloadpackage from v4 (Payload AI tooling docs, opens in a new tab). We're on 3.91, which doesn't bundle it. The Claude plugin tracks Payload'smain(v4) and could contradict v3, so the repo keepsllms-full.txtuntil the upgrade. - React: Vercel's official, MIT-licensed agent skills (vercel-labs/agent-skills, opens in a new tab, InfoQ, opens in a new tab):
react-best-practices: 70 rules ranked by impact (waterfalls, bundle size, server components, re-renders).composition-patterns: component API design (compound components, explicit variants instead of boolean props, React 19).- Both fit the shared-component work in #163.
Proposed fix
- Vendor both skills, unchanged, into
.agents/skills/, with aSOURCE.mdnaming the upstream commit, licence and how to update. Leave out each skill's compiledAGENTS.md: it's over 3,000 lines, and Codex would read a nestedAGENTS.mdas instructions for that folder. - Add Claude Code pointers in
.claude/skills/. - Wire them into
write-code,self-reviewandpr-review. The repo's own architecture and guidelines win where they differ, and any rule that needs a new package goes through the package rules. - List them in
AGENTS.md.
Acceptance criteria
- Not done: Both skills sit in
.agents/skills/with their source and licence recorded, and Claude Code discovers them. - Not done: Writing, self-review and independent review point to them.
- Not done: The precedence rule (repo first) is written down.
Area
process, tooling
Priority
priority: high
Generated by Claude Code, opens in a new tab