accessibility
Skill0 starsChanged 8 months agoMITView on GitHub
Use when writing frontend UI, HTML, components, forms, dialogs, tooltips, tables, or grids. Enforces WCAG 2.1 AA (ADA Title II, Section 508).
123 other projects use a version of this.
Adopted by
Most recently taken up by
- Khan/perseustheir own version, first seen Nov 9, 2026
- linx-systems/clamuitheir own version, first seen Nov 9, 2026
- Rojios/everything-claude-codetheir own version, first seen Nov 8, 2026
- ahmadvahidi/skill-atlastheir own version, first seen Nov 8, 2026
- GstMirabal/Token-Optimized-Agent-Pipelinetheir own version, first seen Nov 8, 2026
- DnsQueen/orcinus-skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use author-contributions, tool-rename-deprecation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillauthor-contributions
Identify all files a specific author contributed to on a branch vs its upstream, tracing code through renames. Use when asked who edited what, what code an author contributed, or to audit authorship before a merge. This skill should be run as a subagent — it performs many git operations and returns a concise table.
Also in 7 projects that use this
gitpod-ioSkilltool-rename-deprecation
Ensure renamed built-in tool references preserve backward compatibility. Use when renaming a toolReferenceName, tool set referenceName, or any tool identifier. Run on ANY change to tool registration code. Covers legacyToolReferenceFullNames for tools and legacyFullNames for tool sets.
Also in 5 projects that use this
DepressionCenterSkillproject-preferences
Apply repository-specific preferences when planning, implementing, or reviewing changes in this project.
Also in 6 projects that use this
MicrosoftSkillchat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.
Also in 5 projects that use this
DepressionCenterSkillcreate-media-pack
Create a coordinated project branding and media pack with three accessible design options, approved vector artwork, image exports, a branding guide, and README integration. Use when asked for a repository media pack, brand kit, or complete project visual identity.
Also in 5 projects that use this
- +7 more from microsoft
Other versions123 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 123
- microsoft/vscode★ 195ksame name
- elastic/kibana★ 21ksame name
- mozilla-mobile/firefox-ios★ 13ksame name
- midudev/preguntas-entrevista-react★ 7.8ksame name
- gitpod-io/openvscode-server★ 6.2ksame name
- posit-dev/positron★ 4.3ksame name
- legions-developer/evilcharts★ 3.2ksame name
- midudev/la-velada-web-oficial★ 1.9ksame name
- UI5/webcomponents★ 1.8ksame name
- theopenco/llmgateway★ 1.7ksame name
113 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- access-controlSkill
- accessibility-testingSkill
- api-securitySkill
- authenticationSkill
- dependency-securitySkill
- injection-preventionSkill
- input-validationSkill
- secrets-managementSkill
- security-contextSkill
- security-headersSkill
- xss-csrfSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 112 edited versions we read keep these.
1
Distinctive
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 8
If it's not usable by keyboard, screen reader, and zoom, it's broken.
“Common” is measured: kept by at least 6 in 10 of the 112 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Accessibility (WCAG 2.1 AA)
If it's not usable by keyboard, screen reader, and zoom, it's broken. Criteria map: wcag-2.1-aa.md.
Related: accessibility-testing, input-validation, xss-csrf
Rule 1: Disabled Controls Explain Why
A disabled button can't take focus, so its tooltip reason never reaches keyboard or screen reader users.
<!-- WRONG --> <button disabled title="Term is closed">Edit grades</button>
<!-- RIGHT: focusable, announced as unavailable, reason is real text. Click handler ignores it. -->
<button aria-disabled="true" aria-describedby="edit-why">Edit grades</button>
<p id="edit-why">Grades are locked because the term is closed.</p>Rule 2: Dialogs Trap Focus and Return It
Focus moves in, stays in, Esc closes, focus returns to the trigger. Same for drawers and menus. Angular Material's MatDialog and MatMenu do this by default; keep restoreFocus on.
// WRONG: focus stays on the page behind and is lost on close
dialog.hidden = false;
// RIGHT: showModal() traps focus and handles Esc; return focus explicitly
const trigger = document.activeElement; dialog.showModal();
dialog.addEventListener('close', () => trigger.focus(), { once: true });Rule 3: Tooltips Are Dismissible, Hoverable, Persistent
Show on hover AND focus, stay while the pointer is on the tip, close on Esc.
// WRONG: hover only; vanishes before the pointer reaches it
trigger.onmouseenter = show; trigger.onmouseleave = hide;
// RIGHT (trigger has aria-describedby="tip"; tip has role="tooltip")
let t; const keep = () => { clearTimeout(t); show(); }, later = () => { t = setTimeout(hide, 300); };
for (const el of [trigger, tip]) { el.onmouseenter = keep; el.onmouseleave = later; }
trigger.onfocus = keep; trigger.onblur = hide;
document.addEventListener('keydown', (e) => { if (e.key === 'Escape') hide(); });Rule 4: Tables and Grids Announce Structure and State
Headers, sort direction, selection, and row counts must be announced, not only drawn. Custom grids: role="grid", columnheader, aria-selected, arrow keys.
<!-- WRONG --> <div class="row head"><div onclick="sort()">Name ▲</div></div>
<!-- RIGHT -->
<table><caption>Students</caption>
<tr><th scope="col" aria-sort="ascending"><button>Name</button></th><th scope="col">Selected</th></tr>
<tr><td>Ana Ruiz</td><td><input type="checkbox" aria-label="Select Ana Ruiz" checked></td></tr></table>
<p role="status">Showing 24 of 310 students</p>Rule 5: Errors Name the Field, the Problem, and the Fix
Color alone is not an error. Delete, dispose, and payment actions get a confirm step or Undo.
<!-- WRONG --> <input id="dob" class="invalid">
<!-- RIGHT -->
<label for="dob">Date of birth</label> <input id="dob" autocomplete="bday" aria-invalid="true" aria-describedby="dob-err">
<p id="dob-err" role="alert">Date of birth must look like 04/09/2012.</p>Rule 6: Visible Focus and Contrast
Text 4.5:1. Input borders, checkboxes, meaningful icons, and focus rings 3:1.
/* WRONG */ :focus { outline: none; } input { border: 1px solid #ddd; } /* 1.4:1 */
/* RIGHT */ :focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
input { border: 1px solid #767676; } /* 4.5:1 on white */Rule 7: Real Elements, Real Names, Real Page Structure
<button> and <a> are keyboard accessible for free. Pages need lang, <title>, a skip link, landmarks, sequential headings.
<!-- WRONG --> <div onclick="save()">Save</div> <button><svg>…</svg></button> <a href="/r.pdf">Click here</a>
<!-- RIGHT -->
<html lang="en"><title>Gradebook: Period 3 | District Portal</title> <a href="#main">Skip to main content</a>
<nav aria-label="Main">…</nav> <main id="main"><h1>Gradebook</h1><h2>Recent activity</h2>
<button type="button" onclick="save()">Save</button> <button type="button" aria-label="Close"><svg aria-hidden="true">…</svg></button>
<img src="trend.png" alt="Average rose from 78 to 84"> <img src="rule.svg" alt=""> <a href="/r.pdf">Period 3 report (PDF)</a></main>Rule 8: Users Control Time and Motion
Warn before a timeout and let users extend it. Anything that moves or auto-updates can be paused.
// WRONG: session silently expires and the form is lost
setTimeout(logout, 20 * 60_000);
// RIGHT: warn 2 minutes ahead with a "Stay signed in" button; honor prefers-reduced-motion
setTimeout(() => warnDialog('Your session ends in 2 minutes.', extendSession), 18 * 60_000);Quick Reference
| Do | Don't |
Label every input; visible label text is inside the accessible name; add autocomplete | Placeholder as the only label |
Fluid layout in rem; works at 200% text and 320px wide; never lock orientation | Fixed px widths and heights on text containers |
| Change context only on an explicit action (button, submit) | Navigate or submit on focus or select change |
| Same navigation order and control names on every page | Rename the same action from page to page |
Generated PDFs: tagged, title, lang, reading order. HTML emails follow these rules | Ship untagged PDF exports |
| 44x44px touch targets (stricter than AA) | Tiny tap targets |
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.

