What problem does it solve? Slow applications lose users, but optimizing without measurement wastes effort on the wrong bottlenecks. This Skill enforces a measure-first workflow that identifies the actual cause of slowness—whether N+1 queries, oversized bundles, missing indexes, or connection pool exhaustion—and verifies every fix with before-and-after numbers. ## Core Features & Use Cases - Five-Step Optimization Workflow: Measure, identify, fix, verify, and guard against regression, with strict rules for reverting changes that don't beat the baseline. - Anti-Pattern Fixes: Concrete code examples for N+1 queries, unbounded fetching, connection pool exhaustion, unoptimized images, unnecessary React re-renders, large bundles, and missing caching. - Core Web Vitals Targets: Threshold tables for LCP, INP, and CLS plus CI enforcement via bundlesize and Lighthouse CI. - Use Case: Your API's p95 latency spikes after a release. Use this Skill to profile database queries with EXPLAIN ANALYZE, find a sequential scan caused by a missing composite index, add the right index, and re-measure to confirm the fix. ## Quick Start Ask the agent to profile the slow endpoint or page, identify the bottleneck using the measurement workflow, and apply a verified fix with before-and-after numbers.