lighthouse-perf

lighthouse-perf is a skill for Claude Code, Codex from JansenAnalytics/claudex. It costs 30 tokens per session (750 once invoked), scanned A, original, MIT.

A web-page performance auditing tool that measures loading speed, page resources, and user-experience metrics such as Core Web Vitals. It can use Lighthouse or collect simpler timing and size measurements with curl.

In plain words
What is it for?
Use it to audit page-load performance, inspect resource sizes, measure Core Web Vitals, and track frontend performance over time.
Why use it?
It shows which pages are slow and which files make them heavy, instead of relying on guesswork. Reports and performance budgets help track whether changes improve or worsen speed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/lighthouse-run.sh --url https://example.com --output ./results --format json.

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/JansenAnalytics/claudex
agentmods
npx agentmods add skills/jansenanalytics/claudex/lighthouse-perf

Made for: Claude Code, Codex.

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 lighthouse-perf

README.md
[![agentmods](https://agentmods.dev/badge/skills/jansenanalytics/claudex/lighthouse-perf.svg)](https://agentmods.dev/skills/jansenanalytics/claudex/lighthouse-perf)
Your own site
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/lighthouse-perf"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/lighthouse-perf.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 750 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.1 $0.00030 $0.00750
Opus 5 $0.00015 $0.00375
Sonnet 5 $0.00006 $0.00150
Haiku 4.5 $0.00003 $0.00075

Measured 2d ago against content hash 179f6ecbc549, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

lighthouse-perf 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 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.

Makes network callslowCapability

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

Bash wrapper that runs Lighthouse or falls back to curl-based metrics.
skills/lighthouse-perf/SKILL.md · 108 lines

How it starts

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

lighthouse-perf

Run performance audits on web pages: Lighthouse scores, Core Web Vitals, resource analysis, bundle size tracking, performance budgets.

Use When

  • Measuring page load performance
  • Tracking Core Web Vitals (LCP, FID/INP, CLS)
  • Analyzing resource sizes and page weight
  • Setting and enforcing performance budgets
  • Optimizing frontend performance

Scripts

lighthouse-run.sh

Bash wrapper that runs Lighthouse or falls back to curl-based metrics.

bash scripts/lighthouse-run.sh --url https://example.com --output ./results --format json
bash scripts/lighthouse-run.sh --url https://example.com --format html

Strategy:

  1. If lighthouse CLI is available → use it directly
  2. Fallback → curl for basic metrics (TTFB, total size, HTTP status, timing)

Captures: performance score, FCP, LCP, CLS, TBT, Speed Index (Lighthouse mode) or TTFB, total time, size (curl mode).

If Lighthouse is not installed, suggests: npm install -g lighthouse

resource-analyzer.sh

Fetches a page and analyzes all linked resources.

bash scripts/resource-analyzer.sh https://example.com
bash scripts/resource-analyzer.sh https://example.com --output report.md

Reports:

  • Total page weight and resource count by type (CSS, JS, images, fonts, other)
  • Markdown table of all resources sorted by size
  • Flags: images >500KB, JS >250KB, uncompressed resources

perf-budget.py

Performance budget tracker with history.

# Check against budget
python3 scripts/perf-budget.py --budget budget.json --actual measurements.json

# With history tracking
python3 scripts/perf-budget.py --budget budget.json --actual measurements.json --history history.jsonl

Budget format (budget.json):

{
  "js_total_kb": 300,
  "css_total_kb": 100,
  "image_total_kb": 500,
  "total_kb": 1500,
  "lcp_ms": 2500,
  "cls": 0.1,
  "fcp_ms": 1800
}

Measurements format (measurements.json):

{
  "js_total_kb": 280,
  "css_total_kb": 85,
  "image_total_kb": 420,
  "total_kb": 1200,
  "lcp_ms": 2100,
  "cls": 0.05,
  "fcp_ms": 1500
}

Read the full file on GitHub · 108 lines

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 · 108 lines · 30 tokens per session scan A 179f6ecbc549

Subscribe to this mod's changes

lighthouse-perf is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 750 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

web-performance-optimization

Optimize web performance using Core Web Vitals, modern patterns (View Transitions, Speculation Rules), and framework-specific techniques.

bobmatnyc/claude-mpm-skills · 29 tokens

accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

addyosmani/web-quality-skills · 51 tokens

performance

Optimize web performance for faster loading and better user experience. Use when asked to "speed up my site", "optimize performance", "reduce load time", "fix slow loading", "improve page speed", or "performance audit".

addyosmani/web-quality-skills · 49 tokens

core-web-vitals

Optimize Core Web Vitals (LCP, INP, CLS) for better page experience using field and lab evidence. Use when asked to "improve Core Web Vitals", "fix LCP", "reduce CLS", "optimize INP", "page experience optimization", or "fix layout shifts".

addyosmani/web-quality-skills · 67 tokens

Chrome DevTools MCP Performance

Teach agents to use the Chrome DevTools MCP server for performance testing with traces, Core Web Vitals, throttling, and evidence-based analysis.

PramodDutta/qaskills · 35 tokens

seo-llmeo

SEO and LLM Engine Optimization (LLMEO) skill for BroomVA content. Analyzes pages for traditional search-engine signals (meta tags, structured data, Core Web Vitals, internal linking) and for LLM discoverability (llms.txt, semantic headings, FAQ schema, citation-friendly structure). Generates actionable audits and…

broomva/skills · 139 tokens