Make Accessibility a First-Class Review: A Practical Workflow for AI Coding Agents
An AI coding agent can add an aria-label in seconds. The harder part is knowing whether the fix addresses the real user journey, whether it creates a new keyboard problem, and whether the result is supported by evidence.
The Tech Leads Club Agent Skills catalog includes the Accessibility (a11y) skill. It gives an agent a focused accessibility review vocabulary based on WCAG 2.1 and Lighthouse accessibility audits: text alternatives, keyboard operation, focus, forms, errors, contrast, reduced motion, ARIA, and more.
This tutorial shows how to install the skill, use it on a small web feature, and keep the agent's suggestions grounded in checks you can actually run.
What you need
You need:
- Node.js and npm, so
npxis available. - A supported AI coding agent. The catalog lists agents including Cursor, Claude Code, GitHub Copilot, Cline, Windsurf, OpenAI Codex, and others.
- A web project that you can safely inspect or change.
- An automated accessibility check such as Lighthouse or axe, plus time for manual keyboard testing.
The skill is a review aid, not a certification. It can help you find and fix likely issues, but it cannot replace testing with assistive technology or your team's accessibility requirements.
Install the skill
The current official install command is:
npx @tech-leads-club/agent-skills install --skill accessibility
The installer can target a specific supported agent. For example, the current CLI accepts an agent selection like this:
npx @tech-leads-club/agent-skills install --skill accessibility --agent cursor
Use the agent name and scope that match your setup. The catalog's about page lists the supported agents and their project skill directories. The CLI also provides an interactive installer if you want to browse first:
npx @tech-leads-club/agent-skills install
After installation, start a fresh agent session if the skill is not discovered immediately. Confirm that the selected agent can see accessibility in its installed skills before relying on it.
Start with a bounded review
Give the agent one user journey instead of asking for a vague "make the site accessible" rewrite. For example:
Use the accessibility skill to review the checkout form in this project.
Focus on:
- keyboard-only completion from the first field to the submit action
- labels, instructions, and validation errors
- visible focus and color contrast
- whether dynamic status messages are announced
Inspect the relevant files first. Report each finding with the file, the
user impact, and a concrete fix. Do not change files yet. Separate findings
that need manual testing from findings that can be verified in code.
This prompt creates a useful boundary. The agent has a clear flow to inspect, and you retain the decision about whether a suggested change fits the product's interaction model.
Review the findings against POUR
The skill organizes its guidance around the four WCAG principles:
- Perceivable: Can users obtain equivalent information through different senses? Check image alternatives, captions, contrast, and content that is not conveyed by color alone.
- Operable: Can users operate the interface with a keyboard? Check focus visibility, focus order, skip links, modal behavior, timing, and motion preferences.
- Understandable: Are language, navigation, labels, instructions, and errors clear and predictable?
- Robust: Does the markup expose a reliable name, role, and value to browsers and assistive technologies? Prefer native HTML before adding ARIA.
For standards work, link findings to the relevant success criterion and verify the current wording in the W3C WCAG quick reference. The W3C reference covers the WCAG 2.1 view as well as the newer WCAG 2.2 material, so record which version your project targets instead of treating the labels as interchangeable.
Turn one finding into a small fix
Suppose the review identifies an icon-only close button and a form error that is visible but not associated with its input. Ask for a narrow patch:
Implement only the checkout accessibility fixes we approved:
1. Give the close button an accessible name and hide its decorative SVG
from assistive technology.
2. Associate the email error with the input using aria-invalid and
aria-describedby, and preserve the visible message.
3. Do not change the checkout layout or validation rules.
Add or update focused tests where this project already has a testing
pattern. Show the changed files and explain how each acceptance check can
be verified. Do not claim WCAG conformance from a passing unit test alone.
The important detail is the constraint. Accessibility fixes should preserve behavior that was not part of the problem, and the agent should not turn a small review into an unbounded redesign.
For native controls, prefer a real <button> over a clickable <div>. For form fields, use an explicit label and connect instructions or errors with aria-describedby when appropriate. For a dynamic message, decide whether it is a polite status update or an urgent alert before choosing a live-region pattern. These are implementation decisions to verify in context, not copy-and-paste guarantees.
Verify in layers
Run an automated check after the change. The skill documents Lighthouse and axe examples:
npx lighthouse https://example.com --only-categories=accessibility
Or, if your project uses axe:
npm install @axe-core/cli -g
axe https://example.com
Treat the output as a defect list, not a final score. Fix the relevant issues, rerun the check, and inspect the changed HTML and CSS. Then perform the manual checks that automation cannot fully establish:
- Put your hands on the keyboard and Tab through the complete flow. Confirm the order is logical and every action is reachable.
- Confirm focus is visible and remains visible against the current background.
- Zoom to 200% and check that content and controls remain usable.
- Test with a screen reader such as NVDA on Windows or VoiceOver on macOS.
- Enable reduced motion and verify that essential information does not depend on animation.
- Re-test validation errors, dialogs, menus, and dynamic updates after the happy path works.
The WAI-ARIA Authoring Practices Guide is useful when a custom widget is unavoidable. It is not a reason to replace working native elements with ARIA. For automated rule explanations, compare the report with Deque's axe rules and your own product requirements.
Where this skill helps most
Use accessibility when you are:
- reviewing a form, dialog, navigation menu, or data-heavy page;
- preparing a feature for keyboard and screen-reader testing;
- turning a Lighthouse or axe report into a focused implementation plan;
- checking a UI change before a release or design handoff.
Do not use it as a substitute for a performance audit, SEO work, or a broad multi-area site review. The catalog points to separate skills for those jobs. Also be careful with legal or compliance language: a skill-assisted review can surface risks and evidence, but it does not establish that a site satisfies every applicable law or standard.
Troubleshooting
The agent ignores the skill. Check the installation target and agent name, then open a fresh session. Inspect the installer output and the agent's skill directory.
The report is too broad. Name one route, component, or user journey and ask for findings before edits.
The automated audit is clean but users still struggle. Continue with keyboard, zoom, and screen-reader checks. Automated tools cannot prove every interaction, content, or context requirement.
The agent suggests adding ARIA everywhere. Ask it to explain why a native element is insufficient and to cite the affected interaction. Prefer the smallest semantic change that exposes the correct name, role, and state.
Takeaway
Install the Accessibility (a11y) skill, give your agent one concrete user journey, and require evidence for every proposed fix. The useful outcome is not a larger checklist. It is a repeatable path from a real interaction problem to a change you can verify with code, automation, and people using the interface.
Which journey in your product would reveal the most accessibility risk if you tested it with only a keyboard today?
Disclosure: This tutorial was prepared with AI assistance and checked against the linked Tech Leads Club, W3C, WAI-ARIA, and axe documentation.
Top comments (0)