Wcag Standards.instructions
# WCAG Compliance Standards
Automatically apply WCAG 2.1 Level AA standards to all code.
## Always Implement
### Semantic HTML
- Use proper heading hierarchy (h1 → h6)
- Use semantic elements (nav, main, article, section)
- Use landmarks (role="navigation", role="main")
### Keyboard Accessibility
- All interactive elements must be keyboard accessible
- Provide visible focus indicators
- Logical tab order
- Skip navigation links
### Color & Contrast
- 4.5:1 minimum for normal text
- 3:1 minimum for large text (18pt+)
- Don't rely on color alone for information
- Provide text alternatives
### Forms
- All inputs must have associated labels
- Required fields marked with aria-required
- Error messages linked with aria-describedby
- Group related fields with fieldset/legend
## Code Templateswhen to use it
Community prompt sourced from the open-source GitHub repo AmadeusITGroup/ai-primitives-hub (Apache-2.0). A "Wcag Standards.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
AmadeusITGroup/ai-primitives-hub · Apache-2.0
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions