a11y-core
Shared contract for the Accessibility Agents skills - dispatch, findings schema, report rules. Read by skills, never dispatched…
Reference data, not a reviewer. Integrate Lighthouse CI accessibility audits. Detects configuration, parses results, maps findings to severity model, and tracks score regressions.
Claude Code
$ npx -y skills add Community-Access/accessibility-agents --skill kb-lighthouse-scanner --agent claude-code
Codex
$ npx skills add Community-Access/accessibility-agents --skill kb-lighthouse-scanner -a codex -y
Cursor
$ npx skills add Community-Access/accessibility-agents --skill kb-lighthouse-scanner -a cursor -y
Gemini CLI
$ npx skills add Community-Access/accessibility-agents --skill kb-lighthouse-scanner -a gemini-cli -y
GitHub Copilot
$ npx skills add Community-Access/accessibility-agents --skill kb-lighthouse-scanner -a github-copilot -y
OpenCode
$ npx skills add Community-Access/accessibility-agents --skill kb-lighthouse-scanner -a opencode -y
Windsurf
$ npx skills add Community-Access/accessibility-agents --skill kb-lighthouse-scanner -a windsurf -y
name: kb-lighthouse-scanner description: Reference data, not a reviewer. Integrate Lighthouse CI accessibility audits. Detects configuration, parses results, maps findings to severity model, and tracks score regressions. license: MIT disable-model-invocation: true user-invocable: false metadata: tier: reference domain: cross-cutting output: none effort: low title: Lighthouse Scanner
[Lighthouse CI](https://github.com/GoogleChrome/lighthouse-ci) is a suite of tools for running Google Lighthouse audits in CI pipelines. The most common GitHub Actions integration uses [`treosh/lighthouse-ci-action`](https://github.com/treosh/lighthouse-ci-action).
Lighthouse provides:
**Accessibility focus:** The Lighthouse accessibility category runs a subset of axe-core rules and reports a weighted score from 0-100 along with individual audit violations.
Search for workflow files referencing Lighthouse CI:
# Search for the treosh Lighthouse CI action grep -rl "treosh/lighthouse-ci-action" .github/workflows/ # Search for official Lighthouse CI CLI usage grep -rl "lhci autorun\|lighthouse-ci" .github/workflows/
**Patterns to match in YAML:**
- uses: treosh/lighthouse-ci-action@v12
Lighthouse CI uses configuration files in the repository root:
# Check for Lighthouse CI config files ls lighthouserc.js lighthouserc.json .lighthouserc.js .lighthouserc.json .lighthouserc.yml 2>/dev/null
| Config File | Format | |------------|--------| | `lighthouserc.js` | JavaScript module | | `lighthouserc.json` | JSON | | `.lighthouserc.js` | JavaScript module (dotfile) | | `.lighthouserc.json` | JSON (dotfile) | | `.lighthouserc.yml` | YAML (dotfile) |
Key fields in Lighthouse CI config:
{
"ci": {
"collect": {
"url": ["https://example.com", "https://example.com/about"],
"numberOfRuns": 3
},
"assert": {
"assertions": {
"categories:accessibility": ["error", {"minScore": 0.9}]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}| Section | Purpose | Agent Use | |---------|---------|-----------| | `ci.collect.url` | URLs to audit | Scope of CI scanning | | `ci.collect.numberOfRuns` | How many times to run each URL | Reliability indicator | | `ci.assert.assertions` | Score budgets and thresholds | Regression detection | | `ci.upload.target` | Where to store reports | Report retrieval |
Lighthouse computes a weighted accessibility score from 0-100 based on individual audit results. Its report rates scores in three bands. These are not this package's report grade; that comes from `skills/a11y-core/scripts/merge-findings.mjs` (A 90, B 80, C 70, D 60).
| Score Range | Lighthouse rating | Interpretation | |-------------|-------|---------------| | 90-100 | pass | Good accessibility | | 50-89 | average | Issues to address | | 0-49 | fail | Significant accessibility failures |
Each Lighthouse accessibility audit corresponds to an axe-core rule. Weights are from the Lighthouse 13 default config (derived from axe impact: critical 10, serious 7, moderate 3, minor 1); WCAG mappings are the axe-core 4.14 tags. Selected audits:
| Audit ID | axe-core Rule | WCAG Criterion | Weight | |----------|--------------|----------------|--------| | `image-alt` | `image-alt` | 1.1.1 | 10 | | `color-contrast` | `color-contrast` | 1.4.3 | 7 | | `label` | `label` | 4.1.2 | 10 | | `button-name` | `button-name` | 4.1.2 | 10 | | `link-name` | `link-name` | 2.4.4 | 7 | | `html-has-lang` | `html-has-lang` | 3.1.1 | 7 | | `document-title` | `document-title` | 2.4.2 | 7 | | `heading-order` | `heading-order` | none (best-practice) | 3 | | `meta-viewport` | `meta-viewport` | 1.4.4 | 10 | | `bypass` | `bypass` | 2.4.1 | 7 | | `tabindex` | `tabindex` | none (best-practice) | 7 | | `aria-allowed-attr` | `aria-allowed-attr` | 4.1.2 | 10 | | `aria-hidden-body` | `aria-hidden-body` | 4.1.2 | 10 | | `aria-required-attr` | `aria-required-attr` | 4.1.2 | 10 | | `aria-roles` | `aria-roles` | 4.1.2 | 10 | | `aria-valid-attr-value` | `aria-valid-attr-value` | 4.1.2 | 10 | | `aria-valid-attr` | `aria-valid-attr` | 4.1.2 | 10 | | `target-size` | `target-size` | 2.5.8 | 7 |
Lighthouse uses weights rather than impact levels. Map to the agent severity model based on weight and audit pass/fail:
| Lighthouse Weight | Audit Status | Agent Severity | |------------------|-------------|---------------| | 10 | Fail | critical | | 7 | Fail | serious | | 3 | Fail | moderate | | 1 | Fail | minor | | 0 | n/a | Manual-check audits; not scored, not reported as findings | | Any | Pass | N/A (not reported) |
Since Lighthouse uses axe-core under the hood, correlation is straightforward:
1. **Match by audit/rule ID:** Lighthouse audit IDs correspond directly to axe-core rule IDs 2. **Match by URL:** Compare scanned URLs from Lighthouse config with local scan targets 3. **Boost confidence:** Findings confirmed by both Lighthouse CI and local axe-core scan receive `high` confidence
Each scenario, with its interpretation and action.
| Scenario | Interpretation | Action | |----------|---------------|--------| | Found by Lighthouse AND local scan | High confidence | Report as high confidence, full severity weight | | Found by Lighthouse only | Environment-spec
WCAG 2.2 AA enforcement for agentic coding, as a set of Agent Skills. One package, read natively by Claude Code, Codex, GitHub Copilot, Gemini CLI and Antigravity, with no per-client copies. Models forget accessibility while generating code.
Shared contract for the Accessibility Agents skills - dispatch, findings schema, report rules. Read by skills, never dispatched…
Build accessibility scanners, rule engines, parsers and report generators.
Web UI accessibility lead. Use before writing or changing HTML, JSX, TSX, Vue, Svelte, CSS or templates. Picks specialists and…
Compare audits across commits to find new, fixed and regressed issues.
Generate a W3C or EU model accessibility statement from audit results.
GitHub Actions: workflow runs, logs, re-runs and CI failure triage.
Produce the "Playwright 1.xx API Review" artifact for a range of commits - the public API additions and the breaking or behavior…
Write, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions,…
DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent,…