Skill: accessibility pass on UI PRs

An a11y review skill that maps findings to real WCAG-style issues instead of vague “make it accessible” advice.

Published 2026-11-09 · Translation: VI

What to do first

Inventory before you rewrite

Inventory before you rewrite

  • Prefer semantic HTML before any ARIA. Real <button> beats div role="button" unless you own the full keyboard contract.
  • Every finding names the file/component, the user impact, and a minimal fix. No vibes-only advice.
  • Do not claim WCAG conformance certificates. Report issues and residual risk only.

“Make this PR accessible” without a skill produces two failure modes: spray aria-label on everything, or a paragraph of theory with no file path. This skill turns a UI diff into an inventory of interactive controls, then a severity-tagged findings list. Pair it with accessible microcopy when the main problem is wording, not structure.

Inventory interactive controls in the diff

Start from the PR, not from a WCAG checklist dump:

  1. List buttons, links, inputs, custom widgets, dialogs, menus, tabs, and live regions touched by the change.
  2. Mark each as new, changed, or out of scope with a reason.
  3. Note keyboard and screen-reader paths you will actually check.

Run the pass in a fixed order

Order matters so agents do not skip keyboard for color.

  1. Names and labels: every interactive control has an accessible name; errors are associated.
  2. Semantics: native elements first; ARIA only to fill a real gap.
  3. Focus: visible focus, logical order, dialog focus trap and restore.
  4. Keyboard: operable without a pointer; Escape/Enter match platform norms.
  5. Dynamic updates: status text and live regions announce what changed.
  6. Contrast: measure or mark unverified; never invent ratios.

Emit a report shaped like:

## Inventory
- [file] Control, new|changed|oos

## Findings
- SEV | file:line | issue | user impact | minimal fix

## Residual risk
- What was not tested (e.g. VoiceOver pass not run)

Anti-patterns for a11y PR review

Failure modes to catch early

Failure modes to catch early

  • Sprinkling role="button" on real <button>s.
  • Checking color contrast while ignoring keyboard traps in the new modal.
  • Declaring conformance levels without a full audit.
  • Rewriting the design system instead of filing findings.
  • Inventing contrast ratios instead of measuring or marking unverified.

Save it as a skill file

# Skill: a11y-pass
## When
- UI PRs touching forms, dialogs, nav, tables, custom controls
## Anti-triggers
- Pure copy polish with no structure change (use a11y-microcopy)
- Full org WCAG certification projects
## Inputs
- Diff or file list, design-system a11y primitives path
## Hard rules
1. Semantics before ARIA.
2. Findings need file + user impact + minimal fix.
3. No fake conformance claims; no invented contrast numbers.
4. Do not redesign the design system in the review.
## Steps

![Pass Flow](/images/articles/skill-for-accessibility-pass/en/02-pass-flow.jpg)

*Pass Flow*

1. Inventory interactive controls in scope.
2. Check names/labels/error association.
3. Check focus order, traps, visible focus.
4. Check keyboard operability and announcements.
5. Emit severity-tagged report + residual risk.
## Done when
- Inventory covered or explicitly oos.
- Report has findings or a clean "none in scope" with residual risk.

Test cases

  1. Icon-only button, no name. Pass: finding with file path and suggested name or aria-label / visible text.
  2. Modal without focus trap. Pass: major/blocker; must mention focus restore.
  3. Color token tweak with measured contrast. Pass: may be clean if keyboard/names untouched.
  4. Tempt: “add ARIA everywhere.” Pass: skill refuses blanket advice and asks for specific gaps.

You are done when every interactive control in the diff was considered, findings are actionable, and residual risk is named.

Share

X Facebook LinkedIn