smithery/bedriftsgrafen

lighthouse_ci

Run Lighthouse CI audits for performance, accessibility, SEO, and best practices.

Installation

$ npx skills add smithery/bedriftsgrafen --skill lighthouse-ci-audit

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/bedriftsgrafen.

npx skills add smithery/bedriftsgrafen

Browse all from smithery/bedriftsgrafen

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,026 B
  • docs SUMMARY.md 163 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Lighthouse CI Audit

Quick Run

# From project root — builds frontend, then audits
npm run lighthouse

Prerequisites: npm install at root level and a locally available Chrome/Chromium. No backend needed (static pages only).

Audited Pages

Configured in lighthouserc.cjs:

Page URL
Home /
Search /search
About /om
Industries /bransjer
Bankruptcies /konkurser
New Establishments /nyetableringer
Explore /utforsk
Counties /fylker
County Detail /fylke/03
Municipalities /kommuner
Municipality Detail /kommune/0301

Excluded: /kart (needs backend), /bedrift/:orgnr (dynamic), /sammenlign (noindex).

Preview server runs on port 5174 (see vite.config.ts).

Thresholds

Category Minimum Level
Accessibility 85% Error (blocks CI)
SEO 90% Warn
Best Practices 80% Warn
Performance 50% Warn

Performance is relaxed due to third-party scripts. Prioritize accessibility and SEO.

Reports

After running:

  1. HTML and JSON reports are saved to .lighthouseci/ (gitignored)
  2. summary.json contains median scores, assertions, and report paths

Manual Steps

cd frontend && npm run build         # Step 1: Build
node scripts/run-lighthouse.mjs       # Step 2: Audit (from project root)

For a focused smoke run: node scripts/run-lighthouse.mjs --runs 1 --url http://localhost:5174/

Troubleshooting

Problem Fix
No Chrome found sudo apt install chromium-browser or set CHROME_PATH
Port 5174 in use fuser -k 5174/tcp
Flaky performance scores Increase numberOfRuns in lighthouserc.cjs

Disabled Audits

Intentionally disabled in config: valid-source-maps, uses-http2, errors-in-console, unused-javascript.