---
name: ux-accessibility-audit
description: Run a structured WCAG 2.1 AA accessibility audit on a design, screen, component, or page. Produces a prioritized issue list — each finding cites the violated WCAG criterion, a severity rating (Critical/Major/Minor), and a concrete fix. Use when auditing for a11y compliance or as a validation step after generating UI.
license: MIT
metadata:
author: uxcel
version: "1.0.0"
---
# Accessibility Audit Skill
## How this skill behaves (read first)
This is an **evaluative** skill — it reviews existing work against a standard (WCAG), it doesn't generate UI. Flagging is safe, so it **auto-runs** and is designed to be **called as a validation step** by generative skills as well as invoked directly.
It **owns the accessibility concern** in this repo. Generative skills hand off to it (e.g. `ux-login-signup`, `ux-pricing`), and the **heuristics audit** (`ux-heuristics-audit`) deliberately defers contrast / keyboard / screen-reader specifics here rather than duplicating them. When invoked, do the full a11y pass; don't assume another skill covered it.
**Scope discipline.** When invoked directly (the user named this audit), review **only this concern** — don't pull in sibling audits. It runs alongside other lenses only when an orchestrator (`ux-design-review`) or a generative skill calls it under `docs/orchestration-policy.md`, where it sits in **Tier B — offered (and narrowed to usage when a design system is in play)**. Explicit scope always wins.
---
## What this skill changes vs. default behavior
By default, accessibility feedback tends to be partial and vague — a few obvious call-outs ("add alt text", "check contrast") with no standard, no severity, and no systematic sweep. This skill forces four things:
1. **Every finding cites the WCAG criterion and level** it violates — not a vague suggestion.
2. **Every finding gets a severity** based on how completely it blocks access — so the list is prioritized.
3. **Every finding has a concrete fix** — the specific markup/design change.
4. **The audit is systematic** — it sweeps all six categories below, so issues outside the obvious ones (focus order, heading hierarchy, table semantics, motion) actually get caught.
---
## WCAG foundations
**POUR principles** — every audit item maps to one of these four:
- **Perceivable** — content must be detectable via at least one sense (sight, hearing, etc.)
- **Operable** — all interactions must work without a mouse (keyboard, switch, voice)
- **Understandable** — content and UI must be clear and predictable
- **Robust** — content must work across browsers, devices, and assistive technologies
**Compliance levels:**
- **Level A** — bare minimum; missing these creates complete barriers (e.g. no alt text, no keyboard access).
- **Level AA** — the legal standard most organizations must meet; the **default target for every audit**.
- **Level AAA** — aspirational; apply selectively where it adds high value.
Default audit target: **WCAG 2.1 Level AA**.
---
## Audit checklist
Work through every category — a partial sweep is the main way real issues get missed. Flag each violation with **WCAG criterion**, **severity** (see model below), and a **fix**.
### 1. Color & Contrast
| Check | Requirement | Notes |
|---|---|---|
| Normal text vs background | ≥ 4.5:1 (AA) / 7:1 (AAA) | Applies to all text in UI: buttons, labels, cards, nav |
| Large text (≥ 18pt or ≥ 14pt bold) | ≥ 3:1 | |
| Icons (informational or interactive) | ≥ 3:1 | Decorative icons exempt |
| Input borders vs surrounding background | ≥ 3:1 | Including focus indicators |
| Text over images | ≥ 4.5:1 between text and the portion of image behind it | Use semi-transparent overlay if needed |
| Selection states | Same ratios as regular text | |
| Disabled elements | Exempt from contrast rules | Must still be recognizable as inactive |
| Logo text | Exempt | But good practice to maintain contrast anyway |
| Color as sole differentiator | ❌ Never | Always pair color with icon, pattern, label, or text |
| Stark contrast (pure black on white) | Discouraged | Use #333 on #F8F8F8 — exceeds AA while reducing eye strain |
**Don't rely on color alone**: error states need an icon + text, not just red. Charts need patterns or labels, not just color.
---
### 2. Typography & Text
| Check | Requirement |
|---|---|
| Base body font size | ≥ 16px |
| Line length | 45–75 characters (including spaces) |
| Text alignment | Follows reading direction (LTR → left-align; RTL → right-align) |
| Headings visually distinct | Larger size, bold weight, or color difference from body text |
| One `