LabscoConnect MCP ↗
addyosmani logo

performance-optimization

Ready to use★ 102k on GitHub
part of addyosmani/agent-skillsby addyosmani

Makes your assistant prove a speed problem before fixing it: measure first, find the one real bottleneck, fix only that, then measure again and keep the change only if the gain beats the noise. It covers slow pages (Core Web Vitals), slow APIs and databases, and ends with a budget or monitor so the problem cannot creep back.

⌁ labsco summary — our analysis, not the vendor's

Three ways to install it. The command on this page installs this skill alone. npx skills add addyosmani/agent-skills installs all 25 skills in Addy Osmani's set, and in Claude Code the set also installs as the agent-skills plugin:

/plugin marketplace add addyosmani/agent-skills
/plugin install agent-skills@addy-agent-skills

Installed with the skills command, it misses one shared file. The skill points to a performance checklist (request coalescing, write strategies, negative caching and more) that sits outside its own folder. The skills command copies only each skill's own folder, whether you install this skill alone or all 25, so the checklist does not come along. The skill still works, and its own worked fixes come with it. To keep the checklist, install the plugin, which brings the whole repository, or copy references/performance-checklist.md from the repository into a references folder inside the installed skill.

WHEN YOUR AGENT SHOULD USE IT

A QUICK BOUNDARY

USE FOR

  • Find why a page fails Core Web Vitals, such as LCP over 2.5 seconds.
  • Fix an API endpoint slowed by one database query per row (the N+1 pattern).
  • Check with a query plan whether a new index actually helps before keeping it.
  • Find why every endpoint slows at once when the connection pool runs dry.
  • Add a cache that cannot serve one user's data to another or go stale unnoticed.
  • Set bundle-size and Lighthouse budgets and enforce them in CI.
  • Keep a log of tried and reverted optimizations so a failed idea is not retried.

DO NOT USE FOR

  • Optimizing before measurements show a real problem.