a11y

SKILL.md

Accessibility Audit

Workflow

  1. Detect framework from package.json (React, Vue, Svelte)
  2. Run static analysis — grep JSX/TSX/HTML files for violations (see wcag-checklist.md):
    • Missing alt on <img>
    • Missing aria-label on icon-only buttons and inputs without <label>
    • Non-semantic interactive elements (<div onClick>, <span onClick>)
    • Missing htmlFor / for on <label>
    • Heading hierarchy skips (h1 → h3)
    • Missing landmark roles (<main>, <nav>, <header>)
  3. If dev server is running, optionally run axe-core CLI:
    npx @axe-core/cli@4 http://localhost:3000
    
  4. Report findings grouped by severity

Output format

Group by WCAG criterion:

  • Critical (WCAG A) — blocks assistive technology users
  • Serious (WCAG AA) — significantly impacts usability
  • Suggestions — best practice improvements

Use file:line references. Include the fix for each finding.

Rules

  • Report file:line + violation + WCAG criterion + suggested fix
  • Never auto-fix — always show what to change and why
  • Prioritize keyboard navigation and screen reader issues

Error Handling

  • If @axe-core/cli fails (no running dev server) → fall back to static analysis only; note axe scan was skipped
  • If no JSX/HTML files found → report project structure is incompatible and stop
  • If framework is undetected → scan all .html, .jsx, .tsx, .vue files
Weekly Installs
5
First Seen
12 days ago
Installed on
mcpjam5
claude-code5
replit5
junie5
windsurf5
zencoder5