testing-accessibility
3
总安装量
2
周安装量
#56447
全站排名
安装命令
npx skills add https://github.com/wojons/skills --skill testing-accessibility
Agent 安装分布
amp
2
cline
2
opencode
2
cursor
2
kimi-cli
2
codex
2
Skill 文档
Accessibility Testing
Test applications for accessibility compliance with WCAG guidelines to ensure usability for people with disabilities.
When to use me
Use this skill when:
- Developing public-facing applications
- Complying with legal requirements (ADA, Section 508)
- Ensuring inclusive design for all users
- Testing screen reader compatibility
- Validating keyboard navigation
- Checking color contrast and visual accessibility
- Testing with assistive technologies
What I do
- Test screen reader compatibility and semantic HTML
- Validate keyboard navigation and focus management
- Check color contrast ratios for visual accessibility
- Test form labels and input accessibility
- Verify proper heading structure and document outline
- Test alternative text for images and media
- Check ARIA attributes and roles
- Validate touch target sizes on mobile devices
- Test with actual assistive technologies
Examples
# Automated accessibility testing
npm run test:a11y # axe-core, pa11y
npx pa11y https://app.example.com
npx axe https://app.example.com --save results.json
# Lighthouse accessibility audits
npx lighthouse https://app.example.com --output json --only-categories=accessibility
# Color contrast checking
npx color-contrast-checker --url https://app.example.com
# Screen reader testing guidance
# Manual testing with NVDA, JAWS, VoiceOver, TalkBack
# HTML validation
npm run html-validator # HTML validation
python -m html5validator src/ # HTML5 validation
Output format
Accessibility Test Results:
ââââââââââââââââââââââââââââââ
WCAG 2.1 AA Compliance:
Critical Issues (4):
â Missing form labels (3 instances)
Impact: Screen reader users cannot identify form fields
Fix: Add <label> elements with for attributes
â Insufficient color contrast (12 elements)
Impact: Low vision users cannot read text
Fix: Increase contrast ratio to 4.5:1 minimum
â Missing alternative text for images (7 images)
Impact: Screen reader users miss image content
Fix: Add descriptive alt text
â Keyboard trap in modal dialog
Impact: Keyboard users cannot escape modal
Fix: Implement proper focus management
Moderate Issues (8):
â ï¸ Heading structure skips levels (h2 â h4)
â ï¸ ARIA attributes missing on dynamic content
â ï¸ Form error messages not associated with fields
Passed Checks (42):
â
Semantic HTML structure
â
Keyboard navigation works
â
Focus indicators visible
â
Language attribute set
Summary: 4 critical, 8 moderate issues found
Compliance: Partially compliant with WCAG 2.1 AA
Notes
- Automated tools catch ~30-40% of accessibility issues
- Manual testing with assistive technologies is essential
- Follow WCAG 2.1/2.2 guidelines (A, AA, AAA levels)
- Test with real users with disabilities when possible
- Consider cognitive and motor disabilities beyond visual
- Implement accessibility early in development cycle
- Train developers on accessible coding practices
- Create accessibility statement for your application