/hypr:a11y-audit
Analyze your code against WCAG 2.1 success criteria and receive a conformance level rating (A, AA, or AAA).
Usage
/hypr:a11y-audit src/components/LoginForm.tsx /hypr:a11y-audit src/components/ /hypr:a11y-audit "checkout flow" /hypr:a11y-audit Arguments
- File path — analyze a specific component
- Directory — analyze every file in the directory
- Feature name — analyze files related to a feature
- Empty — interactive mode prompts for what to analyze
Options
level:a— only check Level A criterialevel:aa— check up to Level AA (default)level:aaa— include Level AAA criteriaverbose— include passed criteria in the reportquick— summary only, no detailed violations
What It Does
The accessibility-analyzer agent reads the targeted code, evaluates it against WCAG 2.1 success criteria, documents each violation with file:line references, assigns an overall conformance level, and provides fix recommendations.
Conformance Levels
| Level | Meaning | Requirement |
|---|---|---|
| Does Not Conform | Failed Level A criteria | Fix critical barriers |
| Level A | Minimum accessibility | Passed all 30 Level A criteria |
| Level AA | Legal standard | Passed all 50 Level A + AA criteria |
| Level AAA | Maximum accessibility | Passed all 78 criteria |
Related Commands
- /hypr:a11y — add WCAG rules to your agents
- /hypr:review — code review including accessibility checks