agentsync: Skill for Claude Code

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

core-web-vitals is a skill for Claude Code, Codex from dallay/agentsync. It costs 66 tokens per session (2,987 once invoked), scanned A, a copy of core-web-vitals, MIT.

A guide for improving Core Web Vitals, Google’s measures of loading speed, responsiveness, and visual stability.

In plain words
What is it for?
Use it to improve LCP, INP, and CLS, such as by addressing slow servers, blocking resources, and layout shifts.
Why use it?
It helps find page problems that make websites load slowly, respond late, or move around while loading, which can also affect search ranking.

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 dallay/agentsync's own configuration. It tells Claude Code and Codex how to work on agentsync 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 agentsync configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dallay/agentsync. 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/dallay/agentsync/main/.agents/skills/core-web-vitals/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dallay/agentsync

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/dallay/agentsync/core-web-vitals/github.svg)](https://agentmods.dev/skills/dallay/agentsync/core-web-vitals)
Your own site
<a href="https://agentmods.dev/skills/dallay/agentsync/core-web-vitals"><img src="https://agentmods.dev/badge/skills/dallay/agentsync/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/dallay/agentsync/core-web-vitals"><img src="https://agentmods.dev/badge/skills/dallay/agentsync/core-web-vitals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,987 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 86% copy Near-identical to another mod 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.00066 $0.02987
Opus 5.5 $0.00026 $0.01195
Sonnet 5.5 $0.00013 $0.00597
Haiku 4.5 $0.00007 $0.00299

Measured 1mo ago against content hash 6dc14b8483a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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

This is a copy

86% identical to core-web-vitals — 39 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

The opening of the file, as written. The whole thing — 469 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 } };
}

LCP optimization checklist

- [ ] TTFB < 800ms (use CDN, edge caching)
- [ ] LCP image preloaded with fetchpriority="high"
- [ ] LCP image optimized (WebP/AVIF, correct size)
- [ ] Critical CSS inlined (< 14KB)
- [ ] No render-blocking JavaScript in <head>
- [ ] Fonts don't block text rendering (font-display: swap)
- [ ] LCP element in initial HTML (not JS-rendered)

Read the full file on GitHub · 469 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. 1mo ago First seen · 469 lines · 66 tokens per session scan A 6dc14b8483a0

Subscribe to this mod's changes

core-web-vitals is a skill published in the GitHub repository dallay/agentsync (70 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 2,987 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to core-web-vitals, differing in 39 lines, and is treated as a copy.