accessibility-compliance
它能做什么
这个工具可以帮助你打造所有人都能使用的网站和应用,包括残障人士。它能确保内容与屏幕阅读器、键盘导航以及其他辅助技术良好配合。
适用场景
- ✓为残障人士开发无障碍网站时。
- ✓测试网站能否与屏幕阅读器配合使用时。
- ✓确保网站可以只用键盘完成浏览时。
技能链接
https://github.com/wshobson/agents/blob/main/plugins/ui-design/skills/accessibility-compliance/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我希望这个网站对视障用户也是无障碍的。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会使用语义化 HTML 这类规范写法,并遵循 WCAG 标准,确保屏幕阅读器等技术能够理解并导航页面内容。它还会检查网站能否用键盘顺畅操作,并支持高对比度等偏好设置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Accessibility Compliance
Master accessibility implementation to create inclusive experiences that work for everyone, including users with disabilities.
When to Use This Skill
- Implementing WCAG 2.2 Level AA or AAA compliance
- Building screen reader accessible interfaces
- Adding keyboard navigation to interactive components
- Implementing focus management and focus trapping
- Creating accessible forms with proper labeling
- Supporting reduced motion and high contrast preferences
- Building mobile accessibility features (iOS VoiceOver, Android TalkBack)
- Conducting accessibility audits and fixing violations
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Best Practices
- Use Semantic HTML: Prefer native elements over ARIA when possible
- Test with Real Users: Include people with disabilities in user testing
- Keyboard First: Design interactions to work without a mouse
- Don't Disable Focus Styles: Style them, don't remove them
- Provide Text Alternatives: All non-text content needs descriptions
- Support Zoom: Content should work at 200% zoom
- Announce Changes: Use live regions for dynamic content
- Respect Preferences: Honor prefers-reduced-motion and prefers-contrast
Common Issues
- Missing alt text: Images without descriptions
- Poor color contrast: Text hard to read against background
- Keyboard traps: Focus stuck in component
- Missing labels: Form inputs without associated labels
- Auto-playing media: Content that plays without user initiation
- Inaccessible custom controls: Recreating native functionality poorly
- Missing skip links: No way to bypass repetitive content
- Focus order issues: Tab order doesn't match visual order
Testing Tools
- Automated: axe DevTools, WAVE, Lighthouse
- Manual: VoiceOver (macOS/iOS), NVDA/JAWS (Windows), TalkBack (Android)
- Simulators: NoCoffee (vision), Silktide (various disabilities)
常见问题
什么是屏幕阅读器?
屏幕阅读器是一类能把网站或应用内容朗读出来的程序,可以帮助视障人士了解屏幕上的内容。
什么是 WCAG?
WCAG 是一套国际通用的指南,用于让网页对所有人都更易访问。
为什么要使用语义化 HTML?
语义化 HTML 会为每类内容使用合适的标签(标题、段落、按钮等),这有助于屏幕阅读器等设备理解页面结构以及每个部分的用途。
详情
作者的原始描述
Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.
repo: wshobson/agents
热度
- GitHub 星标
- 41k
- 排名
- #6801
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …