| name | accessibility-check |
| description | Evaluate accessibility and WCAG compliance of UI components and pages. Use when the user asks to "check accessibility", "audit a11y", "WCAG review", "screen reader test", or needs to verify inclusive design practices. |
Accessibility Check Skill
Evaluate UI accessibility against WCAG 2.1 guidelines to ensure inclusive design for all users.
When to Use
- Before releasing new features
- Auditing existing interfaces
- Reviewing component libraries
- Ensuring legal compliance
- Improving user inclusivity
WCAG 2.1 Checklist
Level A (Minimum)
Perceivable
Operable
Understandable
Robust
Level AA (Standard Target)
Perceivable
Operable
Understandable
Testing Methods
1. Automated Testing
npx playwright test --grep accessibility
npx pa11y http://localhost:5176
2. Manual Keyboard Testing
- Tab through entire page
- Verify focus visibility
- Test Enter/Space activation
- Check Escape closes modals
- Verify arrow key navigation in menus
3. Screen Reader Testing
- Test with VoiceOver (Mac)
- Test with NVDA (Windows)
- Verify announcements make sense
- Check form label associations
4. Visual Testing
- Check color contrast ratios
- Test at 200% zoom
- Verify without color
- Check reduced motion
Output Format
## Accessibility Audit: [Component/Page]
### Compliance Summary
- **Target Level**: WCAG 2.1 AA
- **Current Status**: [Pass / Partial / Fail]
- **Critical Issues**: [count]
- **Warnings**: [count]
### Issues Found
#### Critical (Must Fix)
| Criterion | Issue | Location | Fix |
|-----------|-------|----------|-----|
| 1.4.3 | Low contrast | Button text | Increase to 4.5:1 |
#### Warnings (Should Fix)
| Criterion | Issue | Location | Fix |
|-----------|-------|----------|-----|
### Passing Criteria
- [List of criteria that pass]
### Testing Notes
- Keyboard: [Pass/Fail + notes]
- Screen Reader: [Pass/Fail + notes]
- Color Contrast: [Pass/Fail + notes]
### Recommendations
1. [Priority fix with code example]
Common Fixes
Missing Alt Text
<img src="logo.png" />
<img src="logo.png" alt="LogiDocs Certify logo" />
Missing Form Labels
<input type="email" placeholder="Email" />
<label htmlFor="email">Email</label>
<input id="email" type="email" />
Low Contrast Fix
.button { color: #999; background: #fff; }
.button { color: #595959; background: #fff; }
Focus Indicator
:focus {
outline: 2px solid #16a34a;
outline-offset: 2px;
}
Integration
Works best with:
ux-expert agent for accessibility context
ux-audit skill for broader evaluation
- Playwright for automated testing