semantic-accessibility
Skill11 starsChanged 10 days agoMITView on GitHub
Use when building or reviewing page structure, landmarks, headings, links, buttons, images, forms, tables, and accessible names in web interfaces.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- accessibility-automationSkill
- accessibility-reviewSkill
- accessible-componentsSkill
- accessible-motionSkill
- animation-performanceSkill
- anti-slop-uiSkill
- api-securitySkill
- authentication-sessionsSkill
- authorization-access-controlSkill
- component-engineeringSkill
- core-web-vitalsSkill
- design-directionSkill
- design-system-architectureSkill
- document-head-seoSkill
- font-performanceSkill
- forms-and-validationSkill
- frontend-architectureSkill
- gsap-fundamentalsSkill
- icon-engineeringSkill
- image-asset-optimizationSkill
- independent-reviewSkill
- interactive-storytellingSkill
- javascript-performanceSkill
- keyboard-focusSkill
- modern-cssSkill
- motion-design-systemsSkill
- network-cachingSkill
- performance-auditingSkill
- performance-testingSkill
- premium-landing-pagesSkill
- quickstart-onboardingSkill
- rendering-performanceSkill
- responsive-engineeringSkill
- screen-reader-testingSkill
- scrolltrigger-experiencesSkill
- secrets-configurationSkill
- secure-application-designSkill
- secure-input-outputSkill
- security-reviewSkill
- security-testingSkill
- visual-design-reviewSkill
- visual-reference-analysisSkill
- wcag-auditingSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Use native elements for their intended purpose: links navigate, buttons perform actions, forms submit, labels name controls, and headings …
- Distinctive: line 19
Ensure icon-only controls have a programmatic accessible name.
- Distinctive: line 21
Use table headers and scopes for genuinely tabular data.
- Distinctive: line 22
Verify accessible name, role, value and state in browser accessibility tooling and a screen reader.
- Distinctive: line 26
Do not add roles or states already supplied by native elements.
- Distinctive: line 27
Do not use generic clickable divs or spans when a button or link is appropriate.
- Distinctive: line 28
Do not add redundant role="button" to a button.
- Distinctive: line 29
Do not use ARIA to repair invalid or contradictory HTML semantics.
- Distinctive: line 30
Keep accessible names concise, unique in context and aligned with visible labels.
- Distinctive: line 31
Ensure hidden content is truly removed from both visual and accessibility navigation when intended.
- Distinctive: line 41
No computed name, role, value, state, or relationship checks are recorded for representative controls.
≈ “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
Semantic Accessibility
Objective
Express meaning and interaction through native HTML first. Semantic markup gives browsers and assistive technologies reliable structure, keyboard behavior and accessible roles without unnecessary ARIA.
Workflow
- Inspect the rendered DOM and identify the page's main regions, heading hierarchy, navigation, content groups and interactive controls.
- Use native elements for their intended purpose: links navigate, buttons perform actions, forms submit, labels name controls, and headings structure content.
- Provide one clear main landmark and meaningful, distinguishable labels for repeated navigation landmarks.
- Build a logical heading outline. Do not choose heading levels for visual size; style headings with CSS.
- Give informative images concise purpose-based alternative text. Use empty alt text for decorative images; avoid repeating adjacent text.
- Ensure icon-only controls have a programmatic accessible name. Prefer visible text where practical.
- Associate every form control with a persistent label. Group related controls with fieldset and legend where appropriate.
- Use table headers and scopes for genuinely tabular data. Do not use tables for layout.
- Verify accessible name, role, value and state in browser accessibility tooling and a screen reader.
Native HTML before ARIA
- Do not add roles or states already supplied by native elements.
- Do not use generic clickable divs or spans when a button or link is appropriate.
- Do not add redundant role="button" to a button.
- Do not use ARIA to repair invalid or contradictory HTML semantics.
- Keep accessible names concise, unique in context and aligned with visible labels.
- Ensure hidden content is truly removed from both visual and accessibility navigation when intended; do not hide focusable descendants accidentally.
Common AI failure mode
Failure: An agent chooses semantic elements and adds ARIA attributes from source inspection, then declares the interface accessible without checking the computed accessibility tree.
Why it matters: Invalid ID references, overridden names, hidden focusable descendants, and conflicting native/ARIA semantics can leave controls unnamed or expose a misleading structure even when the markup looks plausible.
Symptoms:
- The agent declares the interface accessible without inspecting its rendered accessibility tree.
- No computed name, role, value, state, or relationship checks are recorded for representative controls.
- ARIA decisions are justified only from source markup, with no evidence from dynamic or hidden states.
- The report treats tag presence or source-level attributes as proof of the computed accessibility structure.
Prevention: Inspect computed name, role, value, state, and relationships in the rendered accessibility tree. Exercise representative controls by keyboard and screen reader, verify dynamic updates and responsive order, prefer native HTML, and remove redundant or contradictory ARIA. Record untested states instead of inferring accessibility from tag presence.
Verification
Inspect the accessibility tree, navigate landmarks and headings with a screen reader, use controls without a pointer, and verify names and roles after dynamic state changes. Check responsive layouts for DOM/visual order mismatch. Also verify that form labels do not rely on placeholders, interactive elements retain keyboard support and accessible names, heading levels express structure, landmarks are distinguishable, images have meaningful alternatives, ARIA references resolve to current IDs and state, and visual order agrees with DOM and reading order.
Completion criteria
The document has a meaningful semantic structure, interactive elements use native behavior, controls have clear accessible names, and the accessibility tree reflects the intended interface.
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.

