SkillsReviewed · nucliweb

WebPerf Core Web Vitals

WebPerf Core Web Vitals is an assistant skill for developers debugging page performance, but deeper investigations depend on companion skills outside this folder. Seven JavaScript snippets measure loading speed, layout stability and interaction responsiveness, returning structured results through Chrome DevTools MCP or a documented CLI route. Runtime accuracy and performance improvements are unassessed.

Researched 15 Nov 2026

In short.

WebPerf Core Web Vitals is a skill for developers seeking assistant-guided performance debugging, but several follow-up diagnostics are outside the folder or marked pending. Its seven snippets cover Largest Contentful Paint, Cumulative Layout Shift and Interaction to Next Paint, including loading phases, candidate elements and interaction latency. Structured results support further investigation, while source limitations include filtered image coverage, inconsistent diagnostic thresholds and changes to page outlines and performance measures. The scripts were not run; runtime correctness, integration compatibility and practical performance gains are unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete .claude/skills/webperf-core-web-vitals folder at revision 8792f6bb1ac8b5d33cc9210bc11ff887e9a87ea1: SKILL.md, references/schema.md, references/snippets.md and seven scripts, plus the repository LICENSE above the folder. Other skills, CLI implementation, repository test implementations and broader repository files are excluded. References to those components establish documented dependencies, not verified behavior. No code was executed; runtime correctness, browser coverage, integration compatibility, overhead and real-world performance gains are unassessed.

The overview

What it is

