lighthouse
Skill5 starsChanged 19 days agoMITView on GitHub
Run local Lighthouse perf audits on PixelDen dev server (localhost:3002). Use when the user asks about Lighthouse, LCP, FCP, CLS, INP, Core Web Vitals, performance score, perf regression, or wants to verify a perf fix locally before release. Triggers: 'lighthouse', 'LCP', 'CWV', 'perf test', 'pustit lighthouse', 'otestovat perf'.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- n-n-code/n-n-code-skillstheir own version, first seen Nov 1, 2026
- nimajafari/lighthouse-skilltheir own version, first seen Nov 1, 2026
- manastalukdar/ai-devstudiotheir own version, first seen Oct 13, 2026
- jholhewres/devclaw-skillstheir own version, first seen Oct 9, 2026
- ParkYoungWoong/skillstheir own version, first seen Apr 8, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- jholhewres/devclaw-skills★ 4same name
- n-n-code/n-n-code-skills★ 4same name
- nimajafari/lighthouse-skill★ 4same name
- manastalukdar/ai-devstudio★ 1same name
- ParkYoungWoong/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- code-reviewSkill
- context-guardSkill
- graylog-searchSkill
- html-slide-deckSkill
- image-generationSkill
- implement-specSkill
- jiraSkill
- mac-maintenanceSkill
- mysql-schema-designSkill
- phaser-gamedevSkill
- pixelart-cleanupSkill
- pixellab-apiSkill
- pixellabSkill
- product-hunt-launchSkill
- promo-videoSkill
- publish-report-artifactSkill
- seo-blogSkill
- seo-optimizationSkill
- usage-statuslineSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 103
If LCP > 2.5s on mobile, identify the LCP element via largest-contentful-paint-element audit.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lighthouse Local Perf Testing
Locally audit Core Web Vitals and Lighthouse scores against the dev server before every release / perf-related PR.
Quick run
task lighthouse # mobile, simulated throttling (most relevant for LCP/SEO)
task lighthouse:desktop # desktop preset (best-case numbers)Reports land in .lighthouse/ (gitignored):
.lighthouse/mobile.report.html+mobile.report.json.lighthouse/desktop.report.html+desktop.report.json
Pre-flight checklist
- Dev server must be up:
task dev(Docker, listens onlocalhost:3002per memory). - Chrome on host: Lighthouse runs headlessly via
npx --yes lighthouseagainst the host's Chrome — not in container. macOS users typically have it. - First run downloads ~70MB of lighthouse bin into
~/.npm/_npx. Subsequent runs are fast.
Reading results — extract metrics from JSON
The HTML report is for humans. For Claude, parse the embedded JSON to surface key numbers concisely:
# mobile (clean JSON file)
node -e '
const r = JSON.parse(require("fs").readFileSync(".lighthouse/mobile.report.json", "utf8"));
const a = r.audits, c = r.categories;
console.log("=== Scores ==="); for (const [k,v] of Object.entries(c)) console.log(k.padEnd(15), Math.round((v.score??0)*100));
const fmt = (k,t=v=>v.toFixed(0)+" ms") => a[k]?.numericValue!==undefined ? t(a[k].numericValue) : "n/a";
console.log("\n=== Core Web Vitals ===");
console.log("LCP ", fmt("largest-contentful-paint"));
console.log("FCP ", fmt("first-contentful-paint"));
console.log("CLS ", fmt("cumulative-layout-shift", v=>v.toFixed(3)));
console.log("TBT ", fmt("total-blocking-time"));
console.log("Speed Index", fmt("speed-index"));
console.log("TTFB ", fmt("server-response-time"));
'Dev vs prod expectations
The dev server runs Vite dev mode — un-minified ESM, large node_modules/.vite/deps/*.js shipments (lucide-react ~1MB, sentry ~1MB, react-dom ~1MB). So:
| Dev (localhost) | Prod (after deploy) | |
| Performance (mobile) | 80–88 | 90+ |
| LCP (mobile) | 3–4s | 1.5–2s |
| TTFB | 300–500ms | <100ms |
| Network total | 3–5MB | 500KB–1MB |
Rule of thumb: prod LCP ≈ dev LCP × 0.5. If dev LCP is good (< 4s) and there's no obvious render-blocking, prod will pass CWV.
When dev numbers aren't enough
For tighter prod-like measurement, run against a local prod build:
task build
docker compose exec app pnpm start & # or run on host via PORT=3002 pnpm start
task lighthouseFor real-world prod numbers post-deploy, use the metrifyr MCP (mcp__metrifyr__psi_analyze) — it hits the public URL with field/lab data and CrUX.
What to flag in a Lighthouse report
| signal | what it means | look for |
| LCP > 2.5s | hero/above-fold image slow or render-blocked | lcp-lazy-loaded, largest-contentful-paint-element, prioritize-lcp-image |
| CLS > 0.1 | layout shifting | layout-shifts, missing width/height on <img> |
| TBT > 200ms | JS work blocking input | bootup-time, mainthread-work-breakdown, unused-javascript |
| FCP > 2s | first paint slow | render-blocking-resources, font loading |
| SEO < 100 | meta/markup issues | meta-description, crawlable-anchors, hreflang |
Common PixelDen pitfalls (already known)
- Hero image as CSS
background-image— can never be optimal LCP. Always use<img>withsrcset,width/height,fetchPriority="high". (Fixed in v0.2.7.) - Public assets (
public/assets/**) are NOT fingerprinted by Vite. Combined withCache-Control: immutable, max-age=31536000in nginx, content changes need either a filename bump (-v2.webp) or a manual nginx purge — a known nginx static-cache trap. game-canvasuseEffect deps can re-mount Phaser unnecessarily. Verify before blaming network.
When NOT to use this skill
- The user is asking about prod / live-site perf → use
mcp__metrifyr__psi_analyzeinstead (PSI doesn't work againstlocalhost). - The user wants accessibility/a11y deep-dive → use the
chrome-devtools-mcp:a11y-debuggingskill (Lighthouse a11y category is shallow). - The user wants traces (call stacks, long tasks frame-by-frame) → use
mcp__chrome-devtools__performance_start_trace.
After running
Always summarize:
- Top-line scores (Performance / SEO / A11y / BP).
- Each Core Web Vital with rating (good / needs-improvement / poor).
- Top 1–3 opportunities (
auditswithdetails.overallSavingsMs > 100). - If LCP > 2.5s on mobile, identify the LCP element via
largest-contentful-paint-elementaudit. - Don't forget: dev numbers ≠ prod numbers. State both expected.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

