Aria usage
Use ARIA correctly by preferring native HTML, applying roles/states/properties only where needed, and following known widget patterns. Use when making custom components accessible or fixing broken ARIA.From its SKILL.md
npx -y skills add Amey-Thakur/AI-SKILLS --skill aria-usageAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.7 KB, as published. Nobody here has run it
ARIA usage
ARIA adds accessibility semantics where HTML falls short, and its first rule is a warning: do not use ARIA if a native element does the job. Most broken ARIA comes from adding it where it was not needed or adding roles without the keyboard behavior and state management they require. Native first, ARIA carefully.
Method
- Prefer native HTML elements (the first rule of ARIA).
A
<button>is accessible for free: focusable, keyboard-operable, announced as a button. A<div role="button">requires you to add tabindex, keyboard handlers, and states manually, and you will miss some. Use<button>,<a>,<input>,<select>,<nav>,<main>before reaching for ARIA: native semantics beat reimplemented ones every time. - Understand roles, states, and properties. Role (what
it is:
role="tab"), states (current condition, dynamic:aria-selected="true",aria-expanded="false"), properties (characteristics, mostly static:aria-label,aria-controls). A role sets expectations the rest of the ARIA and the keyboard behavior must fulfill;role="tab"promises tab behavior you must then deliver. - Follow the established widget patterns. For custom widgets (tabs, menus, comboboxes, dialogs, tree, accordion), the ARIA Authoring Practices Guide defines the exact roles, states, and keyboard interactions expected: implement the whole pattern, not a subset. Half-implemented patterns (a role without its keyboard support: see keyboard-navigation) are worse than none, because they announce a behavior that then does not work.
- Keep ARIA states in sync with reality, always.
aria-expanded,aria-checked,aria-selected,aria-hiddenmust update the instant the UI state changes: a collapsed menu still sayingaria-expanded="true"lies to the screen reader (see screen-reader-testing). The state attributes are the accessible truth; stale ones are accessibility bugs users cannot see but hit constantly. - Name things accessibly, correctly. Prefer visible
labels associated properly (a
<label>for an input: see accessible-forms); usearia-labeloraria-labelledbyonly when no visible label exists or the accessible name must differ. Do not label things already named (labeling a<button>Save</button>witharia-label="Save"is redundant, and a mismatched one is a bug). - Never use ARIA to hide broken semantics.
aria-hidden="true"on focusable content creates a trap (invisible to screen readers but still tab-focusable);roleoverrides that fight the element's real behavior confuse more than help. ARIA is a scalpel for gaps in native semantics, not a patch over structural problems: fix the structure (see the "no ARIA is better than bad ARIA" principle).
Boundaries
- ARIA changes semantics announced to assistive tech; it
does not add behavior.
role="button"does not make a div clickable-by-keyboard: you add that yourself (see keyboard-navigation). ARIA describes; you must still implement. - Testing with an actual screen reader is required (see screen-reader-testing): ARIA that looks right in code can announce wrong in practice, and automated checkers catch only a fraction. Verify with the real tool.
- ARIA is the fallback for custom components; if you find yourself writing extensive ARIA, first ask whether a native element or a well-tested accessible component library would serve better (the native-first rule, scaled up).
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 1 of the 12 instructions most accessibility skills give
Counted across 360 of the 378 authors here whose files we hold, read 2026-09-06
- Respect prefers-reduced-motionin 49 of 360, across 41 files
- Add alt text to every imagein 47 of 360, across 40 files
- Make every interactive element keyboard operablein 46 of 360, across 37 files
- Keep focus indicators visiblein 42 of 360, across 37 files
- Associate every form input with a labelin 42 of 360, across 35 files
- Ensure 4.5:1 contrast for normal textin 38 of 360, across 32 files
- Trap focus in modals and restore it on closein 37 of 360, across 25 files
- Prefer native HTML elements over ARIAhere, and in 37 of 360, across 33 files
- Add aria-label to icon-only buttonsin 24 of 360, across 13 files
- Announce dynamic content updates with aria-livein 24 of 360, across 16 files
- Use ARIA only when native HTML is insufficientin 23 of 360, across 15 files
- Meet WCAG AA contrast ratiosin 23 of 360
Said here and by no other author read
- Add keyboard behavior when applying roles
- Implement whole widget patterns, not subsets
- Prefer visible labels associated with inputs
- Use aria-label only when no visible label exists
- Fix structure instead of masking it with ARIA
- Consider native elements or component libraries before extensive ARIA
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once.