A11y

From ariadoss/superskills · View interactive version

A11y is an AI agent skill from the GitHub repository ariadoss/superskills. Accessibility audit for frontend changes — WCAG 2.2 AA, screen-reader compatibility, keyboard navigation, focus management, ARIA correctness, color contrast, and reduced-motion. Static diff-scoped analysis (safe to auto-run) plus an optional dynamic axe pass against a running app. Use when asked to

How to use this skill

Skill file

/a11y

Audit frontend changes for accessibility. Two layers:

HTML/CSS and flag accessibility defects from the markup itself — no browser, no

external tools.

axe-core / Chrome DevTools MCP pass for computed contrast, focus order, and the

screen-reader accessibility tree — things you can't see from source alone.

Hard rules

success criterion (e.g. 1.1.1, 2.4.3, 4.1.2), and the concrete user impact

("screen-reader users hear an unlabeled button", "keyboard users can't reach X").

keyboard user can operate is CRITICAL; a missing lang attribute is LOW.

over ARIA bolted onto a <div>. The first rule of ARIA: don't use ARIA if a

native element does the job.

When this is worth running (the trigger)

Run on heavy frontend changes likely to affect assistive tech, not every style

tweak. Trigger when the diff includes any of:

tooltips, accordions, comboboxes, drag-drop)

modal open/close)

A pure copy/spacing CSS change with none of the above does not need /a11y.

What to check (WCAG 2.2 AA, screen-reader first)

  1. Semantics & landmarks — real <button>/<a>/<nav>/<main>; one <h1>,

no skipped heading levels; lists are lists. (1.3.1, 2.4.1)

  1. Name, role, value — every control has an accessible name (visible <label>,

aria-label, or text); custom widgets expose correct role + state. Flag

<div onClick> with no role/tabindex/keyboard handler. (4.1.2)

  1. Images & icons — informative images have meaningful alt; decorative ones

have alt=""/aria-hidden; icon-only buttons have an accessible name. (1.1.1)

  1. Forms — every input has an associated <label for>/aria-labelledby; errors

are programmatically tied (aria-describedby) and announced; autocomplete

where relevant. (1.3.1, 3.3.1, 3.3.2)

  1. Keyboard — all interactive elements reachable and operable by keyboard;

visible focus indicator; logical focus order; no keyboard traps; skip link for

repeated nav. (2.1.1, 2.4.3, 2.4.7, 2.1.2)

  1. Focus management — on modal/dialog open, focus moves in and is trapped; on

close, focus returns to the trigger; on SPA route change, focus/announce the new

view. (2.4.3)

  1. Screen-reader announcements — dynamic updates use aria-live/role=status;

visually-hidden text (sr-only) where context is visual-only;

aria-hidden never on focusable content. (4.1.3)

  1. Color & contrast — text ≥ 4.5:1 (≥ 3:1 large), UI/graphics ≥ 3:1; never

convey meaning by color alone (pair with icon/text). (1.4.3, 1.4.11, 1.4.1)

  1. Motion & reduced motion — honor prefers-reduced-motion; no autoplay > 5s

without controls; nothing flashes > 3×/sec. (2.3.1, 2.2.2)

  1. Reflow & zoom — usable at 200% zoom / 320px without loss of content; no

user-scalable=no; touch targets ≥ 24×24px. (1.4.10, 1.4.4, 2.5.8)

Steps

  1. Scope — resolve the changed frontend files (or $ARGUMENTS globs). If none

match the trigger, say so and stop.

  1. Static pass — Grep/Read the changed files for the defect signatures in each

dimension above. Record findings with file:line + WCAG criterion + impact.

  1. Dynamic pass (if a dev URL is given or in CLAUDE.md/package.json) — load

the affected routes and run axe-core via the chrome-devtools MCP (or a project

axe runner). Report computed contrast failures, focus-order issues, and

accessibility-tree gaps the static pass can't see. If no URL is reachable, record

dynamic pass SKIPPED (no dev server) — don't silently drop it.

  1. Report — group by severity; give the smallest fix per finding (prefer native

semantics). Draft the corrected markup as a code block; do not apply it.

Report format

# Accessibility audit — <scope> @ <date>

## CRITICAL (blocks assistive-tech users)
- <file:line> — <element> — WCAG <criterion> — <impact> — <fix>

## SERIOUS / MODERATE / MINOR
- …

## Dynamic pass
- axe: N violations (or: SKIPPED — no dev server)

Anti-patterns (do not do)

Related commands

layer. Run them together on UI changes.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.