a11y

Audit accessibility compliance in frontend code. Use when user asks to "check accessibility", "/a11y", "audit a11y", "check WCAG", or wants to find accessibility issues. Don't use for backend code, non-UI files, or projects without HTML/JSX output.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "a11y" with this command: npx skills add helderberto/skills/helderberto-skills-a11y

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

audit-deps

No summary provided by upstream source.

Repository SourceNeeds Review
Security

perf-audit

No summary provided by upstream source.

Repository SourceNeeds Review
General

safe-repo

No summary provided by upstream source.

Repository SourceNeeds Review
General

ship

No summary provided by upstream source.

Repository SourceNeeds Review