Development · GitHub repo
react-best-practices
Curated React performance rules and coding-agent skills by Vercel
react-best-practices is an open-source knowledge base and agent skill developed by Vercel to optimize React and Next.js applications. It organizes over 40 performance rules ranked by impact—from eliminating request waterfalls to cutting bundle sizes—into formats consumable by developers and AI coding agents. The rules compile into an AGENTS.md document to guide automated refactoring tools like Cursor, Claude Code, and Codex.
What it's for
- Install as an AI coding agent skill to automatically detect React performance anti-patterns
- Identify and fix asynchronous request waterfalls in Next.js codebases
- Audit React components to minimize client bundle bloat and unnecessary re-renders
- Provide consistent optimization guidelines across engineering teams during code reviews
Features
- Over 40 performance rules across 8 core categories including waterfalls, bundle size, and re-rendering
- Impact ratings from CRITICAL to LOW to help prioritize high-yield fixes first
- Code examples contrasting incorrect anti-patterns with optimized implementations
- AGENTS.md compilation designed specifically for LLMs and AI coding assistants
- Direct installation into tools like Cursor, Claude Code, and Codex via npx skills
Pricing
Open source. Free and open source
Details
- Type
- GitHub repo
- Category
- Development
- Topic
- Developer Tools
- Open source
- Yes
- Platforms
- Command line, Code library
- For
- React and Next.js developers, performance engineers, and teams using AI coding agents
- Tags
- react, nextjs, performance, ai agents, coding agent, vercel
Why it was saved
Related
Connects AI coding agents to browser annotations for automated UI reviews
Office document creation and editing skills for Claude Code CLI.
TypeScript SDK for adding and managing custom customer domains across platforms
Agent harness optimization system with skills, hooks, and configs for coding agents
Curated list of eight front-end design and developer utility tools
Command-line screen, camera, and audio recorder for macOS
Updated