Accessibility

Accessibility

dragoon0x fe5eaec 2 files · 4.6 KB Updated

File contents

/accessibility

Goes deeper than the aggregate score in /critique. Per-element, per-line findings.

When to use

  • Pre-launch accessibility audit
  • The user says "a11y check", "accessibility audit", "WCAG check"
  • After a feature lands, before merging

Rules

  • a11y-001 img-missing-alt (high)
  • a11y-002 button-without-label (high)
  • a11y-003 link-without-text (high)
  • a11y-004 input-without-label (high)
  • a11y-005 positive-tabindex (medium)
  • a11y-006 click-handler-on-non-interactive (medium)
  • a11y-007 autofocus (low)
  • a11y-008 low-contrast-token-pair, contrast < WCAG AA 4.5:1 (medium)

Each finding includes file, line, column, snippet, message, and a concrete fix.

Run it

dragoon accessibility                       # everything
dragoon accessibility --severity high       # only critical
dragoon accessibility src/components        # one folder
dragoon accessibility --rules               # list every rule
dragoon accessibility --json                # CI mode

Dragoon0x/dragoon-skills/tree/main/skills/accessibility commit fe5eaeceb9

Frequently asked questions

npx skillmds@latest add dragoon0x/accessibility