vercel-react-best-practices

Apply best-practice guidelines to optimize React and Next.js performance.

Updated Sep 5, 2020
One-click install
npx skills add https://github.com/dtorras/dotfiles --skill vercel-react-best-practices-dtorras
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/dtorras/dotfiles/tree/main/config/claude/skills/vercel-react-best-practices
Command: npx skills add https://github.com/dtorras/dotfiles --skill vercel-react-best-practices-dtorras

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Performance bottlenecks in React and Next.js projects are common, and this set of guidelines provides a structured approach to identifying and fixing them to deliver faster, more reliable apps.

Core Features & Use Cases

  • 57 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
  • Clear, actionable patterns for eliminating waterfalls, reducing bundle size, optimizing server and client data fetches, and improving rendering performance.
  • Use cases include reviewing or refactoring components and pages, and validating performance improvements during CI or code reviews.

Quick Start

Review your React/Next.js project and apply the guidelines to identify and implement performance optimizations across data fetching, bundling, and rendering.

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 during a code review?▼

To optimize React and Next.js performance, apply structured best-practice guidelines across 57 rules spanning data fetching, bundling, and rendering. Review components against category-slug rules to systematically identify and eliminate performance bottlenecks.

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

The best way to eliminate data fetching waterfalls in Next.js is applying structured server- and client-side fetching guidelines. Use the server- and client- prefixed rules to parallelize fetches and avoid cascading request delays.

How can I reduce bundle size in a React application?▼

Reduce React bundle size by applying the bundle- prefixed optimization rules. These actionable patterns target unnecessary dependencies and inefficient imports, guiding automated refactoring to deliver a smaller, faster client bundle.

Does this React optimization approach work for both server-rendering and client-side rendering?▼

Yes, this React optimization approach applies to both server-rendering and client-side rendering. It provides dedicated guidelines for server and client data fetching, rendering performance, and rerender optimization across your Next.js application.

Why does my Next.js component re-render unnecessarily and how do I fix it?▼

Next.js components re-render unnecessarily due to improper state management or prop changes; fix them using rerender- prefixed rules. These guidelines offer actionable patterns to validate rendering performance and prevent avoidable re-executions.