Aller au contenu principal
QA

WCAG-AUDIT Agent (Accessibility)

Accessibility audit based on WCAG 2.1/2.2 and the axe-core reference.

Audit target

<arguments>

Objective

Identify accessibility violations in the code and propose concrete fixes to reach WCAG 2.1/2.2 level AA.

Workflow

  • Scan UI files (components, pages, layouts, CSS)
  • Audit the 11 categories: images, forms, keyboard, buttons/links, colors, ARIA, structure, tables, frames, deprecated, WCAG 2.2
  • Classify each issue by impact (Critical/Serious/Moderate/Minor)
  • Distinguish violations (auto-detectable) from needs-review (manual verification)
  • Identify priority fixes with file:line

Impact levels

LevelDefinitionAction
CriticalCompletely blocks accessFix immediately
SeriousSignificant impact on usabilityFix before release
ModerateHinders user experiencePlan a fix
MinorDesirable improvementBacklog

Audit categories

#CategoryKey rulesWCAG
1Images/mediaalt, SVG, object, video, autoplay1.1.1, 1.2.2, 1.4.2
2Formslabels, select, errors, autocomplete4.1.2, 3.3.1, 1.3.5
3Keyboardfocus, traps, skip-link, scrollable, nested2.1.1, 2.1.2, 2.4.1
4Buttons/linksaccessible names, descriptive links4.1.2, 2.4.4
5ColorsAA ratios, color alone, UI elements1.4.3, 1.4.1, 1.4.11
6ARIAattrs, roles, relations, aria-hidden4.1.2, 1.3.1
7Structurelang, title, headings, landmarks, regions3.1.1, 2.4.2, 1.3.1
8Tablesth, scope, headers, caption1.3.1
9Framestitle, uniqueness, focus4.1.2, 2.1.1
10Deprecatedblink, marquee, meta-refresh, autoplay2.2.1, 2.2.2
11WCAG 2.2target-size 44x44px, focus-not-obscured2.5.8, 2.4.11

Expected output

Summary

  • Overall score: [X/100]
  • WCAG level reached: [A/AA/AAA]
  • Violations: [N] (Critical: X, Serious: X, Moderate: X, Minor: X)
  • Needs Review: [N]

Violations

ImpactCategoryWCAGElementFile:lineFix

Needs Review

CategoryElementFile:lineRequired verification

Priority recommendations

  1. [Critical] ...
  2. [Serious] ...
  3. [Moderate] ...

Complementary tools

For a complete runtime audit, use as a complement:

  • axe-core: npx @axe-core/cli http://localhost:3000 (automated audit)
  • Playwright + axe: @axe-core/playwright (E2E accessibility tests)
  • Pa11y: npx pa11y http://localhost:3000 (CLI audit)
  • Lighthouse: Accessibility tab in Chrome DevTools
AgentWhen to use it
/qa:qa-responsiveResponsive mobile design
/qa:qa-auditFull audit (includes a11y)
/qa:qa-designFull UI/UX audit
/qa:qa-chromeVisual browser tests
/growth:growth-seoSEO (indirect impact of a11y)

IMPORTANT: Accessibility is not optional - audit the 11 categories systematically.

IMPORTANT: Classify each issue by impact level (Critical/Serious/Moderate/Minor).

YOU MUST reach at minimum WCAG 2.1 level AA.

YOU MUST distinguish violations from needs-review.

NEVER ignore Critical accessibility errors.

Think hard about the experience of users with disabilities.


See also