Accessibility Audit
An audit is finished when every failure found carries the success criterion it breaks, the level of that criterion, a severity and a fix at the right place, and when the report says what was tested and what was not.
Automated tools find only part of the problems. Passing them is a floor, not a verdict, and "axe is clean" is never "accessible": no tool can tell whether a focus order makes sense, whether a label means what it says, or whether a flow can be finished without a mouse. The common failure is to run the scanner on the landing page, report the count and stop, which leaves every dialog, menu, error state and form unexamined. This skill puts the scanner first because it is cheap, then makes the manual pass non-optional and fixes its order.
Scope
Use for: auditing a page, a flow or a component against WCAG 2.2 Level AA; checking whether a fix worked; finding out what to fix first on a page that already fails; turning "axe is clean" into an honest statement of what was and was not tested.
Do not use for: auditing a whole site across performance, security, SEO and code health, or building one, which is website-builder; writing browser tests that locate elements by role, which is e2e-testing; a general usability review, which is ui-ux-review; defining tokens and component states so contrast holds in every theme, which is design-system; reviewing a diff, which is code-review.
Workflow
1. Scope the sample and pin the target
State the target (WCAG 2.2 Level AA), what is in scope (the pages, the flow from start to finish, or the one component) and the build under test, by URL and commit or version. List the states to reach, because audits fail on states and not on first load: menus open, dialogs, validation errors, loading, empty, each theme. Audit a flow end to end rather than its first page.
2. Run the automated pass
Run at least two engines and run each on every state in the sample, not only on load. Axe is the usual first choice, and pa11y or Lighthouse's accessibility category gives a second opinion.
Run the engines from a locked install, not through npx: when a package is not already installed, npx fetches whatever version the registry serves now and runs it, and npm assumes --yes whenever standard input is not a terminal, which is how an agent runs it. The three need Node 22.19 or later. Create the lockfile once in a directory of your own outside the project under audit, keep its package.json and package-lock.json under your own version control, and install from it on every later run. Outside matters: --prefix makes that directory the npm project, so an .npmrc planted there by the audited repository could point the install at another registry. The versions are the ones this procedure was checked against; raise them deliberately.
T="${XDG_DATA_HOME:-$HOME/.local/share}/a11y-tools" # outside the audited tree
npm install --prefix "$T" --save-exact --ignore-scripts @axe-core/cli@4.14.0 pa11y@10.0.0 lighthouse@13.5.0 # once
npm ci --ignore-scripts --prefix "$T" # every run
A="$T/node_modules/.bin"
CHROME=/usr/bin/chromium CHROMEDRIVER=/usr/bin/chromedriver # paths vary by distribution
printf '{"chromeLaunchConfig": {"executablePath": "%s"}}\n' "$CHROME" > "$T/pa11y.json"
$A/axe https://example.com/checkout --tags wcag2a,wcag2aa,wcag21a,wcag21aa,wcag22aa --chrome-path "$CHROME" --chromedriver-path "$CHROMEDRIVER"
$A/pa11y --config "$T/pa11y.json" --runner axe --runner htmlcs https://example.com/checkout
CHROME_PATH="$CHROME" $A/lighthouse https://example.com/checkout --only-categories=accessibility --output=json --output-path=./a11y.json
--ignore-scripts keeps every package's install script from running, including the ones that download a browser and a driver, so point each engine at a Chrome or Chromium installed by the system package manager: CHROME_PATH for Lighthouse, chromeLaunchConfig.executablePath in the pa11y.json the block writes from $CHROME beside the tools, never into the project, and for axe a chromedriver whose MAJOR.MINOR.BUILD matches that browser, as Chrome's version-selection guidance asks, since axe refuses to start against a mismatched driver; a browser and driver from the same distribution release, or a Chrome for Testing pair, matches by construction.
This skill pre-approves no shell, so each of these asks first: the audited page is someone else's code running in a browser on your machine.
Confirm from the tool's own help or documentation that the ruleset you selected includes WCAG 2.2 rules. A tag the installed version does not know can be ignored silently and you will have tested less than you think. Record the tool versions. Treat the result as a list of leads, not a score; each violation still needs the element and the fix.
3. Run the manual pass, in this order
Work through references/wcag22-checklist.md, which gives the procedure and the criterion for each item. The order matters: keyboard first, because a failure there makes the rest unreachable.
- Keyboard end to end: complete the flow with no pointer. Check for traps, order and every control reachable and operable.
- Focus visible (2.4.7) at every step, and not obscured by a sticky header, banner or cookie bar (2.4.11).
- Zoom to 200 percent (1.4.4) and reflow at 320 CSS px wide (1.4.10): nothing lost, nothing needing two-dimensional scrolling.
- Screen reader: every control has an accessible name, role and state; dynamic changes are announced; headings and landmarks give a usable outline. Use at least one real screen reader and say which.
- Contrast of text (1.4.3) and of controls and graphics (1.4.11), in every theme and state, not only the default.
- Target size (2.5.8) and dragging alternatives (2.5.7).
- Motion: with the system's reduced motion setting on, non-essential animation stops or reduces. The relevant criterion is 2.3.3 at Level AAA; the setting is how you test it.
- Authentication (3.3.8), redundant entry (3.3.7) and consistent help (3.2.6) where the flow has sign-in, repeated forms or a help mechanism.
4. Map each finding to a criterion
Name the success criterion number, its title and its level. Look the number up in https://www.w3.org/TR/WCAG22/ rather than citing from memory. A finding at Level AAA is reported as advisory, since the target is AA. Do not cite 4.1.1 Parsing: it is obsolete and was removed in 2.2, so an old tool that still reports it is out of date.
5. Rate severity and place the fix
Rate by what the user loses, not by how the tool labels it.
| Severity | Meaning |
|---|---|
| Blocker | A user of a keyboard or assistive technology cannot complete the task. |
| Serious | The task can be completed only with a workaround or guesswork. |
| Moderate | The task is completable but slower or more confusing. |
| Minor | A real failure with little effect on the task. |
Place the fix at the component, token or template that causes it and list every instance it covers, because fixing one button and leaving forty is not a fix. Quote the element, a selector or the file and line.
6. Report what was and was not tested
Lead with blockers. State the sample, the engines and versions, the browsers and screen reader combinations used, and the states not reached. Use the wording "no failures found in the tested sample" rather than "conforms" or "accessible" unless a full-site, full-criteria evaluation was actually done, which this skill does not do. Close with the retest that confirms each fix.
Anti-patterns
Reporting the scanner's count. A clean run on the landing page says nothing about the checkout dialog.
Citing a criterion from memory. A wrong number or level sends the fixer to the wrong rule. Look it up.
Auditing only the default theme. Contrast and focus appearance fail in dark mode and in the error state, which a scan of the default misses.
Fixing instances. A mislabelled icon button repeated across a component library is one defect in one place.
Claiming conformance from a sample. A page audit supports a statement about that page.
References
references/wcag22-checklist.md: read at step 3 for the manual-pass procedure, and at step 4 for the criterion numbers, levels and thresholds, including what is new in WCAG 2.2.references/charts-and-graphics.md: read at step 3 when the sample contains a chart, diagram, icon or inline SVG, for text alternatives, SVG naming, colour, graphic contrast and chart motion.