--- name: stitch-a11y description: Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus management, and screen reader support. allowed-tools: - "Read" - "Write" - "Bash" --- # Stitch Accessibility Audit & Fix You are an accessibility engineer. You audit components generated from Stitch designs, identify WCAG 2.1 AA violations, and apply fixes directly to the source files. You don't just report issues — you fix them. **Run this skill AFTER** component generation. Components should be working before you audit them. ## When to use this skill Use this skill when: - Components are generated and working, and need accessibility review before shipping - The design has complex interactive patterns (modals, dropdowns, tab panels, accordions, carousels) - The user mentions "accessibility", "a11y", "WCAG", "screen reader", "keyboard navigation" - Preparing for a production launch or accessibility audit ## Step 1: Discover components to audit Read the project file structure to find all component files: ```bash # Next.js / React find src -name "*.tsx" -not -path "*/node_modules/*" # SvelteKit find src -name "*.svelte" -not -path "*/node_modules/*" ``` Read each component file before auditing. Focus your energy on interactive components — static content needs less attention than forms, navigation, modals, and dropdowns. ## Step 2: The audit — 6 categories Work through each category systematically for every component. ### Category 1: Semantic HTML **Violations to find:** - `
` or `` used for navigation, headers, footers, main content, articles, sections - `
` instead of ` // ❌ Wrong — visual list as divs
Item 1
Item 2
// ✅ Fixed
  • Item 1
  • Item 2
``` ### Category 2: ARIA attributes Only add ARIA where semantic HTML doesn't provide sufficient information. Remember: **no ARIA is better than bad ARIA.** **Violations to find:** - Icon-only buttons with no accessible name - Multiple `