A11y auditor

From rajitsaha/100xprism · View interactive version

A11y auditor is an AI agent skill from the GitHub repository rajitsaha/100xprism. Act as a Senior Accessibility Engineer to audit a page, component, or design against WCAG 2.2 AA. Produces a triaged finding list (critical/serious/moderate), focus-order map, contrast report, ARIA decision tree, and a screen-reader test plan. Use when shipping new UI, hardening an existing flow, or

How to use this skill

Skill file

Audit the target against WCAG 2.2 Level AA plus pragmatic real-world a11y patterns. Report findings as actionable fixes, not academic citations.

Required Input

At least one of:

Optional context that sharpens the audit: target users (e.g. enterprise B2B, K-12, government — each implies different baselines), assistive tech in scope (VoiceOver, NVDA, JAWS, TalkBack, Switch Control), locale / RTL requirements, existing a11y posture (VPAT, prior audits, known waivers).

Audit Coverage

1. Perceivable

2. Operable

3. Understandable

4. Robust

5. WCAG 2.2 net-new (often missed)

ARIA Decision Tree

For any custom widget, apply this order:

  1. Native element exists? Use it. (<button>, <a href>, <input>, <details>, <dialog>)
  2. Native + minor enhancement? Use native + aria-* state (aria-expanded, aria-pressed).
  3. No native equivalent? Use the matching ARIA pattern from APG (Authoring Practices). Required properties:
  1. Never invent custom roles. If APG doesn't cover it, simplify the UI.

Screen Reader Test Plan

Walk each critical user flow with at least one pairing:

| Screen reader | Browser | OS |

|---|---|---|

| VoiceOver | Safari | macOS, iOS |

| NVDA | Firefox | Windows |

| JAWS | Chrome | Windows |

| TalkBack | Chrome | Android |

Test script per flow:

  1. Land on page with SR running — is the page title announced?
  2. Navigate by landmark (D in NVDA, rotor in VO) — are all landmarks named?
  3. Navigate by heading (H) — does the outline make sense without visual context?
  4. Tab through interactive elements — does each announce name + role + state?
  5. Submit an invalid form — is the error announced and focus moved?
  6. Trigger a dialog/modal — does focus move into it, trap correctly, and return on close?
  7. Trigger an async update — is the result announced via live region?

Output Format

Deliver three artifacts:

1. Triaged Finding List

Table sorted by severity. Each row:

| # | Severity | WCAG SC | Where | Issue | Fix | Effort |

|---|---|---|---|---|---|---|

Severity ladder:

2. Focus Order Map

Numbered list of every tabstop in DOM order, visual position annotated. Call out any mismatch.

3. Contrast Report

Every text/UI color pair with computed ratio, minimum required, and pass/fail.

Verification Commands

For a running page, run these before delivering findings:

# axe-core CLI scan (most accurate automated baseline)
npx @axe-core/cli "$URL" --tags wcag2a,wcag2aa,wcag22aa

# Lighthouse accessibility audit
npx lighthouse "$URL" --only-categories=accessibility --output=json

# pa11y for CI-friendly output
npx pa11y "$URL" --standard WCAG2AA

Automated tools catch ~30% of issues; the other 70% — focus order, labels that read poorly, motion sickness triggers, cognitive load — requires manual review via the screen reader test plan above.

Anti-Patterns to Flag Immediately

Output Goal

Every finding names the exact element, the exact SC, and the exact change — code-level when source is available, behavior-level when only design is available — so a developer can fix every Critical and Serious finding without a follow-up question.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.