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 skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View