- name
SKILL.md
Файл навыка остаётся в репозитории издателя.
Вставьте скопированную команду в терминал. Она установит этот SKILL.md в выбранного агента.
npx skills add nucliweb/webperf-snippets --skill webperf-core-web-vitals -a cursor -yВставьте скопированную команду в терминал. Она установит этот SKILL.md в выбранного агента.
npx skills add nucliweb/webperf-snippets --skill webperf-core-web-vitals -a claude-code -yВставьте скопированную команду в терминал. Она установит этот SKILL.md в выбранного агента.
npx skills add nucliweb/webperf-snippets --skill webperf-core-web-vitals -a codex -yВставьте скопированную команду в терминал. Она установит этот SKILL.md в выбранного агента.
npx skills add nucliweb/webperf-snippets --skill webperf-core-web-vitals -a grok -yОтправьте скопированное сообщение в чат Grok Bot. Бот загрузит этот SKILL.md с GitHub и добавит его к навыкам, общим для всех ваших ботов.
Install this skill: https://github.com/nucliweb/webperf-snippets/tree/HEAD/dist/antigravity/webperf-core-web-vitalsОт издателя
JavaScript snippets for measuring web performance in Chrome DevTools.
mcp__chrome-devtools__evaluate_script, passing the file instead of its code: sourcePath with the absolute path of scripts/<Name>.js in this skill, and format: "script", since a script runs by itself and is not a function. Read the object it returns. The scripts have no console output, so the returned object is the result: script, status and the metric data (value, rating, details, items, issues), as described in references/schema.md.status is "tracking", the script keeps observing the page. After the interactions, call the function named in getDataFn with another mcp__chrome-devtools__evaluate_script call, as an arrow function in function, for example () => getINP(), and read the object it returns.status is "error" or "unsupported", read error: the page may not have loaded yet, or the browser lacks the API.sourcePath and format need Chrome DevTools MCP 1.11.0 or later, and the server only reads files inside its workspace roots: the project, the temp folder and each --workspace=<folder> in its arguments. When it answers Access denied, as it does for a skill installed outside the project, such as in ~/.claude/skills/, read the file and pass its code in function, still with format: "script". A --workspace with the real folder of the skills makes the path work; the server follows symlinks, so a link to the folder is not enough.
Without Chrome DevTools MCP, run the same snippet with the webperf-snippets CLI, which loads the page in headless Chromium and prints the same result objects: npx webperf-snippets <url> --snippet <Name> --json, where <Name> is the script name without .js. It needs Playwright and Chromium (npm install --save-dev webperf-snippets playwright, then npx playwright install chromium), and tracking snippets take --interact-script <file> to drive the interactions.
scripts/CLS.js — Cumulative layout shift (CLS)scripts/INP.js — Interaction to next paint (INP)scripts/LCP-Image-Entropy.js — LCP image entropyscripts/LCP-Subparts.js — LCP subpartsscripts/LCP-Trail.js — LCP trailscripts/LCP-Video-Candidate.js — LCP video candidatescripts/LCP.js — Largest contentful paint (LCP)When the user asks for a comprehensive Core Web Vitals analysis or "audit CWV":
When LCP is slow or the user asks "debug LCP" or "why is LCP slow":
When layout shifts are detected or the user asks "debug CLS" or "layout shift issues":
When interactions feel slow or the user asks "debug INP" or "slow interactions":
getINP() after interactions, getINPDetails() for the 15 slowest interactionsWhen LCP is a video element (detected by LCP-Video-Candidate.js):
When LCP is an image (most common case):
Use this decision tree to automatically run follow-up snippets based on results:
getINPDetails() for the 15 slowest interactions, slowest first (useful for identifying patterns across multiple slow interactions)status: "error" → Check if the page has finished loading:
status: "error" → Tell the user: "LCP data is not available yet. Please ensure the page has fully loaded, then run the analysis again."getINP() returns status: "error" → The getDataFn: "getINP" field signals the agent can retry after user interaction. Prompt the user to click, type, or scroll, then call getINP() again.Context fork note: This skill runs with
context: fork. Cross-skill triggers below are recommendations to report back to the parent agent, not direct calls this subagent can execute. When a cross-skill trigger fires, tell the user which skill and script to run next. Scripts marked (pending) are not yet available — skip them and note the limitation.
These triggers recommend using snippets from other skills:
If LCP > 2.5s and TTFB phase is dominant → Use webperf-loading skill:
If LCP image is lazy-loaded → Use webperf-loading skill:
If LCP has no fetchpriority → Use webperf-loading skill:
If CLS caused by fonts → Use webperf-loading skill:
If CLS caused by images → Use webperf-media skill:
When multiple CWV metrics are poor, prioritize investigation:
If LCP > 2.5s AND CLS > 0.1 → Likely shared root cause:
If LCP > 2.5s AND INP > 200ms → Main thread congestion:
If CLS > 0.1 AND INP > 200ms → Layout thrashing or interaction-triggered shifts:
references/snippets.md — Descriptions and thresholds for each scriptreferences/schema.md — Return value schema for interpreting script outputIntelligent Core Web Vitals analysis with automated workflows and decision trees. Measures LCP, CLS, INP with guided debugging that automatically determines follow-up analysis based on results. Includ
---name: webperf-core-web-vitalsdescription: Intelligent Core Web Vitals analysis with automated workflows and decision trees. Measures LCP, CLS, INP with…---# dist/antigravity/webperf-core-web-vitals/SKILL.mdОбзор
Intelligent Core Web Vitals analysis with automated workflows and decision trees. Measures LCP, CLS, INP with guided debugging that automatically determines follow-up analysis based on results. Includes workflows for LCP deep dive (5 phases), CLS investigation (loading vs interaction), INP debugging (latency breakdown + attribution), and cross-skill integration with loading, interaction, and media skills. Use when the user asks about Core Web Vitals, LCP optimization, layout shifts, or interaction responsiveness. Compatible with Chrome DevTools MCP.
FAQ
Скачайте dist/antigravity/webperf-core-web-vitals/SKILL.md у издателя или скопируйте путь и откройте репозиторий. PlugMCP только показывает навык в каталоге и не хранит файл.
Издатель хранит его в https://github.com/nucliweb/webperf-snippets.
Claude, Cursor, Codex и Grok Build могут читать SKILL.md, который вы добавляете из репозитория издателя. Grok Bot устанавливает его, когда вы отправляете в чат ссылку на папку навыка на GitHub.