core-web-vitals

core-web-vitals is a skill for Claude Code from shennawardana23/skillme. It costs 65 tokens per session (1,258 once invoked), scanned A, original, Apache-2.0.

A guide for improving Google's Core Web Vitals: loading speed, responsiveness to interaction, and visual stability. These are measurements Google uses to assess page experience.

In plain words
What is it for?
Use it to improve LCP, INP, or CLS, address page-experience problems, and optimise issues such as slow server responses, blocking files, or unstable layouts.
Why use it?
It helps find and fix slow main content, delayed interactions, and page elements that unexpectedly move while loading.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skillme plugin — 137 skills, 2 commands shipped together

Good fit Use it to improve LCP, INP, or CLS, address page-experience problems, and optimise issues such as slow server responses, blocking files, or unstable layouts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shennawardana23/skillme/core-web-vitals
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shennawardana23/skillme --skill core-web-vitals
Clone the repo
git clone --depth 1 https://github.com/shennawardana23/skillme

Made for: Claude Code.

Or install skillme, the plugin that ships this one along with the rest of its 137 skills, 2 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for core-web-vitals

README.md
[![agentmods](https://agentmods.dev/badge/skills/shennawardana23/skillme/core-web-vitals/github.svg)](https://agentmods.dev/skills/shennawardana23/skillme/core-web-vitals)
Your own site
<a href="https://agentmods.dev/skills/shennawardana23/skillme/core-web-vitals"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/core-web-vitals/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for core-web-vitals

Your own site · 80×15
<a href="https://agentmods.dev/skills/shennawardana23/skillme/core-web-vitals"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/core-web-vitals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,258 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01258
Opus 5 $0.00032 $0.00629
Sonnet 5 $0.00013 $0.00252
Haiku 4.5 $0.00006 $0.00126

Measured 11d ago against content hash bb99ab9f4dbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

core-web-vitals scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/core-web-vitals/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Core Web Vitals optimization

Targeted optimization for the three Core Web Vitals metrics that affect Google Search ranking and user experience.

The three metrics

Metric Measures Good Needs work Poor
LCP Loading ≤ 2.5s 2.5s – 4s > 4s
INP Interactivity ≤ 200ms 200ms – 500ms > 500ms
CLS Visual Stability ≤ 0.1 0.1 – 0.25 > 0.25

Google measures at the 75th percentile — 75% of page visits must meet "Good" thresholds.


LCP: Largest Contentful Paint

LCP measures when the largest visible content element renders — usually a hero image, video poster, large background image, <svg> element, or large text block.

In rough order of impact, the common causes are: slow server response (TTFB > 800ms), the LCP image not preloaded with fetchpriority="high", render-blocking CSS/JS in <head>, and client-side-rendered content that isn't present in the initial HTML (fix with SSR/SSG/streaming instead of fetching after mount). Beyond the landed page, the Speculation Rules API can prerender likely-next-page navigations so the LCP a user experiences on the next click is near-instant.

Full code patterns for each fix, the Speculation Rules setup and its caveats, the LCP optimization checklist, and the element-identification script are in references/LCP.md — load it when actually fixing an LCP issue.


INP: Interaction to Next Paint

INP measures responsiveness across ALL interactions (clicks, taps, key presses) during a page visit. It reports the worst interaction (at 98th percentile for high-traffic pages).

Total INP = Input Delay + Processing Time + Presentation Delay

Phase Target Optimization
Input Delay < 50ms Reduce main thread blocking
Processing < 100ms Optimize event handlers
Presentation < 50ms Minimize rendering work

The recurring causes are long synchronous tasks blocking the main thread, event handlers that do heavy work before giving visual feedback, eagerly-loaded third-party scripts, and excessive component re-renders. The fix pattern for the first two is the same: give immediate visual feedback, then yield to the scheduler (scheduler.yield(), falling back to setTimeout(0)) before doing the expensive work.

Read the full file on GitHub · 106 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 106 lines · 65 tokens per session scan A bb99ab9f4dbf

Subscribe to this mod's changes

core-web-vitals is a skill published in the GitHub repository shennawardana23/skillme (2 stars, last pushed 14d ago), licensed Apache-2.0. It adds 65 tokens to every session and 1,258 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

visual-design

Guides and reviews the visual design and brand identity of UI components for web and React Native — color systems, typography pairing, visual hierarchy, signature details, and named style directions (minimal, swiss, editorial, brutalist, neo-brutalist, glass, soft-UI, terminal, playful, retro). Owns the generative…

mthines/agent-skills · 177 tokens

animations

Authors performant web animations CSS-first AND brainstorms the right feedback for an interaction via a verb-to-motion catalog. Covers GPU-safe properties, modern primitives (@starting-style, interpolate-size), View Transitions, scroll-driven timelines, state-choreography morphs, React state (Motion, AnimatePresence)…

mthines/agent-skills · 213 tokens

web-design

Design and implement high-quality web interfaces by synthesizing proven design philosophies from Dieter Rams, Brad Frost (Atomic Design), Google Material Design, and modern web best practices. Triggered when the user asks to design a web page, UI component, design system, layout, or when asked to review/improve…

minorcell/skills · 68 tokens

shadcn-ui

A guide for building applications with shadcn/ui, a collection of accessible interface components that are copied into your own codebase and styled with Tailwind CSS. It covers finding components, understanding their options, and customizing them.

sutchan/Agent-Skills-Hub · 31 tokens

dramatic

A design system for creating high-contrast, theatrical interfaces with bold layouts and immersive visual presentation.

sutchan/Agent-Skills-Hub · 34 tokens

flutter-build-responsive-layout

Use LayoutBuilder, MediaQuery, or Expanded/Flexible to create a layout that adapts to different screen sizes. Use when you need the UI to look good on both mobile and tablet/desktop form factors.

sutchan/Agent-Skills-Hub · 51 tokens