webperf

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 CodeCodex

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.

agentmods
npx agentmods add skills/nucliweb/webperf-snippets/webperf
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, Codex.

Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 471 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00057 $0.00471
Opus 5 $0.00028 $0.00235
Sonnet 5 $0.00011 $0.00094
Haiku 4.5 $0.00006 $0.00047

Measured 2d ago against content hash a4076330e9a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 49 JavaScript snippets for measuring and debugging web performance in Chrome DevTools. Each snippet runs in the browser console and outputs structured, color-coded results.

Quick Reference

Skill Snippets Trigger phrases
webperf-core-web-vitals 7 "debug LCP", "slow LCP", "CLS", "layout shifts", "INP", "interaction latency", "responsiveness"
webperf-loading 29 "TTFB", "slow server", "FCP", "render blocking", "font loading", "script loading", "resource hints", "service worker"
webperf-interaction 9 "jank", "scroll performance", "long tasks", "animation frames", "INP debug"
webperf-media 3 "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
    • mcp__chrome-devtools__get_console_message → read results
  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 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,445 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 471 once invoked, about $0.0003 per session on Opus 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

module_bottleneck

Find slowest PyTorch modules in recent steps.

DeepLink-org/probing · 15 tokens

react-native-optimizations

Provides React Native performance optimization guidelines for FPS, TTI, bundle size, memory leaks, re-renders, and animations. Applies to tasks involving Hermes optimization, JS thread blocking, bridge overhead, FlashList, native modules, or debugging jank and frame drops.

FilippoDeSilva/skills · 59 tokens

gsap-vfx

Production recipes for GSAP visual effects. Companion to official gsap-core and gsap-timeline skills (API reference). Triggers: glitch effect, cyberpunk glitch, RGB displacement, chromatic aberration, scramble text, jitter animation, noise bars, marquee, infinite scroll, directional marquee, rolling counter, animated…

iotron/gsap-cookbook · 192 tokens

gsap-animate

Production recipes for core GSAP animation orchestration. Provides foundational patterns and dispatches to specialised sub-skills based on animation type. Companion to official gsap-frameworks and gsap-timeline skills (API reference). Triggers: GSAP animation, gsap.to, gsap.from, gsap.context, ctx.add, Vue GSAP, Nuxt…

iotron/gsap-cookbook · 157 tokens

gsap-canvas

Production recipes for GSAP animations rendered to HTML5 Canvas. Companion to official gsap-core and gsap-timeline skills (API reference). Triggers: canvas animation, GSAP canvas, particle system, canvas particles, canvas rendering, onUpdate canvas, draw loop, sprite animation, canvas timeline, canvas GSAP, canvas…

iotron/gsap-cookbook · 142 tokens

gsap-cursor

Production recipes for cursor and pointer-driven GSAP animations. Companion to official gsap-core and gsap-performance skills (API reference). Triggers: cursor follower, cursor effect, mouse follower, magnetic button, spotlight cursor, cursor trail, particle trail, spring cursor, elastic cursor, pointer animation…

iotron/gsap-cookbook · 157 tokens