vercel-react-best-practices

Review React and Next.js code for runtime performance and bundle size issues.

1|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/Moisesjr20/gueclaw --skill vercel-react-best-practices-moisesjr20
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/Moisesjr20/gueclaw/tree/main/.agents/skills/react-best-practices/upstream
Command: npx skills add https://github.com/Moisesjr20/gueclaw --skill vercel-react-best-practices-moisesjr20

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a concise, prioritized set of rules and patterns to eliminate performance regressions, reduce bundle size, and avoid server-client waterfalls in React and Next.js codebases so automated agents and engineers can produce faster, smaller, and more resilient applications.

Core Features & Use Cases

  • Actionable Rules: 64+ rules across Eliminating Waterfalls, Bundle Size, Server-Side Performance, Client Data Fetching, Re-render Optimization, Rendering Performance, JavaScript micro-optimizations, and Advanced Patterns.
  • Agent-Friendly Guidance: Explicit examples of incorrect vs. correct implementations and impact metrics for automated refactoring, code generation, and review workflows.
  • Use Cases: Automated code reviews to remove sequential awaits, refactoring to dynamic imports, restructuring server components to parallelize fetches, and minimizing serialized props for client components.

Quick Start

Use vercel-react-best-practices to audit a React or Next.js component, identify waterfall and bundle issues, and produce prioritized fixes for improved load and render performance.

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 eliminate server-client waterfalls in Next.js applications?

To eliminate server-client waterfalls in Next.js, you restructure server components to parallelize data fetches and minimize serialized props passed across the React Server Component boundaries. This approach removes sequential awaits and significantly improves load times.

What is the best way to reduce bundle size in React and Next.js?

The best way to reduce bundle size in React and Next.js is applying code-splitting and dynamic imports during component design. Hoisting static I/O and minimizing client-side JavaScript micro-optimizations also decrease the final build footprint.

How do I optimize data fetching strategies for React server components?

Optimizing data fetching for React server components requires parallelizing fetches instead of using sequential awaits. By hoisting static I/O and minimizing serialization at RSC boundaries, you ensure faster runtime performance and smaller payloads.

Can I use automated code review to detect React performance regressions?

Yes, you can use automated code review to detect React performance regressions by checking over 64 prioritized rules. These rules identify sequential awaits, improper dynamic imports, and excessive re-renders to produce faster, more resilient applications.

When should I use dynamic imports instead of static imports in Next.js?

You should use dynamic imports instead of static imports in Next.js when targeting reduced bundle size and code-splitting. This approach delays loading non-critical JavaScript, improving initial load performance without sacrificing server-side rendering capabilities.

Why does my Next.js app have slow render performance despite server-side rendering?

Slow render performance in Next.js apps despite server-side rendering often stems from unoptimized client components, excessive re-renders, or heavy serialized props. Applying re-render optimization and minimizing client-side JavaScript resolves these bottlenecks.