core-web-vitals-tuner

core-web-vitals-tuner is a skill for Claude Code, Codex from patricio0312rev/skills. It costs 63 tokens per session (708 once invoked), scanned A, original, MIT.

A tuning guide for Core Web Vitals, Google's measures of website loading speed, interaction responsiveness, and visual stability. It focuses on LCP, INP, and CLS and gives fixes with verification steps.

In plain words
What is it for?
Use it to optimize images and critical CSS, prioritize important resources, reduce expensive interactions, use web workers, and split frontend code.
Why use it?
It helps identify and address the frontend issues that make pages load slowly, respond late, or shift while loading.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to optimize images and critical CSS, prioritize important resources, reduce expensive interactions, use web workers, and split frontend code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/patricio0312rev/skills/core-web-vitals-tuner
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 patricio0312rev/skills --skill core-web-vitals-tuner
Clone the repo
git clone --depth 1 https://github.com/patricio0312rev/skills

Made for: Claude Code, Codex.

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-tuner

README.md
[![agentmods](https://agentmods.dev/badge/skills/patricio0312rev/skills/core-web-vitals-tuner/github.svg)](https://agentmods.dev/skills/patricio0312rev/skills/core-web-vitals-tuner)
Your own site
<a href="https://agentmods.dev/skills/patricio0312rev/skills/core-web-vitals-tuner"><img src="https://agentmods.dev/badge/skills/patricio0312rev/skills/core-web-vitals-tuner/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-tuner

Your own site · 80×15
<a href="https://agentmods.dev/skills/patricio0312rev/skills/core-web-vitals-tuner"><img src="https://agentmods.dev/badge/skills/patricio0312rev/skills/core-web-vitals-tuner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 708 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.00063 $0.00708
Opus 5 $0.00032 $0.00354
Sonnet 5 $0.00013 $0.00142
Haiku 4.5 $0.00006 $0.00071

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

Security

Grade A, and why

core-web-vitals-tuner 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 9d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

performance/core-web-vitals-tuner/SKILL.md · 127 lines

How it starts

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

Core Web Vitals Tuner

Improve LCP, INP, and CLS systematically.

LCP Optimization (<2.5s)

Prioritized Fixes:

  1. Optimize images (Biggest impact)

    <!-- Before -->
    <img src="hero.jpg" />
    
    <!-- After -->
    <img
      src="hero.jpg"
      srcset="hero-400.webp 400w, hero-800.webp 800w, hero-1200.webp 1200w"
      sizes="(max-width: 600px) 400px, (max-width: 1200px) 800px, 1200px"
      loading="eager"
      fetchpriority="high"
    />
    
  2. Preload LCP resource

    <link rel="preload" as="image" href="/hero.webp" fetchpriority="high" />
    
  3. Inline critical CSS

    <style>
      /* Above-the-fold styles */
      .hero {
        display: flex;
        height: 100vh;
      }
    </style>
    
  4. Use CDN

    • Serve images from CloudFront/Cloudflare
    • Enable HTTP/2 or HTTP/3

INP Optimization (<200ms)

Fixes:

  1. Debounce expensive interactions

    import { debounce } from "lodash";
    
    const handleSearch = debounce((query) => {
      fetchResults(query);
    }, 300);
    
  2. Use Web Workers for heavy tasks

    const worker = new Worker("processor.js");
    worker.postMessage(largeData);
    worker.onmessage = (e) => console.log(e.data);
    
  3. Code splitting

    const HeavyComponent = lazy(() => import("./HeavyComponent"));
    

CLS Optimization (<0.1)

Fixes:

  1. Reserve space for images/ads

    <img src="banner.jpg" width="1200" height="600" />
    
  2. Use CSS aspect-ratio

    .video-container {
      aspect-ratio: 16 / 9;
    }
    
  3. Avoid injecting content above existing

    .notification {
      position: fixed;
      top: 0;
    }
    

Verification

# Lighthouse CI
npm run lighthouse -- --url=https://example.com

# Web Vitals in production
import { getCLS, getFID, getLCP } from 'web-vitals';

getCLS(console.log);
getFID(console.log);
getLCP(console.log);

Read the full file on GitHub · 127 lines

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. 9d ago First seen · 127 lines · 63 tokens per session scan A b80899bc4eba

Subscribe to this mod's changes

core-web-vitals-tuner is a skill published in the GitHub repository patricio0312rev/skills (60 stars, last pushed 8mo ago), licensed MIT. It adds 63 tokens to every session and 708 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-09-03.

Related

Other skills, from other repositories

enhance-web-landing

Build landing pages, portfolios, and marketing sites that don't look AI-generated. Use when asked for "landing page", "portfolio", "marketing site", "anti-slop", "Awwwards-style", "premium frontend", or when design needs a strong point of view.

kensaurus/cursor-kenji · 61 tokens

enhance-capacitor-ui

Cross-surface UIUX separation skill for hybrid web apps that ship as PWA + iOS + Android via Capacitor (or Tauri / Expo Web / Ionic / RN-Web). Use when a previous UI/UX sweep "improved one surface and broke the other" — desktop polished but mobile cramped, or mobile native but desktop wastes space.

kensaurus/cursor-kenji · 77 tokens

enhance-web-ui

Polish an existing page's hierarchy, spacing, type, and visual personality. Use when "make this page polished/premium", "less crowded", or "better visual hierarchy". Understood / CPL → enhance-readability. Flow/IA → enhance-web-ux. Breakpoints → audit-responsive.

kensaurus/cursor-kenji · 65 tokens

enhance-web-ux

NN/g-grounded enhancement of an existing page's flows — not a repo-wide slop audit. Use when "fix UX of /xxx" or "improve information density". Repo-wide authenticity plan → plan-antislop. Composition/type → enhance-web-ui. Dense prose / CPL / reading level → enhance-readability. Heuristics-only → audit-ux.

kensaurus/cursor-kenji · 80 tokens

audit-uiux-design-system

Audit visual-system coherence: tokens, component variants, color/type/ spacing, dark mode. Use for "design drift", inconsistent UI, or duplicate primitives. Per-page usability → audit-ux. Breakpoints → audit-responsive. Empty/error states → audit-ui-states. Plan-only unification → plan-uiux-unification.

kensaurus/cursor-kenji · 71 tokens

design-mobile-first

Design mobile-first UIs: touch targets, safe areas, gestures, then enhance up. Use when building for small screens, touch, swipe, PWA, or tablet. Linearized desktop / responsive audit → audit-responsive.

kensaurus/cursor-kenji · 49 tokens