EasyGlobe EasyGlobe
返回 Skills Hub

Skill 详情

PageSpeed CLI Skill

PageSpeed-CLI · github

面向 AI 工作流的 PageSpeed Insights 与 Lighthouse CLI,用于 Core Web Vitals 审计、性能修复、SEO 优化和前后对比验证。

Skill 概览

面向 AI 工作流的 PageSpeed Insights 与 Lighthouse CLI,用于 Core Web Vitals 审计、性能修复、SEO 优化和前后对比验证。

PageSpeed CLI 相关搜索词

本页主要服务搜索 PageSpeed CLI Skill、下载、安装、README、Skill URL 和使用教程的用户。

PageSpeed CLIPageSpeed CLI SkillPageSpeed CLI SkillsPageSpeed CLI 下载PageSpeed CLI 安装PageSpeed CLI 使用教程PageSpeed CLI READMEPageSpeed CLI Skill URLPageSpeed CLI Claude SkillPageSpeed CLI Codex Skill

资源类型

BHINNKJ 工具

所属分类

Development 开发、Data & Analysis 数据分析、Testing 测试、Marketing & Growth 营销增长

标签

PageSpeed、Lighthouse、Core Web Vitals、SEO

下载的是 EasyGlobe 保存的本地 Markdown skill 文件,可随站点一起部署到 GitHub 和 Cloudflare。

详细 Skill 介绍

PageSpeed CLI 的定位

PageSpeed CLI 是一个面向 Development 开发、Data & Analysis 数据分析、Testing 测试、Marketing & Growth 营销增长 场景的 AI Agent skill 资源。根据当前归档内容,它的主要价值是:面向 AI 工作流的 PageSpeed Insights 与 Lighthouse CLI,用于 Core Web Vitals 审计、性能修复、SEO 优化和前后对比验证。。用户通常会搜索“PageSpeed CLI 是什么”“PageSpeed CLI 怎么安装”“PageSpeed CLI 怎么使用”“PageSpeed CLI 下载”以及 Claude Skills、Codex Skills、Gemini Skills、Kimi Skills、GLM Skills 等组合关键词,因此本页把 README、Skill URL、本地下载文件、使用方法和适用平台放在同一个详情页中,方便判断它是否适合自己的工作流。

README 核心说明

中文 README

PageSpeed-CLI is an AI-ready command-line plugin for Google PageSpeed Insights. It helps developers and AI coding agents quickly collect PageSpeed/Lighthouse evidence for a single website or a batch of websites, then turns the raw report into actionable optimization briefs.

Instead of asking an AI agent to inspect a slow website blindly, PageSpeed-CLI gives it structured performance context: Core Web Vitals lab metrics, Lighthouse scores, high-impact opportunities, affected resources, third-party scripts, implementation hints, and verification commands. The goal is to make website speed optimization repeatable from the CLI, easy to automate in CI, and easy to feed into AI coding workflows.

README 能力说明

  • Runs Google PageSpeed Insights for normal URLs through GET https://www.googleapis.com/pagespeedonline/v5/runPagespeed.
  • Extracts cached Lighthouse JSON from pagespeed.web.dev/analysis/... share links without consuming PageSpeed API quota.
  • Supports single target analysis through /PageSpeed.
  • Supports batch analysis from command arguments or a text file.
  • Saves raw-report.json, summary.json, and ai-brief.md for each target.
  • Produces an AI-ready Markdown brief with concrete evidence and implementation guidance.

README 使用说明

1. Run /PageSpeed or batch.

2. Give the saved ai-brief.md to an AI coding agent.

3. Ask the agent to map each finding to source files, infrastructure, or third-party tags.

4. Implement changes.

5. Rerun the same command and compare performance, LCP, TBT, CLS, and opportunity savings.

README 安装与配置线索

An API key is optional for single fresh URL audits. Without a key, PageSpeed-CLI still calls Google PageSpeed directly and prints a warning because anonymous quota may fail.

For batch or parallel runs, configure an API key:

export PAGESPEED_API_KEY="..."
pagespeed-cli batch --input urls.txt --jobs 4

You can also pass a key per command:

pagespeed-cli --api-key "$PAGESPEED_API_KEY" /PageSpeed https://example.com

Share-link extraction does not rerun PageSpeed and does not consume PageSpeed API quota.

适用场景和工作流价值

从分类和标签看,PageSpeed CLI 主要覆盖 Development 开发、Data & Analysis 数据分析、Testing 测试、Marketing & Growth 营销增长,关键词包括 PageSpeed、Lighthouse、Core Web Vitals、SEO。它适合被整理成团队 SOP、AI Agent 提示词、Claude Skill、Codex Skill 或其他模型平台可复用的操作说明。实际落地时,可以先阅读本页的 README 摘要,确认它解决的问题、输入输出、运行环境和限制条件,再通过 Skill URL 查看原项目的最新说明。对于需要长期复用的场景,本地 Markdown 下载文件可以作为归档版本,便于团队内部评审、二次改写或放入自己的 agent skills 仓库。

安装、使用和平台判断

1. Run /PageSpeed or batch . 2. Give the saved ai-brief.md to an AI coding agent. 3. Ask the agent to map each finding to source files, infrastructure, or third-party tags. 4. Implement changes. 5. Rerun the same command and compare performance, LCP, TBT, CLS, and opportunity savings. 如果 README 没有提供完整安装命令,本页会保留 Skill URL 作为官方来源入口,并把可识别的配置、示例和能力范围拆成独立模块。支持平台需要以原项目说明为准,但这类 skill 内容通常可以作为 Claude、Codex、Gemini、Kimi、GLM、ChatGPT 或企业内部 Agent 工作流的参考模板。

安装方式

git clone https://github.com/BHINNKJ/PageSpeed-CLI.git
cd PageSpeed-CLI
python3 -m pip install -e ".[dev]"

使用方式

1. Run /PageSpeed or batch.

2. Give the saved ai-brief.md to an AI coding agent.

3. Ask the agent to map each finding to source files, infrastructure, or third-party tags.

4. Implement changes.

5. Rerun the same command and compare performance, LCP, TBT, CLS, and opportunity savings.

能力范围

  • Runs Google PageSpeed Insights for normal URLs through GET https://www.googleapis.com/pagespeedonline/v5/runPagespeed.
  • Extracts cached Lighthouse JSON from pagespeed.web.dev/analysis/... share links without consuming PageSpeed API quota.
  • Supports single target analysis through /PageSpeed.
  • Supports batch analysis from command arguments or a text file.
  • Saves raw-report.json, summary.json, and ai-brief.md for each target.
  • Produces an AI-ready Markdown brief with concrete evidence and implementation guidance.

支持平台

这个 skill 可以作为以下 AI Agent、模型工作流或团队 SOP 的参考模板使用。

Claude SkillsCodex SkillsGemini SkillsKimi SkillsGLM SkillsChatGPT Skills

配置与更新

An API key is optional for single fresh URL audits. Without a key, PageSpeed-CLI still calls Google PageSpeed directly and prints a warning because anonymous quota may fail.

For batch or parallel runs, configure an API key:

export PAGESPEED_API_KEY="..."
pagespeed-cli batch --input urls.txt --jobs 4

You can also pass a key per command:

pagespeed-cli --api-key "$PAGESPEED_API_KEY" /PageSpeed https://example.com

Share-link extraction does not rerun PageSpeed and does not consume PageSpeed API quota.

README 命令示例

bash
git clone https://github.com/BHINNKJ/PageSpeed-CLI.git
cd PageSpeed-CLI
python3 -m pip install -e ".[dev]"
bash
pagespeed-cli /PageSpeed https://example.com
bash
pagespeed-cli /PageSpeed "https://pagespeed.web.dev/analysis/..."

标签

PageSpeedLighthouseCore Web VitalsSEO

常见问题 FAQ

What:PageSpeed CLI Skill 是什么?

面向 AI 工作流的 PageSpeed Insights 与 Lighthouse CLI,用于 Core Web Vitals 审计、性能修复、SEO 优化和前后对比验证。

Who:PageSpeed CLI 适合谁使用?

适合需要处理 Development 开发、Data & Analysis 数据分析、Testing 测试、Marketing & Growth 营销增长 工作流的团队、运营人员、开发者或 AI Agent。

When:什么时候使用 PageSpeed CLI Skill?

当任务涉及 PageSpeed、Lighthouse、Core Web Vitals、SEO,或需要把对应能力沉淀为 Claude Skills、Codex Skills、Gemini Skills、Kimi Skills、GLM Skills 或团队 SOP 时使用。

如何下载 PageSpeed CLI Skill?

可以使用页面顶部或 Skill 信息区的“下载 Skill 文件”按钮下载 EasyGlobe 保存的本地 Markdown 文件,文件名为 bhinnkj-pagespeed-cli.md。

PageSpeed CLI Skill 怎么安装?

请查看本页“安装方式”模块;如果归档 README 没有明确安装章节,可以通过 Skill URL 打开原始项目,并按官方 README、平台文档或 marketplace 页面完成安装。

PageSpeed CLI Skill 怎么使用?

请查看本页“使用方式”“能力范围”和 README 摘要模块。页面会把归档 README 中识别出的使用说明、命令示例和适用工作流整理出来。

PageSpeed CLI Skill 支持 Claude、Codex、Gemini、Kimi 和 GLM 吗?

本页把它整理为可复用的 AI Agent skill 资料,可作为 Claude Skills、Codex Skills、Gemini Skills、Kimi Skills、GLM Skills、ChatGPT Skills 或团队 SOP 的参考模板;实际可用性以 Skill URL 中的官方说明为准。

PageSpeed CLI Skill 的 Skill URL 在哪里?

Skill URL 保留在页面左侧的 Skill 信息区,也可以点击页面顶部的“打开原始 Skill”按钮访问原始项目或官方页面。

本地下载文件和 Skill URL 有什么区别?

本地下载文件是 EasyGlobe 保存的 Markdown 版本,便于归档、阅读和复用;Skill URL 指向原始项目、官方文档或 marketplace 页面,适合查看最新说明和官方安装方式。