Runs Google Lighthouse audits using Puppeteer for SEO, Performance, Accessibility, and Best Practices scoring. Supports both URLs and local HTML files. Use when user mentions "Lighthouse", "page speed", "performance audit", "Core Web Vitals", "CWV", or needs comprehensive web performance analysis.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
package.jsonscripts/run-lighthouse.jsscripts/run-lighthouse.shRuns Google Lighthouse audits via Puppeteer for comprehensive web quality assessment including SEO, Performance, Accessibility, and Best Practices.
# Analyze a URL
bash ${CLAUDE_PLUGIN_ROOT}/skills/lighthouse-runner/scripts/run-lighthouse.sh https://example.com
# Analyze a local HTML file
bash ${CLAUDE_PLUGIN_ROOT}/skills/lighthouse-runner/scripts/run-lighthouse.sh path/to/file.html
# Analyze a development server
bash ${CLAUDE_PLUGIN_ROOT}/skills/lighthouse-runner/scripts/run-lighthouse.sh http://localhost:3000
# Output JSON format
bash ${CLAUDE_PLUGIN_ROOT}/skills/lighthouse-runner/scripts/run-lighthouse.sh https://example.com --json
# Specify categories
bash ${CLAUDE_PLUGIN_ROOT}/skills/lighthouse-runner/scripts/run-lighthouse.sh https://example.com --categories=seo,accessibility
# Install dependencies first
cd ${CLAUDE_PLUGIN_ROOT}/skills/lighthouse-runner && npm install
# Run with Node.js
node ${CLAUDE_PLUGIN_ROOT}/skills/lighthouse-runner/scripts/run-lighthouse.js https://example.com
| Category | Description | Key Metrics |
|---|---|---|
| Performance | Page load speed | LCP, FID, CLS, TTFB, Speed Index |
| SEO | Search engine optimization | Meta tags, crawlability, mobile |
| Accessibility | WCAG compliance | Color contrast, ARIA, keyboard |
| Best Practices | Web standards | HTTPS, console errors, image aspect |
| Score | Rating | Action |
|---|---|---|
| 90-100 | Good (Green) | Maintain |
| 50-89 | Needs Improvement (Orange) | Optimize |
| 0-49 | Poor (Red) | Priority fix |
# Lighthouse Report: https://example.com
## Scores
- Performance: 85/100 ⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜
- SEO: 95/100 ⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜
- Accessibility: 78/100 ⬛⬛⬛⬛⬛⬛⬛⬜⬜⬜
- Best Practices: 92/100 ⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜
## Core Web Vitals
- LCP (Largest Contentful Paint): 2.1s ✓
- FID (First Input Delay): 45ms ✓
- CLS (Cumulative Layout Shift): 0.05 ✓
## Top Issues
### Performance
1. Eliminate render-blocking resources
2. Serve images in next-gen formats
### SEO
1. Document doesn't have a meta description
{
"url": "https://example.com",
"timestamp": "2024-01-15T10:00:00Z",
"scores": {
"performance": 85,
"seo": 95,
"accessibility": 78,
"best-practices": 92
},
"metrics": {
"lcp": 2100,
"fid": 45,
"cls": 0.05,
"ttfb": 320,
"speedIndex": 3200
},
"audits": {
"performance": [...],
"seo": [...],
"accessibility": [...],
"best-practices": [...]
}
}
When analyzing local HTML files, the runner:
serveNote: Local file analysis may not accurately reflect production performance due to:
For JavaScript frameworks, analyze the running development or production server:
# Start your dev server first
npm run dev # Starts at http://localhost:3000
# Then run Lighthouse against it
bash run-lighthouse.sh http://localhost:3000
# For production build analysis
npm run build && npm run start
bash run-lighthouse.sh http://localhost:3000
For comprehensive SEO analysis:
# Run static analysis first (fast)
bash ${CLAUDE_PLUGIN_ROOT}/skills/seo-analyzer/scripts/run-seo-analyzer.sh file.html
# Then run Lighthouse (slower but comprehensive)
bash ${CLAUDE_PLUGIN_ROOT}/skills/lighthouse-runner/scripts/run-lighthouse.sh http://localhost:3000
If Puppeteer can't find Chrome:
# Install Chromium via Puppeteer
cd ${CLAUDE_PLUGIN_ROOT}/skills/lighthouse-runner
npx puppeteer browsers install chrome
For slow pages, increase the timeout:
node run-lighthouse.js https://slow-site.com --timeout=120
On WSL or headless Linux, you may need additional dependencies:
# Install required libraries
sudo apt-get install -y libxss1 libatk-bridge2.0-0 libgtk-3-0