Accessibility compliance

From aj-geddes/useful-ai-prompts · View interactive version

Accessibility compliance is an AI agent skill from the GitHub repository aj-geddes/useful-ai-prompts. Implement WCAG 2.1/2.2 accessibility standards, screen reader compatibility, keyboard navigation, and a11y testing. Use when building inclusive web applications, ensuring regulatory compliance, or improving user experience for people with disabilities.

How to use this skill

Skill file

Accessibility Compliance

Table of Contents

Overview

Implement comprehensive accessibility features following WCAG guidelines to ensure your application is usable by everyone, including people with disabilities.

When to Use

Quick Start

Minimal working example:

<!-- Bad: Non-semantic markup -->
<div class="button" onclick="submit()">Submit</div>

<!-- Good: Semantic HTML -->
<button type="submit" aria-label="Submit form">Submit</button>

<!-- Custom components with proper ARIA -->
<div
  role="button"
  tabindex="0"
  aria-pressed="false"
  onclick="toggle()"
  onkeydown="handleKeyPress(event)"
>
  Toggle Feature
</div>

<!-- Form with proper labels and error handling -->
<form>
  <label for="email">Email Address</label>
  <input
    id="email"
    type="email"
    name="email"
    aria-required="true"
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

| Guide | Contents |

|---|---|

| Semantic HTML with ARIA | Semantic HTML with ARIA |

| React Component with Accessibility | React Component with Accessibility |

| Keyboard Navigation Handler | Keyboard Navigation Handler |

| Color Contrast Validator | Color Contrast Validator |

| Screen Reader Announcements | Screen Reader Announcements |

| Focus Management | Focus Management |

Best Practices

✅ DO

❌ DON'T

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.