Перевод: оболочка страницы на русском; тело навыка (SKILL.md) пока на английском — это исходные инструкции агента.
Lighthouse Axe
Run Lighthouse and axe audits via npx.
Метаданные навыка
| Source | Optional — install with vibeos skills install official/web-development/lighthouse-axe |
| Путь | optional-skills/web-development/lighthouse-axe |
| Версия | 1.0.0 |
| Автор | VibeOS |
| Лицензия | MIT |
| Платформы | linux, macos, windows |
| Теги | lighthouse, axe, a11y, seo, performance, audit, web |
| Связанные навыки | site-page-analyze, site-map-crawl, browser-e2e, web-site-kit |
Справка: полный SKILL.md
к сведению
Ниже полное определение навыка, которое VibeOS загружает при активации. Это инструкции, которые видит агент.
Lighthouse + axe Audit
Optional heavyweight page audit: Lighthouse (perf/SEO/a11y scores) and
axe-core CLI when installed. Not a core tool — runs via npx / local
Node. Prefer site-page-analyze for fast structure signals without Node.
When to Use
- Need numeric Lighthouse categories or axe violation lists
- CI gate after cinematic / admin scaffold
- User explicitly asks for Lighthouse / axe (not plain DOM map)
Prerequisites
- Node.js 20+ and network for first
npxdownload (or preinstalled CLIs) - Target URL reachable (local
localhostor remote) - Script:
scripts/run_page_audit.py
How to Run
python3 scripts/run_page_audit.py --url http://127.0.0.1:3000 --out ./audit
# Lighthouse-only:
python3 scripts/run_page_audit.py --url URL --lighthouse-only --out ./audit
# axe-only (requires @axe-core/cli via npx):
python3 scripts/run_page_audit.py --url URL --axe-only --out ./audit
Then skim audit/lighthouse.json / audit/axe.json and summarize issues.
Quick Reference
| Output | Meaning |
|---|---|
lighthouse.json | Categories + audits (Chrome) |
axe.json | Accessibility violations |
summary.md | Short human summary |
Procedure
- Confirm the app is up (
vibeos project servers --expect <port> --health). - Run
run_page_audit.pywith--urland--out. - If Node/
npxmissing, stop and install Node — do not fake scores. - Report failing categories / axe critical+serious counts with paths.
- Pair with
site-page-analyzefor title/H1/meta structure (lighter).
Pitfalls
- First
npxpull needs network; pin versions in CI when possible. - Auth walls: audit only public or pre-authenticated URLs.
- Do not treat Lighthouse as a substitute for real browser smoke (
browser-e2e). - Optional skill — not seeded by default;
vibeos skills install official/web-development/lighthouse-axe.
Verification
- Script exits 0 when tools run; writes at least one JSON under
--out. - Exit 2 on bad args; exit 1 when Node/
npxunavailable. - Offline unit test covers
--help/ arg validation without network.