core-web-vitals

Optimize LCP, INP, and CLS for static sites and single-page applications.

7.8k|770|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/gsd-build/gsd-2 --skill core-web-vitals-gsd-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core-web-vitals
Source: https://github.com/gsd-build/gsd-2/tree/main/src/resources/skills/core-web-vitals
Command: npx skills add https://github.com/gsd-build/gsd-2 --skill core-web-vitals-gsd-build

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Optimizes Core Web Vitals (LCP, INP, CLS) for better page experience and search ranking.

Core Features & Use Cases

  • LCP optimization strategies: reduce server latency, preload critical assets, optimize images and fonts.
  • INP improvements: minimize main-thread work, defer non-critical tasks, and optimize third-party scripts.
  • CLS mitigation: reserve space for images and embeds, avoid layout shifts during dynamic content, and use font-display strategies.

Quick Start

Run a Core Web Vitals audit and implement the recommended optimizations on a test page.

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 LCP, INP, and CLS scores for my web pages?

To improve Core Web Vitals, optimize LCP by preloading critical assets, reduce INP by minimizing main-thread work, and mitigate CLS by reserving space for images and embeds to achieve best-practice thresholds.

What is the best way to optimize LCP for static sites and single-page applications?

Optimize LCP by reducing server latency, preloading critical assets, and optimizing images and fonts. This technique accelerates content rendering for both static sites and single-page applications.

How does deferring non-critical tasks improve INP and input latency?

Deferring non-critical tasks improves INP by minimizing main-thread work and optimizing third-party scripts. This reduces input latency and ensures faster responses to user interactions.

Why does dynamic content cause layout shifts and how can I prevent CLS?

Dynamic content causes layout shifts when space is not reserved. Mitigate CLS by reserving space for images and embeds, avoiding shifts during content injection, and using proper font-display strategies.

Can I use these web optimization strategies for framework-specific frontend performance?

Yes, these web optimization strategies apply to static sites and single-page applications. They provide actionable checks and framework-specific tips to address render-blocking tasks, resource loading, and font loading.

When do I need to run a Core Web Vitals audit and what are the limitations?

Run a Core Web Vitals audit when experiencing slow page performance or poor search ranking. Implement recommended optimizations on a test page first, as addressing server timing and third-party scripts may have environment-specific limitations.