React and Next.js Best Practices skill
Vercel's prioritized performance rules for writing and reviewing React code.
Official vendorby VercelChecked November 18, 2026
Install React and Next.js Best Practices free
Leave your email and the install steps open right here: one prompt to paste into your AI tool. Works for all 151 skills.
React and Next.js Best Practices is Vercel's own performance guide packaged as a Claude skill: 70 rules in 8 categories, ranked so Claude fixes the costliest problems first, such as data-fetching waterfalls and oversized bundles. It is plain instructions, so it works in any tool that reads skills. How to use it: open your existing React or Next.js app and ask Claude to review one slow page against the rules. On November 8, 2026, with Claude Opus 5.5, it fixed five planted problems in our demo product page in 47 seconds. It will not design a site for you. Install steps above are free with one email; our Vibe coding course (early access) covers building fast sites.
Who is React and Next.js Best Practices for?
- React developers
- Next.js teams
- Vibe coders
What's inside React and Next.js Best Practices
70 rules, one file each, summed up in a 149-line SKILL.md, plus AGENTS.md, a 3,810-line version with every rule written out. There are no scripts, so it works in any tool that reads skills.
When it switches on
It switches on when Claude writes, reviews or refactors React or Next.js code: components, pages, data fetching, bundle size or speed problems.
What the instructions cover
- 8 categories ranked by impact, with request waterfalls and bundle size first and small JavaScript tweaks last
- Server rules, such as React.cache() to avoid fetching the same data twice in one request and after() for work that should not hold up the response
- 15 rules against needless re-renders, for example never defining a component inside another one
- Bundle rules: import directly instead of through barrel files (files that re-export many others), and load analytics only after the page has hydrated (become interactive)
- Each rule file shows wrong code, right code and why the difference matters
| File | What it is |
|---|---|
SKILL.md | 149 lines: the category table and a one-line summary of all 70 rules |
rules/ | 70 rule files of 24 to 149 lines, plus _sections.md and _template.md |
AGENTS.md | 3,810 lines: the full guide with every rule expanded in one file |
README.md | 123 lines for maintainers on building and checking the rules |
metadata.json | Version, author and source list |
How to use React and Next.js Best Practices: which prompts work?
Review [app/page.tsx] for performance problems and fix the three with the most impact firstOur dashboard loads slowly. Find the data-fetching waterfalls in [folder] and make independent requests run in parallelWhy is my bundle so large? Check the imports in [folder] against the React best practices and fix what matters mostHow do you install React and Next.js Best Practices?
Skills follow the open Agent Skills standard, so this one is not tied to one company. Pick the AI tool you use. Not sure? The first tab covers most of them in one step. New to this? Our guide on how to install Claude skills walks through it, and Anthropic's plugin guide covers the Claude app.
Install this skill for me so it works in every project: run `npx skills add https://github.com/vercel-labs/agent-skills/tree/main/skills/react-best-practices -g -y` in my terminal. If Node.js is missing, tell me how to install it first. When it's done, confirm the skill is installed and tell me how to start using it.Or do it yourself:
One command installs the skill: it finds the AI tools on your computer and asks which ones should get it.
npx skills add https://github.com/vercel-labs/agent-skills/tree/main/skills/react-best-practices -gYou need Node.js installed (free, from nodejs.org). The -g flag makes the skill available in every project.
Good to know: Part of Vercel's agent-skills collection; the command above adds only this skill.
Unlock the install steps
Free. Leave your email once to open the install steps for all 151 skills, and get the best new skills each month.
How did we check React and Next.js Best Practices?
On November 8, 2026 we read all 76 files in the skill's folder, starting with its 149-line SKILL.md. The section on what's inside comes from those files. Its license is MIT. Its files were last changed in April 2026.
On November 8, 2026 we ran it with Claude Opus 5.5 in Claude Code on a small Next.js product page we wrote with known problems. In 47 seconds it fixed five: four data requests that ran one after another now run together, an import from a shared index file that also pulled in an admin dashboard, the whole lodash library loaded in the browser for one sort, review lists computed in effects so the server sent them empty, and a cart that read localStorage during server rendering, which would crash. It said plainly that nothing was built or measured, because the test project had no data layer.
Building the page this skill reviews? The Builders course teaches the skills every site builder needs, from planning to publishing; it is in early access and open for pre-order.