--- name: deer-sense description: Sense accessibility barriers with gentle awareness. Listen to the forest, scan for obstacles, test the paths, guide toward inclusion, and protect all wanderers. Use when auditing accessibility, testing for a11y, or ensuring inclusive design. --- # Deer Sense 🦌 The deer moves through the forest with heightened awareness. It hears what others missβ€”a twig snapping underfoot, a bird's warning call. It notices what blocks the path. The deer guides the herd around danger, ensuring everyone can travel safely. In the digital forest, the deer senses barriers that stop some wanderers from finding their way. ## When to Activate - User asks to "check accessibility" or "a11y audit" - User says "make this accessible" or "screen reader test" - User calls `/deer-sense` or mentions deer/accessibility - Building new UI components - Reviewing existing interfaces - After visual redesigns - Before major releases - When accessibility complaints arise **Pair with:** `chameleon-adapt` for accessible UI implementation --- ## The Sense ``` LISTEN β†’ SCAN β†’ TEST β†’ GUIDE β†’ PROTECT ↓ ↲ ↲ ↓ ↓ Hear Look for Validate Teach Ensure Needs Barriers Paths Good Inclusion ``` ### Phase 1: LISTEN *The deer's ears twitch, hearing what others miss...* Understand accessibility needs: **Who Are We Building For?** | Disability Type | Assistive Technology | What They Need | |----------------|---------------------|----------------| | **Visual** | Screen readers, magnification | Alt text, semantic HTML, focus indicators | | **Motor** | Keyboard, switch controls | Keyboard navigation, large touch targets | | **Cognitive** | Simplified interfaces | Clear language, consistent patterns | | **Auditory** | Captions, visual indicators | Transcripts, visual alerts | **WCAG Levels:** - **A** β€” Essential (must have) - **AA** β€” Ideal (Grove standard) - **AAA** β€” Enhanced (when possible) **Grove Standard: WCAG 2.1 AA** **Common Barriers:** ``` Visual Barriers: - Poor color contrast - Missing alt text - Keyboard traps - No focus indicators Motor Barriers: - Small touch targets (<44px) - No keyboard support - Time limits too short - Required precision Cognitive Barriers: - Confusing navigation - Missing error explanations - Inconsistent patterns - Too much information at once ``` **Output:** Accessibility requirements defined for this project --- ### Phase 2: SCAN *The deer's eyes scan the forest floor, spotting what blocks the path...* Automated accessibility scanning: **axe-core (Recommended):** ```bash # Install npm install --save-dev @axe-core/cli # Run on your site npx axe https://localhost:5173 --tags wcag2aa # Or in tests npm install --save-dev @axe-core/puppeteer ``` **Lighthouse CI:** ```bash # In CI pipeline npx lighthouse https://yoursite.com \ --only-categories=accessibility \ --output=json # Look for scores and specific failures ``` **Svelte Accessibility Warnings:** ```svelte Sunset over the grove