optimize

Diagnose and fix UI performance bottlenecks using Core Web Vitals measurements.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ceshez/VELAR --skill optimize-ceshez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimize
Source: https://github.com/ceshez/VELAR/tree/main/.agents/skills/optimize
Command: npx skills add https://github.com/ceshez/VELAR --skill optimize-ceshez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Slow or janky UI experiences—covering slow loading, sluggish interactions, stuttery animations, oversized bundles, and inefficient rendering—harm perceived quality and user retention.

Core Features & Use Cases

  • Diagnose performance bottlenecks: Use measurable signals like Core Web Vitals (LCP, INP/FID, CLS), load/TTI timing, bundle size, runtime CPU/memory, and network waterfall to pinpoint what’s actually slow.
  • Apply targeted optimizations: Improve loading (image formats/sizing, lazy loading, code-splitting, CSS/critical assets, font strategy), rendering (avoid layout thrashing, reduce DOM, use containment/virtualization), animation (GPU-friendly transforms/opacity, avoid layout-affecting animations), and React/framework behaviors (memoization, reducing re-renders, profiling).
  • Validate improvements safely: Compare before/after metrics with Lighthouse and real-device tests to ensure faster perceived performance without regressions.

Quick Start

Diagnose and fix the specific UI performance bottlenecks behind a slow, laggy page by asking the AI to run a measurement-first optimization plan using Core Web Vitals, bundle analysis, and rendering/animation checks.

Frequently Asked Questions about optimize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Core Web Vitals issues like slow LCP and high INP?

To fix Core Web Vitals issues, diagnose the largest bottleneck first using LCP, INP, and CLS signals, then apply targeted loading and rendering optimizations and validate improvements with before-and-after measurement.

Why does my web animation stutter and how do I make it smoother?

Web animation stutters when it triggers layout changes; use GPU-friendly transforms and opacity instead, reduce DOM complexity, and apply containment or virtualization to keep animations smooth.

What's the best way to reduce an oversized JavaScript bundle?

The best way to reduce an oversized JavaScript bundle is applying code-splitting, lazy loading, and critical asset prioritization, then validating the size reduction through bundle analysis.

How do I stop layout thrashing and inefficient rendering in my web app?

To stop layout thrashing and inefficient rendering, diagnose runtime bottlenecks via profiling, reduce DOM depth, use CSS containment, and avoid forced synchronous layouts during interactions.

Does this UI performance optimization approach work with React and other frameworks?

Yes, UI performance optimization applies to React and other frameworks by profiling re-renders, applying memoization, and correcting framework-specific rendering behaviors to reduce jank and load times.

How do I optimize images to improve web page loading speed?

To optimize images for loading speed, use modern image formats, proper sizing, and lazy loading strategies, then measure the impact via network waterfall analysis and Lighthouse validation.