CommandOpen
a11y-scan
Scan web application components for accessibility violations against WCAG guidelines.
Front matter
name: a11y-scan
description: Scan web application components for accessibility violations against WCAG guidelines.Scan web application components for accessibility violations against WCAG guidelines.
Steps
- Identify the target: component file, page, or entire project.
- Scan for common WCAG 2.1 violations:
- Perceivable: Images without alt text, videos without captions, low color contrast.
- Operable: Non-keyboard-accessible elements, missing focus indicators, no skip links.
- Understandable: Missing form labels, no error descriptions, inconsistent navigation.
- Robust: Invalid HTML, missing ARIA roles, incorrect heading hierarchy.
- Check component-level issues:
- Interactive elements (buttons, links) without accessible names.
- Custom components missing ARIA roles and states.
- Dynamic content updates without live region announcements.
- Modal dialogs without focus trapping.
- Check form accessibility:
- Labels associated with inputs via
htmlFor/idor wrapping. - Error messages linked to inputs via
aria-describedby. - Required fields marked with
aria-required.
- Classify findings by WCAG level (A, AA, AAA) and severity.
- Provide specific fix instructions for each violation.
Format
Accessibility Scan: <scope>
Violations: <N> (A: <n>, AA: <n>, AAA: <n>)
WCAG A (must fix):
- <file>:<line> - <element> missing alt text (1.1.1)
- <file>:<line> - <element> not keyboard accessible (2.1.1)
WCAG AA (should fix):
- <file>:<line> - contrast ratio 3.2:1, needs 4.5:1 (1.4.3)
Passing:
- Heading hierarchy is correct
- Language attribute is setRules
- Prioritize WCAG A violations (legal compliance baseline).
- Provide the specific WCAG criterion number for each violation.
- Include fix code snippets, not just descriptions.
- Check both static HTML/JSX and dynamically generated content.
- Test with screen reader considerations (not just automated rules).
Author: rohitg00, Claude Code toolkit (rohitg00). License: Apache-2.0.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The Codex library holds 7,009 entries. Members can search all of them by meaning and read every one in full.