frontend-performance

frontend-performance is a skill for Claude Code from bestdeejay-design/agent-skills. It costs 262 tokens per session (3,189 once invoked), scanned A, original, MIT.

A web-performance audit tool for finding slow loading, large files, and server or browser settings that affect speed.

In plain words
What is it for?
Use it to review Core Web Vitals, investigate slow pages, analyze JavaScript and CSS bundle sizes, and check compression, caching, HTTP/2, and loading hints.
Why use it?
It checks performance details that a standard Lighthouse report may miss, including built files, response headers, and network behavior.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it to review Core Web Vitals, investigate slow pages, analyze JavaScript and CSS bundle sizes, and check compression, caching, HTTP/2, and loading hints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bestdeejay-design/agent-skills/frontend-performance
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 bestdeejay-design/agent-skills --skill frontend-performance
Clone the repo
git clone --depth 1 https://github.com/bestdeejay-design/agent-skills

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 frontend-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/bestdeejay-design/agent-skills/frontend-performance/github.svg)](https://agentmods.dev/skills/bestdeejay-design/agent-skills/frontend-performance)
Your own site
<a href="https://agentmods.dev/skills/bestdeejay-design/agent-skills/frontend-performance"><img src="https://agentmods.dev/badge/skills/bestdeejay-design/agent-skills/frontend-performance/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 frontend-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/bestdeejay-design/agent-skills/frontend-performance"><img src="https://agentmods.dev/badge/skills/bestdeejay-design/agent-skills/frontend-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 262 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00262 $0.03189
Opus 5 $0.00131 $0.01595
Sonnet 5 $0.00052 $0.00638
Haiku 4.5 $0.00026 $0.00319

Measured 8d ago against content hash c69b79e60c88, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

frontend-performance scanned grade A with 1 finding 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 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/audit.js, scripts/perf_headers.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `perf:http2-3` | Enable HTTP/2 or HTTP/3 | static | response protocol (info if urllib can't confirm — verify in Lighthouse) |
skills/frontend-performance/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

frontend-performance

A performance specialist that goes beyond what frontend-perfection already does. frontend-perfection runs Lighthouse + a couple of resource-hint checks and owns contrast/tokens/SEO/a11y. This skill owns performance depth: the network/header and built-asset layer that Lighthouse cannot see offline, plus a focused Core Web Vitals Lighthouse run.

Two engines, clearly split by what they can measure:

  • perf_headers.py — PURE Python 3 stdlib, OFFLINE. Inspects response headers + protocol + transfer timing for a URL, and statically analyzes a built asset tree (page weight, largest bundles, duplicate libs, missing preloads, GIF→video, service worker, speculation rules, streaming, virtualization, third-party async). No network needed for the directory mode.
  • audit.js — real Chrome via chrome-launcher + Lighthouse >= 13 (stable API, .default fallback). Measures the runtime metrics: LCP, FCP, INP, CLS, TTFB, critical request chains, render-blocking resources, compression, HTTP/2.

When to use

  • User asks for a "performance audit", "page speed", "core web vitals", "bundle size", "optimize loading", "check HTTP/2 / compression / caching".
  • User reports slow LCP/CLS/INP or a heavy bundle.
  • frontend-perfection already passed but the user wants perf depth, or the orchestrator (/frontend, mobile-frontend) delegates the perf slice.

Composition

  • For contrast/tokens/SEO/a11y/OG — load frontend-perfection (this skill does NOT reimplement those; it owns performance only).
  • For SEO-layer breadth — load seo-toolkit.
  • For a visual direction before building — load frontend-design-taste.

Workflow

  1. Locate the target — a live URL, or a built asset directory (static HTML/CSS/JS or a bundled SPA).
  2. Run the offline auditor (no Chrome needed) and capture evidence:
    python3 scripts/perf_headers.py --url https://example.com --out perf-url.json
    echo "perf_headers.py(url) exit=$?"
    python3 scripts/perf_headers.py --dir ./dist --out perf-dist.json
    echo "perf_headers.py(dir) exit=$?"
    
    Exit 0 = no fail checks; 1 = at least one fail; 2 = runner error. Keep the --out JSON and the printed fail lines — they are the evidence that the audit ran and what it found. Paste the exit status and the fail summary into the report; do not summarize from memory.
  3. Run the Lighthouse CWV runner (real Chrome) for the runtime metrics, capturing evidence the same way:
    node scripts/audit.js --url https://example.com --mobile --out lh-perf.json
    echo "audit.js(mobile) exit=$?"
    node scripts/audit.js --url https://example.com --desktop --out lh-perf-d.json
    echo "audit.js(desktop) exit=$?"
    
    Default --threshold 90 on the performance category; exit 0 only when performance ≥ threshold. Add --only performance (default) or another category if iterating. Record the printed performance score and the failed weighted audits from each --out JSON as evidence.
  4. Fix by audit id — every fix references the audit it closes (perf:http2-3, perf:page-weight, perf:lcp, perf:js-bundle-size, …).
  5. Re-audit until green on both engines and both form factors.
  6. Write the before/after report — input paths, exact commands, the captured exit statuses (0/1/2) for every engine run, the real fail lines and scores from each --out JSON, interpretation, and what was deliberately NOT done. Evidence over assertion: the report must show the command, its exit status, and the output — not a paraphrase.

Read the full file on GitHub · 188 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 188 lines · 262 tokens per session scan A c69b79e60c88

Subscribe to this mod's changes

frontend-performance is a skill published in the GitHub repository bestdeejay-design/agent-skills (5 stars, last pushed yesterday), licensed MIT. It adds 262 tokens to every session and 3,189 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

react-stability

Prioritize hardening React UI components against runtime crashes across this scenario.

Vrooli/Vrooli · 0 tokens

developing-with-streamlit

Use for ALL Streamlit tasks: creating, editing, debugging, beautifying, styling, theming, optimizing, or deploying Streamlit apps. Also custom components, st.components.v2, HTML/JS/CSS work. Discovers and loads version-matched reference docs from the user's installed Streamlit (>=1.57). Triggers: streamlit, st.…

streamlit/streamlit · 128 tokens

material-ui-nextjs

Integrates Material UI with Next.js App and Pages routers using @mui/material-nextjs, Emotion cache providers, next/font, CSS layers with Tailwind/CSS Modules, Link component prop patterns, CSS theme variables SSR notes, and App Router useSearchParams + Suspense. Use when setting up or debugging MUI in a Next.js app.

mui/material-ui · 76 tokens

benchmark-workflow

Run, diagnose, or change Xberg extraction benchmarks, quality scoring, benchmark fixtures, artifact contracts, and independently sourced ground truth. Load for the Benchmarks workflow or benchmark-harness work, not ordinary unit tests.

xberg-io/xberg · 47 tokens

debugging-executions

Debug failed or wrong-output workflow executions using executions tools. Load when the user reports execution failures, unexpected node output, empty parameter values after a successful run, or a node showing a red or failed expression error.

n8n-io/n8n · 48 tokens

workflow

Use when a task is too large for turn-by-turn orchestration and should run through the big-task workflow lane: system-wide changes, large migrations, repo-wide audits, high-confidence verification, or tasks explicitly asking to run a workflow. Claude Code uses native dynamic workflows; Codex, OpenCode, and Grok use…

jeremylongshore/tons-of-skills-marketplace · 101 tokens