--- name: accessibility-audit description: Audit and fix accessibility in the product's real UI code against WCAG 2.2 AA — contrast, semantics, keyboard and focus, screen-reader names and announcements, forms and errors, motion, target size — combining the automated checks the project supports (axe, lint rules) with a manual review of what tools can't catch. Use when accessibility is questioned, before shipping user-facing UI, for a compliance review, or when ux-review flags accessibility issues. --- # Accessibility Audit Accessibility failures are product failures: a form a keyboard user can't submit converts at 0 % for that user. Automated tools catch only part of the problems; the rest takes reading the code and walking the flow. This skill does both, then fixes what it finds. ## Phase 1: Scope Audit what was asked: a flow (use the steps from `flow-audit.md` in the feature folder if there is one), a set of components, a PR diff, or an area of the product. Read the components involved and the design system's base components — an accessibility bug fixed in a shared `Button` is fixed everywhere. Target WCAG 2.2 level AA unless the user says otherwise. ## Phase 2: Run the automated checks the project supports - **axe-core** through the existing E2E setup (`@axe-core/playwright`, `cypress-axe`) on each screen of the flow, including its states: open dialog, error state, empty state. - **Lint rules** such as `eslint-plugin-jsx-a11y`, `eslint-plugin-vuejs-accessibility` or Angular's template accessibility rules, when configured. Don't add a dependency without asking. When the project has none, do the manual review and recommend one tool in the summary. ## Phase 3: Review by category If you can run subagents, run these four passes in parallel on the same files; otherwise run them one after another and finish all four before fixing. Every pass reports every issue — including uncertain and minor ones — with a severity and a confidence. Filtering happens in Phase 4. **Pass 1 — Contrast and color** - Text contrast at least 4.5:1, or 3:1 for large text (24 px, or 18.66 px bold). Icons, input borders and focus indicators at least 3:1 against adjacent colors. Compute ratios from resolved token values, including dark mode and hover or disabled states. - No information carried by color alone: error borders without text, status dots without labels, charts without labels or patterns. - Text resized to 200 % and reflow at 320 px wide without loss of content. **Pass 2 — Structure and semantics** - Native elements for their role: `