Agent skill

Web Performance Skill: Measured Speed Fixes for AI Agents

The web performance skill makes an AI coding agent measure first with field and lab data, then fix loading, images, fonts, caching and scripts against a stated performance budget.

Install
git clone https://github.com/addyosmani/web-quality-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the web performance skill?

The web performance skill is a SKILL.md in web-quality-skills. It tells an AI coding agent to build a field-plus-lab baseline, change only code tied to a measured bottleneck, and report before and after numbers. It carries a starting budget, TTFB and compression rules, image and font guidance, caching headers and third-party script patterns.

This is the performance folder in addyosmani/web-quality-skills. It covers loading and runtime performance and uses field data from CrUX or first-party monitoring to rank user impact, then a DevTools trace to find causes.

The README names four kinds of evidence: CrUX field data, first-party real-user monitoring, a DevTools trace or Lighthouse lab run, and static source inspection. Its rule is that field data shows impact and lab traces explain it.

What changes in your agent's output

  • The agent measures before it edits and re-runs an equivalent lab measurement after, then states conditions and uncertainty.
  • Field verification is reported as pending until enough new user data arrives.
  • Fixes target only the code and assets tied to a measured bottleneck.
  • Images move to AVIF or WebP with responsive sizes, and the likely LCP image gets priority.
  • Third-party scripts load with a strategy or a facade instead of blocking the page.

What the skill covers

The starting budget lists page weight under 1.5 MB, compressed JavaScript under 300 KB, CSS under 100 KB, above-the-fold images under 500 KB, fonts under 100 KB and third-party code under 200 KB. It calls these initial guardrails, not universal thresholds.

Other sections cover server response with a TTFB target under 800 ms, Brotli, HTTP/2 or HTTP/3 and Early Hints, plus fonts, cache headers, layout thrashing, list virtualization and View Transitions.

Who the web performance skill is for

Best for

  • Pages that feel slow and need a ranked, evidence-backed fix list.
  • Teams that want budgets and before and after numbers in every agent report.
  • Pairing with core-web-vitals when the target is LCP, INP or CLS specifically.

Not for

  • Guessing. The skill refuses to edit before a baseline exists when the page can run.
  • Animation craft. For motion cost see fixing-motion-performance.
  • Server tuning beyond headers and caching guidance.

Use it with UiChemy

A page generated by UiChemy lands in Elementor or Gutenberg, where weight comes from images, fonts and plugins. Run this skill on the live URL to find what is heavy, then fix it in the editor. Click Get Started on uichemy.com.