What problem does it solve?
This Skill provides a prioritized, actionable checklist to identify and eliminate common performance anti-patterns in React and Next.js applications, enabling faster initial paint, lower bundle size, and more efficient server/client data fetching. It is written for automated agents and engineers to guide code generation, automated refactors, and code reviews so that performance improvements are consistent and measurable. The guidance covers both high-impact systemic issues and incremental micro-optimizations.
Core Features & Use Cases
- Prioritized Rule Set: 40+ rules grouped by impact (eliminating waterfalls, bundle size, server-side, client fetching, re-renders, rendering, JS micro-optimizations, advanced patterns) to guide automated changes.
- Agent-Optimized Guidance: Concrete incorrect vs correct examples, trade-offs, and references designed for LLM-driven refactoring and review workflows.
- Use Cases: Audit a Next.js page to remove waterfall fetches, refactor imports to reduce bundle size, add Suspense boundaries for streaming, or apply server-side caching patterns.
Quick Start
Use the react-best-practices skill to audit the provided Next.js page and refactor it to eliminate waterfalls, reduce bundle size, and apply server/client data fetching optimizations.