← ClaudeAtlas

axe-ruleslisted

Load this skill when configuring axe-core scans, reviewing automated accessibility test results, or writing tests that use @axe-core/playwright, @axe-core/react, or similar integrations. Provides a quick reference to axe 4.x rule IDs, their WCAG mapping, and default severity levels.
mgifford/accessibility-skills · ★ 15 · AI & Automation · score 77
Install: claude install-skill mgifford/accessibility-skills
# Axe-Core Rules Reference Skill > **Canonical source**: `examples/AXE_RULES_REFERENCE.md` in `mgifford/ACCESSIBILITY.md` > This skill is derived from that file. When in doubt, the example is authoritative. Apply these rules when writing, reviewing, or debugging axe-core scans. --- ## Core Principle Axe-core catches ~30–40 % of WCAG issues automatically. It is the baseline, not the ceiling. Always pair automated scanning with manual keyboard and screen reader testing. **Key tags to include in scans:** ```typescript .withTags(['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa']) ``` --- ## Severity Scale (axe-core) | axe severity | Meaning | |---|---| | **critical** | Blocks access for one or more disability groups | | **serious** | Significantly impairs access | | **moderate** | Creates friction; workaround exists | | **minor** | Best-practice gap; marginal impact | --- ## Critical Rules — must never appear in production | Rule ID | Category | Description | |---|---|---| | `image-alt` | Text alternatives | `<img>` missing `alt` attribute | | `input-image-alt` | Text alternatives | `<input type="image">` missing alt | | `video-caption` | Text alternatives | `<video>` without captions | | `aria-allowed-attr` | ARIA | Element has unsupported ARIA attributes for its role | | `aria-hidden-body` | ARIA | `aria-hidden` applied to `<body>` | | `aria-required-attr` | ARIA | Required ARIA attribute missing | | `aria-required-children` | ARIA | Required child ARIA roles missing |