Skill Issue ›
Browse Skills ›
Frontend performance
Frontend performance
Frontend performance is an AI agent skill from the GitHub repository rnavarych/alpha-engineer . Frontend performance expertise including Core Web Vitals (LCP, INP, CLS), code splitting, tree shaking, image optimization (WebP, AVIF, lazy loading), font loading strategies, service workers, and bundle analysis with webpack-bundle-analyzer.
How to use this skill
Claude Code: save it as .claude/skills/frontend-performance/SKILL.md
Cursor: save it as .cursor/rules/frontend-performance.md
Codex: save it as .agents/skills/frontend-performance/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
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-limit or 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
Reference Files
references/core-web-vitals.md — LCP/INP/CLS targets, optimization techniques, web-vitals library, CrUX monitoring
references/image-font-optimization.md — AVIF/WebP format selection, responsive srcset, Next.js Image, BlurHash, font subsetting, font-display comparison
references/bundle-js-performance.md — code splitting, tree shaking, dynamic imports, Web Workers, React memoization, virtualization, performance budgets
references/network-rendering-strategies.md — resource hints, HTTP/2, Workbox service worker strategies, SSR/SSG/RSC/Islands comparison, third-party script facades
references/animation-monitoring.md — GPU-accelerated properties, layout thrashing, View Transitions API, Lighthouse CI config, anti-patterns table
Use this skill with your AI agent:
Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.