react-best-practices

Audit React and Next.js applications for performance bottlenecks.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/VoTruongDanh/AI_Cafe --skill react-best-practices-votruongdanh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/VoTruongDanh/AI_Cafe/tree/main/ai-service/.agent/skills/nextjs-react-expert
Command: npx skills add https://github.com/VoTruongDanh/AI_Cafe --skill react-best-practices-votruongdanh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses common performance bottlenecks in React and Next.js applications, from slow page loads and large bundle sizes to excessive re-renders and inefficient data fetching.

Core Features & Use Cases

  • Performance Auditing: Identifies and prioritizes performance issues based on impact (Critical, High, Medium, Low).
  • Optimization Strategies: Provides concrete rules and code examples for eliminating waterfalls, reducing bundle size, optimizing server-side rendering, and improving client-side performance.
  • Use Case: A developer is experiencing slow initial load times on their Next.js e-commerce site. They use this Skill to identify that sequential data fetching is causing waterfalls and that large, unoptimized components are bloating the JavaScript bundle. They then apply the recommended fixes to parallelize data fetching and implement dynamic imports for heavy components.

Quick Start

Use the react-best-practices skill to audit the performance of the project located at '/app/src'.

Frequently Asked Questions about react-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix slow initial load times and large bundle sizes in my Next.js app?

To fix slow initial load times in Next.js, you can parallelize sequential data fetching to eliminate waterfalls and implement dynamic imports for heavy components to reduce your JavaScript bundle size.

What is the best way to audit React rendering performance and identify bottlenecks?

The best way to audit React rendering performance is to evaluate your application against a prioritized set of rules covering asynchronous operations, bundle size, and re-render optimization to identify critical bottlenecks.

How do I optimize client-side data fetching to prevent waterfalls in React?

To optimize client-side data fetching in React and prevent waterfalls, apply targeted rules that eliminate sequential fetching patterns and restructure your asynchronous operations for parallel execution.

Can I use these web vitals optimization rules for both React and Next.js projects?

Yes, you can use these web vitals optimization rules for both React and Next.js projects, as they comprehensively cover server-side performance, client-side data fetching, and JavaScript micro-optimizations.

Why does my Next.js e-commerce site experience slow interactivity despite code splitting?

Your Next.js site might experience slow interactivity due to unoptimized server-side rendering or excessive component re-renders, which require targeted rendering performance rules and micro-optimizations to resolve.