react-best-practices

Audit React and Next.js codebases for performance optimization opportunities.

Updated Jul 9, 2025
One-click install
npx skills add https://github.com/underPressue/dotfiles --skill react-best-practices-underpressue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/underPressue/dotfiles/tree/main/.claude/skills/react-best-practices
Command: npx skills add https://github.com/underPressue/dotfiles --skill react-best-practices-underpressue

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill consolidates React and Next.js performance guidelines from Vercel Engineering to help teams write faster, more maintainable code and prevent regressions.

Core Features & Use Cases

  • Comprehensive rules across 8 categories including Eliminating Waterfalls, Bundle Size Optimization, Server-Side Performance, Client-Side Data Fetching, Re-render Optimization, Rendering Performance, JavaScript Performance, and Advanced Patterns.
  • Actionable patterns with practical examples and checklists to guide automated workflows, refactors, and code reviews.
  • Use cases for automating performance audits, generating prioritized improvement plans, and coaching teams on best practices.

Quick Start

Use the React Best Practices skill to audit a React/Next.js project and generate a prioritized improvement plan.

Frequently Asked Questions about 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 during a code review, apply actionable rules across eight categories including bundle size reduction, server-side rendering, and eliminating data waterfalls. This enforces critical patterns using practical examples and checklists.

What are the best practices for reducing bundle size in a Next.js application?

Best practices for reducing bundle size in a Next.js application involve applying specific bundle size optimization rules. These practices guide refactoring and reviewing code to decrease loading times and improve overall user experience.

How does eliminating waterfalls improve React data fetching performance?

Eliminating waterfalls improves React data fetching performance by preventing sequential blocking requests. Applying this optimization pattern ensures parallel data fetching, which significantly reduces loading times and enhances the user experience.

Can I automate a React performance audit for my existing codebase?

Yes, you can automate a React performance audit for your existing codebase. The skill supports automating performance audits to identify rendering inefficiencies and generate prioritized improvement plans based on Vercel Engineering guidelines.

When should I use Suspense for server-side rendering optimizations in Next.js?

Use Suspense for server-side rendering optimizations in Next.js when you need to enforce critical rendering patterns. It supports improving loading times by managing asynchronous components and optimizing the rendering pipeline.

How do I stop unnecessary re-renders in my React components?

To stop unnecessary re-renders in React components, apply re-render optimization rules from the skill. It provides actionable patterns and practical examples to coach teams on rendering efficiencies and prevent performance regressions.