role-frontend:frontend-performance
Installation
SKILL.md
Frontend Performance
When to use
- Diagnosing or improving Core Web Vitals scores (LCP, INP, CLS)
- Reducing JavaScript bundle size or fixing slow load times
- Optimizing images, fonts, or network resource loading
- Choosing between SSR, SSG, RSC, Islands rendering strategies
- Implementing animations without janking the main thread
- Setting up performance monitoring and budgets in CI
Core principles
- Measure before optimizing — profile first, then fix the specific bottleneck
- LCP image must never be lazy-loaded —
fetchpriority="high"+loading="eager"always - Budget enforced in CI —
size-limitor Lighthouse CI blocks regressions before they ship - Animate transform and opacity only — everything else triggers layout or paint
- Server state before client state — SSR/SSG gives you LCP for free; hydrate selectively