React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
83
82%
Does it follow best practices?
Impact
72%
1.28xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Async waterfall elimination and server-side performance
Promise.all for independent fetches
100%
100%
Early promise initiation
0%
0%
better-all for partial deps
0%
0%
after() for non-blocking logging
0%
100%
after() import from next/server
0%
100%
Auth check in server action
0%
0%
No sequential awaits for independent ops
100%
100%
React.cache for auth deduplication
0%
0%
CHANGES.md documents optimizations
100%
100%
Functional correctness preserved
100%
100%
Bundle size optimization and dynamic imports
Direct icon imports
0%
100%
optimizePackageImports config
100%
100%
Dynamic import for editor
100%
100%
Editor ssr: false
100%
100%
Analytics deferred
100%
100%
Preload on hover/focus
100%
100%
typeof window check in preload
0%
100%
No static barrel import remaining
0%
100%
No static Analytics import
100%
100%
React re-render optimization and component patterns
TaskRow extracted
100%
100%
Lazy state init for search index
0%
0%
Functional setState in handleToggle
100%
100%
No items state sync effect
0%
0%
Submit logic in event handler
100%
100%
No useMemo on simple primitives
0%
0%
REFACTOR_NOTES.md exists
100%
100%
Consistent conditional rendering
50%
0%
No inline component definitions remain
100%
100%
49c351a
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.