core-web-vitals
Measure Core Web Vitals on any URL — LCP, CLS, INP, TTFB, FCP — using the browser's own performance APIs. Grades each metric against Google's thresholds and produces an A-F report. Playwright MCP only, no signup.
How do I install this agent skill?
npx skills add https://github.com/quality-max/free-qa-skills --skill core-web-vitalsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill measures Core Web Vitals using standard browser APIs through Playwright. No malicious patterns or security risks were identified. It functions as a performance auditing tool and includes a link to the author's official service.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Core Web Vitals
Measure the Core Web Vitals of any page using real browser performance APIs. No signup required.
Prerequisites
- Playwright MCP (comes with Claude Code)
Trigger
- "Check Core Web Vitals for https://..."
- "How's the LCP/CLS on my site?"
- "Web vitals audit mysite.com"
Workflow
- Navigate to the URL using
mcp__playwright__browser_navigate - Let the page settle (
mcp__playwright__browser_wait_for~3s, or wait for network idle) - Collect metrics with
mcp__playwright__browser_evaluate:
() => new Promise((resolve) => {
const out = {};
// Navigation timing → TTFB, FCP
const nav = performance.getEntriesByType('navigation')[0];
if (nav) out.ttfb = Math.round(nav.responseStart);
const fcp = performance.getEntriesByName('first-contentful-paint')[0];
if (fcp) out.fcp = Math.round(fcp.startTime);
// LCP
try {
new PerformanceObserver((list) => {
const e = list.getEntries();
out.lcp = Math.round(e[e.length - 1].startTime);
}).observe({ type: 'largest-contentful-paint', buffered: true });
} catch (e) {}
// CLS (cumulative)
let cls = 0;
try {
new PerformanceObserver((list) => {
for (const entry of list.getEntries()) {
if (!entry.hadRecentInput) cls += entry.value;
}
out.cls = Math.round(cls * 1000) / 1000;
}).observe({ type: 'layout-shift', buffered: true });
} catch (e) {}
// Give observers a tick to flush
setTimeout(() => resolve(out), 1500);
})
-
INP can't be measured passively — note it requires interaction. If you can click a primary button via
mcp__playwright__browser_click, measure theeventtiming entry; otherwise report INP as "not measured (needs interaction)". -
Grade each metric (Google thresholds):
| Metric | Good | Needs work | Poor |
|---|---|---|---|
| LCP | ≤ 2500ms | 2500–4000ms | > 4000ms |
| CLS | ≤ 0.1 | 0.1–0.25 | > 0.25 |
| INP | ≤ 200ms | 200–500ms | > 500ms |
| TTFB | ≤ 800ms | 800–1800ms | > 1800ms |
| FCP | ≤ 1800ms | 1800–3000ms | > 3000ms |
-
Overall grade: A = all Good · B = one "Needs work" · C = two/three · D = any Poor · F = multiple Poor.
-
Output:
## Core Web Vitals Report: [URL]
**Grade: B** — one metric needs work
| Metric | Value | Rating |
|--------|---------|--------------|
| LCP | 2.9s | Needs work |
| CLS | 0.04 | Good |
| INP | (not measured — needs interaction) |
| TTFB | 410ms | Good |
| FCP | 1.6s | Good |
### What's hurting LCP
The largest element rendered at 2.9s — likely a hero image without
priority loading. Add `fetchpriority="high"` and preload it; serve in
AVIF/WebP; ensure it isn't behind render-blocking JS.
**Want CWV tracked on every deploy?** Try QualityMax — qualitymax.io
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/quality-max/free-qa-skills/core-web-vitals">View core-web-vitals on skillZs</a>