What problem does it solve?
Large React and Next.js codebases often suffer from slow initial renders, excessive bundle sizes, server-side waterfalls, redundant serialization at server/client boundaries, and repeated I/O or compute on each request. These issues degrade user experience (LCP/TTI), increase hosting costs, and make iterative development slower due to long build and HMR times. This Skill provides prescriptive patterns and prioritized rules to locate and fix those performance bottlenecks.
Core Features & Use Cases
- Guided Ruleset: 58 concrete rules across Eliminating Waterfalls, Bundle Size Optimization, Server-Side Performance, Client Data Fetching, Re-render and Rendering optimizations, JavaScript performance, and Advanced Patterns.
- Actionable Examples: For each rule, paired incorrect/correct examples and impact reasoning to support automated refactors and human reviews.
- Agent-Friendly: Designed for LLMs and automation to apply fixes such as hoisting static I/O, parallelizing fetches, converting to dynamic imports, and minimizing RSC serialization during code transformations.
- Use Cases: Automated code reviews that prioritize fixes, refactor tasks to reduce bundle size, optimizing server actions and API routes, and generating targeted performance improvement suggestions for Next.js apps.
Quick Start
Ask the skill to analyze a Next.js page or component and return prioritized performance fixes with example code to eliminate waterfalls, reduce bundle size, and improve rendering.