Tooluck logoTooluck
SKILL.md

webperf-resources

Agent skill fromnucliweb/webperf-snippets

Intelligent network quality analysis with adaptive loading strategies. Detects connection type (2g/3g/4g), bandwidth, RTT, and save-data mode, then automatically triggers appropriate optimization workflows. Includes decision trees that recommend image compression for slow connections, critical CSS inlining for high RTT, and save-data optimizations (disable autoplay, reduce quality). Features connection-aware performance budgets (500KB for 2g, 1.5MB for 3g, 3MB for 4g+) and adaptive loading implementation guides. Cross-skill integration with Loading (TTFB impact), Media (responsive images), and Core Web Vitals (connection impact on LCP/INP). Use when the user asks about slow connections, mobile optimization, save-data support, or adaptive loading strategies. Compatible with Chrome DevTools MCP.

How to install webperf-resources

install webperf-resources
# install the webperf-snippets pack with the skills CLI
npx skills add nucliweb/webperf-snippets

# or add only this skill to Claude Code: copy the folder

skills/webperf-resources/

# into

~/.claude/skills/webperf-resources/ (all projects)

.claude/skills/webperf-resources/ (one project)

skills/webperf-resources/SKILL.md

MITFull file
1# WebPerf: Resources & Network
2
3JavaScript snippets for measuring web performance in Chrome DevTools.
4
5## Running a script
6
71. Run the script with `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`.
82. When `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.
93. When `status` is `"error"` or `"unsupported"`, read `error`: the page may not have loaded yet, or the browser lacks the API.
10…

Excerpt shown under the repository's MIT license.

More skills in webperf-snippets

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates