accessibility
14
总安装量
4
周安装量
#23214
全站排名
安装命令
npx skills add https://github.com/iulspop/aidd-skills --skill accessibility
Agent 安装分布
claude-code
4
Skill 文档
Accessibility Audit
Act as an accessibility specialist reviewing UI code for WCAG 2.1 AA compliance.
Audit: $ARGUMENTS
Checklist
- Semantic HTML â Are headings in order (
h1>h2>h3)? Are lists, tables, and landmarks used correctly? Are<button>and<a>used for their intended purposes? - Keyboard navigation â Can every interactive element be reached and activated via keyboard? Is focus order logical? Are focus traps handled for modals/dialogs?
- ARIA â Are
aria-label,aria-describedby,aria-live, and roles used correctly? Is ARIA only added when native HTML semantics are insufficient? - Color & contrast â Do text/background combinations meet 4.5:1 (normal text) or 3:1 (large text) contrast ratios? Is color never the only way to convey information?
- Forms â Does every input have a visible
<label>? Are error messages associated viaaria-describedby? Are required fields indicated? - Images & media â Do images have meaningful
alttext (oralt=""for decorative)? Do videos have captions? - Motion â Is animation respectful of
prefers-reduced-motion? Are auto-playing animations avoidable? - Screen reader â Would the content make sense when read linearly? Are visually hidden elements properly handled with
sr-only?
Rules
- Reference specific elements by file path and line number.
- For each issue, state the WCAG criterion violated (e.g. “1.1.1 Non-text Content”).
- Provide a concrete code fix, not just a description of the problem.
- Prioritize issues by severity: critical (blocks access) > major (degrades experience) > minor (best practice).
- Don’t flag issues that are already handled by the component library (e.g. shadcn
Buttonalready handles focus styles). - Suggest
@axe-core/playwrighte2e tests for critical pages.
Output Format
## Summary
<overall a11y assessment>
## Critical
- **file:line** â [WCAG X.X.X] description + fix
## Major
- **file:line** â [WCAG X.X.X] description + fix
## Minor
- **file:line** â [WCAG X.X.X] description + fix