vercel-react-best-practices

Apply React and Next.js performance guidelines to optimize code paths and reduce bundle size.

29.9k|2.7k|Updated Dec 8, 2025
One-click install
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-react-best-practices-vercel-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/vercel-labs/agent-skills/tree/main/skills/react-best-practices
Command: npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-react-best-practices-vercel-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured, agent-friendly guide to applying React and Next.js performance best practices to improve speed, reliability, and user experience.

Core Features & Use Cases

  • Comprehensive rules across 8 categories to guide code reviews and refactors
  • Prioritized guidance to reduce waterfalls, bundle size, and rendering work
  • Use cases include writing new components, auditing existing code, and optimizing data fetching

Quick Start

Apply these guidelines to a React/Next.js project by identifying hotspots and prompting targeted refactors.

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 performance for data fetching and rendering?

To optimize React and Next.js performance, apply structured best practices that reduce data fetching waterfalls, minimize bundle size, and enforce deterministic patterns across server/client boundaries to improve speed and reliability.

What are the best practices for React and Next.js code refactoring?

React and Next.js code refactoring best practices involve enforcing deterministic patterns and validation rules across component development and server/client boundaries to enable AI-assisted refactoring and minimize rendering work.

How do I reduce bundle size in a Next.js application?

Reduce Next.js bundle size by applying targeted performance guidelines across component development and data fetching to identify hotspots, enforce deterministic patterns, and prompt refactors that minimize unnecessary rendering work.

Can I use these performance guidelines to audit existing React components?

Yes, you can use these React performance guidelines to audit existing components. The rules cover eight categories to guide code reviews, identify performance hotspots, and apply targeted refactors to optimize code paths.

When should I optimize the server and client boundaries in Next.js?

Optimize server and client boundaries in Next.js when aiming to reduce waterfalls and minimize bundle size. Applying structured performance guidelines across these boundaries ensures reliable code paths and improved user experience during refactoring.