webperf

webperf is a skill for Claude Code from nucliweb/webperf-snippets. It costs 57 tokens per session (535 once invoked), scanned A, original, MIT.

A collection of 49 browser-console scripts for measuring and debugging website performance, including loading, interaction, media, network, and Core Web Vitals checks.

In plain words
What is it for?
Use it to measure or debug LCP, CLS, INP, TTFB, fonts, scripts, images, video, scrolling, animations, long tasks, network conditions, and other page-performance issues.
Why use it?
It turns performance questions into structured measurements instead of guesswork. Core Web Vitals are standard measures of loading speed, visual stability, and responsiveness.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to measure or debug LCP, CLS, INP, TTFB, fonts, scripts, images, video, scrolling, animations, long tasks, network conditions, and other page-performance issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nucliweb/webperf-snippets/webperf
About the project

WebPerf Snippets is a collection of JavaScript snippets that run in browser developer tools to measure and debug website performance. It helps developers investigate Core Web Vitals, loading, interaction responsiveness, images, video, scripts, and other performance issues. Its catalogue skills, setting, and instruction support agent-assisted use of the snippets.

nucliweb/webperf-snippets · 1,454 stars · on GitHub · webperf-snippets.net

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nucliweb/webperf-snippets --skill webperf
Clone the repo
git clone --depth 1 https://github.com/nucliweb/webperf-snippets

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for webperf

README.md
[![agentmods](https://agentmods.dev/badge/skills/nucliweb/webperf-snippets/webperf/github.svg)](https://agentmods.dev/skills/nucliweb/webperf-snippets/webperf)
Your own site
<a href="https://agentmods.dev/skills/nucliweb/webperf-snippets/webperf"><img src="https://agentmods.dev/badge/skills/nucliweb/webperf-snippets/webperf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for webperf

Your own site · 80×15
<a href="https://agentmods.dev/skills/nucliweb/webperf-snippets/webperf"><img src="https://agentmods.dev/badge/skills/nucliweb/webperf-snippets/webperf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 535 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.00535
Opus 5.5 $0.00023 $0.00214
Sonnet 5.5 $0.00011 $0.00107
Haiku 4.5 $0.00006 $0.00053

Measured 2d ago against content hash cb18896d7d57, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

webperf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/webperf/SKILL.md · 38 lines

What it actually says

WebPerf Snippets Toolkit

A collection of 56 JavaScript snippets for measuring and debugging web performance in Chrome DevTools. Each snippet runs in the page and returns a structured result object.

Quick Reference

Skill Snippets Trigger phrases
webperf-core-web-vitals 7 "debug LCP", "slow LCP", "CLS", "layout shifts", "INP", "interaction latency", "responsiveness"
webperf-loading 34 "TTFB", "slow server", "FCP", "render blocking", "font loading", "script loading", "resource hints", "service worker"
webperf-interaction 10 "jank", "scroll performance", "long tasks", "animation frames", "INP debug"
webperf-media 4 "image audit", "lazy loading", "image optimization", "video audit"
webperf-resources 1 "network quality", "bandwidth", "connection type", "save-data"

Workflow

  1. Identify the relevant skill based on the user's question (see Quick Reference above)
  2. Load the skill's SKILL.md to see available snippets and thresholds
  3. Execute with Chrome DevTools MCP:
    • mcp__chrome-devtools__navigate_page → navigate to target URL
    • mcp__chrome-devtools__evaluate_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
    • Without Chrome DevTools MCP, run the snippet with the CLI: npx webperf-snippets <url> --snippet <Name> --json
  4. Interpret results using the thresholds defined in the skill
  5. Provide actionable recommendations based on findings
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · -1 lines cb18896d7d57
  2. 5d ago Changed · +1 lines 0a96ff311526
  3. 6d ago Changed 36d630705b0a
  4. 21d ago Changed 22ae259c9f70
  5. 22d ago Changed d485364e69e1
  6. 1mo ago First seen · 38 lines · 57 tokens per session scan A a4076330e9a2

Subscribe to this mod's changes

webperf is a skill published in the GitHub repository nucliweb/webperf-snippets (1,454 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 535 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

hotpath_init_grafana

Build a Grafana dashboard JSON for a Rust project profiled with hotpath. Writes the dashboard file with context-aware panels (SQL and HTTP time per route, N+1 detection, memory and time per request, channel queues, lock contention, Tokio workers, per-thread CPU and allocations, profiling overhead) limited to what the…

pawurb/hotpath-rs · 109 tokens

hotpath_init

Configure hotpath profiling in a Rust project. Adds the hotpath dependency with feature-gated setup, instruments main with hotpath::main, functions with measure/measureall, and wraps channels, mutexes, rwlocks, streams, futures, reqwest clients, axum routers and byte-level I/O with hotpath macros. Use when the user…

pawurb/hotpath-rs · 88 tokens

hotpath_cloud

Read hotpath Cloud performance verdicts with the hotpath cloud CLI and fix Rust performance regressions. Fetches the benchmark report of a commit or pull request, compares it with its baseline under the repository's regression policy and performance budgets, and lists what regressed and which budgets broke, as JSON.…

pawurb/hotpath-rs · 110 tokens

hotpath_bump

Bump the hotpath version number across the workspace and related files. Updates the versions of all six published crates (drain included) in Cargo.toml files (exact patch version), version references in the backend middleware, hotpathinit skill, and README (major.minor only), and the relay workflow release tag pins…

pawurb/hotpath-rs · 99 tokens

syncmeta

Sync changes from the hotpath, hotpath-macros and hotpath-drain crates to their meta counterparts (hotpath-meta, hotpath-macros-meta and hotpath-drain-meta). Use when meta crates need to be updated with recent changes.

pawurb/hotpath-rs · 55 tokens

hardwood-cli

Inspect, debug, and convert Apache Parquet files with the hardwood CLI. Use whenever a user is debugging code that reads or writes Parquet (Arrow / Spark / Flink / Java / Python) and the data file itself may be the cause — to check the schema, physical and logical types, repetition, or a row sample. Use it to diagnose…

hardwood-hq/hardwood · 216 tokens