vercel-labs avatar

Vercel React Best Practices

This is Vercel's internal performance optimization guide turned into a Claude skill, covering 57 rules across 8 categories from eliminating request waterfalls to bundle size optimization. Use it when writing or reviewing React and Next.js code where performance matters. The rules are prioritized by impact, which is smart since you'll spend most of your time on things like avoiding barrel imports and parallelizing data fetches rather than micro-optimizing JavaScript loops. Each rule includes before and after examples. The categories make sense: waterfalls and bundle size are marked critical, server-side patterns are high priority, and things like SVG coordinate precision are appropriately labeled low impact. Good reference for teams that need consistent patterns across a codebase.

skills.sh installs
408
GitHub stars
279
last updated
Aug 21, 2026

Install

$ npx -y skills add vercel-labs/agent-eval --skill vercel-react-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Vercel React Best Practices

Comprehensive performance optimization guide for React and Next.js applications, maintained by Vercel. Contains 57 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

PriorityCategoryImpactPrefix
1Eliminating WaterfallsCRITICALasync-
2Bundle Size OptimizationCRITICALbundle-
3Server-Side PerformanceHIGHserver-
4Client-Side Data FetchingMEDIUM-HIGHclient-
5Re-render OptimizationMEDIUMrerender-
6Rendering PerformanceMEDIUMrendering-
7JavaScript PerformanceLOW-MEDIUMjs-
8Advanced PatternsLOWadvanced-

Quick Reference

1. Eliminating Waterfalls (CRITICAL)

Sponsors

Details

Repository
github.com/vercel-labs/agent-eval
Categories
Frontend Development, Documentation, Code Review & Quality, AI & Agent Building, Debugging, Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel-labs/agent-eval

All 3
1ofershap avatartailwind-best-practicesofershap/tailwind-best-practicesStop your AI agent from generating Tailwind CSS v3 code. Rules for v4 syntax, CSS-first config, modern utility patterns, and common anti-patterns.405skills.sh installs
2secondsky avatarnuxt-coresecondsky/claude-skills| Nuxt 4 core framework fundamentals: project setup, configuration, routing, SEO, error handling, and directory structure. Use when: creating new Nuxt 4 project401skills.sh installs
3secondsky avatarnuxt-datasecondsky/claude-skills| Nuxt 4 data management: composables, data fetching with useFetch/useAsyncData, and state management with useState and Pinia. Use when: creating custom composa400skills.sh installs
4vercel-labs avatarjson-render-reactvercel-labs/json-renderReact renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating com391skills.sh installs
5gohypergiant avataraccelint-nextjs-best-practicesgohypergiant/agent-skillsNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions,386skills.sh installs
6bobmatnyc avatarnextjs-v16bobmatnyc/claude-mpm-skillsNext.js 16 migration guide (async request APIs, "use cache", Turbopack)380skills.sh installs