react-best-practices

Analyze React/Next.js codebases and apply performance optimization guidelines.

40|9|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/akillness/oh-my-skills --skill react-best-practices-akillness
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/akillness/oh-my-skills/tree/main/.agent-skills/react-best-practices
Command: npx skills add https://github.com/akillness/oh-my-skills --skill react-best-practices-akillness

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps engineers and AI agents optimize React and Next.js projects by recommending and enforcing performance best practices across components, data fetching, and bundling strategies.

Core Features & Use Cases

  • Rationale and rules for eliminating waterfalls, reducing bundle size, parallel data fetching, and server/client performance patterns.
  • Practical guidance for refactoring tasks, automated code generation, and review checks to maintain high-performance codebases.
  • Use Case: A team wants to cut TTI and LCP on a Next.js app by restructuring components, enabling Suspense, and applying dynamic imports.

Quick Start

Instruct your AI to audit a codebase and generate a prioritized list of performance improvements with actionable tasks.

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 for slow loading pages?

To optimize React and Next.js performance, apply guidelines that eliminate data fetching waterfalls, reduce bundle size, and enforce server-side patterns. Restructuring components and enabling Suspense effectively lowers TTI and LCP metrics.

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

Reducing Next.js bundle size involves applying dynamic imports and enforcing bundling best practices. Analyzing your codebase identifies heavy components, allowing you to split bundles and improve client-side performance.

How do I use Suspense to improve React data fetching and page load times?

Using Suspense improves React data fetching by enabling parallel data retrieval and preventing waterfall requests. Applying Suspense boundaries allows components to stream independently, reducing overall page load times.

Can I audit my existing React codebase to generate a prioritized performance improvement list?

Yes, you can audit an existing React codebase to generate a prioritized list of performance improvements. The analysis evaluates components and data fetching patterns, outputting actionable refactoring tasks for bundle optimization.

Why does my Next.js app have slow server-side performance and how do I fix it?

Slow Next.js server-side performance often stems from sequential data fetching and unoptimized component structures. Fix it by applying server-side performance patterns, parallelizing data requests, and refactoring components.