WebPerf Core Web Vitals is an instruction-based assistant skill in nucliweb/webperf-snippets. Its metadata credits Joan Leon (@nucliweb), declares version 2.6.3 and identifies Chrome DevTools MCP as its integration. The original folder is [https://github.com/nucliweb/webperf-snippets/tree/main/.claude/skills/webperf-core-web-vitals].

The folder contains SKILL.md, two reference documents and seven JavaScript files. The instructions tell an assistant which snippets to use and how to interpret their results; the executable measurement logic resides in the scripts.

Practical assessment

The strongest fit is repeatable investigation of a particular page: identify its largest visible content, separate loading delays, inspect layout shifts and examine slow interactions. Numeric values, ratings, selectors and latency phases give an assistant more useful evidence than formatted console messages alone.

The skill provides investigation routes rather than demonstrated fixes. Several routes require other skills, and its recommendations do not establish the cause of a problem or the benefit of an optimization. Measurement accuracy, overhead and end-to-end operation are unassessed.

Who it suits

Frontend developers and performance specialists can use it to investigate slow hero content, unexpected movement and delayed button or keyboard responses. Developers already using an assistant with Chrome DevTools MCP are its clearest audience.

Beginners receive named workflows and threshold explanations, but still need help configuring browser access and interpreting timings, resource priorities and selectors. Teams seeking population-wide visitor measurements would need additional tooling: these scripts inspect the current document and its observed interactions.

What it provides

LCP.js measures when the largest content element appeared. LCP-Subparts.js separates server response, resource discovery, resource transfer and rendering delay. LCP-Trail.js reports distinct candidate elements, LCP-Image-Entropy.js checks encoded image bits per pixel, and LCP-Video-Candidate.js examines video or poster involvement and related attributes.

CLS.js measures the largest eligible burst of layout shifts and exposes getCLS() for updates. INP.js groups interaction events, reports input delay, processing time and presentation delay, and exposes getINPDetails() for up to 15 slow interactions.

The scripts rate LCP as good through 2,500 ms and poor above 4,000 ms, CLS as good through 0.1 and poor above 0.25, and INP as good through 200 ms and poor above 500 ms. These are encoded rating boundaries, not measured results for any website.

Using it

Requirements

The MCP route needs an assistant able to call mcp__chrome-devtools__evaluate_script and a browser exposing the required PerformanceObserver entry types. The file-based sourcePath and format interface requires Chrome DevTools MCP 1.11.0 or later. A complete minimum browser-version matrix is not established.

The MCP server must be allowed to read the real script directory through its workspace roots. The instructions identify the project directory, temporary directory and explicit --workspace directories; symlinks do not bypass this restriction.

The documented CLI route needs webperf-snippets, Playwright and Chromium. Broader loading, interaction and media investigations require companion resources whose implementations are outside this folder.

How it works

The assistant follows decision rules while the scripts read browser performance entries and inspect page elements. LCP-related scripts wait about 100 ms for buffered observer entries before returning a snapshot. Their timing calculations account for navigation activationStart, which matters for prerendered pages.

Results use ok, tracking, error or unsupported statuses. A tracking result requires later collection through the named getter. INP groups events by interactionId and uses interaction count when choosing the reported slow interaction; CLS excludes shifts marked as having recent input and applies session-window limits.

The scripts also change the inspected page. Several LCP scripts add dashed element outlines, and LCP-Subparts clears and creates named performance measures. Some observers remain active after the initial result, so returning a value does not necessarily end observation.

Getting started

Keep SKILL.md, references and scripts together. For MCP, open the target page or application route, make the skill directory readable within the server's workspace roots, and supply a script's absolute path as sourcePath with format set to script. Read the returned object rather than expecting console output.

If file access is denied, the documented fallback is to read the JavaScript file and pass its contents through function while retaining format: script. The CLI instructions instead specify npm install --save-dev webperf-snippets playwright, followed by npx playwright install chromium. The documented invocation pattern is npx webperf-snippets <url> --snippet <Name> --json; tracking snippets accept --interact-script <file> to drive the interactions.

These are documented setup routes. Installation success and compatibility with a particular assistant configuration are unassessed.

Example use

For an illustrative checkout investigation, start INP.js on the checkout page, reproduce the relevant button clicks or typing, then collect getINP() and getINPDetails(). The first provides the selected interaction's duration and phases; the second lists up to 15 slow interactions with targets and timing details.

If no interaction has been recorded, the actual script returns tracking rather than a successful zero measurement. A value below 16 ms carries a no-paint-measured information issue, which warrants checking whether the interaction produced the intended response. This example describes a use pattern, not an observed checkout result.

Assessment & evidence

Limits and caveats

Several CLS and INP follow-ups are marked pending in SKILL.md, even though the shared schema describes their output. Those descriptions do not establish availability. Loading and media companion scripts are also absent from this folder, and cross-skill triggers are recommendations for the parent assistant.

LCP-Image-Entropy calculates bits per pixel from the encoded file size (bytes times 8, divided by the smaller of the displayed and natural pixel area) rather than inspecting pixel-level visual complexity. It excludes data URLs and filters out images with zero computed bits per pixel, including images with unreadable sizes or no displayed area. Its totalImages field therefore describes the filtered set, and it does not return the general schema's corsLimitedAnalysis flag.

LCP-Trail deduplicates entries by element, so repeated LCP timing updates for the same element are omitted from its candidate list. Initial LCP results are snapshots of available entries rather than proof of a final page-lifetime value. Cross-origin timing restrictions can also leave the LCP resource's waiting and download breakdown unavailable.

Interpreting the findings

The practical value comes from combining measurements: a slow LCP value identifies a symptom, its phase breakdown suggests where time went, and candidate history shows which elements were involved. A proposed cause still needs confirmation; candidate changes alone do not establish that layout shifts occurred.

Diagnostic triggers differ between the guide and implementation. SKILL.md routes TTFB above 600 ms to further analysis, while LCP-Subparts flags TTFB over target above 800 ms. The guide uses render delay above 200 ms, while the script flags render delay above 10% of total LCP. These are different investigation rules and can produce different recommendations for the same page.

The schema also includes an LCP-Subparts example rated needs-improvement at 2,100 ms, although the actual script rates values through 2,500 ms as good. Example payloads should be read as illustrations; actual interpretation should account for the script's values, thresholds and missing data.

Other ways to use it

The project's documented CLI offers an alternative to the assistant's MCP connection. It loads a page in headless Chromium and is described as returning the same result objects; tracking snippets accept --interact-script <file> to drive the interactions. Its documentation address is [https://webperf-snippets.net/CLI].

Companion webperf-loading, webperf-interaction and webperf-media skills are suggested extensions for deeper diagnosis. Their implementations and the CLI implementation are outside this folder, so equivalent behavior, additional coverage and comparative performance are unassessed.

Source evidence

The source evidence comprises the skill instructions, two reference documents, all seven JavaScript implementations and the repository MIT notice. An immutable entry point is [https://raw.githubusercontent.com/nucliweb/webperf-snippets/8792f6bb1ac8b5d33cc9210bc11ff887e9a87ea1/.claude/skills/webperf-core-web-vitals/SKILL.md].

The code supports findings about observer use, calculations, return objects, filtering and page modifications. The shared schema describes repository contract tests, but their implementations and execution results are not included. Its sample metric values are documentation examples, not observed measurements or benchmarks.

Access & freshness

Costs

The MIT notice grants permission to use the software free of charge under its conditions. The supplied material gives no operating-cost estimate or required paid subscription.

Costs for any assistant or model service used with the skill, browser compute and execution infrastructure are unspecified. No measured resource consumption or total cost is established.

Use and redistribution

The skill declares MIT licensing, and the repository LICENSE carries Copyright (c) 2022 Joan León. It permits use, copying, modification, publication, distribution, sublicensing and sale of the software and associated documentation.

Copies or substantial portions must retain the copyright and permission notices. The software is supplied without warranty. Redistribution of these skill files should therefore include the supplied LICENSE.

Version and freshness

The source snapshot was captured on 15 November 2026 at 21:31 UTC and is pinned to revision 8792f6bb1ac8b5d33cc9210bc11ff887e9a87ea1. Its skill metadata declares version 2.6.3.

The original main-branch address can change independently of this snapshot. Whether later commits alter pending diagnostics, thresholds or MCP compatibility is unknown; the declared version does not establish the latest available release.

Suggested next steps

Start with a representative page and route, collect LCP and CLS, then reproduce relevant user interactions before reading getCLS(), getINP() and getINPDetails(). Interpret tracking as unfinished collection and unsupported as unavailable measurement.

Before relying on a diagnosis, check the identified element, missing resource timings and availability of companion scripts. Compare repeated measurements under consistent conditions and confirm any proposed optimization with new measurements. This source provides no established performance improvement for a particular site.

Evidence for this report

LICENSEnotice · checked 2026-11-15