ai-agent-automation: Skill for Claude Code

.agents/skills/core-web-vitals/SKILL.md

core-web-vitals is a skill for Claude Code, Codex from vmDeshpande/ai-agent-automation. It costs 65 tokens per session (3,652 once invoked), scanned A, original, Apache-2.0.

A guide to improving Core Web Vitals, Google’s measurements of how quickly a page loads, responds, and stays visually stable. It covers LCP for loading, INP for interaction response, and CLS for unexpected movement.

In plain words
What is it for?
Use it to diagnose and improve LCP, INP, or CLS, including slow servers, blocking resources, large images, and layout shifts.
Why use it?
It connects slow loading, delayed clicks, and shifting layouts to specific measurements and common causes. This gives developers concrete areas to investigate when page experience is poor.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is vmDeshpande/ai-agent-automation's own configuration. It tells Claude Code and Codex how to work on ai-agent-automation itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-agent-automation configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vmDeshpande/ai-agent-automation. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vmDeshpande/ai-agent-automation/main/.agents/skills/core-web-vitals/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vmDeshpande/ai-agent-automation

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/vmdeshpande/ai-agent-automation/core-web-vitals/github.svg)](https://agentmods.dev/skills/vmdeshpande/ai-agent-automation/core-web-vitals)
Your own site
<a href="https://agentmods.dev/skills/vmdeshpande/ai-agent-automation/core-web-vitals"><img src="https://agentmods.dev/badge/skills/vmdeshpande/ai-agent-automation/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/vmdeshpande/ai-agent-automation/core-web-vitals"><img src="https://agentmods.dev/badge/skills/vmdeshpande/ai-agent-automation/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 3,652 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 43
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • high Prompt Injection · line 294
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • medium MCP Rug Pull · line 415
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.03652
Opus 5 $0.00032 $0.01826
Sonnet 5 $0.00013 $0.00730
Haiku 4.5 $0.00006 $0.00365

Measured 12d ago against content hash 6129e8dfdb38, 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 12d 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:

.agents/skills/core-web-vitals/SKILL.md · 484 lines

How it starts

The opening of the file, as written. The whole thing — 484 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 this is:

  • Hero image or video
  • Large text block
  • Background image
  • <svg> element

Common LCP issues

1. Slow server response (TTFB > 800ms)

Fix: CDN, caching, optimized backend, edge rendering

2. Render-blocking resources

<!-- ❌ Blocks rendering -->
<link rel="stylesheet" href="/all-styles.css">

<!-- ✅ Critical CSS inlined, rest deferred -->
<style>/* Critical above-fold CSS */</style>
<link rel="preload" href="/styles.css" as="style" 
      onload="this.onload=null;this.rel='stylesheet'">

3. Slow resource load times

<!-- ❌ No hints, discovered late -->
<img src="/hero.jpg" alt="Hero">

<!-- ✅ Preloaded with high priority -->
<link rel="preload" href="/hero.webp" as="image" fetchpriority="high">
<img src="/hero.webp" alt="Hero" fetchpriority="high">

4. Client-side rendering delays

// ❌ Content loads after JavaScript
useEffect(() => {
  fetch('/api/hero-text').then(r => r.json()).then(setHeroText);
}, []);

// ✅ Server-side or static rendering
// Use SSR, SSG, or streaming to send HTML with content
export async function getServerSideProps() {
  const heroText = await fetchHeroText();
  return { props: { heroText } };
}

5. Make navigations instant with the Speculation Rules API

For most sites, the LCP a user actually experiences is dominated by the next page they navigate to, not the one they landed on. Telling the browser to prerender likely-next pages on hover collapses that LCP to ~0ms.

Read the full file on GitHub · 484 lines

Files

What ships with it

1 file 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. 12d ago First seen · 484 lines · 65 tokens per session scan A 6129e8dfdb38

Subscribe to this mod's changes

core-web-vitals is a skill published in the GitHub repository vmDeshpande/ai-agent-automation (178 stars, last pushed 4d ago), licensed Apache-2.0. It adds 65 tokens to every session and 3,652 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-30.