# Core Web Vitals

> Use when diagnosing or optimizing LCP, INP, CLS — Core Web Vitals at the 75th percentile (LCP ≤2.5s, INP ≤200ms, CLS ≤0.1).

- Skill: `viasrijan/core-web-vitals` (Agent Skill)
- Install (CLI): `npx skillmds@latest add viasrijan/core-web-vitals`
- Raw SKILL.md: https://api.skillmd.com/api/skills/viasrijan/core-web-vitals/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: viasrijan (https://skillmd.com/u/viasrijan)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/viasrijan/core-web-vitals

---


# Core Web Vitals

Measured LCP/INP/CLS diagnosis. From `addyosmani/web-quality-skills` `core-web-vitals`.

## When to use

- LCP, INP, or CLS fail thresholds
- User says "improve Core Web Vitals", "fix LCP", "reduce CLS"

## Workflow

1. **Measure** — Capture field (CrUX) + lab (Lighthouse, trace) at 75th percentile for LCP, INP, CLS.
2. **Diagnose** — For the failing metric:
   - LCP: critical rendering path, server response, render-blocking, image priority
   - INP: long tasks, main-thread blocking, hydration cost
   - CLS: layout shifts, font swapping, late-injected content
3. **Optimize** — One metric at a time, keep failures separate from hypotheses (see `performance` audit).
4. **Verify** — Re-measure at p75; confirm thresholds, no regression on other metrics.

## Verification

- [ ] Baseline at p75 recorded for the failing metric
- [ ] Diagnosis maps to metric-specific cause, not generic optimization
- [ ] Fix applied to single metric, re-measured, thresholds met

## References

- Source: `addyosmani/web-quality-skills` core-web-vitals

