react-best-practices

Apply performance best practices to React and Next.js code.

Updated May 25, 2026
One-click install
npx skills add https://github.com/cmetech/otto-cli --skill react-best-practices-cmetech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/cmetech/otto-cli/tree/main/src/resources/skills/react-best-practices
Command: npx skills add https://github.com/cmetech/otto-cli --skill react-best-practices-cmetech

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js projects often struggle with performance due to suboptimal rendering, data fetching, and bundle patterns. This skill provides a structured set of guidelines to help teams apply efficient patterns consistently across codebases.

Core Features & Use Cases

  • Catalog of proven performance patterns for React and Next.js applications.
  • Aids code reviews and refactors to reduce waterfalls, SSR bottlenecks, and bundle bloat.
  • Supports automation-driven improvements during code generation and review tasks.

Quick Start

Analyze a React/Next.js project and apply the documented performance patterns to optimize rendering and bundle size.

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 rendering performance in a large application?

To optimize React rendering performance, apply structured patterns that reduce render waterfalls, improve component efficiency, and minimize client bundle size. Consistent performance patterns help teams address suboptimal rendering and data fetching bottlenecks during code generation and reviews.

What are the best practices for Next.js SSR performance and data fetching?

Next.js SSR performance best practices involve enforcing patterns that reduce data fetching waterfalls and improve server-side rendering throughput. Applying these documented patterns during refactors helps identify and resolve bottlenecks in Next.js pages and data fetching routines.

How do I reduce client bundle size in a React project?

Reduce client bundle size in React projects by applying optimization patterns that minimize bloat and enforce efficient bundling. Analyze the codebase and apply documented performance guidelines to streamline imports and reduce the overall client-side payload.

Can I use these performance patterns for React code reviews and refactoring?

Yes, you can use these performance patterns for React code reviews and refactoring. The guidelines support automation-driven improvements by identifying suboptimal rendering, data fetching waterfalls, and bundle bloat during code review and refactoring tasks.

Why does my Next.js application have data fetching waterfalls and how do I fix them?

Data fetching waterfalls in Next.js happen when requests resolve sequentially. Fix them by applying performance patterns that enforce parallel data fetching and optimized SSR logic, reducing waterfalls and improving overall page load performance.