/skill-madness:accessibility-auditfrom skill-madness
Audits web UIs against WCAG 2.2 AA, Section 508, and ADA using axe scans, keyboard/screen-reader/zoom checks, plain-language content review, and produces an honest conformance report (ACR/VPAT draft).
Ships in skill-madness. 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; scripts run unread.
Find and fix the barriers that stop disabled people from using a web UI and its content (pages, emails, PDFs and documents), and say truthfully how close it is to the standard a user is held to: WCAG 2.2 AA, Section 508, ADA Title II or III, or the EU's EN 301 549.
Accessibility isn't only an engineering problem. Whoever writes a page, an email or a PDF is a content creator, and most barriers there (vague link text, headings used for looks, a scanned PDF, a screenshot of text, dense legal prose) are fixed in the words, not the code. This skill covers both.
The hard part is honesty, not finding bugs. Automated engines such as axe find roughly a third to a half of real WCAG failures. The rest (focus order, whether alt text is meaningful, whether an error message is announced, whether a flow works by keyboard alone) needs a human or a careful manual pass. A clean axe run means "no machine-detectable failures on the pages scanned", nothing more. So the rules of this skill are:
The user often names a law, not a standard. Map it, then audit against the standard. WCAG 2.2 AA is a superset of 2.0 and 2.1 AA (except 4.1.1 Parsing, which 2.2 removed), so auditing at 2.2 AA covers every row below. Tag each finding with the version it first appears in, so a report can be cut to any of them.
| The user says | Audit against | Notes |
|---|---|---|
| "Section 508", federal agency or contractor | WCAG 2.0 A + AA, plus 508 chapters 3, 5 and 6 where they apply | Revised 508 (36 CFR 1194) incorporates WCAG 2.0 AA by reference for web, documents and software. |
| ADA Title II (state and local government, public universities) | WCAG 2.1 AA | DOJ 2024 rule. Dates were pushed back by an April 2026 interim rule; see references/standards.md. |
| ADA Title III (businesses open to the public) | WCAG 2.1 AA in practice, 2.2 AA advisable | No technical regulation. Settlements and court orders usually name WCAG 2.1 AA. |
| EU, European Accessibility Act, EN 301 549 | WCAG 2.1 AA (EN 301 549 clause 9) plus the EN extras | EAA has applied since 2025-06-28. |
| "WCAG", "a11y", nothing specific | WCAG 2.2 AA | The current W3C recommendation. |
Regulatory dates change, and one is under litigation as of 2026-10. Before
quoting a deadline to the user, re-check the current date in
references/standards.md and say when it was last verified.
Write down, before scanning:
audit (find and report; the default), fix (audit, then remediate
and re-verify), gate (check a diff before it's called done), content
(review or rewrite copy, emails, PDFs and documents; Step 3b only), or
report (produce an ACR/VPAT draft from findings).With a running app and a shell, run the bundled scanner from the target project's root, so it resolves that project's Playwright install:
node <skill-dir>/scripts/axe_scan.mjs \
--url http://localhost:3000/ --url http://localhost:3000/checkout \
--widths 1440,320 --standard wcag22aa
It runs axe-core on every URL at every width, checks 320px reflow (WCAG 1.4.10),
and writes .playwright/<run-id>/a11y/ with raw JSON per page, summary.json
and summary.md. Exit 0 means no violations at or above --fail-on (default
serious), 1 means violations, 2 means the scan could not run. Exit 2 is
never a clean pass. If the dependencies are missing, the script prints the
install command. Ask before installing them into the user's project.
axe also returns incomplete results: things it could not decide, such as contrast over a background image. They go on the manual list, not into "passed".
To reach a state the URL alone doesn't open (a modal, a step 3), drive it with
the playwright skill, then inject axe on that page. The script's --help
shows the pattern. If only the Playwright MCP is available, inject axe-core
from its CDN build with browser_evaluate and run axe.run(). Same rules,
same report shape.
Run this pass whether or not the scan ran. It catches what a single render
misses, and it's the whole audit when there's no running app. Use the project's
linter first if it has one (eslint-plugin-jsx-a11y, eslint-plugin-vuejs-accessibility,
@angular-eslint template a11y rules) and report its findings with file:line.
Then grep for the high-yield patterns in references/fix-patterns.md:
click handlers on non-interactive elements, outline: none with no
replacement, positive tabindex, <img> without alt, inputs without labels,
aria-hidden on focusable content, and user-scalable=no.
Read the words as well as the markup. Engineering checks can pass on a page
that still fails its readers. Work through references/content-design.md.
The high-yield checks:
alt="", and text is never shared as a
screenshot (including in emails and social posts).Report content findings in the same shape as code findings, with the location
(page and section, or file:line for copy in source) and a suggested rewrite.
Rewrites go to the person who owns the copy. Agents propose them, and the
user decides. In content mode this pass is the whole job.
Required for any statement about conformance, and the most valuable part of the
audit. Work through references/manual-checks.md. In short:
locator.ariaSnapshot() in Playwright, or the MCP's browser_snapshot).
Every control needs a meaningful name, the right role, and its state
(expanded, selected, invalid). Async changes are announced through a live
region.prefers-reduced-motion honored, nothing flashes
more than 3 times a second, captions and transcripts present, auto-playing
content can be paused, and time limits can be extended.A real screen-reader pass (VoiceOver, NVDA, JAWS) is the strongest evidence. An agent can't fully do it. Report it as Not Evaluated, needs a human with , unless the user did it and told you the result.
One finding per barrier, not per element. Group the 40 unlabeled icon buttons into one finding with a count and a selector list.
### [Serious] Icon-only buttons have no accessible name — 1.1.1 / 4.1.2 (A)
- Where: `src/components/Toolbar.tsx:42`, 40 instances (`button.icon-btn`)
- Who it blocks: screen-reader users hear "button" with no purpose
- Evidence: axe `button-name`; aria snapshot shows `button` with no name
- Fix: add `aria-label="Delete row"` (or visible text); see fix-patterns §Names
Severity: Blocker, a user group can't complete a key task. Serious, a
task is possible but very hard, or a whole content type is lost. Moderate,
real friction with a workaround. Minor, a small deviation. Map axe impact
levels to these, but upgrade by context: a serious contrast failure on the
checkout button is a Blocker.
End every audit with this summary:
## Accessibility audit — <scope>, <date>
Standard: WCAG 2.2 AA (cuttable to 2.1 AA / 2.0 AA)
Pages and states covered: N (list)
Automated: axe <version>, N violations (B/S/M/m), N incomplete → manual list
Manual: keyboard ✓, names/roles ✓, zoom/reflow ✓, contrast ✓, forms ✓,
motion/media ✓, screen reader — Not Evaluated (needs human, NVDA/VoiceOver)
Verdict: Does not yet conform — N Blockers, N Serious. Not a legal opinion.
Native HTML first, ARIA last: a <button> beats <div role="button" tabindex="0">
plus key handlers, because the native element brings focus, keyboard and
semantics for free. Use references/fix-patterns.md for the common fixes. Fix
at the shared component, not at each call site. After fixing, re-run the scan
and repeat the manual check that found the failure. The finding is closed only
when the re-check passes.
Never "fix" a finding by disabling the axe rule, adding aria-hidden to make a
control disappear from the tree, or adding role="presentation" to silence a
warning. Those hide the barrier from the tool and leave it in place for the user.
Color fixes go through the design tokens. Change the token, not the component,
and let design-token-guard confirm no literal was inlined.
For an ACR (Accessibility Conformance Report) built on the ITI VPAT template,
follow references/conformance-report.md. Use the VPAT edition that matches the
buyer: 508, EU (EN 301 549), WCAG, or INT for all of them. Every criterion gets
Supports, Partially Supports, Does Not Support, Not Applicable,
or Not Evaluated, with remarks that name the failing component. Mark it a
draft for human review. An ACR is a vendor's legal representation, and an
agent-drafted one must be checked by someone accountable for it.
For a diff, run Step 3 on the changed files and Step 2 on the pages they render, then do the keyboard and names checks from Step 4 on any changed interactive component. Blockers and Serious findings in the diff mean not done. Report pre-existing issues outside the diff separately. Don't block the change on them.
.playwright/<run-id>/ layout.references/standards.md: WCAG 2.2 AA criteria by version, Section 508
chapters, ADA Title II and III status with last-verified dates, and EN 301 549/EAA.references/manual-checks.md: step-by-step manual procedures, with pass and
fail evidence for each.references/fix-patterns.md: grep patterns for the source pass and the
standard fix for each common failure.references/content-design.md: plain language, headings, links, images,
emails, PDFs and documents, and testing content with disabled users.references/conformance-report.md: how to fill in an ACR/VPAT honestly.scripts/axe_scan.mjs: the Playwright + axe-core scanner. Run --help for
flags.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ivy00johns/skill-madness --plugin skill-madness87 skills in this plugin
/andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/architecture-rescueFind deepening opportunities in a codebase (shallow modules, missing seams, leaky abstractions) and present them as numbered candidates for a grilling session before any interface is proposed. Use when the code feels tangled or hard to test. Trigger on "improve architecture", "rescue this codebase", "find refactoring opportunities", "ball of mud", "shallow modules"./Other plugins' skills for the same job