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.svg" alt="Measured on agentmods" 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 | $0.00015 | $0.00375 |
| Sonnet 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 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. 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.
- 2d 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 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.
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.
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".
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".
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".
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.
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…