返回顶部
C

Chrome DevTools Auto AnalyzerChrome开发工具自动分析器

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

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

Chrome DevTools Auto Analyzer

使用时机

用户希望自动分析网站URL的性能指标、可访问性、SEO或最佳实践,无需手动操作Chrome DevTools。

核心规则

  1. 1. 验证前置条件 — 检查Node.js(v18+)及已安装的包:node --version && npm list lighthouse chrome-launcher
  1. 2. 运行Lighthouse审计 — 执行node automation-script.js [--mobile] [--output=DIR]收集所有指标。
  1. 3. 提取并呈现指标 — 使用表格展示评分(0-100)及带有状态指示符的指标(⚪ 良好、🟡 警告、🔴 严重)。
  1. 4. 识别关键问题 — 标记超出阈值的指标:LCP>2.5秒、CLS>0.1、INP>200毫秒、TBT>200毫秒、性能评分<50。
  1. 5. 提供可操作的修复方案 — 针对每个问题,包含来自audit-checklist.md和metrics-reference.md的具体代码修复方案。
  1. 6. 保存结果 — 将JSON和HTML报告存储在./results/目录中。保存到内存前需征得用户同意。
  1. 7. 优雅处理错误 — 若审计失败,查阅troubleshooting.md中的常见解决方案(未找到Chrome、ES模块错误、内存问题)。

快速参考

主题文件
自动化脚本automation-script.js
指标与阈值
metrics-reference.md | | 修复清单 | audit-checklist.md | | 设置指南 | setup.md | | 快速入门 | quick-start.md | | 故障排除 | troubleshooting.md | | 内存跟踪 | memory-template.md |

数据存储

分析完成后,提供保存选项:URL、时间戳、评分、关键问题、报告路径。保存到内存前始终征得用户同意。

安全与隐私

  • - 在无头Chrome中本地运行 — 无外部数据传输
  • 分析需要认证的URL前发出警告
  • JSON报告包含URL结构 — 谨慎处理敏感路径

常用命令

bash

快速审计(桌面端)


node automation-script.js https://example.com

移动端模拟

node automation-script.js https://example.com --mobile

自定义输出目录

node automation-script.js https://example.com --output=./reports

直接使用Lighthouse CLI

lighthouse https://example.com --output=json --output-path=report.json

故障排除快速参考

错误解决方案
lighthouse is not a function在package.json中添加type: module
Chrome not found
安装Chrome或使用npm install puppeteer | | JavaScript heap out of memory | 使用node --max-old-space-size=4096运行 | | Port already in use | 在脚本配置中指定不同端口 |

标签

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

下载

⬇ 下载 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
返回顶部