From hb
Scans frontend code for WCAG A/AA violations: missing alt text, keyboard traps, color contrast issues. Reports by severity with file:line references and fixes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hb:a11y-auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. Detect framework from `package.json` (React, Vue, Svelte)
package.json (React, Vue, Svelte)npx @axe-core/cli@4 http://localhost:3000
Images:
<img> has alt; decorative images use alt=""alt or linked descriptionForms:
<label> (via htmlFor/for or aria-label)Interactive elements:
tabindex="-1" on clickable elements)<div onClick> or <span onClick> -- use <button> or <a>aria-label)Structure:
<h1> per page; heading levels not skipped<ul>/<ol>, not manual bullet charactersColor & contrast:
Navigation:
<main>, <nav>, <header>, <footer>Dynamic content:
aria-live or aria-busy)// Bad: non-semantic interactive element
<div onClick={handleClose}>x</div>
// Good
<button onClick={handleClose} aria-label="Close dialog">x</button>
// Bad: unlabeled input
<input type="text" placeholder="Email" />
// Good
<label htmlFor="email">Email</label>
<input id="email" type="email" />
// Bad: color-only error
<input style={{ border: '1px solid red' }} />
// Good
<input aria-invalid="true" aria-describedby="email-error" />
<span id="email-error" role="alert">Email is required</span>
Group by WCAG criterion:
Use file:line references. Include the fix for each finding.
file:line + violation + WCAG criterion + fix@axe-core/cli fails (no dev server) -- fall back to static analysis; note axe was skipped.html, .jsx, .tsx, .vue filesnpx claudepluginhub helderberto/agent-skills --plugin hbAudits and fixes WCAG 2.2 accessibility issues. Report mode: sweep codebase/page for prioritized report. Fix mode: audit-edit-verify loop. Prefers live-DOM via CDP, falls back to browser-MCP or HTML-string audits.
Audits web UIs for WCAG 2.1 AA compliance, checking semantic HTML, ARIA, keyboard navigation, color contrast, and screen reader compatibility. Provides checklists, fixes, and tools like axe-core.