lighthouse

Solid

Lighthouse audit + improvement loop until targets met. Triggers "lighthouse", "performance audit", "page speed", "improve scores", "LCP", "CLS", "INP", "core web vitals".

AI & Automation 29 stars 3 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
49
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Lighthouse Optimization Loop Run Lighthouse audits, improve scores, verify UI isn't broken. Repeat until targets are met. **Method:** 3 mobile + 3 desktop runs per audit, averaged for reliability. After each code change, re-audit AND visually verify the page with chrome-devtools MCP to catch regressions. --- ## Setup 1. **Parse URL** from `$ARGUMENTS`. If no URL, ask the user. Default: `http://localhost:3000` 2. **Verify prerequisites:** ```bash lighthouse --version # CLI must be installed for the batched 3x3 protocol ``` If lighthouse is missing: `npm install -g lighthouse` The chrome-devtools MCP is shipped by default; if missing, see `mcp-configs/recommended.json`. 3. **Create results directory:** ```bash mkdir -p ~/.claude/tmp/lighthouse ``` 4. **Take baseline screenshots** before any changes: - `mcp__chrome-devtools__navigate_page` (type: "url", url: `<url>`) - `mcp__chrome-devtools__take_screenshot` Describe the current layout, key elements, and visual state. This is your **visual baseline** — you will compare against it after every change to catch regressions. 5. **Confirm with user:** Show the URL, confirm the dev server is running, ask if there are specific pages or routes to audit beyond the main URL. --- ## Audit Protocol Each audit consists of **3 mobile + 3 desktop runs**, averaged per category. ### Run the audits ```bash # Mobile runs (Lighthouse default is mobile) for i in 1 2 3; do lighthouse <url> \ -...

Details

Author
darkroomengineering
Repository
darkroomengineering/cc-settings
Created
5 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Related Skills