accessibility
Skill12 starsChanged 6 months agoMITView on GitHub
Primary accessibility skill for VS Code. REQUIRED for new feature and contribution work, and also applies to updates of existing UI. Covers accessibility help dialogs, accessible views, verbosity settings, signals, ARIA announcements, keyboard navigation, and ARIA labels/roles.
124 other projects use a version of this, 3 of them edited.
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 project-preferences and create-media-pack.
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.
DepressionCenterSkillproject-preferences
Apply repository-specific preferences when planning, implementing, or reviewing changes in this project.
Also in 6 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
Other versions124 projects use a version of this.
Word for word · 4
- NeuralInverse/neuralinverse★ 221100% same
- OpenCortexIDE/cortexide★ 175100% same
- cpkt9762/opencode-vscode-ide★ 17100% same
- 0-draft/zeus★ 1100% same
Edited · 3
- microsoft/vscode★ 195k93% same
- gitpod-io/openvscode-server★ 6.2k96% same
- posit-dev/positron★ 4.3k100% same
Wrote their own version · 117
- elastic/kibana★ 21ksame name
- mozilla-mobile/firefox-ios★ 13ksame name
- midudev/preguntas-entrevista-react★ 7.8ksame 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
- microsoft/hve-core★ 1.6ksame name
- Khan/perseus★ 1.6ksame name
- midudev/tailwind-animations★ 1.5ksame name
107 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 repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- launchSkill
- add-policySkill
- author-contributionsSkill
- auto-perf-optimizeSkill
- azure-pipelinesSkill
- chat-customizations-editorSkill
- chat-perfSkill
- component-fixturesSkill
- cpu-profile-analysisSkill
- fix-ci-failuresSkill
- fix-errorsSkill
- heap-snapshot-analysisSkill
- hygieneSkill
- integration-testsSkill
- memory-leak-auditSkill
- omnicode-logsSkill
- otelSkill
- sessionsSkill
- tool-rename-deprecationSkill
- unit-testsSkill
- update-screenshotsSkill
- vscode-dev-workbenchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 109 edited versions we read keep these.
10
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
- Distinctive: line 8
Use this skill for any VS Code feature work that introduces or changes interactive UI.
- Distinctive: line 9
Use this skill by default for new features and contributions, including when the request does not explicitly mention accessibility.
- Distinctive: line 18
Do not skip this skill just because accessibility is not named in the prompt.
- Distinctive: line 20
When adding a new interactive UI surface to VS Code — a panel, view, widget, editor overlay, dialog, or any rich focusable component the …
- Distinctive: line 114
If the feature is purely keyboard-driven with native text input/output (e.g., a simple input field), an accessible view is not needed — …
- Very specific: line 193
Use an existing signal: when the event already has one defined (see AccessibilitySignal.* static members — e.g., AccessibilitySignal.error, …
- Very specific: line 221
Use the alert() and status() functions from src/vs/base/browser/ui/aria/aria.ts to announce dynamic changes to screen readers.
- Very specific: line 238
Localize: all messages with nls.localize().
- Distinctive: line 244
Every interactive UI element must be fully operable via the keyboard.
- Very specific: line 248
Tab order: All interactive elements must be reachable via Tab / Shift+Tab in a logical order.
- Distinctive: line 251
No mouse-only interactions: Every action reachable by click or hover must also be reachable via keyboard (context menus, buttons, toggles, …
- Distinctive: line 259
All interactive UI elements must have appropriate ARIA attributes so screen readers can identify and describe them.
- Very specific: line 263
aria-label: Every interactive element without visible text (icon buttons, icon-only actions, custom widgets) must have a descriptive … - Distinctive: line 271
Avoid generic labels like "button" or "icon" — describe the action: "Close panel", "Toggle sidebar", "Run task".
- Distinctive: line 272
Test with a screen reader (VoiceOver on macOS, NVDA on Windows) to verify labels are spoken correctly in context.
“Common” is measured: kept by at least 6 in 10 of the 109 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
When to Use This Skill
Use this skill for any VS Code feature work that introduces or changes interactive UI. Use this skill by default for new features and contributions, including when the request does not explicitly mention accessibility.
Trigger examples:
- "add a new feature"
- "implement a new panel/view/widget"
- "add a new command or workflow"
- "new contribution in workbench/editor/extensions"
- "update existing UI interactions"
Do not skip this skill just because accessibility is not named in the prompt.
When adding a new interactive UI surface to VS Code — a panel, view, widget, editor overlay, dialog, or any rich focusable component the user interacts with — you must provide three accessibility components (if they do not already exist for the feature):
- An Accessibility Help Dialog — opened via the accessibility help keybinding when the feature has focus.
- An Accessible View — a plain-text read-only editor that presents the feature's content to screen reader users (when the feature displays non-trivial visual content).
- An Accessibility Verbosity Setting — a boolean setting that controls whether the "open accessibility help" hint is announced.
Examples of existing features that have all three: the terminal, chat panel, notebook, diff editor, inline completions, comments, debug REPL, hover, and notifications. Features with only a help dialog (no accessible view) include find widgets, source control input, keybindings editor, problems panel, and walkthroughs.
Sections 4–7 below (signals, ARIA announcements, keyboard navigation, ARIA labels) apply more broadly to any UI change, including modifications to existing features.
When updating an existing feature — for example, adding new commands, keyboard shortcuts, or interactive capabilities — you must also update the feature's existing accessibility help dialog (provideContent()) to document the new functionality. Screen reader users rely on the help dialog as the primary way to discover available actions.
1. Accessibility Help Dialog
An accessibility help dialog tells the user what the feature does, which keyboard shortcuts are available, and how to interact with it via a screen reader.
Steps
- Create a class implementing
IAccessibleViewImplementationwithtype = AccessibleViewType.Help.- Set a
priority(higher = shown first when multiple providers match). - Set
whento aContextKeyExpressionthat matches when the feature is focused. getProvider(accessor)returns anAccessibleContentProvider.
- Set a
- Create a content-provider class implementing
IAccessibleViewContentProvider.id— add a new entry in theAccessibleViewProviderIdenum insrc/vs/platform/accessibility/browser/accessibleView.ts.verbositySettingKey— reference the newAccessibilityVerbositySettingIdentry (see §3).options—{ type: AccessibleViewType.Help }.provideContent()— return localized, multi-line help text.
- Implement
onClose()to restore focus to whatever element was focused before the help dialog opened. This ensures keyboard users and screen reader users return to their previous context. - Register the implementation:
in the feature'sAccessibleViewRegistry.register(new MyFeatureAccessibilityHelp());*.contribution.tsfile.
Example skeleton
The simplest approach is to return an AccessibleContentProvider directly from getProvider(). This is the most common pattern in the codebase (used by chat, inline chat, quick chat, etc.):
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from '../../../../platform/accessibility/browser/accessibleView.js';
import { IAccessibleViewImplementation } from '../../../../platform/accessibility/browser/accessibleViewRegistry.js';
import { AccessibilityVerbositySettingId } from '../../../../platform/accessibility/common/accessibilityConfiguration.js';
export class MyFeatureAccessibilityHelp implements IAccessibleViewImplementation {
readonly priority = 100;
readonly name = 'my-feature';
readonly type = AccessibleViewType.Help;
readonly when = MyFeatureContextKeys.isFocused;
getProvider(accessor: ServicesAccessor) {
const helpText = [
localize('myFeature.help.overview', "You are in My Feature. …"),
localize('myFeature.help.key1', "- {0}: Do something", '<keybinding:myFeature.doSomething>'),
].join('\n');
return new AccessibleContentProvider(
AccessibleViewProviderId.MyFeature,
{ type: AccessibleViewType.Help },
() => helpText,
() => { /* onClose — refocus whatever was focused before */ },
AccessibilityVerbositySettingId.MyFeature,
);
}
}Alternatively, if the provider needs injected services or must track state (e.g., storing a reference to the previously focused element), create a custom class that extends Disposable and implements IAccessibleViewContentProvider, then instantiate it via IInstantiationService (see CommentsAccessibilityHelpProvider for an example):
class MyFeatureAccessibilityHelpProvider extends Disposable implements IAccessibleViewContentProvider {
readonly id = AccessibleViewProviderId.MyFeature;
readonly verbositySettingKey = AccessibilityVerbositySettingId.MyFeature;
readonly options: IAccessibleViewOptions = { type: AccessibleViewType.Help };
provideContent(): string { /* … */ }
onClose(): void { /* … */ }
}
// In getProvider():
getProvider(accessor: ServicesAccessor) {
return accessor.get(IInstantiationService).createInstance(MyFeatureAccessibilityHelpProvider);
}2. Accessible View
An accessible view presents the feature's visual content as plain text in a read-only editor. It is required when the feature renders rich or visual content that a screen reader cannot directly read (for example: chat responses, hover tooltips, notifications, terminal output, inline completions).
If the feature is purely keyboard-driven with native text input/output (e.g., a simple input field), an accessible view is not needed — only an accessibility help dialog is required.
Steps
- Create a class implementing
IAccessibleViewImplementationwithtype = AccessibleViewType.View. - Create a content-provider similar to the help dialog, but:
options—{ type: AccessibleViewType.View }, optionally with alanguagefor syntax highlighting.provideContent()— return the feature's current content as plain text.- Optionally implement
provideNextContent()/providePreviousContent()for item-by-item navigation. - Implement
onClose()to restore focus to whatever was focused before the accessible view was opened. - Optionally provide
actionsfor actions the user can take from the accessible view.
- Register alongside the help dialog:
AccessibleViewRegistry.register(new MyFeatureAccessibleView());
Example skeleton
export class MyFeatureAccessibleView implements IAccessibleViewImplementation {
readonly priority = 100;
readonly name = 'my-feature';
readonly type = AccessibleViewType.View;
readonly when = MyFeatureContextKeys.isFocused;
getProvider(accessor: ServicesAccessor) {
// Retrieve services, build content from the feature's current state
const content = getMyFeatureContent();
if (!content) {
return undefined;
}
return new AccessibleContentProvider(
AccessibleViewProviderId.MyFeature,
{ type: AccessibleViewType.View },
() => content,
() => { /* onClose — refocus whatever was focused before the accessible view opened */ },
AccessibilityVerbositySettingId.MyFeature,
);
}
}3. Accessibility Verbosity Setting
A verbosity setting controls whether a hint such as "press Alt+F1 for accessibility help" is announced when the feature gains focus. Users who already know the shortcut can disable it.
Steps
- Add an entry to
AccessibilityVerbositySettingIdinsrc/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.ts:export const enum AccessibilityVerbositySettingId { // … existing entries … MyFeature = 'accessibility.verbosity.myFeature' } - Register the configuration property in the same file's
configuration.propertiesobject:
The[AccessibilityVerbositySettingId.MyFeature]: { description: localize('verbosity.myFeature.description', 'Provide information about how to access the My Feature accessibility help menu when My Feature is focused.'), ...baseVerbosityProperty },baseVerbosityPropertygives ittype: 'boolean',default: true, andtags: ['accessibility']. - Reference the setting key in both the help-dialog provider (
verbositySettingKey) and the accessible-view provider so the runtime can check whether to show the hint.
4. Accessibility Signals (Sounds & Announcements)
Accessibility signals provide audible and spoken feedback for events that happen visually. Use IAccessibilitySignalService to play signals when something important occurs (e.g., an error appears, a task completes, content changes).
When to use
- Use an existing signal when the event already has one defined (see
AccessibilitySignal.*static members — e.g.,AccessibilitySignal.error,AccessibilitySignal.terminalQuickFix,AccessibilitySignal.clear). - If no existing signal fits, reach out to @meganrogge to discuss adding a new one. Do not register new signals without coordinating first.
How signals work
Each signal has two modalities controlled by user settings:
- Sound — a short audio cue, configurable to
auto(on when screen reader attached),on, oroff. - Announcement — a spoken message via
aria-live, configurable toautooroff.
Usage
// Inject the service via constructor parameter
constructor(
@IAccessibilitySignalService private readonly _accessibilitySignalService: IAccessibilitySignalService
) { }
// Play a signal
this._accessibilitySignalService.playSignal(AccessibilitySignal.terminalQuickFix);
// Play with options
this._accessibilitySignalService.playSignal(AccessibilitySignal.error, { userGesture: true });5. ARIA Alerts vs. Status Messages
Use the alert() and status() functions from src/vs/base/browser/ui/aria/aria.ts to announce dynamic changes to screen readers.
alert(msg) — Assertive live region (role="alert")
- Use for: Urgent, important information that the user must know immediately.
- Examples: Errors, warnings, critical state changes, results of a user-initiated action.
- Behavior: Interrupts the screen reader's current speech.
status(msg) — Polite live region (aria-live="polite")
- Use for: Non-urgent, informational updates that should be spoken when the screen reader is idle.
- Examples: Progress updates, search result counts, background state changes.
- Behavior: Queued and spoken after the screen reader finishes its current output.
Guidelines
- Prefer
status()overalert()unless the information is time-sensitive or the result of a direct user action. Overusingalert()creates a noisy, disruptive experience. - Keep messages concise. Screen readers read the entire message; long messages delay the user.
- Do not duplicate — if an accessibility signal already announces the event, do not also call
alert()/status()for the same information. - Localize all messages with
nls.localize().
6. Keyboard Navigation
Every interactive UI element must be fully operable via the keyboard.
Requirements
- Tab order: All interactive elements must be reachable via
Tab/Shift+Tabin a logical order. - Arrow key navigation: Lists, trees, grids, and toolbars must support arrow key navigation following WAI-ARIA patterns.
- Focus visibility: Focused elements must have a visible focus indicator (VS Code's theme system provides this via
focusBorder). - No mouse-only interactions: Every action reachable by click or hover must also be reachable via keyboard (context menus, buttons, toggles, etc.).
- Escape to dismiss: Overlays, dialogs, and popups must be dismissable with
Escape, returning focus to the previous element. - Focus trapping: Modal dialogs must trap focus within the dialog until dismissed.
7. ARIA Labels and Roles
All interactive UI elements must have appropriate ARIA attributes so screen readers can identify and describe them.
Requirements
aria-label: Every interactive element without visible text (icon buttons, icon-only actions, custom widgets) must have a descriptivearia-label. Labels should be localized.aria-labelledby/aria-describedby: Use these to associate elements with existing visible text rather than duplicating strings.role: Custom widgets that do not use native HTML elements must declare the correct ARIA role (e.g.,role="button",role="tree",role="tablist").aria-expanded,aria-selected,aria-checked: Toggle and selection states must be communicated via the appropriate ARIA state attributes.aria-hidden="true": Decorative or redundant elements (icons next to text labels, decorative separators) must be hidden from the accessibility tree.
Guidelines
- Avoid generic labels like "button" or "icon" — describe the action: "Close panel", "Toggle sidebar", "Run task".
- Test with a screen reader (VoiceOver on macOS, NVDA on Windows) to verify labels are spoken correctly in context.
- Lists and trees should use
aria-setsizeandaria-posinsetwhen virtualized so screen readers report the correct count.
Checklist for Every New Feature
- New
AccessibleViewProviderIdentry added inaccessibleView.ts - New
AccessibilityVerbositySettingIdentry added inaccessibilityConfiguration.ts - Verbosity setting registered in the configuration properties with
...baseVerbosityProperty IAccessibleViewImplementationwithtype = Helpcreated and registered- Content provider references the correct
verbositySettingKey - Help text is fully localized using
nls.localize() - Keybindings in help text use
<keybinding:commandId>syntax for dynamic resolution whencontext key is set so the dialog only appears when the feature is focused- If the feature has rich/visual content:
IAccessibleViewImplementationwithtype = Viewcreated and registered - Registration calls in the feature's
*.contribution.tsfile - Accessibility signal played for important events (use existing
AccessibilitySignal.*or register a new one) aria.alert()oraria.status()used appropriately for dynamic changes (preferstatus()unless urgent)- All interactive elements reachable and operable via keyboard
- All interactive elements without visible text have a localized
aria-label - Custom widgets declare the correct ARIA
roleand state attributes - Decorative elements are hidden with
aria-hidden="true"
Key Files
src/vs/platform/accessibility/browser/accessibleView.ts—AccessibleViewProviderId,AccessibleContentProvider,IAccessibleViewContentProvidersrc/vs/platform/accessibility/browser/accessibleViewRegistry.ts—AccessibleViewRegistry,IAccessibleViewImplementationsrc/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.ts—AccessibilityVerbositySettingId, verbosity setting registrationsrc/vs/platform/accessibilitySignal/browser/accessibilitySignalService.ts—IAccessibilitySignalService,AccessibilitySignalsrc/vs/base/browser/ui/aria/aria.ts—alert(),status()for ARIA live region announcements
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.

