
Webperf Core Web Vitals
This is a diagnostic powerhouse for Core Web Vitals. It doesn't just measure LCP, CLS, and INP, it actually walks you through what to do next based on the results. If LCP is over 2.5s, it automatically suggests running subparts analysis. If you've got layout shifts, it knows to check lazy-loaded images and font swaps. The decision trees are the real value here: run one script, get a specific next step based on thresholds. It's built for Chrome DevTools MCP and integrates with companion skills for loading, interaction, and media when you need to dig deeper. From Joan Leon's webperf-snippets collection, so the scripts themselves are battle-tested in production debugging.
- skills.sh installs
- 295
- GitHub stars
- 1.5K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add nucliweb/webperf-snippets --skill webperf-core-web-vitals --agent claude-codeInstalls into .claude/skills of the current project.
Files
WebPerf: Core Web Vitals
JavaScript snippets for measuring web performance in Chrome DevTools.
Running a script
- Run the script with
mcp__chrome-devtools__evaluate_script, passing the file instead of its code:sourcePathwith the absolute path ofscripts/<Name>.jsin this skill, andformat: "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,statusand the metric data (value,rating,details,items,issues), as described inreferences/schema.md. - When
statusis"tracking", the script keeps observing the page. After the interactions, call the function named ingetDataFnwith anothermcp__chrome-devtools__evaluate_scriptcall, as an arrow function infunction, for example() => getINP(), and read the object it returns. - When
statusis"error"or"unsupported", readerror: the page may not have loaded yet, or the browser lacks the API.
Sponsors
Details
- Repository
- github.com/nucliweb/webperf-snippets
- Categories
- Frontend Development, AI & Agent Building, Debugging, Productivity & Planning, Automation & Workflows, Marketing & SEO, Sales & Marketing, Design & UI/UX
- First seen
- Jun 3, 2026