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.

Good fit Use it to audit page-load performance, inspect resource sizes, measure Core Web Vitals, and track frontend performance over time.

Compare 6 skills from other repositories ↓
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/github.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/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 lighthouse-perf

Your own site · 80×15
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/lighthouse-perf"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/lighthouse-perf.svg" alt="Reviewed on agentmods" width="80" 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. 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.00030 $0.00750
Opus 5.5 $0.00012 $0.00300
Sonnet 5.5 $0.00006 $0.00150
Haiku 4.5 $0.00003 $0.00075

Measured 2mo ago against content hash 179f6ecbc549, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 4mo ago), licensed MIT. It adds 30 tokens to every session and 750 once invoked, about $0.0001 per session on Opus 5.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

lighthouse-perf compared with skills from other repositories

lighthouse-perf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lighthouse-perfJansenAnalytics/claudexSkill54mo agoMITA30Claude Code, Codex
web-performance-optimizationbobmatnyc/claude-mpm-skillsSkill783mo agoMITA29Claude Code
performance-optimizationJPeetz/agent-skillsSkill159d agononeA68Claude Code, Codex
accessibilityaddyosmani/web-quality-skillsSkill3.0k2mo agoMITA51Claude Code
best-practicesaddyosmani/web-quality-skillsSkill3.0k2mo agoMITA49Claude Code
performanceaddyosmani/web-quality-skillsSkill3.0k2mo agoMITA49Claude Code
seoaddyosmani/web-quality-skillsSkill3.0k2mo agoMITA46Claude Code