Agent skill

Core Web Vitals Skill: Fix LCP, INP and CLS With AI Agents

The Core Web Vitals skill makes an AI coding agent diagnose LCP, INP and CLS from CrUX and trace evidence before editing, then verify with an equivalent lab run.

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 Core Web Vitals skill?

The Core Web Vitals skill is a SKILL.md in web-quality-skills. It tells an AI coding agent to check CrUX at p75, record a trace, analyze only the insights for the failing metric, fix the implicated code and re-measure. It lists the good thresholds for LCP, INP and CLS and warns not to promise instant field gains.

This is the core-web-vitals folder of addyosmani/web-quality-skills. It is a specialized skill for the three metrics that describe loading, responsiveness and visual stability, with a measure-first workflow.

The README says Google uses Core Web Vitals in its page-experience systems, but that a passing score does not guarantee search ranking outcomes. The skill keeps that distinction in its guidance.

What changes in your agent's output

  • The agent checks page-level CrUX at p75 first, with a clearly labeled origin fallback when page data is missing.
  • It records a trace under stated conditions, then analyzes only the insights tied to the failing metric.
  • After the fix it re-runs equivalent lab measurements and does not claim an immediate field improvement, since CrUX needs new visits.
  • The LCP element is identified before any optimization is chosen.
  • Speculation rules are described with their eagerness levels and the side effects of prerendering.

What the skill covers

Thresholds: LCP at or under 2.5 s, INP at or under 200 ms, CLS at or under 0.1, with needs-work and poor bands. Separate sections handle LCP, INP and CLS, a table of measurement sources, and quick fixes for Next.js, React and Vue or Nuxt. Reference files go deeper on each metric.

Who the Core Web Vitals skill is for

Best for

Not for

  • Pages with no traffic data. The skill can still trace, but field claims need CrUX or monitoring.
  • Cross-category audits. Use the web quality audit skill for that.

Use it with UiChemy

Layout shift and a slow hero image are common in generated pages. After UiChemy places a design in WordPress, run this skill on the live URL and fix the failing metric in the editor. Click Get Started on uichemy.com.