/qa-accessibility:wcag-compliance-reporterfrom qa-accessibility
Aggregates multi-page accessibility scan results (axe, pa11y, Lighthouse) into a WCAG 2.2 conformance report grouped by success criterion and level, with page coverage checks.
Ships in qa-accessibility. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
WCAG 2.2 has 77 success criteria (SC) split across three conformance levels: 25 at A, 24 at AA, 28 at AAA (wcag-spec) - for a total of 49 SC at the AA level (which is the typical legal / contractual target in the US, EU, UK).
Per wcag-conformance:
"Level AA: 'satisfies all the Level A and Level AA success criteria'"
"All success criteria at a claimed level must be satisfied with no exceptions."
That binary verdict ("conforms or doesn't") makes per-tool output ("axe found 17 violations in 5 pages") hard to act on - the team needs to know which SC at which level on which page is failing the conformance claim.
This skill builds that report.
@axe-core/cli or axe-puppeteer), pa11y (via
pa11y-ci), Lighthouse (via lighthouse-batch), WAVE,
IBM Equal Access.If only one tool is in use, the tool's native HTML report may suffice; this skill is for aggregation across multiple tools or multiple pages.
Violation shape, mapping each
tool's rule ID to the WCAG Success Criterion it covers (Step 1).conformant,
non-conformant, or unknown - where unknown means the scan never
covered the SCs a claim at that level needs (Step 3).pages-to-scan.yaml process spec and
flag any page that wasn't scanned (Step 4).compliance.json and the
CI job that produces it (Machine output and CI, below).Each scanner has its own JSON shape. The first step is normalizing to a single intermediate format keyed by SC:
interface Violation {
page: string; // URL or path
successCriterion: string; // e.g. "1.4.3"
level: 'A' | 'AA' | 'AAA';
ruleId: string; // tool-specific rule (e.g. axe "color-contrast")
selector: string; // CSS selector of failing element
message: string;
helpUrl?: string; // tool's docs
scanner: 'axe' | 'pa11y' | 'lighthouse' | 'wave' | 'equal-access';
}
Normalizer per tool maps tool-specific rule IDs to the SC they cover, and a
central sc-mapping.json holds rule-to-SC for every tool the report consumes.
The per-tool tag conventions (axe tags, pa11y codes, Lighthouse's internal
map), a worked normalize_axe example, and the sc-mapping.json shape live in
references/tool-normalizers.md.
def aggregate(violations):
by_sc = defaultdict(lambda: defaultdict(list)) # sc -> level -> [violation]
by_page = defaultdict(list) # page -> [violation]
pages = set()
for v in violations:
by_sc[v['successCriterion']][v['level']].append(v)
by_page[v['page']].append(v)
pages.add(v['page'])
return {
'by_sc': dict(by_sc),
'by_page': dict(by_page),
'pages': sorted(pages),
}
Per wcag-conformance, conformance is binary per level ("All success criteria at a claimed level must be satisfied with no exceptions"). The verdict logic:
def conformance(agg, level):
"""Returns 'conformant' | 'non-conformant' | 'unknown'.
Unknown if the scan didn't cover the SCs needed to claim conformance."""
failing_scs = [sc for sc, by_level in agg['by_sc'].items()
if any(v['level'] in level_set(level) for v in
[vv for lvl, vs in by_level.items() for vv in vs])]
if failing_scs:
return 'non-conformant', failing_scs
# Did the scan actually cover all SCs needed for this level?
expected_scs = SC_BY_LEVEL[level] # ground-truth list per WCAG 2.2
covered_scs = set(agg['by_sc'].keys()) # only SCs at least one tool checks
missing = expected_scs - covered_scs
if missing:
return 'unknown', sorted(missing)
return 'conformant', []
level_set('AA') returns {'A', 'AA'} because AA "satisfies all the
Level A and Level AA success criteria" (wcag-conformance).
The "unknown" verdict is critical - automated tools cover roughly 30% of WCAG SCs. A green automated scan ≠ AA conformance. The report must surface what wasn't scanned.
Equally important: did every relevant page get scanned at all? A checkout flow with a missing scan on the payment page can't claim conformance per wcag-conformance:
"Complete Processes: When a page is part of a multi-step process, 'all web pages in the process conform at the specified level or better.'"
Author maintains a pages-to-scan.yaml:
processes:
checkout:
pages:
- /
- /products
- /cart
- /checkout
- /checkout/payment
- /checkout/confirm
account:
pages:
- /account/login
- /account/profile
- /account/orders
Compare scanned pages against the spec; flag missing ones in the report.
Render the executive verdict first: a three-row table mapping each conformance level to its verdict and the reason.
| Conformance level | Verdict | Reason |
|---|---|---|
| A | ❌ non-conformant | 3 SC failing on 7 pages |
| AA | ❌ non-conformant | + 5 additional SC failing on 12 pages |
| AAA | ⚠ unknown | 14 of 28 AAA SC weren't checked by any scanner |
Below the verdict, the full report adds process-coverage, failures-by-SC, per-page-detail, and coverage-gap sections - the coverage-gap table is where the "automated tools cover ~30% of SCs, the rest is manual review" reality from Step 3 lands. The complete multi-table sample report, every section with example rows, lives in references/sample-report-format.md.
Once the markdown report renders, two operational blocks finish the pipeline: a
machine-readable compliance.json for downstream dashboards / ACR gates, and
the CI job that runs the scanners and aggregator on every push. Both templates
live in
references/machine-output-and-ci.md.
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Reporting "0 axe violations" as "WCAG conformant" | Automated tools cover ~30% of SCs; the rest needs manual review. | Always include the "manual review required" section (Step 5). |
| Treating all violation severities equally | A contrast issue on a button isn't equivalent to a missing alt on a decoration. | Group by SC level (A vs AA vs AAA); within a level, count instances. |
| Aggregating across pages without page coverage spec | Missing pages don't show up; the team thinks they're covered. | Author pages-to-scan.yaml; report missing pages explicitly (Step 4). |
| Declaring conformance from a single-tool scan | Each tool has different SC coverage; a clean axe run can hide pa11y-detectable issues. | Use 2+ tools; deduplicate by (page, SC, selector). |
| Per-tool report dumps with no SC mapping | Reviewer can't tell if tool-rule "color-contrast" maps to SC 1.4.3. | Maintain sc-mapping.json (Step 1). |
| Reporting AAA verdict as a fail without context | AAA is rarely the target; failing AAA isn't a failure for an AA-targeting team. | Make the target level explicit; report the other levels as "informational". |
| Ignoring "unknown" verdict (treating uncovered SCs as covered) | False conformance claim; potential legal exposure. | Surface the unknown verdict in bold (Step 3); list the unscanned SCs. |
screen-reader-test-author from
qa-accessibility.junit-xml-analysis (in the qa-test-reporting plugin) - reporter
for test execution (different domain, same PR-time
reporting shape).axe-a11y scanner umbrella (axe-core primary; pa11y, Lighthouse
a11y, WAVE, and IBM Equal Access in its references/) - produces the
upstream input this skill consumes.sc-mapping.json shape (Step 1 deep dive):
references/tool-normalizers.md.compliance.json output + the CI aggregation job:
references/machine-output-and-ci.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/a11y-violation-gateUse when a project has accessibility debt and a zero-violations gate would block every PR. Builds a CI ratchet that fails only on new WCAG violations a PR introduces, with pre-existing ones baselined per rule and page, from axe-core, pa11y, Lighthouse, WAVE or IBM Equal Access results./aria-authoring-patternsUse when building or reviewing a custom interactive widget with no native HTML equivalent (combobox, dialog, menu, tabs, tree and more). Gives the W3C ARIA Authoring Practices pattern: required roles and states, keyboard interaction and common violations./axe-a11yUse for any request to check accessibility automatically, including adding a scan to an existing Playwright, Cypress or unit test, or stopping missing labels and contrast errors from shipping: axe-core via axe.run(), @axe-core/playwright or the CLI on every PR, rule configuration and CI-gateable results, plus pa11y, Lighthouse CI, WAVE and IBM Equal Access in its references./screen-reader-test-authorUse when a feature needs manual screen-reader testing before sign-off: step-by-step scripts for NVDA, JAWS, VoiceOver or TalkBack with keystrokes and expected announcements, WCAG 2.2 checklists per page type, widget keystroke matrices and a guided session with a signed report./wcag-color-contrastUse for any question about color contrast or whether colors pass WCAG, including quick checks of a few hex values and hard-to-read text: WCAG 2.2 text, large-text and non-text contrast ratios (4.5:1, 3:1) at AA and AAA, the measurement formula, palette and component reviews, and bulk checks over CSS and design tokens./wcag-keyboard-navigationUse when building or reviewing keyboard-only support or a modal, drawer or popover's focus handling: WCAG 2.2 keyboard access, no keyboard traps, shortcuts, focus order, visible and unobscured focus, with test scripts and the focus-trap pattern (focus on open, Escape, restore).npx claudepluginhub testland/qa --plugin qa-accessibility2 plugins ship this exact skill · first indexed Nov 12, 2026
Other plugins' skills for the same job