Tooluck logoTooluck
SKILL.md

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

install performance-optimization
# install the agent-skills pack with the skills CLI
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)

skills/performance-optimization/SKILL.md

MITFull file
1# Performance Optimization
2
3## Overview
4
5Measure 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.
6
7## When to Use
8
9- Performance requirements exist in the spec (load time budgets, response time SLAs)
10- Users or monitoring report slow behavior
11- Core Web Vitals scores are below thresholds
12- You suspect a change introduced a regression
13- Building features that handle large datasets or high traffic
14
15**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.
16
17## Core Web Vitals Targets
18
19| 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 |
24
25## The Optimization Workflow
26
27```
281. MEASURE → Establish baseline with real data
292. IDENTIFY → Find the actual bottleneck (not assumed)
303. FIX → Address the specific bottleneck
314. VERIFY → Measure again; keep or revert
325. GUARD → Add monitoring or tests to prevent regression
33```
34
35### Step 1: Measure
36
37Two complementary approaches — use both:
38…

Excerpt shown under the repository's MIT license.

More skills in agent-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

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

CCCXGHGM+135 skills

Leonxlnx /

taste-skill
113k

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

CCCXCU1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates