vercel-react-best-practices

Apply 58 performance rules across 8 categories to React and Next.js code.

6.2k|818|Updated Feb 26, 2023
One-click install
npx skills add https://github.com/JimmyLv/BibiGPT-v1 --skill vercel-react-best-practices-jimmylv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/JimmyLv/BibiGPT-v1/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/JimmyLv/BibiGPT-v1 --skill vercel-react-best-practices-jimmylv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js projects frequently suffer from slow initial renders, bloated bundles, and inefficient data-fetching patterns. This Skill consolidates proven performance patterns from Vercel Engineering to help teams identify and fix these issues across codebases.

Core Features & Use Cases

Contains 58 rules across 8 categories, prioritized to guide automated refactoring and code generation. Key areas include Eliminating Waterfalls, Bundle Size Optimization, Server-Side Performance, Client-Side Data Fetching, Re-render Optimization, Rendering Performance, JavaScript Performance, and Advanced Patterns. Use cases include when writing new React components or Next.js pages, reviewing code for performance issues, refactoring existing code to achieve faster loads, and optimizing data flow and asset handling.

Quick Start

Audit your React/Next.js codebase and begin applying the 58 rules across 8 categories to improve load times, interactivity, and bundle efficiency.

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 slow initial renders?

To optimize React and Next.js performance, apply a structured set of 58 best practices across 8 categories. These rules target slow initial renders by eliminating data-fetching waterfalls, reducing bundle size, and enforcing server-side performance patterns.

What is the best way to reduce bundle size in a Next.js application?

The best way to reduce Next.js bundle size is to apply specific bundle optimization rules from Vercel Engineering. This involves auditing your codebase against structured patterns to identify and refactor inefficient JavaScript imports and asset handling.

How do I eliminate data-fetching waterfalls in React components?

To eliminate data-fetching waterfalls in React components, apply structured waterfall elimination patterns during code review and refactoring. These rules optimize client-side data fetching and server-side data flows to prevent sequential loading delays.

How do I prevent unnecessary re-renders when writing React components?

To prevent unnecessary re-renders when writing React components, follow structured re-render optimization rules. These patterns guide how you write and refactor component data flow and rendering logic to minimize wasted render cycles.

Can I use these performance patterns to refactor existing Next.js pages?

Yes, you can use these performance patterns to refactor existing Next.js pages. The rules are designed to audit existing code, identify performance issues across your projects, and guide automated refactoring for faster loads.

When should I apply server-side performance patterns over client-side data fetching?

Apply server-side performance patterns over client-side data fetching when initial load speed and bundle efficiency are critical. The rules prioritize server-side execution and server-actions to reduce client-side JavaScript execution and data fetching delays.