lighthouse-audit
Skill5 starsChanged 10 months agoMITView on GitHub
Run Lighthouse performance audits on deployed websites. Checks Performance, Accessibility, Best Practices, and SEO scores.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- donmangudata-ops/web-data-skillstheir own version, first seen Oct 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- donmangudata-ops/web-data-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- agent-browserSkill
- apple-docsSkill
- changelog-generatorSkill
- code-reviewSkill
- database-cliSkill
- docker-cliSkill
- github-actionsSkill
- git-workflowSkill
- testingSkill
- vercel-cliSkill
- xcode-mcp-app-testingSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Run Lighthouse performance audits on deployed websites.
- Very specific: line 186
Use --preset=desktop for desktop scores
- Distinctive: line 189
Use multiple runs and average for accurate comparison
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
lighthouse-audit
Run Lighthouse performance audits on deployed websites. Checks Performance, Accessibility, Best Practices, and SEO scores.
Installation
# Lighthouse CLI (optional, for local audits)
npm install -g lighthouse
# agent-browser for visual testing
npm install -g agent-browser
agent-browser installQuick Audit (CLI)
# Run Lighthouse audit
npx lighthouse https://example.com --output=json --output-path=/tmp/report.json
# Extract scores
cat /tmp/report.json | jq '{
performance: (.categories.performance.score * 100 | round),
accessibility: (.categories.accessibility.score * 100 | round),
bestPractices: (.categories["best-practices"].score * 100 | round),
seo: (.categories.seo.score * 100 | round)
}'Detailed Audit
# Full audit with all categories
npx lighthouse https://example.com \
--output=json \
--output-path=/tmp/lighthouse.json \
--chrome-flags="--headless" \
--only-categories=performance,accessibility,best-practices,seo
# Extract scores and metrics
cat /tmp/lighthouse.json | jq '{
scores: {
performance: (.categories.performance.score * 100 | round),
accessibility: (.categories.accessibility.score * 100 | round),
bestPractices: (.categories["best-practices"].score * 100 | round),
seo: (.categories.seo.score * 100 | round)
},
metrics: {
FCP: .audits["first-contentful-paint"].displayValue,
LCP: .audits["largest-contentful-paint"].displayValue,
TBT: .audits["total-blocking-time"].displayValue,
CLS: .audits["cumulative-layout-shift"].displayValue,
SpeedIndex: .audits["speed-index"].displayValue
}
}'PageSpeed Insights (Visual)
# Open PageSpeed Insights
agent-browser open "https://pagespeed.web.dev/analysis?url=https://example.com" --session lighthouse
# Wait for analysis to complete
sleep 20
# Take screenshot of results
agent-browser screenshot /tmp/lighthouse-results.png --session lighthouse
agent-browser close --session lighthouseOutput Format
Score Ranges
| Score | Status | Meaning |
| 90-100 | Green | Good |
| 50-89 | Orange | Needs Improvement |
| 0-49 | Red | Poor |
Core Web Vitals
| Metric | Good | Needs Improvement | Poor |
| FCP | < 1.8s | 1.8s - 3s | > 3s |
| LCP | < 2.5s | 2.5s - 4s | > 4s |
| TBT | < 200ms | 200ms - 600ms | > 600ms |
| CLS | < 0.1 | 0.1 - 0.25 | > 0.25 |
Common Workflows
Quick Performance Check
npx lighthouse https://mysite.com --output=json --quiet | jq '.categories.performance.score * 100'Mobile vs Desktop
# Mobile (default)
npx lighthouse https://mysite.com --output=json --output-path=/tmp/mobile.json
# Desktop
npx lighthouse https://mysite.com --output=json --output-path=/tmp/desktop.json --preset=desktop
# Compare
echo "Mobile: $(cat /tmp/mobile.json | jq '.categories.performance.score * 100')%"
echo "Desktop: $(cat /tmp/desktop.json | jq '.categories.performance.score * 100')%"Find Performance Issues
# Get failed audits
cat /tmp/lighthouse.json | jq '[.audits | to_entries[] | select(.value.score != null and .value.score < 0.9) | {id: .key, score: .value.score, title: .value.title}] | sort_by(.score) | .[0:10]'Check Unused JavaScript
cat /tmp/lighthouse.json | jq '.audits["unused-javascript"].details.items[:5]'Check LCP Element
cat /tmp/lighthouse.json | jq '.audits["largest-contentful-paint-element"].details'Report Options
# Generate HTML report
npx lighthouse https://example.com --output=html --output-path=./report.html
# Generate both JSON and HTML
npx lighthouse https://example.com --output=json --output=html --output-path=./report
# Specific categories only
npx lighthouse https://example.com --only-categories=performance,seo
# Quiet mode (less output)
npx lighthouse https://example.com --quietAutomation
CI/CD Check
#!/bin/bash
SCORE=$(npx lighthouse https://mysite.com --output=json --quiet | jq '.categories.performance.score * 100')
if (( $(echo "$SCORE < 90" | bc -l) )); then
echo "Performance score $SCORE is below 90"
exit 1
fi
echo "Performance score: $SCORE"Compare Before/After
# Before changes
npx lighthouse https://mysite.com --output=json --output-path=/tmp/before.json
# After changes
npx lighthouse https://mysite.com --output=json --output-path=/tmp/after.json
# Compare
echo "Before: $(cat /tmp/before.json | jq '.categories.performance.score * 100')%"
echo "After: $(cat /tmp/after.json | jq '.categories.performance.score * 100')%"Requirements
- Node.js 18+
- Chrome/Chromium (for CLI audits)
- Website must be publicly accessible
Notes
- Mobile scores are default (throttled 4G, mobile viewport)
- Use
--preset=desktopfor desktop scores - PageSpeed Insights API has rate limits
- Scores can vary between runs (network conditions, server load)
- Use multiple runs and average for accurate comparison
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

