Guide · Agent skill
How to use the Accessible tree item names agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The aria-treeitem-name skill gives an AI coding agent a specific accessibility rule for custom tree widgets built with role='tree', role='treeitem' and role='group'. It covers file explorers, nested navigation menus and org charts. After reading this guide you will know what the skill does, how to install it, how to ask for it in plain language, and what to expect from it.
Quick start
- 1Download the ZIP. Get the aria-treeitem-name skill ZIP from the page where you found it.
- 2Unzip the skill. Extract it into ~/.claude/skills/ for personal use, or into .claude/skills/ inside a project.
- 3Or upload it in the apps. In the Claude apps, go to Settings, then Capabilities, then Skills, and upload the skill.
- 4Point the agent at tree code. Share the treeitem component or rendered markup you want reviewed.
- 5Ask in plain language. Request a check of treeitem names and aria-expanded, and ask for suggested fixes.
- 6Verify the changes. Test the result with browser accessibility tooling or a screen reader such as NVDA or VoiceOver.
What the skill makes the agent do
Tree widgets show hierarchical data, and screen readers announce each focused treeitem's name, level and position. If a treeitem has an empty or generic name such as 'folder' or 'item', a blind user cannot tell the nodes apart or move through the hierarchy with confidence.
When this skill is active, the agent reviews front-end markup against the rule. It checks that every element with role='treeitem' has a non-empty accessible name, that expandable items carry aria-expanded set to 'true' or 'false', and it suggests fixes such as adding aria-label or aria-labelledby.
- Finds all elements with role='treeitem' and works out each accessible name (aria-labelledby first, then aria-label, then visible text).
- Flags treeitems with empty or whitespace-only names.
- Checks that items with children expose aria-expanded.
- Suggests fixes; the skill is a checklist for reviewing and fixing markup, not a tool that changes files on its own.
Install the skill from the ZIP
Download the ZIP for this skill from the page where you found it. The skill folder contains two files: SKILL.md and references/rule.md.
For a personal install, unzip the folder into ~/.claude/skills/. For a single project, unzip it into the project's .claude/skills/ folder instead.
If you use the Claude apps, you can upload the skill instead. Go to Settings, then Capabilities, then Skills, and upload it there.
- Personal: ~/.claude/skills/
- Project: .claude/skills/ inside your project
- Claude apps: Settings → Capabilities → Skills
Trigger the skill with natural requests
You do not need a special command. Describe the task in plain language when you are working on a tree, file explorer, nested menu or org chart component. The skill's description says it applies to custom tree widgets built with role='tree', role='treeitem' and role='group'.
Name the file or component and say what you want checked, so the agent knows where to look.
- Review TreeView.tsx for treeitem accessible names and fix any that are empty.
- Check whether the expandable items in our sidebar navigation expose aria-expanded.
- Audit the file explorer markup for treeitem naming problems and suggest aria-label fixes.
- Add accessible names to the org chart nodes that use role='treeitem'.
Examples of what the agent will look for
The reference file shows a tree with role='tree' and aria-label on the root, a 'src' item with aria-expanded='true' and nested role='group' children, and leaf items named by their text. Items that need extra context get an aria-label, such as a file name with its file type.
- Good: <li role='treeitem' aria-expanded='true' aria-level='1'>src</li> with descriptive child names.
- Fix for an icon-only item: add aria-label='Descriptive name' so the item has a name.
- Fix for multi-part items (filename plus file size): point aria-labelledby at the most descriptive element's id.
<li role="treeitem" aria-expanded="true" aria-level="1">src</li>What you need before you start
The source does not list any required tools or packages for this skill. You need a front-end codebase that uses ARIA tree roles, and access to the rendered markup or source files the agent should review.
The skill does not run scripts and does not use the network. To verify fixes, you still need browser accessibility tooling or assistive technology such as NVDA or VoiceOver.
Safety notes and limits
The skill runs no scripts and makes no network calls, according to its metadata. It works from the markup you give it.
Its scope is narrow. It covers treeitem names and expanded state only. It is not a full accessibility audit and does not replace testing with real assistive technology.
- Runs scripts: no
- Uses network: no
- Covers treeitem names and aria-expanded only
Tips for getting better results
Give the agent the rendered markup or the component source, not just a description. Ask it to explain which accessible name it computed for each item, so you can check its reasoning.
Use the skill for code review, and keep a manual check with a screen reader before release. Items that are not tree widgets, such as standard lists or details/summary, are outside this pattern.
- Include the component file and any CSS that hides text, since hidden text can affect names.
- Ask for a before-and-after diff so you can review each change.
- Do not use it for native HTML elements such as standard lists or details/summary.
What people use it for
- Reviewing a custom file explorer component for treeitems with empty names.
- Checking that expandable nodes in a nested navigation menu report expanded or collapsed state.
- Adding aria-labelledby to tree rows that combine a file name and file size.
- Setting a consistent treeitem naming checklist during code review.
Frequently asked questions
Is the aria-treeitem-name skill free?
The skill is published under the MIT licence. The source does not list any price, so check the page where you downloaded it for any other terms.
What do I need to use this skill?
The source lists no required tools. You need a front-end codebase with ARIA tree roles and a way to share its markup with the agent. The skill runs no scripts and uses no network.
How do I install an agent skill?
Download the ZIP and unzip it into ~/.claude/skills/ for personal use or a project's .claude/skills/ folder. You can also upload it in the Claude apps under Settings, then Capabilities, then Skills.
Does this skill fix my code automatically?
No. It is a checklist-style guide for reviewing and fixing markup. It suggests fixes such as aria-label or aria-labelledby, and you or the agent apply them.
Can it replace an accessibility audit?
No. The skill covers only treeitem names and expanded state. Test with real assistive technology such as NVDA or VoiceOver for a full picture.
What is the difference between this and a native HTML tree or details/summary?
This skill applies to custom ARIA tree widgets using role='tree', 'treeitem' and 'group'. It does not apply to sites that use native HTML elements such as standard lists or details/summary.
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
This skill suits front-end developers building custom tree or file-explorer components, and accessibility reviewers checking ARIA tree navigation. Teams that want a consistent treeitem naming checklist in code review will also find it useful. If you use only native HTML such as lists or details/summary, or you need a full accessibility audit, pick a broader tool or test with assistive technology.
Download the skill