wcag-audit-patterns
它能做什么
这个工具用来检查网站或应用是否对所有人都可以访问,包括残障人士。它会检查常见问题,并给出修复建议。
适用场景
- ✓开发新网站或新应用时。
- ✓检查现有网站是否具备无障碍访问能力时。
- ✓修复无障碍访问问题时。
技能链接
https://github.com/wshobson/agents/blob/main/plugins/accessibility-compliance/skills/wcag-audit-patterns/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“审计这个网站的无障碍访问情况,并告诉我如何修复发现的问题。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会结合自动化测试和人工测试,找出无障碍访问问题。它会将网站与无障碍规范进行对照,并给出需要的修复方案。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
WCAG Audit Patterns
Comprehensive guide to auditing web content against WCAG 2.2 guidelines with actionable remediation strategies.
When to Use This Skill
- Conducting accessibility audits
- Fixing WCAG violations
- Implementing accessible components
- Preparing for accessibility lawsuits
- Meeting ADA/Section 508 requirements
- Achieving VPAT compliance
Core Concepts
1. WCAG Conformance Levels
| Level | Description | Required For |
|---|---|---|
| A | Minimum accessibility | Legal baseline |
| AA | Standard conformance | Most regulations |
| AAA | Enhanced accessibility | Specialized needs |
2. POUR Principles
Perceivable: Can users perceive the content?
Operable: Can users operate the interface?
Understandable: Can users understand the content?
Robust: Does it work with assistive tech?
3. Common Violations by Impact
Critical (Blockers):
├── Missing alt text for functional images
├── No keyboard access to interactive elements
├── Missing form labels
└── Auto-playing media without controls
Serious:
├── Insufficient color contrast
├── Missing skip links
├── Inaccessible custom widgets
└── Missing page titles
Moderate:
├── Missing language attribute
├── Unclear link text
├── Missing landmarks
└── Improper heading hierarchy
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
Do's
- Start early - Accessibility from design phase
- Test with real users - Disabled users provide best feedback
- Automate what you can - 30-50% issues detectable
- Use semantic HTML - Reduces ARIA needs
- Document patterns - Build accessible component library
Don'ts
- Don't rely only on automated testing - Manual testing required
- Don't use ARIA as first solution - Native HTML first
- Don't hide focus outlines - Keyboard users need them
- Don't disable zoom - Users need to resize
- Don't use color alone - Multiple indicators needed
常见问题
什么是 WCAG 指南?
WCAG 是国际通行的指南,用于让网页内容对残障人士更易访问。
为什么无障碍访问很重要?
它能确保每个人,无论其能力如何,都可以使用互联网并获取信息。
只依赖自动化测试可以吗?
不可以。自动化测试只能发现部分问题,人工测试以及与真实用户一起测试同样必不可少。
详情
作者的原始描述
Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.
repo: wshobson/agents
热度
- GitHub 星标
- 41k
- 排名
- #6626
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …