---
id: bhinnkj-pagespeed-cli
name: "PageSpeed CLI"
nameZh: "PageSpeed CLI"
sourceCategory: "BHINNKJ Tool"
sourceCategoryZh: "BHINNKJ 工具"
url: "https://github.com/BHINNKJ/PageSpeed-CLI"
sourceUrl: "https://github.com/BHINNKJ/PageSpeed-CLI"
tags: ["PageSpeed","Lighthouse","Core Web Vitals","SEO"]
tagsZh: ["PageSpeed","Lighthouse","Core Web Vitals","SEO"]
categorySlugs: ["marketing-growth","dev","testing","data-analysis"]
---

# PageSpeed CLI

中文名称：PageSpeed CLI

## Description

AI-ready PageSpeed Insights and Lighthouse CLI for Core Web Vitals audits, performance fixes, SEO optimization, and before/after verification.

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

## 中文说明

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

- 打开或安装 Skill：https://github.com/BHINNKJ/PageSpeed-CLI
- 查看原始来源：https://github.com/BHINNKJ/PageSpeed-CLI
- 分类：marketing-growth, dev, testing, data-analysis
- 标签：PageSpeed、Lighthouse、Core Web Vitals、SEO

## Use This Skill

- Open or install the skill from: https://github.com/BHINNKJ/PageSpeed-CLI
- Review the original source: https://github.com/BHINNKJ/PageSpeed-CLI
- Categories: marketing-growth, dev, testing, data-analysis
- Tags: PageSpeed, Lighthouse, Core Web Vitals, SEO
- 中文标签：PageSpeed、Lighthouse、Core Web Vitals、SEO

## README SEO Report

### Detailed Overview

中文 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.

### Installation



### Usage

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.

### Capabilities

- 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.

### Source Archive

- Archive source type: github
- Primary README/SKILL doc: github/README.md
- Archived docs: github/README.md

## 3W FAQ

### What is this skill?

AI-ready PageSpeed Insights and Lighthouse CLI for Core Web Vitals audits, performance fixes, SEO optimization, and before/after verification.

### Who is this skill for?

This skill is for teams or AI agents working on marketing-growth, dev, testing, data-analysis workflows.

### When should you use it?

Use it when the task matches these tags: PageSpeed, Lighthouse, Core Web Vitals, SEO.

## 中文 3W FAQ

### What：这个 skill 是什么？

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

### Who：适合谁使用？

适合处理 marketing-growth、dev、testing、data-analysis 工作流的团队、运营人员、开发者或 AI Agent。

### When：什么时候使用？

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