Accessibility

From vinnie357/claude-skills · View interactive version

Accessibility is an AI agent skill from the GitHub repository vinnie357/claude-skills. Guide for implementing web accessibility (WCAG). Use when designing UI components, reviewing interfaces for accessibility, or ensuring compliance with W3C WAI standards.

How to use this skill

Skill file

Web Accessibility

Apply W3C Web Accessibility Initiative (WAI) principles when working on web interfaces to ensure usability for people with disabilities.

Anti-fabrication

This skill follows core:anti-fabrication. The claim area is the WCAG version cited and

the ARIA Authoring Practices Guide (APG) pattern attributions. Verified against W3C's

live WCAG22 quickref and the APG patterns index (claude-skills-223): the WCAG citation

was bumped from 2.1 to 2.2 (2.2 became a Recommendation 2023-10-05, and per its own text

"content that conforms to WCAG 2.2 also conforms to WCAG 2.0 and WCAG 2.1" — compatibility

runs 2.2-to-2.1, not the reverse this skill previously implied); and "skip links" was

corrected from an APG pattern to what it actually is, a WCAG bypass-blocks technique — the

APG index lists 30 named patterns and skip links is not one of them. Re-verify against

w3.org/TR/WCAG22/ before citing a WCAG version or success-criterion number this skill

doesn't cover.

Core Principles (POUR)

Web accessibility is organized around four foundational principles:

1. Perceivable

Information must be presentable to users in ways they can perceive.

Key requirements:

Quick example:

<img src="chart.png" alt="Sales increased 40% in Q4 2024">
<button aria-label="Close dialog">
  <span class="icon-close" aria-hidden="true"></span>
</button>

2. Operable

User interface components must be operable by all users.

Key requirements:

Quick example:

<button>Click me</button>  <!-- Already keyboard accessible -->

<!-- Custom interactive element needs keyboard support -->
<div role="button" tabindex="0"
     onclick="handleClick()"
     onkeydown="handleKeyDown(event)">
  Custom Button
</div>

3. Understandable

Information and UI operation must be understandable.

Key requirements:

Quick example:

<html lang="en">
<label for="email">Email address</label>
<input type="email" id="email"
       aria-describedby="email-help"
       required>
<div id="email-help">We'll never share your email</div>

<!-- vale Flavored.Superlatives = NO -->

4. Robust

<!-- vale Flavored.Superlatives = YES -->

Content must work reliably across user agents and assistive technologies.

Key requirements:

Quick example:

<!-- Use semantic HTML first -->
<nav aria-label="Main navigation">
  <ul>
    <li><a href="/">Home</a></li>
  </ul>
</nav>

<!-- ARIA for custom components when needed -->
<div role="dialog" aria-labelledby="title" aria-modal="true">
  <h2 id="title">Dialog Title</h2>
</div>

Common Tasks

Making Forms Accessible

Implementing ARIA

Testing for Accessibility

Quick Reference Checklist

Every page should have:

For interactive components:

Key Principles

Resources

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.