lighthouse-audit

运行自动化的 Lighthouse 审计,检查核心 Web 指标和 SEO。适用于检查页面性能、审计 SEO 技术问题、监控核心 Web 指标、优化前后对比以及批量审计多个 URL。

仓库最近推送
GitHub Stars
150
Forks
32
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "lighthouse-audit":https://skillpi.com/zh/skills/deepskill-d0b0a48e178a0498d810cf602f761512a3e964b018805d831cdeb9e378bf2464。安装前核对上游来源和版本:https://github.com/guia-matthieu/clawfu-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

运行自动化的 Lighthouse 审计,检查核心 Web 指标和 SEO。适用于检查页面性能、审计 SEO 技术问题、监控核心 Web 指标、优化前后对比以及批量审计多个 URL。

0 下载

介绍来源: third_party · guia-matthieu · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: lighthouse-audit
description: "Run automated Lighthouse audits for Core Web Vitals and SEO. Use when: checking page performance; auditing SEO technical issues; monitoring Core Web Vitals; comparing before/after optimization; batch auditing multiple URLs"
license: MIT
metadata:
  author: ClawFu
  version: 1.0.0
  mcp-server: "@clawfu/mcp-skills"

Lighthouse Audit

Automate Google Lighthouse audits to measure and track Core Web Vitals, SEO, and accessibility - the same metrics Google uses for search ranking.

When to Use This Skill

  • Performance optimization - Measure LCP, FID, CLS before and after changes
  • SEO audits - Check technical SEO issues (meta tags, structured data, etc.)
  • Accessibility checks - Identify a11y issues for compliance
  • Client reporting - Generate professional performance reports
  • Monitoring - Track scores over time across multiple pages

What Claude Does vs What You Decide

Claude Does You Decide
Structures analysis frameworks Metric definitions
Identifies patterns in data Business interpretation
Creates visualization templates Dashboard design
Suggests optimization areas Action priorities
Calculates statistical measures Decision thresholds

Dependencies

pip install click pandas jinja2
# Also requires Chrome and Lighthouse CLI
# npm install -g lighthouse
# Or use Chrome DevTools built-in Lighthouse

Commands

Single URL Audit

python scripts/main.py audit https://example.com --categories performance,seo
python scripts/main.py audit https://example.com --format html --output report.html

Batch Audit

python scripts/main.py batch urls.txt --output results/
python scripts/main.py batch urls.txt --categories performance --format csv

Compare Before/After

python scripts/main.py compare https://example.com --baseline scores.json
python scripts/main.py compare https://example.com --baseline-url https://staging.example.com

Monitor Over Time

python scripts/main.py history https://example.com --days 30
python scripts/main.py history https://example.com --plot

Examples

Example 1: Full Site Performance Audit

# Create URL list
cat > urls.txt << EOF
https://example.com/
https://example.com/pricing
https://example.com/features
https://example.com/blog
EOF

# Run batch audit
python scripts/main.py batch urls.txt --categories performance,seo,accessibility

# Output: results/audit_2024-01-15/
# ├── example.com_.json
# ├── example.com_pricing.json
# ├── example.com_features.json
# ├── example.com_blog.json
# └── summary.csv

Example 2: Before/After Comparison

# Save baseline
python scripts/main.py audit https://example.com --output baseline.json

# Make optimizations...

# Compare
python scripts/main.py compare https://example.com --baseline baseline.json

# Output:
# Core Web Vitals Comparison
# ─────────────────────────────
# Metric         Before    After    Change
# LCP            3.2s      1.8s     -44% ✓
# FID            120ms     45ms     -63% ✓
# CLS            0.25      0.08     -68% ✓
# Performance    52        89       +37 pts

Example 3: Generate Client Report

# Full audit with HTML report
python scripts/main.py audit https://client-site.com \
  --format html \
  --output client-report.html \
  --include-screenshots

# Output: Professional HTML report with:
# - Executive summary
# - Core Web Vitals scores
# - Screenshots of issues
# - Prioritized recommendations

Audit Categories

Category Checks Impact
performance LCP, FID, CLS, TTFB, Speed Index Search ranking
seo Meta tags, headings, links, mobile Search visibility
accessibility WCAG compliance, contrast, labels Compliance
best-practices HTTPS, security, modern APIs Trust
pwa Service worker, manifest, offline App-like experience

Core Web Vitals Thresholds

Metric Good Needs Improvement Poor
LCP (Largest Contentful Paint) ≤2.5s 2.5s-4.0s >4.0s
FID (First Input Delay) ≤100ms 100ms-300ms >300ms
CLS (Cumulative Layout Shift) ≤0.1 0.1-0.25 >0.25
INP (Interaction to Next Paint) ≤200ms 200ms-500ms >500ms

Output Formats

Format Use Case Content
json Automation, storage Full raw data
csv Spreadsheets, analysis Summary scores
html Client reports Visual report
md Documentation Markdown summary

Skill Boundaries

What This Skill Does Well

  • Structuring data analysis
  • Identifying patterns and trends
  • Creating visualization frameworks
  • Calculating statistical measures

What This Skill Cannot Do

  • Access your actual data
  • Replace statistical expertise
  • Make business decisions
  • Guarantee prediction accuracy

Related Skills

Skill Metadata

  • Mode: centaur
    category: seo-tools
    subcategory: performance
    dependencies: [lighthouse, click, pandas]
    difficulty: beginner
    time_saved: 3+ hours/week

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供自动化 Lighthouse 审计功能,解决网站性能优化和 SEO 审计的明确需求
  • 覆盖多种使用场景:单页面审计、批量审计、前后对比、历史监控等
  • 具有广泛的实用价值,适用于开发者和 SEO 专业人员
触发精准95/100

亮点

  • 触发描述完整且位置正确,覆盖多种使用场景变体
  • 边界清晰,不易与其他 Skill 重叠或误触发
结构规范95/100

亮点

  • 文档结构完整,包含清晰的章节划分和使用示例
  • frontmatter 信息完整,文档长度合理
  • 提供多个端到端的实际使用示例
执行可靠80/100

亮点

  • 工具来源明确(Google Lighthouse CLI),依赖项清晰列出
  • 支持多种输出格式,命令参数设计合理
  • 覆盖主要使用场景和审计类别
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 37, 39 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • client-site.com
  • example.com
  • staging.example.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。