Skill library

Agent skill Review & testing

Better Accessibility

Review and fix keyboard access, focus visibility, forms and reduced motion against WCAG 2.2.

  • Accessibility
  • Focus states
  • Reduced motion

Install the skill

Installation method

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

npx skills@latest add jakubkrehel/skills --skill better-accessibility --agent claude-code --yes

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

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add jakubkrehel/skills --skill better-accessibility

    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. Open the web project in your coding assistant. Have the route, a writable test record, a browser for keyboard checks, and a screen reader you can use for actual announcement checks.

View operation manual

What this skill helps with

  • Check keyboard navigation and visible focus across controls.
  • Verify form labels, accessible names and announcements.
  • Review behavior with zoom and reduced motion enabled.

Good for

  • Checking keyboard access in navigation
  • Reviewing accessible forms and dialogs
Skill entry
Jakub Krehel’s better-accessibility/SKILL.md and the bundled reference files.
Review baseline
WCAG 2.2 Level A and AA, the affected task, and the skill’s reporting rules.
Test passes
Keyboard-only operation and screen-reader announcements.
Deliverable
Findings by root cause and severity, focused fixes, and verification evidence.
Skill name
better-accessibility

Test what happens when people use the form

A request without a task

Use better-accessibility to scan my settings page.

A scan can miss focus going behind a dialog and whether a saved status is actually announced.

A check someone can reproduce

  1. Name the route, test record, and action that should succeed.
  2. Walk the task by keyboard and check speech with a real screen reader.
  3. Record the failed action, what users experience, and the applicable criterion.

Better Accessibility operation manual

Use these prompts to audit and repair a local settings form or check focus in a modal. Replace the bracketed details with your own route and test flow.

Follow the same Save flow before and after a fix. Check labels, errors, focus, and the announcement after a successful save.

  1. Walk the form with a keyboard and screen reader

    Start with one real Save task. Use a disposable local record to cover both invalid and valid input.

    • Every test begins on the agreed local route with a known record.
    • The report includes keyboard steps and the actual or unverified screen-reader behavior.
    Prompt · Step 1
    Use the installed better-accessibility skill to audit [local settings route] with [test record and Save task]. Read its forms.md, focus-and-keyboard.md, screen-readers.md, and reporting.md. If the route or safe test record is unclear, ask before submitting. Record the current path from initial focus to a successful save. Use Tab, Shift+Tab, and the keyboard activation appropriate to each control. Try an invalid value, then correct it and save. Record which field gets focus and whether labels, errors, and success are announced. Use a real screen reader if available. If you only have the browser’s accessibility tree, identify what actual speech remains unverified. Keep this pass to the audit.
  2. Turn evidence into a repair list

    Group repeated symptoms by their root cause and connect each finding to the affected task.

    Prompt · Step 2
    Use better-accessibility and its reporting.md to organize the audit of [settings route and Save task]. If the audit evidence is missing, ask for it or re-run the read-only checks you can verify. For each root cause, show every location, reproduction steps, expected and observed behavior, severity, relevant WCAG 2.2 A or AA criterion or the skill’s reporting trigger, and a precise fix. Keep APG conventions and larger touch-target recommendations distinct from conformance criteria. Report unrun checks as Not verified. Propose the smallest repair that removes the first failure, and wait for approval to edit.
  3. Repair the approved error or announcement

    Use the project’s own form controls and verify the actual feedback path after changing them.

    Prompt · Step 3
    Use better-accessibility to fix [approved problem] on [settings route]. Read the finding and its baseline before editing. If the scope is unclear, ask for the approved change. Reuse the project’s form control and validation path. For field errors, bind the label and the relevant error text to the input, mark the invalid field, and check focus after submit. For a missing non-urgent success announcement, keep a polite status region present and update its text after a confirmed save. Apply only the technique needed for the approved issue. Preserve the server-side save and validation behavior. Report the changed files.
  4. Re-run the same Save task

    Confirm that failure and success are both understandable after the change.

    • Keyboard users can submit, recover from an error, and save.
    • The field error and saved status can be understood in the tested screen reader.
    Prompt · Step 4
    Use better-accessibility to verify [approved fix] on [local settings route] with [safe test record]. Recover the original reproduction steps before claiming a result. Walk the same tabs and invalid-to-valid submission, and check that focus stays visible beside any sticky controls. Confirm the field error is identifiable and the completed save announces once when a real screen reader is available. Check the accessible names and run relevant automation if available. Report actual checks, remaining findings, and what you could not verify. Do not infer speech from a DOM attribute.

Find the right accessibility check

Point the assistant to the bundled reference and one real interaction.

A keyboard user loses the current focusFocus
Command or reference
focus-and-keyboard.md
Examples
Tab through a modal or past sticky controls and record where focus is hidden or escapes.
A field error needs to be identifiedForms
Command or reference
forms.md
Examples
Try invalid submission, inspect label and error associations, then check focus and error announcement.
The save succeeds silentlyAnnouncements
Command or reference
screen-readers.md
Examples
Mount a polite status region before updating its text, then check the actual screen-reader announcement.
The review needs severity and evidenceReporting
Command or reference
reporting.md
Examples
Group locations by root cause, cite the relevant criterion or reporting trigger, and list unverified checks.

Better Accessibility troubleshooting

Can an automated scan replace the two walkthroughs?

Use the scan to find candidate issues. Walk the flow using only a keyboard, then check announcements on an available screen reader. If you can only inspect code or computed accessibility properties, report the remaining checks as Not verified.

Is a 44 × 44 CSS pixel button required for AA?

WCAG 2.2 criterion 2.5.8 uses a 24 × 24 CSS pixel minimum, with exceptions such as sufficient target spacing. The skill treats larger touch targets as a recommendation.

When should I use a live region for a form error?

Associate a field-specific error with its input and verify the error when focus reaches that field. Reserve a polite status region for an unrelated non-urgent update such as Saved. The skill reserves an alert for urgent errors that do not belong to a particular control.