core-web-vitals

Diagnose and optimize LCP, INP, and CLS using field data and browser traces.

Updated May 24, 2026
One-click install
npx skills add https://github.com/MWest2020/skill-forge --skill core-web-vitals-mwest2020
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core-web-vitals
Source: https://github.com/MWest2020/skill-forge/tree/main/skills/core-web-vitals
Command: npx skills add https://github.com/MWest2020/skill-forge --skill core-web-vitals-mwest2020

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Web pages often fail Google's Core Web Vitals thresholds, hurting page experience and search rankings, and developers struggle to connect lab measurements with real-user impact. This Skill provides a measurement-first workflow to identify which metric is failing, trace the root cause, and apply targeted fixes. ## Core Features & Use Cases - Metric-specific optimization guides: Detailed playbooks for LCP (server response, render-blocking resources, image prioritization), INP (input delay, processing, presentation phases), and CLS (reserved space, dynamic content, font stabilization). - Evidence-driven measurement workflow: Sequences CrUX p75 field data, Chrome DevTools performance traces, and first-party RUM so fixes are grounded in real user impact rather than guesses. - Framework quick fixes: Ready-to-apply patterns for Next.js, React, Vue/Nuxt, and Astro covering image priority, dynamic imports, and dimension handling. - Use Case: A developer sees poor INP in Search Console, uses this Skill to trace the slow interaction, identifies main-thread contention from a third-party script, defers it, and verifies the fix with a follow-up trace. ## Quick Start Ask the agent to diagnose why my page's LCP is over 4 seconds and apply the recommended fixes to my Next.js app.

Frequently Asked Questions about core-web-vitals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix a slow LCP on my website?

LCP fixes target four areas: server response time under 800ms, making the LCP resource discoverable in initial HTML with fetchpriority="high", inlining critical CSS, and avoiding client-side rendering of the LCP element. Measure with a trace first to identify which subpart dominates.

How to improve INP score for web performance?

INP improvement starts by identifying which phase dominates: input delay, processing time, or presentation delay. Fixes include yielding long tasks with scheduler.yield(), prioritizing visible feedback, deferring third-party scripts, and moving CPU-heavy work to Web Workers.

What are the Core Web Vitals thresholds for good scores?

Google measures at the 75th percentile of page visits. Good thresholds are LCP at or under 2.5 seconds, INP at or under 200 milliseconds, and CLS at or under 0.1. Values between good and poor thresholds are classified as needing improvement.

Does this work with Next.js and React frameworks?

Yes, the Skill includes framework-specific quick fixes for Next.js, React, Vue/Nuxt, and Astro. Examples include using next/image with priority for LCP, useTransition and dynamic imports for INP, and explicit image dimensions for CLS.

Why is my lab Lighthouse score different from CrUX field data?

Lab measurements capture a single controlled session while CrUX reports the p75 distribution of real user visits. A single lab value cannot be compared directly to a field p75, and field improvement only appears after new user visits accumulate.

When should I use the Speculation Rules API for prerendering?

Use prerendering for sites with predictable same-origin navigation journeys, starting with moderate eagerness. It is Chromium-only, each prerender costs roughly a full page load, and side effects like analytics fire early, so measure hit rate and server load before expanding.