←Leaderboard/Code Quality/webperf-snippets
Last commit on October 16, 2026·Created on May 17, 2022

nucliweb/webperf-snippets

“Tested JavaScript snippets that measure and debug web performance. Your AI agent runs them for you, or you run them yourself in DevTools: the same code every time.”
Combined rank
#274
across all skills
In Code Quality
#16
category rank
Stars
1.5k
7d change unavailable
Forks
90
Watchers
14
Traction scoreGitHub stars can be faked, so popularity alone can be misleading. Traction Score looks for broader signs of recent attention, adoption, and active maintenance.
TL;DR

Tested JavaScript snippets that measure and debug web performance. Your AI agent runs them for you, or you run them yourself in DevTools: the same code every time.

WHO IT'S FOR
Frontend engineers
debug Core Web Vitals and layout shifts
Web performance engineers
analyze interaction latency and main thread blocking
AI agent / automation builders
integrate automated web performance debugging workflows
QA / test automation engineers
audit third-party script impact on responsiveness
Compatible AgentsThe repository documents support for these agents. The skills may also work with other agents that can load SKILL.md files, but they may need some setup or small changes.

Use this skill collection

Follow the documented setup, then try a first task.

Install the WebPerf Snippets skill bundle

Installs: WebPerf Snippets Agent Skills bundle, installed into ~/.claude/skills/. The listed paths are a bounded selection of the bundle.

Before you start
  • For browser execution, configure Chrome DevTools MCP. The documented alternative is the webperf-snippets CLI with Playwright and Chromium.
  1. Run this command in a terminal to install the repository's Agent Skills into ~/.claude/skills/.

    npx skills add nucliweb/webperf-snippets

Give it something to do.

Suggested first task

Measure a page's LCP

Uses webperf-core-web-vitals

  • Replace <url> with the page URL to measure.
  • Configure Chrome DevTools MCP, or install the documented CLI with Playwright and Chromium.
Use webperf-core-web-vitals to measure Largest Contentful Paint on <url> with LCP.js. Report the returned value, rating, and any reported issues. If measurement is unsupported or fails, explain the returned error.
Suggested first task

Check image loading and sizing

Uses webperf-media

  • Replace <url> with the page URL to inspect.
  • Configure Chrome DevTools MCP, or install the documented CLI with Playwright and Chromium.
Use webperf-media to run Image-Element-Audit.js on <url>. Summarize the image format, lazy-loading, sizing, and fetchpriority findings, and identify the most useful fixes supported by the results.
Suggested first task

Inspect the browser's connection quality

Uses webperf-resources

  • Replace <url> with the page URL to inspect.
  • Configure Chrome DevTools MCP, or install the documented CLI with Playwright and Chromium.
Use webperf-resources to run Network-Bandwidth-Connection-Quality.js on <url>. Summarize the reported effective connection type, RTT, downlink, and save-data mode. Explain any unsupported measurements using the returned result.