Skip to content

Guide · Agent skill

How to use the Deprecated ARIA Roles Checker agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The aria-deprecated-role skill teaches an AI agent to review your web page markup for ARIA roles that are deprecated, such as 'directory'. This guide is for front-end developers, QA staff and designers who want a reasoned list of these issues. After reading it you will know how to install the skill, ask for a review in plain language and judge what the output can and cannot tell you.

Deprecated ARIA Roles Checkerthedaviddias/Front-End-Checklist · MIT

Quick start

  1. 1Download the ZIP. Get the aria-deprecated-role ZIP from the skill's page in this directory.
  2. 2Unzip into a skills folder. Unzip it into ~/.claude/skills/ for personal use, or into your project's .claude/skills/ folder.
  3. 3Or upload it in the Claude apps. In the Claude apps, go to Settings → Capabilities → Skills and upload the ZIP.
  4. 4Ask for a review. Name the file or component and ask the agent to check it for deprecated ARIA roles.
  5. 5Check the suggestions. Review each proposed replacement and confirm the fix in a browser or with assistive technology.

What the skill makes the agent do

ARIA roles are labels that tell screen readers what an element is. Some roles have been deprecated as the WAI-ARIA specification evolves, and the skill's source notes that using them can lead to inconsistent behaviour across browsers and screen readers.

When the skill is active, the agent searches your code for deprecated roles and abstract roles that should not appear in HTML. It explains the risks, proposes modern roles or plain native HTML elements as replacements, and checks related keyboard behaviour, focus order and accessible names where relevant.

  • Finds deprecated roles such as 'directory' in your markup
  • Explains why they can cause inconsistent behaviour
  • Suggests modern roles or native HTML elements instead
  • Flags related keyboard, focus and accessible-name issues where relevant
<div role="directory">...</div>

Install the skill by downloading the ZIP

Download the aria-deprecated-role ZIP from the skill's page in this directory, then unzip it. The folder contains SKILL.md and references/rule.md.

For a personal install, unzip the skill into ~/.claude/skills/. To limit it to one project, unzip it into the project's .claude/skills/ folder instead.

If you use the Claude apps, you can instead upload the ZIP under Settings → Capabilities → Skills.

  • Personal install: ~/.claude/skills/
  • Single project: .claude/skills/ inside your project
  • Claude apps: Settings → Capabilities → Skills, then upload the ZIP

Trigger the skill with natural requests

You do not need a special command. The skill's description says it applies when reviewing rendered HTML, interactive components or design-system patterns. Ask for a review of the markup in plain words and name the file or component where you can.

Ask for a check, a fix or an explanation. The skill's own sections cover these three tasks: searching for deprecated roles, updating them to modern equivalents or native elements, and explaining the risks.

  • "Check the markup in components/Tabs.html for deprecated ARIA roles."
  • "Find any role=\"directory\" or other deprecated roles in src/ and suggest replacements."
  • "Review this modal for deprecated roles and tell me whether native elements would do the job."
  • "Explain why the directory role is a problem and how to fix it."

What a good review should contain

The skill's code review guidance asks the agent to flag exact elements, roles, labels, focus behaviour and keyboard interactions that break the rule. It should also say how to verify the fix with browser accessibility tooling or assistive technology.

The source example shows a modern pattern: a nav with an aria-label of 'Site' and a ul with role="list" are accepted, while a div with role="directory" is the incorrect case. Use the review as a starting list, then confirm the result in your own browser and tools.

  • Exact element and location
  • The deprecated or abstract role and the suggested replacement
  • Related keyboard, focus or accessible-name problems
  • How to verify the fix

Safety notes and limits

The skill declares no requirements, runs no scripts and does not use the network. It works from a single checklist rule and does not test real screen-reader output.

The skill's content is brief. Check any role recommendation against the latest WAI-ARIA specification before a release, especially if your project depends on the exact list of current roles.

  • Requires: nothing listed
  • Runs scripts: no
  • Uses network: no
  • Does not replace a full accessibility audit or real screen-reader testing

Tips for better results

Give the agent the markup or the component files, not just a topic. Results are more specific when it can see exact elements. Ask it to prefer native HTML before ARIA, which matches the skill's first check.

Treat the output as a list to verify. Re-test keyboard flow and accessible names in a browser after each change.

  • Paste or point to the real files
  • Ask for native element alternatives first
  • Re-test keyboard and focus after changes

What people use it for

  • Cleaning up old role attributes such as role="directory" in a component library
  • Preparing a markup review before a release
  • Giving developers a reasoned list of ARIA issues to fix
  • Checking whether a native HTML element can replace a custom ARIA pattern

Frequently asked questions

How do I install the aria-deprecated-role skill?

Download the ZIP from the skill's page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder. If you use the Claude apps, you can upload the ZIP under Settings → Capabilities → Skills.

Is the aria-deprecated-role skill free?

The skill is published under the MIT licence, as stated on its page. The source does not list any price, so check the licence text for the terms that apply to you.

What do I need to run this skill?

The skill lists no requirements. It runs no scripts and does not use the network, so it needs only an agent environment that can load skills.

Why is the 'directory' ARIA role a problem?

The skill's source says deprecated roles can lead to inconsistent behaviour across browsers and screen readers as they move to newer standards. It also says browsers may drop support for them in future versions.

Does this skill test real screen-reader output?

No. The skill works from a single checklist rule and does not test real screen-reader output. Verify fixes with browser accessibility tools or assistive technology.

How does it compare with a full accessibility audit?

It covers one rule about deprecated and abstract ARIA roles, plus related keyboard, focus and naming checks. It is not a full audit, so use it alongside wider testing.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Front-end developers and teams who want a focused cleanup of deprecated ARIA roles, or a list of markup issues to hand to developers, will find this skill useful. Non-technical users who need a full accessibility audit, or projects that need verified coverage of every current ARIA role, should pick a broader audit tool or check the latest WAI-ARIA specification directly.

Download the skill

Find exactly what
you're looking for