Diagnose and fix web performance issues including Core Web Vitals (LCP, INP, CLS), bundle size, asset optimization, render performance, and runtime efficiency. Use this skill whenever the user wants to improve page speed, fix Core Web Vitals, optimize assets, reduce bundle size, debug slow renders, or systematically improve a site's performance. Triggers on performance, page speed, Core Web Vitals, LCP, INP, CLS, FID, TTFB, bundle size, code splitting, image optimization, lazy loading, render blocking, slow page, performance audit, Lighthouse score. Also triggers when traffic or conversion is dropping due to perceived slowness.
8k tokens
context cost
the whole folder, loaded on every use
4
files
instructions only
0
copies elsewhere
how many repositories repackaged it
512
stars on the repo
on the repository, not the skill itself
Install
one command, takes just this skill from the repository
Chrome User Experience Report (CrUX) - public data for any site
Real User Monitoring (RUM) - your own users (DataDog, New Relic, custom, etc.)
Search Console Core Web Vitals report
Lab tools are useful for diagnosis. Field tools are the source of truth for what users actually experience.
Failure patterns
Optimizing without measuring. Performance theater without baseline metrics. Always measure first.
Optimizing the wrong metric. A great Lighthouse score with bad real-user metrics means your test conditions don't match users.
Over-optimizing. Spending weeks shaving 10ms off TTFB while CLS is 0.4. Fix the worst offender first.
Lighthouse-driven optimization only. Lighthouse runs in idealized conditions. Always check field data.
Single-page optimization. Performance regressions creep in across the codebase. Build performance budgets and CI checks.
Treating every byte as equal. A render-blocking 100KB script is worse than a deferred 500KB script.
Bundle size obsession. Bundle size matters, but execution time matters more. A small bundle that takes 5 seconds to parse is worse than a larger bundle that runs fast.
Ignoring third parties. "It's the analytics tag, not us." Third parties run on your domain in your users' eyes. Own them.
Output format
Default output is a performance report at performance-audit.md.
Structure:
Executive summary
Methodology (tools, conditions, sample pages)
Current state (Core Web Vitals, Lighthouse scores, RUM data)
Critical issues (Core Web Vitals failures)
Important issues (sub-optimal but not failing)
Polish (further-than-required wins)
Remediation roadmap (sequenced)
Performance budget recommendations
Monitoring plan
For complex audits, include:
Per-page Lighthouse exports
Bundle analysis output
Network waterfall screenshots
Specific code snippets to change
Reference files
references/audit-template.md - Full performance audit report template.
references/optimization-checklist.md - Quick-reference checklist of common optimizations by priority.
references/optimization-playbook.md - Symptom-to-fix playbook for the common Core Web Vitals problems (LCP, INP, CLS).
How to use it
Copy the folder
Take rampstackco/performance-optimization from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
Check the name does not clash
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.