Skip to content

Development & Engineering

Accessibility Engineering

Free

Fix semantics, names, focus, and keyboard paths on the UI you are already editing.

Difficulty intermediate
Version v1.1

Purpose

Turn accessibility into concrete checks instead of a banner that says the page is accessible.

Procedure

--- name: a11y-engineering description: Fix semantics, names, focus, and keyboard paths on the UI you are already editing. ---

Accessibility Engineering

Purpose

Turn accessibility into concrete checks instead of a banner that says the page is accessible.

Procedure

Check the controls you added or changed. Do not boil the ocean.

Name: every button and link has an accessible name. Icon-only controls include visually hidden text or aria-label. aria-label matches what sighted users infer.

Role: use native elements first. Add ARIA only when the native element cannot express the widget. Do not put role="button" on a div that could be a button.

Focus:

  • Visible focus (not only a color change that fails on the surface).
  • Opening a panel moves focus inside or to the panel, and closing returns it.
  • Nothing that is off-screen remains tabbable. Hidden panels use the hidden attribute or inert, not only opacity.

Keyboard: the primary path works without a pointer. Escape closes transient UI. Arrow keys are for widgets that need them (menus, tabs), not for ordinary pages.

Announce: loading and errors are text, not only color or a spinner.

Do not add an accessibility overlay or a "compliance" badge.

Example requests

1. Dialog keyboard path

Request: Run Accessibility Engineering on the mobile navigation panel. Expected: A button with a name, focus moved sensibly, Escape closes, background not interactive.

Dependencies

None. Work in the repository that is already open. Do not add packages unless the procedure names one.

Compatibility

This document follows the Agent Skills layout (a folder named a11y-engineering containing SKILL.md). Claude Code, Cursor, Codex, and Gemini CLI can load that file from the paths in the Skilling installation guide. GitHub Copilot does not load SKILL.md. Use the Copilot instructions copy, and narrow applyTo before you commit it.

Example prompts

Dialog keyboard path

Run Accessibility Engineering on the mobile navigation panel.

Expected: A button with a name, focus moved sensibly, Escape closes, background not interactive.

Choose the agent

This skill is installed for one agent at a time. Pick the section you are using.

Related

  • Contrast Pairs

    Pick text and background pairs that meet WCAG AA, and never encode meaning with color alone.

  • Form States

    Build forms with labels, inline errors, pending submits, and no silent failure.

  • Reduced Motion

    Audit animations and provide an equivalent instant state when the user asks for less motion.

Reviews

No reviews yet.

    Sign in to review.

    Report a problem

    Inaccurate steps, an unsafe instruction, or a licensing concern.

    Sign in to report.