@crstnmac/a11y-audit
v1.3.0
Published
Framework-aware skill for accessible component guidance, reviews, and WCAG website audits.
Downloads
546
Maintainers
Readme
a11y-audit
A framework-aware skill for designing and reviewing accessible components from their page context, plus auditing locally running websites with Playwright, axe-core, keyboard checks, and source review.
It can advise on a component before code exists, review an implementation in React, Vue, Svelte, Angular, Astro, Web Components, or server-rendered HTML, and run evidence-based WCAG audits against a live site.
Install
Recommended, using the open skills CLI:
npx skills add crstnmac/skills --skill a11y-auditFor a global Codex installation without prompts:
npx skills add crstnmac/skills \
--skill a11y-audit \
--global \
--agent codex \
--yesAlternatively, install the npm package directly:
npm install @crstnmac/a11y-auditThe skill bundle is installed at node_modules/@crstnmac/a11y-audit.
Copy or link that directory into your agent's skills directory, then invoke $a11y-audit.
First time, install the Chromium browser used by the runner:
npx playwright install chromiumCLI
npx a11y-audit --url http://localhost:3000 --paths / /about --out a11y-report.jsonUseful flags: --wcag 2.2-aa (default), --mobile, --crawl --max-pages 15, --storage-state <file>, --include-best-practice.
CI regression mode supports reviewed JSON baselines, severity thresholds, SARIF, and JUnit:
npx a11y-audit --url http://localhost:3000 --fail-on none --out baseline.json
npx a11y-audit --url http://localhost:3000 --baseline baseline.json \
--fail-on serious --format sarif --out a11y-results.sarifExport a formatted Excel workbook with summary, findings, pages, review items, and regression sheets:
npx a11y-audit --url http://localhost:3000 \
--format xlsx --out accessibility-report.xlsxNode.js 18 or newer is required.
Verify
npm test
npm pack --dry-runLicense
MIT
