๐ Englishย ยทย
็ฎไฝไธญๆย ยทย
็น้ซไธญๆย ยทย
ๆฅๆฌ่ชย ยทย
ํ๊ตญ์ดย ยทย
Espaรฑolย ยทย
Tรผrkรงeย ยทย
ะ ัััะบะธะน
Fixes that ship > advice that sits in a dashboard.
Multi-Agent Web Performance Audit Pipeline โ SCAN โ ANALYZE โ SCORE โ REPORT.
Not another Lighthouse wrapper. A complete audit-to-fix workflow with CWV impact estimates.
Works with Claude Code, Cursor, VSCode Copilot, and any CI pipeline.









Why web-perf-audit
You run Lighthouse. It says LCP 4.2s, score 62. You stare at the screen. Now what?
Every tool tells you what's wrong. None of them tell you what to change, line by line, and why that specific change will work. web-perf-audit fills that gap โ it runs a multi-agent pipeline that:
- Scans your page with Lighthouse + Puppeteer for raw CWV metrics
- Analyzes across 5 dimensions in parallel (rendering path, resource hints, images, fonts, JS bundles)
- Scores every finding against its real Core Web Vitals impact (not discovery order)
- Generates a prioritized report with copy-pasteable fixes, each backlinked to the web.dev principle that explains it
"The goal isn't a 100/100 Lighthouse score โ it's a page that loads fast and responds instantly for real users."
โจ Core Features
๐ฏ web.dev Standards-Aligned
Every audit rule traces back to web.dev/learn/performance. LCP โค 2.5s, INP โค 200ms, CLS โค 0.1. Not our opinions โ Google's thresholds, measured at p75.
๐ค Multi-Agent Audit Pipeline
5 specialized agents run in parallel: Project Scanner, Resource Analyzer, Metric Scorer, Change Predictor, and Optimization Planner. Each does one thing well.
๐ง Deterministic + Measured Hybrid
Static checks (missing defer, wrong font-display, absent srcset) are deterministic โ same page, same result. Runtime metrics (LCP, TBT) come from real browser measurement via Lighthouse + Puppeteer.
๐ Offline Dashboard
Interactive Chart.js dashboard with score ring, CWV cards, category breakdown, and priority-ordered issue list. Works entirely offline โ no external API calls after audit.
๐ Incremental Git-Aware Audits
SHA256 fingerprint caching skips unchanged pages. perf-diff compares two audits across branches โ catch performance regressions before they merge, not after.
๐งฉ Cross-Platform & Multi-IDE
Runs on macOS / Linux / Windows. Native Claude Code skill, plus Cursor rules, VSCode Copilot instructions. One-liner CI integration for GitHub Actions, GitLab CI, Jenkins.
๐ Architecture
Multi-Agent Audit Pipeline
graph TB
subgraph Trigger["๐ Trigger"]
CLI["/perf analyze URL"]
CI["git push / PR opened"]
IDE["Claude Code / Cursor / Copilot"]
end
subgraph Stage1["Stage 1 โ SCAN"]
Scanner["๐ Project Scanner Agent<br/>ยท Framework detection (Vite/Webpack/Next)<br/>ยท Build artifact discovery<br/>ยท .webperfignore filtering"]
LH["๐ก Lighthouse + Puppeteer<br/>ยท LCP / CLS / INP / TBT / FCP<br/>ยท CrUX field data (PSI optional)"]
end
subgraph Stage2["Stage 2 โ ANALYZE (5 agents parallel)"]
CRP["๐ Critical Path Agent<br/>render-blocking CSS/JS<br/>request chain depth<br/>DOM size audit"]
Hints["๐ก Resource Hints Agent<br/>preload/prefetch/preconnect<br/>missing crossorigin<br/>sync script detection"]
Img["๐ผ Image Audit Agent<br/>WebP/AVIF detection<br/>srcset/sizes check<br/>LCP image optimization"]
Font["๐ค Font Audit Agent<br/>font-display analysis<br/>woff2 format check<br/>subsetting audit"]
JS["โก JS Bundle Agent<br/>Puppeteer Coverage API<br/>Long Task observer<br/>third-party attribution"]
end
subgraph Stage3["Stage 3 โ SCORE"]
Scorer["โ๏ธ Metric Scorer Agent<br/>ยท CWV impact weighting<br/>ยท severity ร reach multiplier<br/>ยท P0 (โฅ20) / P1 (10-19) / P2 (<10)"]
end
subgraph Stage4["Stage 4 โ REPORT"]
Reporter["๐ Optimization Plan Agent<br/>ยท match fix templates<br/>ยท generate before/after code<br/>ยท estimate millisecond savings"]
Output["๐ฆ Output<br/>audit-report.json<br/>report.md<br/>dashboard.html"]
end
subgraph Diff["๐ Incremental / Diff Mode"]
Fingerprint["SHA256 fingerprint cache"]
Predictor["๐ฎ Change Predictor Agent<br/>ยท Git diff โ impact estimation<br/>ยท regression risk flagging"]
end
CLI --> Scanner & LH
CI --> Scanner & LH
IDE --> Scanner & LH
Scanner & LH --> CRP & Hints & Img & Font & JS
CRP & Hints & Img & Font & JS --> Scorer
Scorer --> Reporter --> Output
Output --> Fingerprint
Fingerprint --> Predictor
Predictor --> Output
Layered Design
| Layer | Responsibility | Technology |
|---|
| Trigger | CLI / CI / IDE invocation | Claude Code Skill, GitHub Actions, Cursor rules |
| Scan | Raw data collection + project discovery | Lighthouse CLI, Puppeteer, PageSpeed Insights API |
| Analyze | 5-dimension static + runtime analysis | Python 3.8+ (HTMLParser, urllib), Node.js (Puppeteer) |
| Score | CWV-weighted priority calculation | Python scoring engine (7-category ร severity multipliers) |
| Generate | Report rendering + fix templating | Python (Markdown/JSON), Chart.js (dashboard HTML) |
| Diff | Incremental caching + cross-branch comparison | SHA256 fingerprinting, JSON structural diff |
How we adapted Understand-Anything's pipeline
Understand-Anything pioneered the multi-agent code analysis pipeline โ project-scanner โ file-analyzer โ architecture-analyzer โ tour-builder โ graph-reviewer. We adapted this pattern for web performance:
| Understand-Anything | web-perf-audit | Adaptation |
|---|
project-scanner (language/framework detection) | Project Scanner Agent (build tool detection, .webperfignore) | Code structure โ page structure |
file-analyzer (function/class extraction) | Resource Analyzer Agent (HTML/CSS/JS static audit) | AST nodes โ DOM + CSSOM nodes |
architecture-analyzer (layer tagging) | Metric Scorer Agent (CWV impact scoring) | Architecture layers โ performance dimensions |
tour-builder (guided walkthrough) | Optimization Plan Agent (fix generation) | Code tour โ fix checklist |
graph-reviewer (integrity check) | Change Predictor Agent (regression detection) | Schema validation โ performance regression |
๐ Quick Start
4 steps from zero to audit report
# 1. Clone
git clone https://github.com/EVEDensity/web-perf-audit.git && cd web-perf-audit
# 2. Install dependencies
npm install -g lighthouse && npm install
# 3. Run your first audit
python scripts/fetch_metrics.py "https://example.com" --output-dir .web-perf
python scripts/analyze_critical_path.py .web-perf/metrics.json -o .web-perf/critical-path.json &
python scripts/check_resource_hints.py "https://example.com" -o .web-perf/resource-hints.json &
python scripts/audit_images.py "https://example.com" -o .web-perf/images.json &
python scripts/audit_fonts.py "https://example.com" -o .web-perf/fonts.json &
node scripts/audit_js_bundles.js "https://example.com" --output .web-perf/js-bundles.json &
wait
python scripts/score_and_report.py "https://example.com" --output-dir .web-perf --format all
# 4. Open the dashboard
open .web-perf/dashboard.html # macOS
start .web-perf/dashboard.html # Windows
xdg-open .web-perf/dashboard.html # Linux
Or use the one-liner (Claude Code)
/plugin install web-perf-audit@EVEDensity/web-perf-audit
/perf analyze https://example.com
๐ฆ Installation
macOS / Linux
# One-shot install
curl -fsSL https://raw.githubusercontent.com/EVEDensity/web-perf-audit/main/install.sh | bash
# Or step by step
git clone https://github.com/EVEDensity/web-perf-audit.git ~/.web-perf-audit
cd ~/.web-perf-audit
npm install -g lighthouse
npm install
echo 'alias perf-audit="python ~/.web-perf-audit/scripts/fetch_metrics.py"' >> ~/.bashrc
Windows (PowerShell)
# One-shot install
iwr -Uri https://raw.githubusercontent.com/EVEDensity/web-perf-audit/main/install.ps1 -OutFile install.ps1; ./install.ps1
# Or step by step
git clone https://github.com/EVEDensity/web-perf-audit.git $env:USERPROFILE\.web-perf-audit
cd $env:USERPROFILE\.web-perf-audit
npm install -g lighthouse
npm install
IDE Plugin Setup
| IDE | How to enable |
|---|
| Claude Code | /plugin install web-perf-audit@EVEDensity/web-perf-audit |
| Cursor | Add .cursorrules: @web-perf-audit analyze on save |
| VSCode Copilot | Add to .github/copilot-instructions.md: Use web-perf-audit for performance reviews |
| Codex / Gemini CLI | Copy SKILL.md to your skills directory |
Prerequisites
| Dependency | Version | Required For |
|---|
| Python | โฅ 3.8 | All analysis + scoring scripts |
| Node.js | โฅ 18 | Lighthouse CLI + Puppeteer (JS audit) |
| Lighthouse | latest (npm i -g lighthouse) | CWV metric collection |
| Puppeteer | ^22.0.0 (npm i puppeteer) | JS Coverage + Long Task API |
๐ CLI Command Reference
All commands follow the /perf namespace. Each entry shows: purpose, example, flags, and output.
/perf analyze โ Full Audit