vercel-react-best-practices

Identify and eliminate waterfalls, oversized bundles, and inefficient server/client boundaries in React and Next.js applications.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Chris-Maskey/opencode-config --skill vercel-react-best-practices-chris-maskey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/Chris-Maskey/opencode-config/tree/main/skills/vercel-react-best-practices
Command: npx skills add https://github.com/Chris-Maskey/opencode-config --skill vercel-react-best-practices-chris-maskey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

These guidelines eliminate common performance pitfalls in React and Next.js codebases so applications load faster, render sooner, and use fewer resources. The document targets waterfalls, oversized bundles, inefficient server/client boundaries, and suboptimal rendering patterns that degrade user experience and increase costs.

Core Features & Use Cases

  • Pattern-driven optimizations: Clear rules for eliminating async waterfalls, maximizing parallel fetches, and using Suspense boundaries to improve initial paint.
  • Bundle and runtime guidance: Recommendations for avoiding barrel imports, deferring third-party libraries, dynamic imports, and preloading strategies to reduce bundle size and cold-start costs.
  • Server & RSC best practices: Advice on per-request deduplication, cross-request LRU caching, minimizing RSC serialization, and authenticating server actions to improve latency and security.
  • Developer workflows: Use when writing, reviewing, or refactoring React/Next.js code to produce prioritized, actionable refactors and code examples that agents or engineers can apply.

Quick Start

Audit a Next.js page and return a prioritized list of concrete code changes to eliminate waterfalls, reduce bundle size, and minimize 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 application performance?

You can optimize React and Next.js application performance by eliminating async waterfalls, reducing oversized bundles via dynamic imports, and fixing inefficient server/client boundaries to improve initial paint times and lower resource costs.

What is the best way to eliminate data fetching waterfalls in Next.js?

Eliminating data fetching waterfalls in Next.js requires maximizing parallel fetches and using Suspense boundaries. This pattern-driven optimization prevents sequential blocking and significantly improves initial render performance.

How do I minimize RSC serialization in Next.js Server Components?

Minimizing RSC serialization in Next.js Server Components involves applying per-request deduplication and cross-request LRU caching. These server-side best practices reduce payload sizes and improve overall latency.

How can I reduce bundle size when using third-party libraries in React?

Reducing bundle size when using third-party libraries in React involves avoiding barrel imports, deferring third-party library loading, and applying dynamic imports. These strategies reduce bundle size and cold-start costs.

Does this approach work for refactoring existing Next.js pages and API routes?

Yes, this approach works for refactoring existing Next.js pages and API routes. It generates prioritized, actionable refactors and code examples that engineers or automated agents can apply directly to component development and server actions.

When should I not use dynamic imports for bundle optimization?

Dynamic imports for bundle optimization should be avoided when they introduce rendering delays that outweigh the initial load benefits. You should balance deferring third-party libraries against the need for immediate content rendering and Suspense boundary stability.