measure-cwv
Skill4 starsChanged 6 months agoMITView on GitHub
Measure Core Web Vitals (LCP, INP, CLS) on a live page using PerformanceObserver injection. Returns metrics + thresholds verdict per web.dev good/needs-improvement/poor bands. Chromium-only — Firefox and WebKit ship partial PerformanceObserver coverage.
In this repository8 other files it gives its agents.
- audit-a11ySkill
- audit-page-budgetSkill
- audit-seoSkill
- check-errorsSkill
- discover-flowsSkill
- scaffold-e2eSkill
- verify-uiSkill
- visual-diffSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
Run artifacts are saved under:
- Distinctive: line 74
Do not attempt another backend (D-024).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/measure-cwv
Single-backend skill. Calls measure_cwv on the rolepod-uiproof
MCP server. No fallback (D-024).
When to use
- Verifying that a page meets the Core Web Vitals targets for a UX change.
- Comparing LCP / INP / CLS before vs after a UI change.
- Establishing a CWV baseline for a landing page.
- Running a CWV check inside a Verify-phase flow alongside
/audit-a11yand/check-errors.
When NOT to use
- Backend latency or server-side p95/p99 timing — that is the parent rolepod's
rolepod-builderagent territory. - Bundle size / build-output inspection — same.
- Synthetic load tests (k6, Locust) — same.
- Firefox or WebKit targets — the underlying PerformanceObserver entry
types are chromium-specific; the tool refuses other browsers with
cwv_unsupported_browser.
Inputs
url— URL to measure.viewport— optional{ width, height }.emulate.network_throttle— one ofoffline | slow-3g | fast-3g | slow-4g | fast-4g | no-throttling.emulate.cpu_throttle— 1 (none) to 20 (very slow). Chromium only.observe_ms— observation window after load. Default 5000ms.interactions[]— optional steps to elicit INP samples. Each step is{ kind: "click", query },{ kind: "type", query, text },{ kind: "key", key }, or{ kind: "scroll", direction, amount? }.thresholds— overrides forlcp_ms(2500),inp_ms(200),cls(0.1).
Outputs
run_id— folder under the run root (see Evidence routing).metrics—{ lcp_ms, inp_ms, cls }.verdict— per-metricgood | needs-improvement | poor | unmeasured. INP isunmeasuredwhen no interactions were driven.status—pass(all good) |warn(any needs-improvement) |fail(any poor).thresholds— the effective thresholds used.report_path— path tocwv.jsonwith full samples.
Process
- Build
measure_cwvinput from the user's intent (URL, optional throttle, optional interactions). - Call the tool.
- Surface the three metrics + verdict inline. Reference the report path for the full sample list.
Evidence routing
Run artifacts are saved under:
- Standalone:
.rolepod-uiproof/artifacts/measure_cwv_<ts>_<uuid>/ - With
rolepodparent (detected via the marker file<git-root>/.rolepod/parent-activewritten by the parent's SessionStart hook):<git-root>/.rolepod/evidence/<ts>-rolepod-uiproof-measure-cwv/
Either way the run directory contains a manifest.json per Extension Protocol v1 so the parent's check-work skill can aggregate the result into the verify report. Standalone users can read the manifest themselves — same shape.
If the tool is unavailable
Surface plainly:
The
/measure-cwvskill needs the rolepod-uiproof MCP server, which is not currently available. Confirm the plugin is installed and try again.
Do not attempt another backend (D-024).
Examples
Plain LCP / CLS check on a landing page
{
"url": "https://example.com",
"observe_ms": 5000
}INP will be reported as unmeasured — no interactions were driven.
Eliciting an INP sample after a click
{
"url": "https://example.com/app",
"observe_ms": 3000,
"interactions": [
{ "kind": "click", "query": "Open menu" }
]
}Throttled measurement (slow 4G, 4x CPU)
{
"url": "https://example.com",
"emulate": { "network_throttle": "slow-4g", "cpu_throttle": 4 },
"observe_ms": 7000
}Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

