Description
Core Web Vitals is an agent skill for diagnosing and fixing the three Core Web Vitals metrics: LCP (largest contentful paint), INP (interaction to next paint) and CLS (cumulative layout shift). Lighthouse can say that a metric is poor but not which element or line to change, so this skill maps each metric to the code patterns that usually cause it. The page lists examples: preloading a hero image with fetchpriority to bring LCP under 2.5 seconds, chunking a long array task so click handlers stop blocking, adding width and height to product images to stop grid jumps, reserving minimum height on ad slots before the ad network loads, and wiring the web-vitals library into Google Analytics to track the 75th percentile. It includes framework-specific patterns for Next.js, React and Vue. It is written by Addy Osmani and installed with npx skills add.…
Highlights
- Diagnoses LCP, INP and CLS problems
- Maps each metric to the code causing it
- Image preloading and layout shift fixes
- Field measurement with the web-vitals library
- Patterns for Next.js, React and Vue
Ratings & Reviews
No ratings yet
Be the first to rate addyosmani/core-web-vitals.
People also visit
addyosmani/core-web-vitals FAQ
What does the Core Web Vitals skill do?
It helps a coding agent find and fix the code behind poor LCP, INP and CLS scores.
How do I install it?
Run npx skills add https://github.com/addyosmani/web-quality-skills --skill core-web-vitals, or paste the skill's link into your coding assistant.
Which frameworks does it cover?
It includes framework-specific patterns for Next.js, React and Vue, along with general browser patterns.
Can it measure real users?
Yes. It shows how to wire the web-vitals library into analytics to track the 75th percentile of real visits.
What are the best addyosmani/core-web-vitals alternatives?
Popular alternatives to addyosmani/core-web-vitals include core-web-vitals, debug-optimize-lcp and performance. See all addyosmani/core-web-vitals alternatives














