lighthouse

Run Lighthouse CLI audits and extract performance and accessibility scores as JSON.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/cosmicdreams/claude-plugins --skill lighthouse-cosmicdreams
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lighthouse
Source: https://github.com/cosmicdreams/claude-plugins/tree/main/lib/skills/lighthouse
Command: npx skills add https://github.com/cosmicdreams/claude-plugins --skill lighthouse-cosmicdreams

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lighthouse, chromium/chrome, jq, node npm.

What problem does it solve?

Lighthouse audit results are hard to reproduce and summarize, so teams need a repeatable way to measure performance and accessibility and turn them into structured metrics.

Core Features & Use Cases

  • Runs Lighthouse via CLI: Executes Lighthouse audits for a single page URL and produces machine-readable JSON scores.
  • Performance vs accessibility modes: Captures Core Web Vitals (LCP, TBT, FCP, CLS) in performance mode and produces an accessibility score in accessibility mode.
  • Ratchet-friendly outputs: Transforms Lighthouse JSON into a stable output contract for experiment baselines and automated checks.

Quick Start

Ask the skill to run a Lighthouse performance audit for a URL and return structured JSON metrics.

Frequently Asked Questions about lighthouse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get reproducible Lighthouse audit metrics for Core Web Vitals?

You can run Lighthouse performance audits via CLI to capture Core Web Vitals metrics like LCP, TBT, FCP, and CLS as machine-readable JSON. This output is stable enough to feed experiment baselines and automated regression checks.

How do I measure accessibility scores using Lighthouse JSON output?

Lighthouse accessibility scores are measured by running the CLI in accessibility mode, which produces a machine-readable JSON file containing the specific accessibility readiness score for the audited webpage.

Can I run Lighthouse audits against local pages with self-signed certificates?

Yes, you can audit local or self-signed environments by enforcing Chrome flags such as --ignore-certificate-errors during the Lighthouse CLI execution to bypass certificate validation errors.

Do I need Node and jq to parse Lighthouse JSON metrics?

Yes, Node npm is required to run the Lighthouse CLI and jq is used for JSON output parsing to extract performance and accessibility scores without truncation.

What is the best way to track Lighthouse performance scores for regression checks?

Using the ratchet-friendly JSON output contract from the Lighthouse CLI is the best way to track performance scores, providing stable experiment baselines for automated regression checks and dashboards.

Why does my Lighthouse JSON output get truncated when capturing Core Web Vitals?

Lighthouse JSON output truncation occurs during inline capture, so the Skill uses output-path file handling to write metrics to a file and parse them reliably without data loss.