react-best-practices

Review React and Next.js components against 45 performance optimization rules.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/AmidVoshakul/chatorai --skill react-best-practices-amidvoshakul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/AmidVoshakul/chatorai/tree/main/assets/skills/react-best-practices
Command: npx skills add https://github.com/AmidVoshakul/chatorai --skill react-best-practices-amidvoshakul

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pnpm, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses performance bottlenecks in React and Next.js applications by providing a structured, prioritized set of 45 optimization rules that prevent common issues like waterfalls, excessive bundle sizes, and unnecessary re-renders.

Core Features & Use Cases

  • Performance Auditing: Provides actionable guidance for refactoring code to eliminate network waterfalls and optimize server-side rendering.
  • Automated Refactoring: Offers clear incorrect vs. correct code patterns to guide developers and AI agents in writing high-performance components.
  • Use Case: When building a data-heavy dashboard, use these rules to implement parallel data fetching and dynamic imports, ensuring the application remains responsive and fast.

Quick Start

Use the react-best-practices skill to review the current component for potential performance improvements and suggest refactoring based on the provided rules.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I eliminate network waterfalls in React and Next.js applications?

To eliminate network waterfalls in React, implement parallel data fetching strategies and apply structured optimization rules to refactor component architecture and ensure high-performance UI development.

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

The best way to reduce bundle size in Next.js is by applying the 45 optimization rules provided, utilizing dynamic imports and automated code review patterns to prevent excessive bundle sizes and ensure scalable architecture maintenance.

How do I audit React components for unnecessary re-renders and performance bottlenecks?

You can audit React components for unnecessary re-renders by reviewing current components against incorrect vs. correct code patterns, leveraging the performance auditing framework to suggest actionable refactoring for rendering performance tuning.

Does this React performance optimization framework work for data-heavy dashboards?

Yes, this React performance optimization framework works for data-heavy dashboards by providing actionable guidance to implement parallel data fetching and dynamic imports, ensuring the application remains responsive and fast.

Can I use these React best practices with pnpm?

Yes, you can use these React best practices with pnpm, which is the required package manager dependency for setting up the environment and running the optimization scripts and references.

When should I not use dynamic imports for React performance tuning?

While the framework encourages dynamic imports to reduce bundle sizes, you should review the 45 prioritized rules to determine specific constraints, as applying optimizations incorrectly can sometimes introduce network waterfalls or delay critical rendering.