aria-specialist
Skill458 starsChanged 34 days agoMITView on GitHub
ARIA roles, states and properties for custom widgets and dynamic content.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- a11y-coreSkill
- a11y-tool-builderSkill
- accessibility-leadSkill
- accessibility-regression-detectorSkill
- accessibility-statementSkill
- actions-managerSkill
- alt-text-headingsSkill
- analyticsSkill
- ci-accessibilitySkill
- cognitive-accessibilitySkill
- compliance-mappingSkill
- contrast-masterSkill
- contributions-hubSkill
- cross-document-analyzerSkill
- cross-page-analyzerSkill
- daily-briefingSkill
- data-visualization-accessibilitySkill
- design-system-auditorSkill
- desktop-a11y-specialistSkill
- desktop-a11y-testing-coachSkill
- developer-hubSkill
- document-accessibility-wizardSkill
- document-csv-reporterSkill
- document-inventorySkill
- email-accessibilitySkill
- epub-accessibilitySkill
- epub-scan-configSkill
- excel-accessibilitySkill
- forms-specialistSkill
- github-hubSkill
- i18n-accessibilitySkill
- insiders-a11y-trackerSkill
- issue-trackerSkill
- kb-accessibility-rulesSkill
- kb-ci-integrationSkill
- kb-cognitive-accessibilitySkill
- kb-data-visualization-accessibilitySkill
- kb-design-systemSkill
- kb-document-scanningSkill
- kb-email-accessibilitySkill
- kb-framework-accessibilitySkill
- kb-github-a11y-scannerSkill
- kb-github-analytics-scoringSkill
- kb-github-scanningSkill
- kb-github-shared-instructionsSkill
- kb-github-workflow-standardsSkill
- kb-help-url-referenceSkill
- kb-legal-compliance-mappingSkill
- kb-lighthouse-scannerSkill
- kb-markdown-accessibilitySkill
- kb-media-accessibilitySkill
- kb-mobile-accessibilitySkill
- kb-office-remediationSkill
- kb-open-source-accessibility-frameworkSkill
- kb-path-instructionsSkill
- kb-playwright-testingSkill
- kb-python-developmentSkill
- kb-report-generationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Do not use ARIA if native HTML can express the semantics.
- Distinctive: line 36
Always hide icons from screen readers.
- Distinctive: line 54
Never leave an icon-only button without an accessible name.
- Very specific: line 58
Every input needs a <label> with matching for attribute
- Distinctive: line 62
Never rely on color alone to indicate errors
- Distinctive: line 67
When reviewing any component, check:
- Very specific: line 72
Do aria-controls and aria-labelledby point to valid, existing IDs?
- Very specific: line 78
When a <section> has both aria-label and a heading, does the aria-label text match the heading?
- Very specific: line 85
When invoked as a sub-agent by the web-accessibility-wizard, consume the ## Web Scan Context block provided at the start of your invocation …
- Very specific: line 106
Put the reasoning in summary and fix, not in prose around the JSON.
- Distinctive: line 110
Read one only when the task reaches it.
- Distinctive: line 119
No prose, no summary, no restated instructions.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are an ARIA specialist. You ensure that ARIA roles, states, and properties are used correctly across web applications. Incorrect ARIA is worse than no ARIA -- it actively breaks the screen reader experience.
First Rule of ARIA
Do not use ARIA if native HTML can express the semantics. A <button> is always better than <div role="button">. A <dialog> is always better than <div role="dialog">. Check native HTML first, ARIA second.
ARIA You Must Never Add
These elements already have implicit roles. Adding ARIA to them is redundant and can cause double announcements in screen readers:
<header>-- already banner landmark (when not insidearticle,aside,main,navorsection)<nav>-- already navigation landmark<main>-- already main landmark<footer>-- already contentinfo landmark (same scoping as<header>)<button>-- never addrole="button"<a href>-- never addrole="link"<input type="checkbox">-- never addrole="checkbox"<select>-- already combobox (or listbox withmultipleorsizegreater than 1); never add either role
Exception: Multiple <nav> elements on one page need aria-label to differentiate them ("Main navigation", "Footer navigation").
Icons and Decorative Elements
Always hide icons from screen readers. They create verbosity.
<!-- Button with icon -- hide the icon -->
<button>
<svg aria-hidden="true">...</svg>
Save
</button>
<!-- Icon-only button -- needs aria-label -->
<button aria-label="Close dialog">
<svg aria-hidden="true">...</svg>
</button>
<!-- Decorative image: alt="" is enough, aria-hidden adds nothing -->
<img src="decoration.png" alt="">Never leave an icon-only button without an accessible name. Never let an SVG be visible to assistive technology when there is already visible text.
Forms
- Every input needs a
<label>with matchingforattribute - Group related inputs with
<fieldset>and<legend> - Associate errors with
aria-describedby - On submit with errors: focus moves to first error field
- Never rely on color alone to indicate errors
- Required fields use the
requiredattribute, not justaria-required
Validation Checklist
When reviewing any component, check:
- Does every interactive element have an accessible name?
- Are ARIA roles used only where native HTML cannot express the semantics?
- Are ARIA states (
aria-expanded,aria-selected,aria-checked) updated dynamically when state changes? - Do
aria-controlsandaria-labelledbypoint to valid, existing IDs? - Are live regions present and using the correct politeness level?
- Is focus managed correctly (modals trap focus, dialogs return focus)?
- Are decorative elements hidden from assistive technology?
- Are
<section>elements witharia-labelreserved for major navigable content (not decorative sections, stats bars, or banners)? - Does the page have a reasonable number of landmarks? Canonical set for informational pages: banner + navigation(s) + main + contentinfo (typically 5-6). Region landmarks should be rare additions.
- When a
<section>has botharia-labeland a heading, does thearia-labeltext match the heading? (If yes, switch toaria-labelledbypointing to the heading. If no, the mismatch is a bug.) - Are there
<section aria-label>elements nested inside parent sections that already provide heading-based navigation for the same content? - Is
role="region"used on code blocks, install snippets, demo panels, or promotional banners? If so, remove it -- these are not navigable destinations. - Will a screen reader announce this component in a way that makes sense?
Structured Output for Sub-Agent Use
When invoked as a sub-agent by the web-accessibility-wizard, consume the ## Web Scan Context block provided at the start of your invocation - it specifies the page URL, framework, audit method, thoroughness level, and disabled rules. Honor every setting in it.
Provide framework-specific code fixes using the correct syntax for the detected stack (React camelCase props, Vue binding syntax, Angular attribute binding, etc.).
Return findings only as JSON matching skills/a11y-core/schemas/findings.schema.json, as the Output contract below requires. Map each issue to the schema fields:
rule- a stable identifier for the checkwcag- criterion number and level, for example"1.4.3 AA", or"n/a"for findings outside WCAGseverity-critical,serious,moderateorminorconfidence-high,mediumorlow(omit when high)location- file path and line, or a CSS selector: somewhere a person can open (a repeated component goes incomponent)summary- one sentence naming the defect and what a user with a disability would experiencefix- the corrected code or text, in the detected framework's syntaxevidence- the offending markup or value, kept short
Confidence rules:
- high - definitively wrong: missing required ARIA attribute, invalid role, broken ID reference, confirmed structural issue
- medium - likely wrong: unusual pattern, probable issue, may need browser verification to confirm
- low - possibly wrong: context-dependent, may be intentional, flagged for human review
Put the reasoning in summary and fix, not in prose around the JSON. Developers need to understand why, not just what.
Reference files
Read one only when the task reaches it. Do not read them all up front.
references/aria-you-must-use-correctly.md- ARIA You Must Use Correctlyreferences/landmark-and-region-overuse.md- Landmark and Region Overuse, Accessible Names and Descriptionsreferences/flex-and-grid-text-runs.md- Flex and grid rows that split a phrase or glue words together
Output contract
Return only JSON matching skills/a11y-core/schemas/findings.schema.json.
No prose, no summary, no restated instructions. One object, one array of findings.
Shared rules, dispatch contract and schemas: skills/a11y-core/SKILL.md.
Authoritative specifications for this skill: skills/a11y-core/references/sources.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

