返回顶部
C

Chrome DevTools Auto Analyzer

Automatically analyze websites for performance metrics and audit issues using Lighthouse.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.1
安全检测
已通过
137
下载量
0
收藏
概述
安装方式
版本历史

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 1. **Verify prerequisites** — Check Node.js (v18+) and packages installed: `node --version && npm list lighthouse chrome-launcher` 2. **Run Lighthouse audit** — Execute `node automation-script.js <URL> [--mobile] [--output=DIR]` to collect all metrics. 3. **Extract and present metrics** — Use tables for scores (0-100) and metrics with status indicators (⚪ Good, 🟡 Warning, 🔴 Critical). 4. **Identify critical issues** — Flag metrics outside thresholds: LCP>2.5s, CLS>0.1, INP>200ms, TBT>200ms, Performance<50. 5. **Provide actionable fixes** — For each issue, include specific code fixes from `audit-checklist.md` and `metrics-reference.md`. 6. **Save results** — Store JSON and HTML reports in `./results/`. Ask user before saving to memory for tracking. 7. **Handle errors gracefully** — If audit fails, check `troubleshooting.md` for common solutions (Chrome not found, ES module errors, memory issues). ## Quick Reference | Topic | File | |-------|------| | Automation script | `automation-script.js` | | Metrics & thresholds | `metrics-reference.md` | | Fix checklists | `audit-checklist.md` | | Setup guide | `setup.md` | | Quick start | `quick-start.md` | | Troubleshooting | `troubleshooting.md` | | Memory tracking | `memory-template.md` | ## Data Storage After analysis, offer to save: URL, timestamp, scores, critical issues, report path. Always ask before saving to memory. ## Security & Privacy - Runs locally in headless Chrome — no external data transmission - Warn before analyzing authenticated URLs - JSON reports contain URL structure — handle sensitive paths carefully ## Common Commands ```bash # Quick audit (desktop) node automation-script.js https://example.com # Mobile emulation node automation-script.js https://example.com --mobile # Custom output directory node automation-script.js https://example.com --output=./reports # Lighthouse CLI directly lighthouse https://example.com --output=json --output-path=report.json ``` ## Troubleshooting Quick Reference | Error | Solution | |-------|----------| | "lighthouse is not a function" | Add `"type": "module"` to package.json | | "Chrome not found" | Install Chrome or use `npm install puppeteer` | | "JavaScript heap out of memory" | Run with `node --max-old-space-size=4096` | | "Port already in use" | Specify different port in script config |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 web-auto-analyzer-1776112442 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 web-auto-analyzer-1776112442 技能

通过命令行安装

skillhub install web-auto-analyzer-1776112442

下载 Zip 包

⬇ 下载 Chrome DevTools Auto Analyzer v1.1.1

文件大小: 25.88 KB | 发布时间: 2026-4-17 16:32

v1.1.1 最新 2026-4-17 16:32
- Bumped version to 1.1.1.
- Updated metadata in SKILL.md and package files to reflect version change.
- No functional changes to features or documentation content.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部