react-best-practices

Analyze React and Next.js codebases for performance bottlenecks and prioritized fixes.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/pckienuit/GameDev1 --skill react-best-practices-pckienuit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/pckienuit/GameDev1/tree/main/.cursor/skills/nextjs-react-expert
Command: npx skills add https://github.com/pckienuit/GameDev1 --skill react-best-practices-pckienuit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps teams diagnose and fix React and Next.js performance issues before they reach production, replacing guesswork with prioritized, actionable guidance.

Core Features & Use Cases

  • Reviews code for sequential data fetching, excessive bundle size, server-side delays, client-side duplication, re-render waste, rendering bottlenecks, and JavaScript hot-path inefficiencies.
  • Guides optimization work using a layered playbook that starts with critical waterfalls and bundle issues, then moves through server, client, rendering, and micro-optimizations.
  • Includes an audit script for scanning a project and surfacing likely performance risks, making it useful for code reviews, release readiness checks, and feature performance tuning.

Quick Start

Ask this skill to review your React or Next.js project for performance bottlenecks and return a prioritized fix list with concrete code-level recommendations.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I find and fix React and Next.js performance bottlenecks in my codebase?

To fix React performance bottlenecks, analyze your codebase for slow page loads, waterfalls, and unnecessary re-renders. This process applies a layered playbook to return a prioritized fix list with actionable code-level recommendations.

What causes unnecessary re-renders and rendering inefficiencies in React components?

Unnecessary re-renders and rendering inefficiencies in React components are caused by poor state management and unoptimized data workflows. Analyzing component and API workflows identifies these issues and applies fixes like memoization to reduce waste.

How do I reduce bundle size and fix slow page loads in a Next.js application?

To reduce bundle size and fix slow page loads in a Next.js application, analyze your code for bundle bloat and server-side delays. The optimization process prioritizes direct imports and image optimization to minimize loading times.

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

The best way to resolve data fetching waterfalls in Next.js is to analyze API workflows for sequential data fetching. Applying parallel data fetching techniques eliminates these critical bottlenecks and improves overall page responsiveness.

Does this performance optimization approach work for both server-side rendering delays and client-side duplication?

Yes, this performance optimization approach works for both server-side rendering delays and client-side duplication. It reviews code to identify server delays and client-side waste, guiding layered optimizations across both environments.