Skip to content

Run Lighthouse audits locally through the CLI or Node API, then parse results and enforce performance budgets.

CCM score
66 of 100
skills.sh installs
360
GitHub stars
7.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers CLI and Node API usage for running audits, plus parsing JSON and HTML reports into scores and Core Web Vitals
  • Includes a budget.json format for resource sizes, third-party counts, and timing thresholds, plus Lighthouse CI setup with lighthouserc.js
  • Shows how to compare builds by checking metric changes between a baseline and a pull request run
  • Designed for developers who need to measure site performance and wire Lighthouse audits into GitHub Actions

Install

$ npx -y skills add tech-leads-club/agent-skills --skill perf-lighthouse -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Lighthouse Audits

CLI Quick Start

# Install
npm install -g lighthouse

# Basic audit
lighthouse https://example.com

# Mobile performance only (faster)
lighthouse https://example.com --preset=perf --form-factor=mobile

# Output JSON for parsing
lighthouse https://example.com --output=json --output-path=./report.json

# Output HTML report
lighthouse https://example.com --output=html --output-path=./report.html

Common Flags

--preset=perf           # Performance only (skip accessibility, SEO, etc.)
--form-factor=mobile    # Mobile device emulation (default)
--form-factor=desktop   # Desktop
--throttling-method=devtools  # More accurate throttling
--only-categories=performance,accessibility  # Specific categories
--chrome-flags="--headless"   # Headless Chrome

Performance Budgets

Create budget.json:

Details

Repository
github.com/tech-leads-club/agent-skills
Categories
Frontend & UI Code, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the perf-lighthouse skill do?

The perf-lighthouse skill runs Lighthouse audits locally through the CLI or the Node API, parses and interprets the reports, and sets performance budgets. It also covers integrating audits into CI, including GitHub Actions and Lighthouse CI. It is meant for measuring site performance and understanding Lighthouse scores.

How do I install the perf-lighthouse skill?

Run npx -y skills add tech-leads-club/agent-skills --skill perf-lighthouse -y in your project. Once installed, the agent can run Lighthouse audits, parse JSON reports, and set up budget.json files.

Which skills lead the perf-lighthouse skill in the Frontend and UI Code category?

In the Frontend and UI Code category, perf-lighthouse is listed alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. It stays focused on measuring and budgeting performance rather than fixing issues. For fixes, the skill points to perf-web-optimization or core-web-vitals instead.

Does perf-lighthouse fix performance problems on my site?

No, the skill does not fix specific performance issues. Its description says to use perf-web-optimization or core-web-vitals for that, and perf-astro for Astro-specific optimization. perf-lighthouse focuses on running audits, reading scores and setting budgets.

What do I need to run the perf-lighthouse skill?

You need Node and the lighthouse npm package, installed globally with npm install -g lighthouse. The Node API path also uses chrome-launcher, and a Chrome install is needed, which you can point to with the CHROME_PATH environment variable.

More from tech-leads-club/agent-skills

All 22

Similar to Perf Lighthouse

More Frontend & UI Code