Core Web Vitals logo

Core Web Vitals

Community
hsynozdamar-byte
core-web-vitals

Core Web Vitals (LCP, INP, CLS) optimization using field and lab data. Use when asked to improve page experience, fix LCP, reduce CLS or optimize INP.

Overview

Publisherhsynozdamar-byte
Repositoryclaude-skills-edited
Skill namecore-web-vitals
Stars
63
Forks
1
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by hsynozdamar-byte on GitHub. Read the source before you install it.

Installation

Install the Core Web Vitals AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hsynozdamar-byte/claude-skills-edited/tree/main/skills/core-web-vitals
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hsynozdamar-byte/claude-skills-edited.git /tmp/claude-skills-edited
mkdir -p .claude/skills
cp -r /tmp/claude-skills-edited/skills/core-web-vitals .claude/skills/core-web-vitals
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Core Web Vitals in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Core Web Vitals on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Core Web Vitals is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Core Web Vitals

Optimize LCP, INP and CLS by using field data to find user impact and browser traces to find causes.

MetricMeasuresGoodNeeds workPoor
LCPLoading<= 2.5s2.5s to 4s> 4s
INPInteractivity<= 200ms200ms to 500ms> 500ms
CLSVisual stability<= 0.10.1 to 0.25> 0.25

Google judges the 75th percentile: 75% of page visits must be Good.

Measure before optimizing

  1. Read page-level CrUX p75; fall back to origin-level data and label it as such.
  2. Record a browser performance trace under stated conditions (Chrome DevTools MCP: performance_start_trace, which can include CrUX beside lab metrics).
  3. Analyze only the insights tied to the failing metric, then inspect the implicated code and resources.
  4. Re-run an equivalent lab measurement after the fix. Report lab results as lab results; CrUX and first-party RUM need new user visits before field numbers move.

With source code only, name likely causes and mark the metric Not verified, since failing status needs runtime evidence.

SourceUse
Performance traceOne load or interaction, focused insights
CrUX / Search ConsoleAggregated real-user p75, for prioritizing
Lighthouse CLI / PageSpeed InsightsControlled lab fallback
First-party RUM (web-vitals library)Production segmented by route, device, release, attribution
Raw PerformanceObserverDebugging one session

Chrome DevTools MCP's lighthouse_audit deliberately excludes performance, so use a trace for it. A single lab value and a field p75 are different samples, so compare them only as such. For production collection, use the web-vitals library because raw browser APIs do not implement every metric's lifecycle and reporting rules.

LCP

The LCP element is usually a hero image or video, large text block, background image or <svg>. Time splits into TTFB, resource load delay and duration, and render delay; attack the largest part in the trace.

  • TTFB above 800ms: CDN, caching, edge rendering.
  • Make the LCP resource discoverable in the initial HTML: an <img> with fetchpriority="high", not a CSS background. Preload only when the trace shows late discovery.
  • Server-render the LCP content; skip JS-fetched hero text.
  • Inline critical CSS (under 14KB), keep render-blocking JS out of <head>, use font-display: swap, serve right-sized WebP/AVIF.

Prerendering the next page via Speculation Rules is a separate navigation optimization: references/speculation-rules.md. Detailed LCP work (discovery, loading, render delay): references/LCP.md.

INP

INP covers clicks, taps and key presses across the visit. Diagnose input delay, processing time and presentation delay separately: main-thread contention before the handler, expensive handler work, or slow rendering after it. When field INP is poor or a trace shows a slow interaction, read references/INP.md (trace interpretation, yielding patterns, third-party causes, observer, attribution).

CLS

CLS sums unexpected layout shifts across the visit. Find the shifted node and its trigger from field attribution or a trace; the visible victim is often not the cause. When field CLS is poor or a trace reports shifts, read references/CLS.md (reserved space, dynamic content, fonts, animation, observer, checklist).

Framework fixes

Next.js priority on the hero next/image, dynamic() for heavy components, useTransition for expensive React updates, explicit dimensions or aspect-ratio on media. Snippets for Next.js, React, Vue/Nuxt, the common LCP causes and an LCP element observer: references/framework-fixes.md.

Docs: LCP, INP, CLS.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Core Web Vitals AI skill do?

Core Web Vitals (LCP, INP, CLS) optimization using field and lab data. Use when asked to improve page experience, fix LCP, reduce CLS or optimize INP.

Why use Core Web Vitals on TypingMind?

Because you install it once and use it with any model. Core Web Vitals is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Core Web Vitals in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hsynozdamar-byte/claude-skills-edited/tree/main/skills/core-web-vitals. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Core Web Vitals?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Core Web Vitals?

As many as you like. As long as a model supports skills, you can use Core Web Vitals with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Core Web Vitals AI skill free?

Yes. It is published on GitHub by hsynozdamar-byte under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