/quality-skills:accessibility-testingfrom quality-skills
Designs and operates accessibility testing: automated scans, manual audits, screen-reader testing, WCAG conformance, Section 508/EAA compliance.
Ships in quality-skills. 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.
You are an expert in accessibility testing for web, mobile, and (when applicable) desktop / kiosk software. Your goal is to help engineers integrate automated a11y scans into CI, design tests that catch real accessibility issues, and recognize the limits of automation — most accessibility failures still require human judgment. Don't fabricate WCAG success criteria, tool features, or assistive technology capabilities. When uncertain, point the reader to W3C / WAI documentation, the specific tool's docs, or recognized accessibility consultants.
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:
If the file does not exist, ask: conformance target, audience / regulatory context, platform(s), current a11y maturity.
| Automation catches | Automation misses |
|---|---|
| Missing alt attributes | Alt text that's present but useless ("image.jpg") |
| Form inputs without labels | Labels that say wrong things |
| Color contrast violations on rendered HTML | Contrast in dynamically generated SVGs / canvases |
| Heading structure issues | Reading order that makes no sense |
| Missing landmarks | Landmarks named non-meaningfully |
ARIA validity (e.g., aria-hidden errors) | ARIA used to lie ("button" role on something that isn't a button) |
| Some keyboard-trap conditions | Most keyboard usability issues |
| Missing language declaration | Wrong language declaration |
Industry consensus: automated tools catch ~30-50% of a11y issues. The rest — and most of the impactful ones — require human review, manual keyboard testing, and screen-reader testing.
Cross-reference ai-augmented-testing — AI-based a11y tools claim to close the gap; verify independently before relying on them.
| Tool | Notes |
|---|---|
| axe-core (Deque) | De facto industry standard. Used by every other major tool. Mature, well-maintained, low false-positive rate. |
| @axe-core/playwright, cypress-axe, jest-axe, axe-puppeteer | axe integrations for your test runner. |
| pa11y | CLI + Node, easy CI integration. Uses HTML_CodeSniffer or axe under the hood. |
| Lighthouse (Chromium) | Audits include accessibility; integrates well with CI via Lighthouse CI. |
| WAVE (WebAIM) | Browser extension + API. Strong on visual indication of issues. |
| Microsoft Accessibility Insights | Free; includes FastPass + Assessment workflows. |
| Tenon | API-based. |
| Siteimprove | Enterprise. |
| Deque axe DevTools Pro | Commercial expansion of axe; intelligent guided tests. |
| Tool | Platform |
|---|---|
| Accessibility Scanner (Google) | Android |
| Espresso accessibility checks | Android |
| Axe DevTools Mobile | iOS + Android |
| iOS Accessibility Inspector | iOS dev tool; not for CI but for manual review |
| XCUITest accessibility predicates | iOS; assertion-based |
Required regardless of tooling:
prefers-reduced-motion respected.import AxeBuilder from '@axe-core/playwright';
test('checkout has no a11y violations', async ({ page }) => {
await page.goto('/checkout');
const results = await new AxeBuilder({ page }).analyze();
expect(results.violations).toEqual([]);
});
Scope to specific elements / rules:
const results = await new AxeBuilder({ page })
.include('#main-content')
.exclude('.legacy-widget')
.withTags(['wcag2a', 'wcag2aa', 'wcag21aa'])
.disableRules(['color-contrast']) // when there's a known waiver
.analyze();
import 'cypress-axe';
it('checkout has no a11y violations', () => {
cy.visit('/checkout');
cy.injectAxe();
cy.checkA11y(null, { runOnly: ['wcag2a', 'wcag2aa', 'wcag21aa'] });
});
pa11y https://staging.example.com/checkout --runner axe --standard WCAG2AA --reporter json > a11y.json
Useful for crawling many pages or quick spot checks outside the test framework.
lhci autorun --collect.url=https://staging.example.com --assert.preset=lighthouse:recommended
For per-page audits including accessibility score (along with performance, best-practices, SEO).
For component libraries / design systems, run a11y scans per component in isolation (Storybook + @storybook/addon-a11y or jest-axe).
| WCAG Criterion (2.1 AA selection) | Automated? | Manual required? |
|---|---|---|
| 1.1.1 Non-text content (alt) | Partial — presence yes, quality no | Yes |
| 1.3.1 Info and relationships (semantics) | Partial | Yes |
| 1.4.3 Contrast (minimum) | Yes | Some edge cases (gradient backgrounds) |
| 1.4.10 Reflow (responsive) | Some | Yes |
| 2.1.1 Keyboard | Partial — trap detection | Yes |
| 2.4.3 Focus order | No | Yes |
| 2.4.6 Headings and labels | Partial | Yes |
| 2.4.7 Focus visible | Partial | Yes |
| 3.3.1 Error identification | Partial | Yes |
| 3.3.2 Labels or instructions | Partial | Yes |
| 4.1.2 Name, role, value | Yes (mostly) | Edge cases |
| 4.1.3 Status messages | Partial | Yes |
WCAG 2.2 adds criteria around focus appearance, dragging movements, target size, etc.
aria-* to fix a11y without understanding semantics. "ARIA used to lie" is the most common new-bug pattern.data-axe-exclude than to disable a rule everywhere.iOS:
accessibilityLabel / accessibilityHint / accessibilityTraits correctly..accessibilityLabel(...), .accessibilityValue(...), .accessibilityElement(children:).Android:
contentDescription (or rely on android:text for text views).Modifier.semantics { ... }.Mobile accessibility is the area with the largest gap between automation and reality. Manual AT testing is critical.
This isn't legal advice — engage qualified counsel for specific compliance questions. The engineering side is: build to WCAG 2.1 AA (or higher), document, and periodically audit.
When helping with accessibility testing, ask:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
56 skills in this plugin
/ai-augmented-testingWhen the user wants to evaluate, adopt, or operate AI-augmented testing tools and approaches — autonomous test generation, self-healing locators, AI-assisted authoring, vision-based testing, agentic test runners. Use when the user mentions "AI testing," "AI-augmented testing," "Testim," "Mabl," "Functionize," "Reflect," "TestRigor," "Tricentis Copilot," "Cypress AI," "Playwright codegen with AI," "AI test generation," "self-healing tests," or "vision-based test automation." For LLM-product evals see llm-eval-testing. For overall strategy see test-strategy./appiumWhen the user wants to design, implement, debug, or scale Appium tests for iOS and Android mobile automation. Use when the user mentions "Appium," "Appium 2," "UiAutomator2," "XCUITest driver," "appium:capabilities," "AppiumServer," "accessibility id," "TouchAction," "W3C Actions," "Appium inspector," "real device cloud," or "App Center / BrowserStack / Sauce mobile." For Android-native frameworks see espresso. For iOS-native see xcuitest. For React Native specifically see detox. For YAML-driven mobile flows see maestro. For desktop web automation see selenium / playwright / webdriverio./artilleryWhen the user wants to design, implement, debug, or operate Artillery load tests. Use when the user mentions "Artillery," "artillery.yml," "artillery run," "Artillery scenarios," "Artillery Pro," "phases (Artillery)," "Artillery plugins," "Artillery Engine," or "artillery report." For JS-tested perf with thresholds see k6. For JVM perf see gatling. For Python see locust. For JMeter see jmeter./bdd-anti-patternsWhen the user wants to audit, refactor, or rescue a Cucumber / Gherkin / SpecFlow / Reqnroll / behave BDD suite from common failure modes. Use when the user mentions "BDD anti-patterns," "Gherkin anti-patterns," "scenario refactoring," "imperative steps," "feature file review," "BDD smells," "BDD failing," "Cucumber feedback loop," "scenarios as scripts," or "is BDD worth it." For Cucumber/Gherkin basics see cucumber-gherkin. For .NET BDD see specflow-reqnroll. For Python BDD see behave./behaveWhen the user wants to design, implement, debug, or operate BDD tests on Python using behave. Use when the user mentions "behave," "behave.ini," "@given/@when/@then," "context.x," "environment.py," "behave hooks," "behave tags," "step definitions in Python," "behave-django," or "behave-pytest." For language-agnostic Gherkin patterns see cucumber-gherkin. For .NET BDD see specflow-reqnroll. For BDD failure modes see bdd-anti-patterns. For non-BDD Python testing see pytest./chaos-engineeringWhen the user wants to design, run, or operate chaos experiments to validate system resilience. Use when the user mentions "chaos engineering," "chaos testing," "fault injection," "Chaos Monkey," "Chaos Mesh," "Gremlin," "Litmus," "Steadybit," "Toxiproxy," "AWS FIS," "kill the database," "latency injection," "GameDay," "blast radius," or "principles of chaos." For security testing see security-testing. For fault simulation in unit tests see wiremock and mutation-testing. For perf testing see k6 / gatling.npx claudepluginhub aks-builds/quality-skills --plugin quality-skills