What problem does it solve?
React and Next.js projects often ship with performance bottlenecks such as request waterfalls, bloated bundles, inefficient server rendering, redundant client fetching, and unnecessary re-renders that slow time to interactive and degrade user experience.
Core Features & Use Cases
- Eliminates async waterfalls: Refactors sequential awaits into parallel workflows in APIs, Server Actions, and data loading to reduce end-to-end latency.
- Shrinks bundle size: Prevents common import and code-splitting pitfalls (e.g., barrel imports, heavy static components) to improve load time.
- Optimizes server and client rendering: Uses server caching, RSC boundary discipline, Suspense streaming, and client deduplication patterns (SWR) to reduce wasted work.
- Reduces re-renders and rendering cost: Applies React-level techniques to avoid unnecessary state updates, stabilize callbacks, and improve list rendering performance.
- Micro-optimizes hot paths: Uses pragmatic JavaScript and algorithmic improvements (caching, loop patterns, immutability-friendly methods).
Quick Start
Use the react-best-practices skill to audit your app by asking: "Review my Next.js/React code for performance issues and propose the highest-impact fixes first, prioritizing waterfalls and bundle size."