React and Next.js performance and engineering-quality guidelines from Vercel Engineering. Use when the task is specifically about React/Next performance, data fetching, server/client rendering, bundle size, hydration, or performance-oriented code review/refactoring. Do NOT use as the default for purely visual UI design or normal frontend creation; prefer impeccable unless performance or React architecture quality is part of the task.
Instalación
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
React and Next.js performance and engineering-quality guidelines from Vercel Engineering. Use when the task is specifically about React/Next performance, data fetching, server/client rendering, bundle size, hydration, or performance-oriented code review/refactoring. Do NOT use as the default for purely visual UI design or normal frontend creation; prefer impeccable unless performance or React architecture quality is part of the task.
license
MIT
metadata
{"author":"vercel","version":"1.0.0"}
Usage Rule
Use this skill on demand for React/Next.js performance and engineering-quality work.
Trigger it when the task clearly involves one of these goals:
Improving React or Next.js performance
Reviewing or refactoring React/Next.js data fetching, rendering, hydration, or bundle size
Diagnosing slow, janky, waterfall-heavy, or over-rendering React behavior
Applying Vercel-specific React/Next.js best practices during code review or implementation
Do not use this as the default for every frontend task.
For purely visual UI creation, landing pages, product surfaces, hierarchy, layout, or aesthetics, prefer impeccable
For flexible component API design, boolean prop proliferation, compound components, or reusable component architecture, prefer vercel-composition-patterns
For generic minimal-change coding discipline, use karpathy-guidelines rather than forcing performance refactors
When this skill is used, keep changes surgical. Do not introduce broad performance rewrites unless the task or evidence justifies them.
Vercel React Best Practices
Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 70 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
When to Apply
Reference these guidelines when:
Writing new React components or Next.js pages
Implementing data fetching (client or server-side)
Reviewing code for performance issues
Refactoring existing React/Next.js code
Optimizing bundle size or load times
Rule Categories by Priority
Priority
Category
Impact
Prefix
1
Eliminating Waterfalls
CRITICAL
async-
2
Bundle Size Optimization
CRITICAL
bundle-
3
Server-Side Performance
HIGH
server-
4
Client-Side Data Fetching
MEDIUM-HIGH
client-
5
Re-render Optimization
MEDIUM
rerender-
6
Rendering Performance
MEDIUM
rendering-
7
JavaScript Performance
LOW-MEDIUM
js-
8
Advanced Patterns
LOW
advanced-
Quick Reference
1. Eliminating Waterfalls (CRITICAL)
async-cheap-condition-before-await - Check cheap sync conditions before awaiting flags or remote values
async-defer-await - Move await into branches where actually used
async-parallel - Use Promise.all() for independent operations
async-dependencies - Use better-all for partial dependencies
async-api-routes - Start promises early, await late in API routes
async-suspense-boundaries - Use Suspense to stream content