Core Web Vitals Optimization
A skill that diagnoses and fixes LCP, INP, and CLS problems with concrete code-level guidance.
Dev & CodingIntermediate★ 2,653⑂ 240AI score 9/10Last updated: Jun 14, 2026
What it does
- Lays out the Good/Needs-work/Poor thresholds for LCP, INP, and CLS plus Google's 75th-percentile rule.
- Diagnoses the usual suspects per metric (slow TTFB, render-blocking CSS/JS, heavy event handlers, unsized images, font FOUT) with ❌/✅ code pairs.
- Ships
PerformanceObserversnippets to identify your actual LCP element, slow interactions, and the exact nodes causing layout shifts. - Covers modern techniques — Speculation Rules prerendering,
scheduler.yield(),requestIdleCallback— including their bandwidth and side-effect caveats. - Provides per-metric checklists and framework quick fixes for Next.js, React, and Vue/Nuxt.
Who it's for
- Web developers seeing Core Web Vitals warnings in Search Console.
- Frontend engineers chasing better Lighthouse scores or real-user field data.
- Owners of ad-heavy commerce or media sites fighting layout shift.
- Technical SEO practitioners managing page experience signals.
Examples
- "Our landing page LCP is 4s — fix it" → preload the hero with
fetchpriority="high", inline critical CSS, move the LCP element into server-rendered HTML. - "Clicks feel laggy, optimize INP" → chunk the heavy work,
await scheduler.yield()after painting visual feedback, defer analytics to idle time. - "The page jumps when ads load" → wrap embeds in
min-height/aspect-ratiocontainers and verify with the layout-shift observer.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/addyosmani/web-quality-skills/HEAD/skills/core-web-vitals/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/core-web-vitals folder from the GitHub repo addyosmani/web-quality-skills into my ~/.claude/skills/core-web-vitals/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/addyosmani/web-quality-skills.git && mkdir -p ~/.claude/skills && cp -r web-quality-skills/skills/core-web-vitals ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Create the skills directory:
mkdir -p ~/.claude/skills - Clone the repo:
git clone https://github.com/addyosmani/web-quality-skills.git - Copy just this skill:
cp -r web-quality-skills/skills/core-web-vitals ~/.claude/skills/ - Restart Claude Code and confirm
core-web-vitalsshows up in your skill list. - Trigger it with prompts like "improve Core Web Vitals", "fix LCP", or "reduce CLS". Having Node.js available lets you also run
npx lighthouse <url>for real measurements.
View source on GitHub ↗License: MIT