Use when Core Web Vitals are degraded, bundle size is too large, or React/Next.js rendering is slow — covers profiling, bundle analysis, and optimization patterns
Instalación
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Use when Core Web Vitals are degraded, bundle size is too large, or React/Next.js rendering is slow — covers profiling, bundle analysis, and optimization patterns
tier
HIGH
value_tier
production
tags
["performance","web-vitals","optimization"]
entitlements
{"product_tiers":["all"],"agent_access":["all"]}
Performance Optimization Skill
Core Web Vitals
LCP (Largest Contentful Paint) < 2.5s
Preload hero images
Use next/image with proper sizes
Font optimization with next/font
Server-side render above-the-fold content
CLS (Cumulative Layout Shift) < 0.1
Reserve space for images/videos
Use CSS aspect-ratio
Font display: swap
Avoid dynamically injected content
FID/INP (First Input Delay/Interaction to Next Paint) < 100ms
Code splitting
Defer non-critical JS
Minimize main thread work
Use web workers for heavy computation
Bundle Optimization
Dynamic Imports
constHeavyComponent = dynamic(() =>import('./HeavyComponent'), {
loading: () =><Skeleton />,
ssr: false// Disable SSR if needed
})