Token导航 LogoToken导航

Agent Skill · 研究检索

accessibility(无障碍)

用于辅助无障碍访问检查、页面可用性审计和前端可访问性改进。它适合让 Agent 检查语义标签、键盘操作、颜色对比、ARIA 属性和自动化检测结果。使用时需要结合真实页面和浏览器验证,不应只依赖静态文本判断;涉及修复建议时,应兼顾设计系统、组件复用和 WCAG 等通用无障碍规范。

accessibility 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 7,855。

总安装 17,879周安装 768GitHub Stars 184,436下载 6,267核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:accessibility(无障碍)
来源仓库:https://github.com/microsoft/vscode
仓库路径:skills/accessibility
安装命令:
npx skills add https://github.com/microsoft/vscode --skill accessibility
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/microsoft/vscode --skill accessibility

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助无障碍访问检查和前端可用性审计。适合检查语义标签、键盘操作和 ARIA 属性。可结合浏览器验证自动化检测结果。accessibility 属于研究检索类 Skill,可作为该场景下的辅助能力补充。修复建议应兼顾设计系统和 WCAG 规范。安装方式:通过 GitHub 仓库使用 npx 命令添加技能。

来源仓库内路径:skills/accessibility

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/microsoft/vscode --skill accessibility;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

accessibility 怎么安装?

在终端执行 npx skills add https://github.com/microsoft/vscode --skill accessibility。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

accessibility 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

accessibility 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

accessibility 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

accessibility 用的人多吗?

公开数据是累计安装 17,879 次,近一周安装 768 次,下载 6,267 次,GitHub 184,436 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

accessibility 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 184,436 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
accessibility

无障碍 · 本页

17,879184,436操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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):

  1. An Accessibility Help Dialog — opened via the accessibility help keybinding when the feature has focus.
  2. 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).
  3. 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

  1. Create a class implementing IAccessibleViewImplementation with type = AccessibleViewType.Help.

- Set a priority (higher = shown first when multiple providers match). - Set when to a ContextKeyExpression that matches when the feature is focused. - getProvider(accessor) returns an AccessibleContentProvider.

  1. Create a content-provider class implementing IAccessibleViewContentProvider.

- id — add a new entry in the AccessibleViewProviderId enum in src/vs/platform/accessibility/browser/accessibleView.ts. - verbositySettingKey — reference the new AccessibilityVerbositySettingId entry (see §3). - options — {type: AccessibleViewType.Help}. - provideContent() — return localized, multi-line help text.

  1. 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.
  2. Register the implementation: AccessibleViewRegistry.register(new MyFeatureAccessibilityHelp()); in the feature's *.contribution.ts file.

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

  1. Create a class implementing IAccessibleViewImplementation with type = AccessibleViewType.View.
  2. Create a content-provider similar to the help dialog, but:

- options — {type: AccessibleViewType.View}, optionally with a language for 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 actions for actions the user can take from the accessible view.

  1. 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

  1. Add an entry to AccessibilityVerbositySettingId in src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.ts: export const enum AccessibilityVerbositySettingId {// … existing entries … MyFeature = 'accessibility.verbosity.myFeature'}
  2. Register the configuration property in the same file's configuration.properties object: [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}, The baseVerbosityProperty gives it type: 'boolean', default: true, and tags: ['accessibility'].
  3. 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, or off.
  • Announcement — a spoken message via aria-live, configurable to auto or off.

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() over alert() unless the information is time-sensitive or the result of a direct user action. Overusing alert() 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+Tab in 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 descriptive aria-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-setsize and aria-posinset when virtualized so screen readers report the correct count.

Checklist for Every New Feature

  • New AccessibleViewProviderId entry added in accessibleView.ts
  • New AccessibilityVerbositySettingId entry added in accessibilityConfiguration.ts
  • Verbosity setting registered in the configuration properties with ...baseVerbosityProperty
  • IAccessibleViewImplementation with type = Help created 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
  • when context key is set so the dialog only appears when the feature is focused
  • If the feature has rich/visual content: IAccessibleViewImplementation with type = View created and registered
  • Registration calls in the feature's *.contribution.ts file
  • Accessibility signal played for important events (use existing AccessibilitySignal.* or register a new one)
  • aria.alert() or aria.status() used appropriately for dynamic changes (prefer status() 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 role and state attributes
  • Decorative elements are hidden with aria-hidden="true"

Key Files

  • src/vs/platform/accessibility/browser/accessibleView.ts — AccessibleViewProviderId, AccessibleContentProvider, IAccessibleViewContentProvider
  • src/vs/platform/accessibility/browser/accessibleViewRegistry.ts — AccessibleViewRegistry, IAccessibleViewImplementation
  • src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.ts — AccessibilityVerbositySettingId, verbosity setting registration
  • src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.ts — IAccessibilitySignalService, AccessibilitySignal
  • src/vs/base/browser/ui/aria/aria.ts — alert(), status() for ARIA live region announcements

平台分布

Codex

37.61%
按下载量换算2,357

Claude

28.82%
按下载量换算1,806

Cursor

18.53%
按下载量换算1,161

Gemini CLI

9.71%
按下载量换算609

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills