Skip to content
claude-a11y-audit logo

Accessibility Change Audit

claude-a11y-audit

Use when reviewing UI diffs, accessibility audits, or flaky UI tests to catch a11y regressions, semantic issues, keyboard/focus problems, and to recommend minimal fixes plus role-based test selectors.

SKILL.md

Full skill instructions

Accessibility Change Audit

Brief purpose: review UI changes for accessibility regressions and missing improvements, then propose minimal fixes tied to the diff.

Overview

This skill audits UI diffs for semantics, keyboard access, focus management, ARIA correctness, contrast, and testability. It is diff-first: only evaluate changed lines and their immediate context.

Prerequisites

  • A diff, PR, or change list that includes relevant UI files.
  • Optional: a screenshot or description of the changed UI state.

Instructions

Step 1: Scope the audit to the diff

Identify changed UI elements, interactions, and styles. Ignore unrelated files.

Step 2: Run the diff-first checklist

Focus on changes that alter semantics, interaction, or visual affordances.

Step 3: Produce findings and minimal fixes

Tie each issue to a specific change and propose the smallest reasonable fix.

Step 4: Improve test reliability

Recommend role- and name-based queries for tests instead of data or class selectors.

Audit Checklist (Diff-First)

Semantics and structure

  • Headings follow order and are not skipped.
  • Interactive elements are buttons/​links, not divs/​spans.
  • Landmarks are present for new regions (main, nav, header, footer, aside).
  • Lists and tables use correct elements (ul/​ol/​li, th/​thead/​tbody).

Labels and names

  • Inputs have labels or aria-label/​aria-labelledby.
  • Icon-only controls have accessible names.
  • Helper text ties to inputs via aria-describedby.

Keyboard and focus

  • All interactive elements are keyboard reachable and operable.
  • Focus order follows DOM order (avoid tabIndex > 0).
  • Dialogs/​menus trap focus and return focus to trigger.

ARIA correctness

  • ARIA only when native semantics are insufficient.
  • aria-expanded/​controls/​pressed reflect actual state.
  • role is correct and not redundant.

Visual and motion

  • Text and focus indicators meet contrast requirements.
  • Color is not the only indicator.
  • Motion respects reduced-motion preferences.

Media and imagery

  • Images have meaningful alt or empty alt for decorative.
  • Media controls are accessible and labeled.

Testing reliability

  • New elements can be found by role and accessible name.
  • Interaction tests use user flows and semantic queries.

Minimal Fix Patterns

  1. Icon-only button
  • Add visible text or aria-label.
  1. Clickable non-button
  • Convert to <button> or add role="button", tabIndex=0, and Enter/​Space handling.
  1. Form label
  • Add <label htmlFor> or aria-labelledby and connect helper text with aria-describedby.
  1. Disclosure
  • Toggle uses aria-expanded and aria-controls; update on state change.
  1. Dialog
  • Use role="dialog", aria-modal, label by heading, and return focus on close.

Output Format

Findings (ordered by severity):

  • [severity] path:line - problem and impact Fix: minimal change suggestion

Tests:

  • Recommend updates that use role/​name queries and user-driven events.

UX/​Speed Note:

  • Call out any change that impacts perceived speed (layout shifts, heavy DOM, over-rendering).

Severity scale: blocker, high, medium, low.

Example Review Output

Findings:

  • high packages/​web/​src/​views/​Example.tsx:42 - Clickable div lacks keyboard support; keyboard users cannot activate it. Fix: convert to <button type="button"> or add role, tabIndex, and Enter/​Space handlers.
  • medium packages/​web/​src/​views/​Example.tsx:60 - Icon-only control has no accessible name. Fix: add aria-label="Add event".

Tests:

  • Add a role-based query: getByRole("button", { name: /​add event/​i }).

UX/​Speed Note:

  • No layout shift detected; DOM complexity unchanged.

More Design skills

brandkit logo
Design

brandkit

Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.

92.7K 345.8K
View

Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.

92.7K 341.7K
View

Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.

92.7K 337.8K
View

Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.

92.7K 331.8K
View

Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.

43.5K 323.4K
View

Frontend design and iteration for production-grade interfaces, from concept to ship.

76.8K 313.3K
View

Reverse-engineer design tokens from public websites into starter token files for your project.

232 129.9K
View
Animate logo
Design

Animate

Builds an animation from scratch by making the decisions in the order that determines whether it feels right.

43.5K 117.9K
View

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

179.7K 114.2K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

Design AI tools

Maze Guru logo
Images

Maze Guru

Chat-to-edit AI studio for product photos, portraits, branding, and video.

Freemium
View
R
Design

RoomGPT

Generate your dream room in seconds.

Paid
View

Redesign your interior in seconds using AI

Paid
View
Reroom logo
Design

Reroom

Transform rooms with AI-generated designs.

Freemium
View
Jife logo
Design

Jife

Transform Your Space with AI-Powered Japanese Interior Designs by Jife

Paid
View
Visily logo
Design

Visily

AI-powered wireframes for non-designers.

Free
View

Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours

Paid
View
Archsynth logo
Design

Archsynth

Transform sketches into stunning architectural renders with AI.

Paid
View