Lighthouse
Purpose
Run and interpret Lighthouse audits (performance, accessibility, best practices, SEO) using CLI or browser integrations, returning actionable opportunities—not fabricated scores.
When to Use
- User requests a Lighthouse audit, Core Web Vitals check, or a11y/SEO score for a URL.
- Comparing mobile vs desktop scores before release.
- Turning audit opportunities into a prioritized fix list for front-end work.
- CI or pre-release quality gates when Lighthouse/chrome-devtools tools are connected.
When NOT to Use
- Visual regression or Storybook snapshots → chromatic.
- General browser E2E testing without audit focus → testing or browser automation skills.
- Backend-only performance (no page load) → APM/observability skills (datadog, grafana).
Expected Outcome
- Category scores and key audits (pass/fail) from a real run.
- Top opportunities/diagnostics with estimated savings where reported.
- Environment noted (URL, throttling, mobile/desktop, auth constraints).
Inputs to Gather
- Target URL(s) and environment (local, staging, production).
- Mobile vs desktop (default mobile if unspecified).
- Auth requirements (login, headers) and whether audit can run headless.
- Budget or thresholds the user cares about (LCP, CLS, TBT, etc.).
Workflow
- Confirm Lighthouse or chrome-devtools MCP tools are available.
- Validate URL reachability and auth approach before auditing production.
- Run audit with agreed form factor and throttling settings.
- Extract category scores and highest-impact audits/opportunities.
- Map findings to likely code areas when stack hints exist (avoid guessing file paths without evidence).
- Suggest verification re-run after fixes.
Domain guidance
- Categories — Performance, Accessibility, Best Practices, SEO; report each score and critical audits.
- Core Web Vitals — highlight LCP, INP/TBT, CLS with field/lab context when present.
- Opportunities vs diagnostics — prioritize by estimated savings and user impact.
- Environment — call out if throttling or local-only URL limits generalization.
- No fabricated scores — only report values returned by the audit tool.
Examples
User: "Audit staging homepage performance on mobile."
→ Run mobile audit, return scores, LCP/CLS/TBT, top three opportunities with savings estimates.
User: "Why did accessibility score drop?"
→ Compare audits marked fail/regression vs prior run if available; list specific a11y rules and elements when reported.
Tool Availability Rules
| Access |
Behavior |
| Full tool access |
Run audits and capture reports. |
| Read-only / no runner |
Provide exact CLI command and flags for the user to run locally. |
| No integration |
Do not invent Lighthouse scores. |
Related tool sets
lighthouse
chrome-devtools
Review / Decision / Execution Criteria
- Tie recommendations to specific failing audits from the report.
- Distinguish lab vs field data when both appear.
- Flag auth-blocked or error-page audits as invalid runs.
Output Format
- URL, device profile, and run timestamp.
- Category score table.
- Top issues (impact-ordered) with audit IDs/names.
- Blockers (login required, timeout, blocked URL).
- Suggested fixes and re-audit step.
Quality Bar
- Actionable for engineers (what to fix, not generic "improve performance").
- Honest about limitations of a single URL snapshot.
Safety and Boundaries
- Do not audit production URLs that trigger destructive actions without approval.
- Do not log cookies or credentials from authenticated runs.
Escalation / Dispatch Rules
- Visual/UI component regressions → chromatic.
- SEO content strategy beyond technical audits → optimize-for-seo.
References
skills/old_skills.json (lighthouse) — legacy catalog (Sheets boilerplate removed).
skills/skill.instruction.md, skills/meta.instructions.md
1---2name: lighthouse3description: Runs Lighthouse audits for web performance, accessibility, SEO, and best practices. Use when auditing URLs, interpreting Core Web Vitals, or prioritizing front-end fixes from Lighthouse reports.4---56# Lighthouse78## Purpose910Run and interpret Lighthouse audits (performance, accessibility, best practices, SEO) using CLI or browser integrations, returning actionable opportunities—not fabricated scores.1112## When to Use1314- User requests a Lighthouse audit, Core Web Vitals check, or a11y/SEO score for a URL.15- Comparing mobile vs desktop scores before release.16- Turning audit opportunities into a prioritized fix list for front-end work.17- CI or pre-release quality gates when Lighthouse/chrome-devtools tools are connected.1819## When NOT to Use2021- Visual regression or Storybook snapshots → **chromatic**.22- General browser E2E testing without audit focus → testing or browser automation skills.23- Backend-only performance (no page load) → APM/observability skills (**datadog**, **grafana**).2425## Expected Outcome2627- Category scores and key audits (pass/fail) from a real run.28- Top opportunities/diagnostics with estimated savings where reported.29- Environment noted (URL, throttling, mobile/desktop, auth constraints).3031## Inputs to Gather3233- Target URL(s) and environment (local, staging, production).34- Mobile vs desktop (default mobile if unspecified).35- Auth requirements (login, headers) and whether audit can run headless.36- Budget or thresholds the user cares about (LCP, CLS, TBT, etc.).3738## Workflow39401. Confirm Lighthouse or chrome-devtools MCP tools are available.412. Validate URL reachability and auth approach before auditing production.423. Run audit with agreed form factor and throttling settings.434. Extract category scores and highest-impact audits/opportunities.445. Map findings to likely code areas when stack hints exist (avoid guessing file paths without evidence).456. Suggest verification re-run after fixes.4647## Domain guidance48491. **Categories** — Performance, Accessibility, Best Practices, SEO; report each score and critical audits.502. **Core Web Vitals** — highlight LCP, INP/TBT, CLS with field/lab context when present.513. **Opportunities vs diagnostics** — prioritize by estimated savings and user impact.524. **Environment** — call out if throttling or local-only URL limits generalization.535. **No fabricated scores** — only report values returned by the audit tool.5455### Examples5657**User:** "Audit staging homepage performance on mobile."58→ Run mobile audit, return scores, LCP/CLS/TBT, top three opportunities with savings estimates.5960**User:** "Why did accessibility score drop?"61→ Compare audits marked fail/regression vs prior run if available; list specific a11y rules and elements when reported.6263## Tool Availability Rules6465| Access | Behavior |66|--------|----------|67| Full tool access | Run audits and capture reports. |68| Read-only / no runner | Provide exact CLI command and flags for the user to run locally. |69| No integration | Do not invent Lighthouse scores. |7071### Related tool sets7273- `lighthouse`74- `chrome-devtools`7576## Review / Decision / Execution Criteria7778- Tie recommendations to specific failing audits from the report.79- Distinguish lab vs field data when both appear.80- Flag auth-blocked or error-page audits as invalid runs.8182## Output Format83841. URL, device profile, and run timestamp.852. Category score table.863. Top issues (impact-ordered) with audit IDs/names.874. Blockers (login required, timeout, blocked URL).885. Suggested fixes and re-audit step.8990## Quality Bar9192- Actionable for engineers (what to fix, not generic "improve performance").93- Honest about limitations of a single URL snapshot.9495## Safety and Boundaries9697- Do not audit production URLs that trigger destructive actions without approval.98- Do not log cookies or credentials from authenticated runs.99100## Escalation / Dispatch Rules101102- Visual/UI component regressions → **chromatic**.103- SEO content strategy beyond technical audits → **optimize-for-seo**.104105## References106107- `skills/old_skills.json` (`lighthouse`) — legacy catalog (Sheets boilerplate removed).108- `skills/skill.instruction.md`, `skills/meta.instructions.md`