accessibility
Skill104 starsChanged 3 days agoApache-2.0View on GitHub
Accessibility patterns and requirements for this project. Use when creating interactive components, forms, dialogs, or any user-facing UI.
We split this skill into the rules it gives an agent
11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 99 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
All interactive elements without visible text must have an aria-label:
- Very specific: line 36
Use the shadcn/ui Label component for proper form associations.
- Very specific: line 80
Use sr-only class for visually hidden but screen-reader-accessible text:
- Distinctive: line 96
Use proper semantic elements and ARIA roles:
- Distinctive: line 105
All focusable elements must use the project's focus-visible ring pattern:
- Very specific: line 111
Do not remove outline-none without replacing it with a visible focus indicator.
- Distinctive: line 121
All shadcn/ui components (Dialog, Select, Checkbox, Switch, Tabs) handle focus trapping and keyboard navigation automatically
- Very specific: line 129
Folders in sidebar: Use role="button" with aria-expanded
- Distinctive: line 130
Canvas keyboard shortcuts: Must not interfere with dialog/modal focus
- Distinctive: line 132
When adding new interactive elements to the flow canvas, ensure they:
- Distinctive: line 136
Don't capture keyboard events that should reach parent containers
“Common” is measured: kept by at least 6 in 10 of the 99 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 Patterns
This project builds on shadcn/ui primitives which provide strong built-in a11y. Follow these patterns to maintain that standard.
ARIA Labels
All interactive elements without visible text must have an aria-label:
<Button variant="ghost" aria-label="Home">
<Icon name="Home" />
</Button>
<div role="button" aria-expanded={isOpen} aria-label={`Folder: ${folder.name}`}>Form Accessibility
Link inputs to labels and error messages:
<Input
id={id}
aria-invalid={!!error}
aria-describedby={`${id}-hint`}
/>
{!!error && <Text tone="critical">{error.join("\n")}</Text>}
<div id={`${id}-hint`}>{hint}</div>Use the shadcn/ui Label component for proper form associations.
Keyboard Navigation
Required keyboard support for custom interactive elements:
- Enter/Space: Activate buttons and toggles
- Escape: Close dialogs, cancel editing, deselect
- Tab: Move focus between interactive elements
The Input component has built-in onEnter and onEscape props:
<Input onEnter={save} onEscape={cancel} />Everything else handles the keys itself:
onKeyDown={(e) => {
if (e.key === "Enter" && !e.shiftKey) {
e.preventDefault();
save();
} else if (e.key === "Escape") {
e.preventDefault();
cancel();
}
}Non-button clickable elements need role="button" and tabIndex={0}:
<div role="button" tabIndex={0} title="Click to edit">
{content}
</div>Dialogs must prevent keyboard shortcuts from leaking to the canvas:
The dialog component already handles this — use preventKeyboardPropagation prop when needed. This stops Ctrl+A, Ctrl+C, Ctrl+V, Tab, Enter, and Escape from reaching React Flow.
Screen Reader Support
Use sr-only class for visually hidden but screen-reader-accessible text:
<DialogClose>
<Cross2Icon />
<span className="sr-only">Close</span>
</DialogClose>
<DialogHeader className="sr-only">
<DialogTitle>{title}</DialogTitle>
<DialogDescription>{description}</DialogDescription>
</DialogHeader>Semantic HTML
Use proper semantic elements and ARIA roles:
- Navigation —
<nav aria-label="breadcrumb"> - The current page in a breadcrumb —
<span role="link" aria-disabled="true" aria-current="page"> - Decorative separators —
<li role="presentation" aria-hidden="true"> - Alerts —
<div role="alert">
Focus Styling
All focusable elements must use the project's focus-visible ring pattern:
focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:border-ringDo not remove outline-none without replacing it with a visible focus indicator.
UI Primitives A11y
The project's primitives already accept AriaAttributes:
BlockStackandInlineStackaccept all ARIA propsTextacceptsroleand ARIA propsButtonhas built-in focus-visible and disabled statesInputsupportsaria-invalid,onEnter,onEscape- All shadcn/ui components (Dialog, Select, Checkbox, Switch, Tabs) handle focus trapping and keyboard navigation automatically
React Flow Considerations
The pipeline editor has specific a11y needs:
- Handles: Support click selection and Escape to deselect
- Task nodes: Labels are interactive with visual feedback
- Folders in sidebar: Use
role="button"witharia-expanded - Canvas keyboard shortcuts: Must not interfere with dialog/modal focus
When adding new interactive elements to the flow canvas, ensure they:
- Are keyboard accessible
- Have appropriate ARIA labels
- Don't capture keyboard events that should reach parent containers
Other versions109 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 109
- microsoft/vscode★ 194ksame 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
99 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.
Used alongsideProjects 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
MicrosoftSkillauto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
Also in 6 projects that use this
DepressionCenterSkillproject-preferences
Apply repository-specific preferences when planning, implementing, or reviewing changes in this project.
Also in 5 projects that use this
DepressionCenterSkillresponse-style
Write prose in plain, natural English. Apply to every response, design discussion, review comment, commit message, pull request, and document, in any task.
Also in 5 projects that use this
- +7 more from microsoft
In this repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- address-pr-commentsSkill
- analytics-trackingSkill
- audit-ticketsSkill
- docs-updateSkill
- e2e-testingSkill
- gardeningSkill
- list-skillsSkill
- open-sourceSkill
- project-conventionsSkill
- react-patternsSkill
- reviewSkill
- tangle-domainSkill
- tanstack-querySkill
- tanstack-routerSkill
- typescript-standardsSkill
- ui-primitivesSkill
- validateSkill
- vitest-testingSkill
- playwright-testingSkill
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.

