Install
openclaw skills install webperf-core-web-vitalsIntelligent 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.
openclaw skills install webperf-core-web-vitalsJavaScript snippets for measuring web performance in Chrome DevTools. Execute with mcp__chrome-devtools__evaluate_script, capture output with mcp__chrome-devtools__get_console_message.
scripts/CLS.js — Cumulative Layout Shift (CLS)scripts/INP.js — Interaction to Next Paint (INP)scripts/LCP-Image-Entropy.js — LCP Image Entropyscripts/LCP-Sub-Parts.js — LCP Sub-Partsscripts/LCP-Trail.js — LCP Trailscripts/LCP-Video-Candidate.js — LCP Video Candidatescripts/LCP.js — Largest Contentful Paint (LCP)Descriptions and thresholds: references/snippets.md
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":
When 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:
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 outputExecute via
mcp__chrome-devtools__evaluate_script→ read withmcp__chrome-devtools__get_console_message.