addyosmani avatar

Performance Optimization

Measurement-first performance workflow covering frontend Core Web Vitals, backend APIs, and database query bottlenecks.

CCM score
73 of 100
skills.sh installs
84.6K
GitHub stars
120.4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the optimize loop of measure, identify the bottleneck, fix it, re-measure, and guard against regression
  • Includes Core Web Vitals targets for LCP, INP, and CLS, plus symptom-driven checklists for frontend, backend, and API slowness
  • Enforces fixing only the bottleneck that measurements identify, with worked patterns for N+1 queries, unbounded fetches, indexes, pools, and caching
  • Designed for teams diagnosing regressions or meeting load time budgets in web apps and backend services

Install

$ npx -y skills add addyosmani/agent-skills --skill performance-optimization -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Performance Optimization

Overview

Measure before optimizing. Performance work without measurement is guessing — and guessing leads to premature optimization that adds complexity without improving what matters. Profile first, identify the actual bottleneck, fix it, measure again. Optimize only what measurements prove matters.

When to Use

  • Performance requirements exist in the spec (load time budgets, response time SLAs)
  • Users or monitoring report slow behavior
  • Core Web Vitals scores are below thresholds
  • You suspect a change introduced a regression
  • Building features that handle large datasets or high traffic

When NOT to use: Don't optimize before you have evidence of a problem. Premature optimization adds complexity that costs more than the performance it gains.

Core Web Vitals Targets

MetricGoodNeeds ImprovementPoor
LCP (Largest Contentful Paint)≤ 2.5s≤ 4.0s> 4.0s
INP (Interaction to Next Paint)≤ 200ms≤ 500ms> 500ms
CLS (Cumulative Layout Shift)≤ 0.1≤ 0.25> 0.25

The Optimization Workflow

Details

Repository
github.com/addyosmani/agent-skills
Categories
Debugging, Frontend & UI Code, Backend & APIs
First seen
May 16, 2026

More from addyosmani/agent-skills

All 25

Similar to Performance Optimization

More Debugging