Chrome DevTools Auto Analyzer
When to Use
User wants to automatically analyze a website URL for performance metrics, accessibility, SEO, or best practices without manual Chrome DevTools interaction.
Core Rules
-
Verify prerequisites ā Check Node.js (v18+) and packages installed:
node --version && npm list lighthouse chrome-launcher -
Run Lighthouse audit ā Execute
node automation-script.js <URL> [--mobile] [--output=DIR]to collect all metrics. -
Extract and present metrics ā Use tables for scores (0-100) and metrics with status indicators (āŖ Good, š” Warning, š“ Critical).
-
Identify critical issues ā Flag metrics outside thresholds: LCP>2.5s, CLS>0.1, INP>200ms, TBT>200ms, Performance<50.
-
Provide actionable fixes ā For each issue, include specific code fixes from
audit-checklist.mdandmetrics-reference.md. -
Save results ā Store JSON and HTML reports in
./results/. Ask user before saving to memory for tracking. -
Handle errors gracefully ā If audit fails, check
troubleshooting.mdfor common solutions (Chrome not found, ES module errors, memory issues).