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.
Install with Tessl CLI
npx tessl i github:tibelf/ai_project_init --skill vercel-react-best-practices82
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Bundle optimization and async waterfall elimination
Direct imports used
100%
100%
Dynamic import for heavy components
100%
100%
Analytics deferred post-hydration
100%
100%
Conditional module loading
100%
100%
Promise.all for parallel fetches
100%
100%
Promises started early
100%
100%
Suspense boundaries present
100%
100%
Await deferred to usage site
44%
77%
Hover/focus preload present
0%
0%
No unnecessary top-level awaits
66%
77%
SSR disabled where appropriate
100%
37%
Without context: $0.4523 · 1m 51s · 23 turns · 30 in / 6,511 out tokens
With context: $0.8012 · 3m 8s · 34 turns · 298 in / 11,466 out tokens
Server-side caching and re-render optimization
React.cache() used
100%
100%
LRU cache for cross-request
0%
0%
Server data serialization minimized
75%
87%
Parallel server fetches
100%
100%
after() for side effects
0%
100%
Memoized expensive component
100%
100%
Functional setState used
50%
100%
Lazy state initialization
0%
0%
Primitive useEffect dependencies
50%
0%
startTransition for filter/search
37%
100%
Derived state subscription
28%
0%
SWR for client dedup
0%
0%
Without context: $0.6255 · 3m · 22 turns · 27 in / 11,328 out tokens
With context: $0.6705 · 2m 22s · 32 turns · 69 in / 8,548 out tokens
Rendering performance and JavaScript optimization
SVG animated via wrapper div
55%
100%
content-visibility applied
0%
0%
Static JSX hoisted
0%
0%
Ternary for conditional render
62%
37%
Map/Set for O(1) lookups
0%
22%
Index Map built once
0%
0%
Combined filter/map iterations
100%
100%
RegExp hoisted outside loop
0%
50%
toSorted() for immutable sort
0%
50%
Early returns present
100%
100%
Hydration flicker prevention
77%
100%
Loop-based min/max
100%
100%
Without context: $0.5636 · 2m 11s · 26 turns · 31 in / 8,828 out tokens
With context: $0.6914 · 2m 51s · 26 turns · 30 in / 11,039 out tokens
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.