Skills for Real Engineers. Straight from my .agents directory.
performance-optimization
Agent skill fromaddyosmani/agent-skills
Optimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.
How to install performance-optimization
npx skills add addyosmani/agent-skills# or add only this skill to Claude Code: copy the folder
skills/performance-optimization/
# into
~/.claude/skills/performance-optimization/ (all projects)
.claude/skills/performance-optimization/ (one project)
1# Performance Optimization23## Overview45Measure 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.67## When to Use89- Performance requirements exist in the spec (load time budgets, response time SLAs)10- Users or monitoring report slow behavior11- Core Web Vitals scores are below thresholds12- You suspect a change introduced a regression13- Building features that handle large datasets or high traffic1415**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.1617## Core Web Vitals Targets1819| Metric | Good | Needs Improvement | Poor |20|--------|------|-------------------|------|21| **LCP** (Largest Contentful Paint) | ≤ 2.5s | ≤ 4.0s | > 4.0s |22| **INP** (Interaction to Next Paint) | ≤ 200ms | ≤ 500ms | > 500ms |23| **CLS** (Cumulative Layout Shift) | ≤ 0.1 | ≤ 0.25 | > 0.25 |2425## The Optimization Workflow2627```281. MEASURE → Establish baseline with real data292. IDENTIFY → Find the actual bottleneck (not assumed)303. FIX → Address the specific bottleneck314. VERIFY → Measure again; keep or revert325. GUARD → Add monitoring or tests to prevent regression33```3435### Step 1: Measure3637Two complementary approaches — use both:38…
Excerpt shown under the repository's MIT license.
More skills in agent-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
