core-web-vitals

Optimize Core Web Vitals (LCP, INP, CLS) through measurement and implementation guidance.

3|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/thoreinstein/agents --skill core-web-vitals-thoreinstein
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core-web-vitals
Source: https://github.com/thoreinstein/agents/tree/main/skills/core-web-vitals
Command: npx skills add https://github.com/thoreinstein/agents --skill core-web-vitals-thoreinstein

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers improve user experience and search rankings by optimizing Core Web Vitals (LCP, INP, CLS) across websites and applications.

Core Features & Use Cases

  • LCP optimization: strategies to accelerate the largest contentful paint, including image preloading, critical CSS, and server-side rendering considerations.
  • INP improvement: reduce input delay by breaking up long tasks, deferring non-critical work, and optimizing event handlers.
  • CLS stabilization: reserve space for images and embeds, font loading strategies, and layout rules to prevent unexpected shifts.
  • Use Case: a marketing site with hero content and dynamic carousels can apply these practices to meet performance thresholds while preserving UX.

Quick Start

Audit the page for Core Web Vitals, then implement a prioritized plan: preload LCP assets, inline critical CSS, size and reserve image space, and ensure font loading does not cause FOUT.

Frequently Asked Questions about core-web-vitals

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

FAQPage Schema
How do I improve Core Web Vitals for better search rankings?

Improve Core Web Vitals by optimizing LCP, INP, and CLS. Apply actionable steps like preloading LCP assets, inlining critical CSS, deferring non-critical JavaScript, and implementing robust font loading strategies to enhance page experience and search ranking.

What's the best way to reduce input delay and improve INP?

Reduce INP by breaking up long tasks, deferring non-critical work, and optimizing event handlers. This decreases input delay and ensures smoother interactivity, helping modern web apps meet the recommended Core Web Vitals performance thresholds.

How can I prevent layout shift and stabilize CLS on web pages?

Stabilize CLS by reserving space for images and embeds, applying proper font loading strategies, and enforcing layout rules. This prevents unexpected visual shifts during page load, improving visual stability and overall Core Web Vitals scores.

How do I speed up Largest Contentful Paint on a modern web app?

Speed up LCP by preloading LCP assets, inlining critical CSS, and considering server-side rendering. These frontend optimization strategies accelerate the largest contentful paint, significantly improving load speed for websites with hero content.

Can I optimize Core Web Vitals for marketing sites with dynamic content?

Yes, you can optimize Core Web Vitals for marketing sites with dynamic carousels. By applying prescribed patterns like asset preloading and critical CSS inlining, these sites can meet performance thresholds while preserving user experience.

What causes poor Core Web Vitals scores and how do I diagnose them?

Poor Core Web Vitals scores stem from unoptimized LCP, INP, or CLS metrics. Diagnose them through page auditing to measure load speed, interactivity, and visual stability, then implement a prioritized plan of frontend optimization actions.