Agent Skills
› plugin87/ux-ui-agent-skills
› a11y-audit
a11y-audit
GitHub依据 WCAG 2.2 和 ARIA 规范对 UI 进行无障碍审计,通过实测工具验证对比度、键盘导航及屏幕阅读器兼容性,输出包含严重等级与修复建议的 findings 表格。
Trigger Scenarios
用户要求进行无障碍检查
需要验证组件是否符合 POUR 原则
请求对比度或键盘/屏幕阅读器审查
Install
npx skills add plugin87/ux-ui-agent-skills --skill a11y-audit -g -y
SKILL.md
Frontmatter
{
"name": "a11y-audit",
"description": "Audit a UI or design against WCAG 2.2 AA\/AAA and ARIA patterns, returning criterion-referenced findings with severity and specific fixes. Use when the user wants an accessibility check, contrast verification, keyboard\/screen-reader review, or wants to confirm a component meets POUR."
}
Skill: Accessibility Audit
Evaluate against WCAG 2.2 and the project's ARIA patterns.
Steps
- Read
accessibility/wcag-checklist.md(POUR-organized, P0/P1/P2) andaccessibility/aria-patterns.md. - Check the mandatory P0 set per component: keyboard navigable, focus visible (≥3:1), screen-reader name/role/state, contrast (4.5:1 text / 3:1 UI), target size ≥24×24, no color-only signaling.
- Verify WCAG 2.2 additions: Focus Not Obscured (2.4.11), Target Size (2.5.8), Accessible Authentication (3.3.8).
- Contrast — measure, don't eyeball. For rendered HTML, RUN the real-render gates and report their actual output (CLAUDE.md → Verification Protocol):
node scripts/measure_render.mjs <file> [--dark](every text element) ANDnode scripts/verify_states.mjs <file> [--dark](every interactive element in default/hover/focus — catches hover-state failures). For loose color pairs,python3 scripts/contrast.py "<fg>" "<bg>". Never state a ratio you did not measure. - Check reduced-motion handling (
taste/motion-choreography.md).
Output
A findings table: WCAG criterion (e.g. 1.4.3) · severity (P0/P1/P2) · what fails · specific fix. Confirm passes explicitly. Accessibility may never be traded for aesthetics.
Version History
- 93a7fbb Current 2026-07-25 07:40


