360 Secure SkillHub
360 安全技能中心

seo-unlighthouse

核心功能:通过Unlighthouse CLI批量对站点URL执行Lighthouse审计,生成JSON+HTML报告,输出性能、无障碍等指标的中位数及单路由详情。典型场景:站点规模大超出PageSpeed免费配额、需离线/本地CWV测量、部署后全站回归检查。输入为带参数的命令,可指定URL、设备类型等,依赖Node18+,无API密钥要求。

asale-ai
热度 9.17
最近更新 2026-08-12 22:48:50
分类:数据依赖:代码执行 / 读写文件应用场景:报告撰写 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add seo-unlighthouse
Metadata
name
seo-unlighthouse
description
Multi-page Lighthouse audit via the MIT-licensed Unlighthouse CLI. Free-tier alternative to running PageSpeed against every URL on a site, no API quota burn, runs locally.
license
MIT
metadata
{"version":"2.2.4"}
compatibility
Requires Node 18+ and the unlighthouse npm package. Run extensions/unlighthouse/install.sh to pre-warm.

seo-unlighthouse

Run Lighthouse against every URL on a site (up to a configurable cap) and aggregate the results. Useful when:

  • PageSpeed Insights' free quota (25k QPD) isn't enough for a large site.
  • You want offline / local CWV measurement (CI integration, restricted environments).
  • You need a quick site-wide regression check after a deploy.

Prerequisites

  • Run extensions/unlighthouse/install.sh (no API key needed).
  • Node 18+ on $PATH.

Routing

Command Effect
/seo unlighthouse <url> Mobile audit, up to 200 routes, JSON+HTML report in a temp dir
/seo unlighthouse <url> --device desktop Desktop form factor
/seo unlighthouse <url> --max-routes 50 --output-dir ./reports Cap + persist

All flags forward to seogeo unlighthouse which handles url_safety pre-flight and subprocess timeout management.

Output handling

The wrapper reads ci-result.json from the Unlighthouse output dir and returns it parsed. Aggregate fields:

  • score.performance (median across audited routes)
  • score.accessibility, score.bestPractices, score.seo
  • Per-route breakdown is available in <output_dir>/ci-result.json

Cross-skill delegation

  • For single-URL field data (CrUX), use seo-google psi / seo-google crux.
  • For LCP subpart decomposition on slow pages, use the seogeo lcp-subparts workflow (Phase C).