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.
git clone --depth 1 https://github.com/JansenAnalytics/claudexnpx agentmods add skills/jansenanalytics/claudex/lighthouse-perfWrote 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.
[](https://agentmods.dev/skills/jansenanalytics/claudex/lighthouse-perf)<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.
<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>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.
| Model | Per session | Once 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 |
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. 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:
- If
lighthouseCLI is available → use it directly - Fallback →
curlfor 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
}
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.
- 2mo ago First seen · 108 lines · 30 tokens per session scan A 179f6ecbc549
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.
lighthouse-perf compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lighthouse-perfJansenAnalytics/claudex | Skill | 5 | 4mo ago | MIT | A | 30 | Claude Code, Codex |
| web-performance-optimizationbobmatnyc/claude-mpm-skills | Skill | 78 | 3mo ago | MIT | A | 29 | Claude Code |
| performance-optimizationJPeetz/agent-skills | Skill | 15 | 9d ago | none | A | 68 | Claude Code, Codex |
| accessibilityaddyosmani/web-quality-skills | Skill | 3.0k | 2mo ago | MIT | A | 51 | Claude Code |
| best-practicesaddyosmani/web-quality-skills | Skill | 3.0k | 2mo ago | MIT | A | 49 | Claude Code |
| performanceaddyosmani/web-quality-skills | Skill | 3.0k | 2mo ago | MIT | A | 49 | Claude Code |
| seoaddyosmani/web-quality-skills | Skill | 3.0k | 2mo ago | MIT | A | 46 | Claude Code |