Skip to content
SprecherEast
Issue 424

process: Add Vercel's React best-practice and composition skills for every agent

Back to our plan
Done
processtoolingpriority: high

Type

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 the AGENTS.md block next dev writes). Vercel retired the separate next-best-practices skill 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 payload package 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's main (v4) and could contradict v3, so the repo keeps llms-full.txt until 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 a SOURCE.md naming the upstream commit, licence and how to update. Leave out each skill's compiled AGENTS.md: it's over 3,000 lines, and Codex would read a nested AGENTS.md as instructions for that folder.
  • Add Claude Code pointers in .claude/skills/.
  • Wire them into write-code, self-review and pr-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

See it on GitHub, opens in a new tab