Overview
The Vercel React Best Practices agent skill provides comprehensive performance optimization guidelines for React and Next.js applications. This skill contains 57 rules across 8 categories, prioritized by impact from critical (eliminating waterfalls, reducing bundle size) to incremental improvements.Production Origin: These patterns are maintained by Vercel Engineering and are battle-tested in production environments.
What This Skill Does
The skill guides AI agents to write, review, and refactor React/Next.js code following performance best practices:- Eliminates Waterfalls - Parallelize async operations, defer awaits, use Suspense boundaries
- Optimizes Bundle Size - Direct imports, dynamic imports, code splitting
- Improves Server-Side Performance - React.cache(), LRU caching, minimal serialization
- Enhances Client-Side Fetching - SWR deduplication, event listener optimization
- Reduces Re-renders - Memoization, derived state, transitions
- Boosts Rendering Performance - Content visibility, SVG optimization, hydration fixes
- Optimizes JavaScript - Loop improvements, Set/Map usage, early returns
- Advanced Patterns - useEffectEvent, stable callbacks, app initialization
Location in TailStack Packages
The Vercel React Best Practices skill is available in multiple packages across the monorepo:React Package
Core Package
Skill Structure
Skill Contents
Each skill directory contains:
- SKILL.md - Skill metadata and quick reference guide
- AGENTS.md - Full compiled documentation with all rules
- rules/ - Individual rule files (57 total) organized by category:
async-*.md- Eliminating waterfalls (5 rules)bundle-*.md- Bundle size optimization (5 rules)server-*.md- Server-side performance (7 rules)client-*.md- Client-side data fetching (4 rules)rerender-*.md- Re-render optimization (12 rules)rendering-*.md- Rendering performance (9 rules)js-*.md- JavaScript performance (12 rules)advanced-*.md- Advanced patterns (3 rules)
Using with AI Agents
Claude Desktop & Claude.ai
Reference in Conversations
Claude automatically loads skills from the
.claude/ directory when working in the project.Cursor
OpenCode
Load the Skill
Skills in
packages/react/.opencode/skills/vercel-react-best-practices/ are automatically availableGeneric AI Agents
Read AGENTS.md
The complete guide is in
packages/react/.agent/skills/vercel-react-best-practices/AGENTS.mdKey Rule Categories
Critical Impact Rules
Eliminating Waterfalls
Impact: CRITICAL - 2-10× improvement
async-parallel- Promise.all() for independent operationsasync-dependencies- better-all for partial dependenciesasync-defer-await- Move await into branchesasync-api-routes- Start promises early in API routesasync-suspense-boundaries- Strategic Suspense boundaries
Bundle Size
Impact: CRITICAL - Directly affects TTI and LCP
bundle-barrel-imports- Direct imports (200-800ms saved)bundle-dynamic-imports- Use next/dynamicbundle-defer-third-party- Load after hydrationbundle-conditional- Load only when neededbundle-preload- Preload on hover/focus
High Impact Rules
Server-Side Performance
Impact: HIGH - Eliminates server waterfalls
server-auth-actions- Authenticate server actionsserver-cache-react- React.cache() for deduplicationserver-cache-lru- Cross-request cachingserver-serialization- Minimize data passed to clientserver-parallel-fetching- Parallel component fetchesserver-dedup-props- Avoid duplicate serializationserver-after-nonblocking- Use after() for side effects
Example: Applying a Rule
Performance Impact: Changes from 3 sequential round trips to 1 parallel round trip - 3× faster on 100ms latency
When to Apply This Skill
The skill should be referenced when:Writing New Code
- Creating React components
- Building Next.js pages
- Implementing data fetching
- Setting up API routes
Code Review
- Reviewing for performance
- Refactoring existing code
- Optimizing bundle size
- Reducing load times
Official Documentation
Learn More
- Skills.sh Skill Page: vercel-react-best-practices
- GitHub Source: Complete rules and examples in the skill directory
- Vercel Engineering: Maintained by the Vercel team
Related Skills
- Tailwind v4 + Shadcn - For styling optimizations
- Node.js Backend Patterns - For API route best practices
Version Information
- Skill Version: 1.0.0
- Author: Vercel Engineering
- License: MIT
- Last Updated: January 2026