What problem does it solve?
This Skill helps front-end engineers identify and fix performance regressions in React and Next.js applications by focusing on Core Web Vitals, long tasks, and inefficient rendering patterns to improve perceived load, interaction latency, and visual stability.
Core Features & Use Cases
- Measure before optimizing: workflow and tools to profile with React DevTools Profiler and Web Vitals.
- Core Web Vitals targets: concrete goals for LCP, INP, and CLS and actions to reach them.
- Lazy loading & code splitting: guidance for React lazy/Suspense and next/dynamic for browser-only modules.
- Memoization & rendering: when to use useMemo, useCallback, and React.memo with profiler-driven rules.
- Virtualization: when and how to virtualize long lists using @tanstack/react-virtual.
- Image and bundle optimization: next/image usage, priority and sizes, bundle analysis and size budgets.
- Monitoring & observability: how to collect and report Web Vitals for ongoing measurement.
Quick Start
Use the performance-rules skill to analyze a Next.js page, measure LCP/INP/CLS with the profiler, and get prioritized optimizations.