跳到正文
Skillpedia
界面(UI/UX)41k · #6801

accessibility-compliance

它能做什么

这个工具可以帮助你打造所有人都能使用的网站和应用,包括残障人士。它能确保内容与屏幕阅读器、键盘导航以及其他辅助技术良好配合。

适用场景

  • ✓为残障人士开发无障碍网站时。
  • ✓测试网站能否与屏幕阅读器配合使用时。
  • ✓确保网站可以只用键盘完成浏览时。

技能链接

https://github.com/wshobson/agents/blob/main/plugins/ui-design/skills/accessibility-compliance/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/wshobson/agents/blob/main/plugins/ui-design/skills/accessibility-compliance/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Use Semantic HTML: Prefer native elements over ARIA when possible
  2. Test with Real Users: Include people with disabilities in user testing
  3. Keyboard First: Design interactions to work without a mouse
  4. Don't Disable Focus Styles: Style them, don't remove them
  5. Provide Text Alternatives: All non-text content needs descriptions
  6. Support Zoom: Content should work at 200% zoom
  7. Announce Changes: Use live regions for dynamic content
  8. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能