Skill library

Agent skill Review & testing

Accessibility Testing

Review the accessibility of visible web interface elements and interactions.

  • Accessibility

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add petrkindlmann/qa-skills --skill accessibility-testing --agent claude-code --yes

Check this file in your project.claude/skills/accessibility-testing/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add petrkindlmann/qa-skills --skill accessibility-testing

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use an existing Playwright Test project and its configured browser. The local fixture verified @axe-core/playwright 4.14.1 with Playwright 1.65.0. Read .agents/qa-project-context.md if present.

View operation manual

What this skill helps with

  • Review the accessibility of visible web interface elements and interactions.

Good for

  • Accessible interfaces
Skill name
accessibility-testing
Scenario
Add a regression test for an open settings dialog
Deliverable
One protected dialog journey with attached axe evidence and explicit focus assertions.
Skill name
accessibility-testing

Define a testable accessibility task

A request with an unclear outcome

Put axe on every page load and assert there are no violations.

A blank page, redirected login or still-closed dialog can produce a misleadingly clean result.

A workflow with observable results

  1. Find the actual test and readiness contract
  2. Scan the open dialog and record coverage
  3. Verify keyboard behavior and hand off any AT checks

Accessibility Testing operation manual

Run scoped axe checks after the test proves that the real dialog is open, and keep keyboard tests separate.

Replace the bracketed details with your own project and target.

  1. Find the actual test and readiness contract

    Confirm route, visible dialog, application readiness and installed dependency.

    Prompt · Step 1
    Use accessibility-testing for [settings dialog] on [local route]. Read the project's QA context, lockfile and Playwright config. Choose an existing test entry point and stable readiness assertion. Use the project's pinned @axe-core/playwright version or show the exact version and dependency change for approval. Identify a deterministic way to open the dialog with a disposable fixture.
  2. Scan the open dialog and record coverage

    Use WCAG tags, reject empty coverage and attach results.

    Prompt · Step 2
    Use accessibility-testing and its references/recipes.md to add a scoped axe test for [dialog]. Assert [expected URL] and [initial ready state], then open the dialog and assert its real role, name and visibility before scanning. Use the supported WCAG A/AA tags through 2.2, fail a scan that ran no applicable checks, and attach the full results JSON. Run the targeted test and report the scan details.
  3. Verify keyboard behavior and hand off any AT checks

    Check focus inside the modal, Escape and focus return.

    • The rule engine ran on the rendered, open dialog with nonempty coverage.
    • Keyboard focus and closure have independent test assertions.
    Prompt · Step 3
    Use accessibility-testing to verify [local settings dialog] using real key input. Check initial focus, Tab and Shift+Tab containment while modal, Escape dismissal and focus return to [trigger]. Keep these assertions distinct from axe results. Record the exact local test command and what real screen-reader behavior still needs a manual pass. Add an ARIA snapshot only if a stable scoped contract is useful.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

The scan ran on an unintended routeReference
Command or reference
references/recipes.md
Examples
Assert the expected route and application-owned readiness before axe runs.
Closing the dialog loses focusReference
Command or reference
SKILL.md · Manual Testing Checklist
Examples
Test actual Escape and verify the original trigger receives focus.

Accessibility Testing troubleshooting

Should I copy the example axe version from the skill?

Use the project's pinned version. If adding it, verify a version supported by your runner and review rule changes before upgrading.