Web performance measurement and debugging toolkit. Use when the user asks about web performance, wants to audit a page, or says "analyze performance", "debug lcp", "check ttfb", "measure core web vitals", "audit images", or similar.
A fictional local event page loads slowly, and I have a saved loading trace. Choose the appropriate WebPerf subskill, then give an evidence checklist for distinguishing server latency from render-blocking resources. Keep unmeasured metrics marked unknown and do not run browser tools.
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: webperfdescription: Web performance measurement and debugging toolkit. Use when the user asks about web performance, wants to audit a page, or says "analyze performance", "debug lcp", "check ttfb", "measure core web vitals", "audit images", or similar.kind: inlinemodel: gemini-2.5-flashtemperature: 0.1max_turns: 5license: MITmetadata: author: Joan Leon | @nucliweb version: 2.9.0 mcp-server: chrome-devtools category: web-performance repository: https://github.com/nucliweb/webperf-snippets
WebPerf Snippets Toolkit
A collection of 57 JavaScript snippets for measuring and debugging web performance in Chrome DevTools. Each snippet runs in the page and returns a structured result object.
Identify the relevant skill based on the user's question (see Quick Reference above)
Load the skill's SKILL.md to see available snippets and thresholds
Execute with Chrome DevTools MCP:
mcp__chrome-devtools__navigate_page → navigate to target URL
mcp__chrome-devtools__evaluate_script with sourcePath (the absolute path of the script) and format: "script" → run the snippet and read the returned object, which is the result (the scripts have no console output)
status: "tracking" → call the function named in getDataFn with another mcp__chrome-devtools__evaluate_script call after the interactions, as an arrow function such as () => getINP()
Without Chrome DevTools MCP, run the snippet with the CLI: npx webperf-snippets <url> --snippet <Name> --json
Interpret results using the thresholds defined in the skill
Provide actionable recommendations based on findings