optimize

Diagnose and fix web performance issues across loading, rendering, animations, and bundle size.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/Ssrrb/cerramos-codebase --skill optimize-ssrrb
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: optimize
Source: https://github.com/Ssrrb/cerramos-codebase/tree/main/.codex/skills/optimize
Command: npx skills add https://github.com/Ssrrb/cerramos-codebase --skill optimize-ssrrb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Slow load times, janky animations, and bloated bundles degrade user experience and hurt Core Web Vitals scores. This Skill provides a systematic workflow to measure, diagnose, and fix interface performance problems instead of guessing at optimizations. ## Core Features & Use Cases - Measurement-First Diagnosis: Assess Core Web Vitals (LCP, FID/INP, CLS), bundle size, runtime performance, and network waterfalls before changing any code. - Loading & Bundle Optimization: Apply image optimization (WebP/AVIF, srcset, lazy loading), code splitting, tree shaking, font subsetting, and critical CSS strategies. - Rendering & Animation Fixes: Eliminate layout thrashing, use GPU-accelerated transform/opacity animations, virtualize long lists, and apply React memoization patterns. - Use Case: A product page has a 5-second LCP and poor Lighthouse score. Use this Skill to identify the unoptimized hero image and render-blocking JavaScript, then apply responsive images, preloading, and code splitting to bring LCP under 2.5 seconds. ## Quick Start Ask the AI to analyze your page's performance bottlenecks and produce a prioritized optimization plan with before-and-after Core Web Vitals measurements.

Frequently Asked Questions about optimize

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

FAQPage Schema
How do I improve Core Web Vitals scores on my website?▼

Improve Core Web Vitals by optimizing LCP with hero image compression and preloading, reducing INP by breaking up long JavaScript tasks, and fixing CLS by setting explicit image dimensions and aspect-ratio. Measure with Lighthouse before and after each change.

How to reduce JavaScript bundle size in a React app?▼

Reduce bundle size with route-based and component-based code splitting, tree shaking unused code, removing unused dependencies, and lazy loading heavy components via dynamic imports. Use a bundle analyzer to identify the largest contributors first.

What is layout thrashing and how do I fix it?▼

Layout thrashing happens when JavaScript alternates between reading layout properties and writing styles, forcing repeated reflows. Fix it by batching all reads first, then performing all writes together in a separate pass.

Which CSS properties are safe to animate for 60fps?▼

Animate only transform and opacity, which are GPU-accelerated and skip layout and paint stages. Avoid animating width, height, top, or left, since they trigger expensive layout recalculations on every frame.

When should I not lazy load images?▼

Never lazy load above-the-fold content such as hero images, since it delays LCP and hurts perceived speed. Reserve lazy loading for below-fold images, and use responsive srcset with modern formats like WebP or AVIF.