vercel-react-best-practices

Optimize React and Next.js codebases for runtime performance and bundle size.

2|2|Updated Jul 1, 2025
One-click install
npx skills add https://github.com/Rafaelp122/wedding_management --skill vercel-react-best-practices-rafaelp122
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/Rafaelp122/wedding_management/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/Rafaelp122/wedding_management --skill vercel-react-best-practices-rafaelp122

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vercel React Best Practices eliminates common performance regressions and architectural anti-patterns in React and Next.js codebases by providing concrete, prioritized rules to reduce waterfalls, shrink bundles, and improve server- and client-side data fetching and rendering. It targets hard-to-detect inefficiencies (sequential awaits, oversized imports, improper SSR patterns, and excessive serialization) that degrade Time to Interactive, Largest Contentful Paint, and developer productivity.

Core Features & Use Cases

  • Rule-driven guidance: 70+ actionable rules across eliminating waterfalls, bundle-size optimization, server performance, client fetching, re-render reduction, rendering performance, JS micro-optimizations, and advanced patterns.
  • Automated refactoring & reviews: Use for code review, automated lint/fix suggestions, PR feedback, and agent-driven refactors to apply Promise.all, better-all patterns, dynamic imports, Suspense boundaries, React.cache, LRU caching, and hoisting static I/O.
  • Real-world scenarios: Improve dashboard cold starts, reduce Next.js bundle weight, prevent RSC serialization bloat, secure Server Actions, and parallelize nested fetches to cut latency across production apps.

Quick Start

Ask the agent to analyze my React/Next.js repository and produce prioritized performance fixes for waterfalls, bundle size, server-side bottlenecks, and RSC serialization.

Frequently Asked Questions about vercel-react-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize React and Next.js bundle size and runtime performance?

Optimize React and Next.js performance by eliminating waterfalls, minimizing initial bundles, and improving rendering patterns using dynamic imports, Suspense boundaries, and React.cache to reduce latency and bundle weight.

What is the best way to fix sequential await waterfalls in Next.js server components?

Fix sequential await waterfalls in Next.js by parallelizing nested fetches with Promise.all and applying deferred awaits to cut latency and improve server-side data fetching performance.

Can I use this to automate React code reviews for performance anti-patterns?

Yes, you can use this for automated refactoring and code reviews to detect performance anti-patterns, enforce better-all patterns, and provide pull-request suggestions across components and API routes.

How do I reduce excessive RSC serialization in my Next.js application?

Reduce RSC serialization bloat by hoisting static I/O, minimizing initial bundle serialization, applying React.cache and LRU caching, and avoiding shared module state across server components.

When should I use dynamic imports and Suspense boundaries in React?

Use dynamic imports and Suspense boundaries in React to minimize initial JavaScript bundles, defer non-critical component loading, and improve Largest Contentful Paint and Time to Interactive metrics.