leahycc/claude-skills/wcag-accessibility
Claude Code and agent skill by leahycc/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
WCAG 2.2 Level AA for web UI. Use when the task is accessibility, contrast, ARIA, keyboard access, focus, screen readers, alt text, or an accessibility audit. Do not use for styling, performance, or copy that is not an accessibility fix.
Install
npx vskill@latest install leahycc/claude-skills/wcag-accessibilitySKILL.md
The same SKILL.md was published earlier as leahycc/claude-skills/wcag-accessibility.
WCAG 2.2 AA Accessibility
Accessibility guidance for web applications targeting WCAG 2.2 Level AA.
Quick Reference
| Need to... | See | |
|---|---|---|
| Fix color contrast failures | Color Contrast | |
| Add keyboard support to custom components | Keyboard Navigation | |
| Choose correct ARIA roles and landmarks | Semantic HTML | |
| Build accessible forms with validation | Forms and Inputs | |
| Write good alt text, handle media | Images and Media | |
| Handle animations and motion safely | Motion and Animation | |
| Set up page lang, titles, reflow, zoom | Page Structure | |
| Fix links, nav consistency, predictability | Links and Navigation | |
| Support drag alternatives, touch targets | Pointer and Touch | |
| Handle timeouts, auth, CAPTCHAs | Timing and Authentication | |
| Set up automated a11y testing | Testing and Auditing |
Decision Matrix
Text contrast (WCAG 1.4.3, 1.4.11)
Large text is a point size. 18pt is 24px. Bold 14pt is about 18.5px. Regular text at 18px is still normal text and needs 4.5:1.
| Text | AA | AAA | |
|---|---|---|---|
| Normal text (under 18pt / 24px, or bold under 14pt / 18.5px) | 4.5:1 | 7:1 | |
| Large text (18pt / 24px and up, or bold 14pt / 18.5px and up) | 3:1 | 4.5:1 | |
| UI components and graphics (1.4.11) | 3:1 | none | |
| Disabled controls, decorative graphics, logos | none | none |
If someone has to read placeholder text, it needs the same ratio as normal text. Do not treat an opacity modifier as a passing color until the pair is measured. Token floors, Tailwind failures, and dark mode are in Color Contrast.
Interactive Element Requirements
| Element | Keyboard | Focus Ring | ARIA | Contrast | |
|---|---|---|---|---|---|
| Button | Enter/Space | Required | button role | 4.5:1 text, 3:1 boundary | |
| Link | Enter | Required | <a> or link role | 4.5:1 + distinguishable | |
| Action menu | Arrow keys | Required | menu, menuitem. Site nav uses links, not menu | 4.5:1 | |
| Tab | Arrow keys | Required | tablist, tab, tabpanel | 4.5:1 | |
| Modal / Dialog | Trap focus | Required | dialog, aria-modal | 4.5:1 | |
| Toggle / Switch | Space | Required | switch or checkbox | 3:1 boundary | |
| Accordion | Enter/Space | Required | region, button | 4.5:1 | |
| Form input | Tab | Required | <label> + error | 3:1 boundary | |
| Custom widget | Follows WAI-ARIA pattern | Required | Match closest pattern | All ratios |
Screen Reader Essentials
Core Principles
- Perceivable — Content must be presentable in ways all users can perceive (contrast, alt text, captions)
- Operable — UI must be operable via keyboard, with enough time, no seizure triggers
- Understandable — Content and UI behavior must be understandable (labels, errors, consistent navigation)
- Robust — Content must be interpreted reliably by assistive technologies (semantic HTML, valid ARIA)
Hover/Focus Content (WCAG 1.4.13)
Tooltips, popovers, and any content triggered by hover or focus must be:
Status Messages (WCAG 4.1.3)
Dynamic status updates must be announced to screen readers without receiving focus:
| Situation | Role | aria-live | When | |
|---|---|---|---|---|
| Success message | status | polite | After form submit | |
| Error message | alert | assertive | On validation/server error | |
| Search results count | status | polite | After search completes | |
| Loading indicator | status | polite | When async operation starts | |
| Toast notification | status | polite | On transient messages | |
| Chat message received | log | polite | New messages in feed |
WCAG 2.2 Complete Success Criteria Coverage
All 55 Level A and AA success criteria are covered across the skill resources:
Principle 1: Perceivable (20 criteria)
| # | Name | Level | Resource | |
|---|---|---|---|---|
| 1.1.1 | Non-text Content | A | images-and-media | |
| 1.2.1 | Audio-only/Video-only | A | images-and-media | |
| 1.2.2 | Captions (Prerecorded) | A | images-and-media | |
| 1.2.3 | Audio Description or Alternative | A | images-and-media | |
| 1.2.4 | Captions (Live) | AA | images-and-media | |
| 1.2.5 | Audio Description (Prerecorded) | AA | images-and-media | |
| 1.3.1 | Info and Relationships | A | semantic-html | |
| 1.3.2 | Meaningful Sequence | A | page-structure | |
| 1.3.3 | Sensory Characteristics | A | page-structure | |
| 1.3.4 | Orientation | AA | page-structure | |
| 1.3.5 | Identify Input Purpose | AA | forms-and-inputs | |
| 1.4.1 | Use of Color | A | links-and-navigation | |
| 1.4.2 | Audio Control | A | timing-and-authentication | |
| 1.4.3 | Contrast (Minimum) | AA | color-contrast | |
| 1.4.4 | Resize Text | AA | page-structure | |
| 1.4.5 | Images of Text | AA | images-and-media | |
| 1.4.10 | Reflow | AA | page-structure | |
| 1.4.11 | Non-text Contrast | AA | color-contrast | |
| 1.4.12 | Text Spacing | AA | page-structure | |
| 1.4.13 | Content on Hover or Focus | AA | SKILL.md (above) |
Principle 2: Operable (20 criteria)
| # | Name | Level | Resource | |
|---|---|---|---|---|
| 2.1.1 | Keyboard | A | keyboard-navigation | |
| 2.1.2 | No Keyboard Trap | A | keyboard-navigation | |
| 2.1.4 | Character Key Shortcuts | A | timing-and-authentication | |
| 2.2.1 | Timing Adjustable | A | timing-and-authentication | |
| 2.2.2 | Pause, Stop, Hide | A | motion-and-animation | |
| 2.3.1 | Three Flashes | A | motion-and-animation | |
| 2.4.1 | Bypass Blocks | A | keyboard-navigation | |
| 2.4.2 | Page Titled | A | page-structure | |
| 2.4.3 | Focus Order | A | keyboard-navigation | |
| 2.4.4 | Link Purpose (In Context) | A | links-and-navigation | |
| 2.4.5 | Multiple Ways | AA | links-and-navigation | |
| 2.4.6 | Headings and Labels | AA | semantic-html | |
| 2.4.7 | Focus Visible | AA | keyboard-navigation | |
| 2.4.11 | Focus Not Obscured | AA | keyboard-navigation [NEW 2.2] | |
| 2.5.1 | Pointer Gestures | A | pointer-and-touch | |
| 2.5.2 | Pointer Cancellation | A | pointer-and-touch | |
| 2.5.3 | Label in Name | A | links-and-navigation | |
| 2.5.4 | Motion Actuation | A | pointer-and-touch | |
| 2.5.7 | Dragging Movements | AA | pointer-and-touch [NEW 2.2] | |
| 2.5.8 | Target Size (Minimum) | AA | pointer-and-touch [NEW 2.2] |
Principle 3: Understandable (13 criteria)
| # | Name | Level | Resource | |
|---|---|---|---|---|
| 3.1.1 | Language of Page | A | page-structure | |
| 3.1.2 | Language of Parts | AA | page-structure | |
| 3.2.1 | On Focus | A | links-and-navigation | |
| 3.2.2 | On Input | A | links-and-navigation | |
| 3.2.3 | Consistent Navigation | AA | links-and-navigation | |
| 3.2.4 | Consistent Identification | AA | links-and-navigation | |
| 3.2.6 | Consistent Help | A | links-and-navigation [NEW 2.2] | |
| 3.3.1 | Error Identification | A | forms-and-inputs | |
| 3.3.2 | Labels or Instructions | A | forms-and-inputs | |
| 3.3.3 | Error Suggestion | AA | forms-and-inputs | |
| 3.3.4 | Error Prevention | AA | timing-and-authentication | |
| 3.3.7 | Redundant Entry | A | timing-and-authentication [NEW 2.2] | |
| 3.3.8 | Accessible Authentication | AA | timing-and-authentication [NEW 2.2] |
Principle 4: Robust (2 criteria)
| # | Name | Level | Resource | |
|---|---|---|---|---|
| 4.1.2 | Name, Role, Value | A | semantic-html | |
| 4.1.3 | Status Messages | AA | SKILL.md (above) |
Note: 4.1.1 Parsing was removed in WCAG 2.2 and is no longer required.
When Reviewing Code
Run this checklist on every component:
- [ ] Color contrast meets 4.5:1 for text, 3:1 for UI components
- [ ] No information conveyed by color alone (use icons, patterns, or text too)
- [ ] All interactive elements reachable and operable by keyboard
- [ ] Focus order is logical and visible
- [ ] Images have meaningful
alttext (oralt=""+aria-hiddenif decorative) - [ ] Form inputs have associated
<label>elements - [ ] Error messages are programmatically associated with inputs (
aria-describedby) - [ ] Dynamic content updates announced via
aria-liveregions - [ ] No content flashes more than 3 times per second
- [ ] Text resizes to 200% without loss of content or functionality (1.4.4)
- [ ] Content reflows at 320 CSS pixels wide without two-dimensional scrolling, except where the layout needs two dimensions (1.4.10)
- [ ] Touch targets are at least 24x24 CSS pixels (44x44 preferred)
- [ ] Drag operations have single-pointer alternatives
- [ ] Tooltips/popovers are dismissible, hoverable, and persistent
- [ ]
<html lang>is set correctly - [ ] Page has unique, descriptive
<title> - [ ] DOM order matches visual reading order
- [ ] Links have descriptive text (no "click here")
- [ ] Navigation is consistent across pages
- [ ] Paste is not blocked on password/code fields
- [ ]
prefers-reduced-motionis respected for all animations
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/wcag-accessibility/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leahycc/claude-skills/wcag-accessibility)