Agent skill

Accessibility

by affaan-m in affaan-m/ECC

使用 WCAG 2.2 Level AA 标准设计、实施和审计包容性数字产品。运用此技能为 Web 生成语义 ARIA,并为 Web 和原生平台(iOS/Android)生成无障碍特性。

MITAuto-check passedFrontend & Design

Install Accessibility

skills CLI
$ npx skills add affaan-m/ECC --skill accessibility -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install affaan-m/ECC accessibility --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/zh-CN/skills/accessibility .claude/skills/accessibility && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
accessibility
GitHub stars
276k
Token cost
~1k tokens
SKILL.md length
157 words
Files
1
Skills in repo
683
Repo updated
First seen
Licence
MIT

At a glance

使用 WCAG 2.2 Level AA 标准设计、实施和审计包容性数字产品。运用此技能为 Web 生成语义 ARIA,并为 Web 和原生平台(iOS/Android)生成无障碍特性。

  • Tasks that involve Accessibility
  • SKILL.md covers 使用时机, 核心概念, 工作原理 and 无障碍架构图, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Accessibility is an agent skill from affaan-m/ECC. 使用 WCAG 2.2 Level AA 标准设计、实施和审计包容性数字产品。运用此技能为 Web 生成语义 ARIA,并为 Web 和原生平台(iOS/Android)生成无障碍特性。

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Accessibility. It works with iOS and Android. The repository describes itself as: The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond. The licence is MIT.

When your agent uses it

  • Tasks that involve Accessibility

Example prompts

  • “/accessibility”

What it can do on your machine

Read from SKILL.md and the folder at commit 4eb71d9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are mermaid, html, swift and kotlin).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • w3.org
    • developer.apple.com
    • developer.android.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Accessibility loads about 1k tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 157 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from affaan-m/ECC at commit 4eb71d9, republished under its MIT licence (© affaan-m). 157 words, ~1,016 tokens.

Download SKILL.mdSave it as .claude/skills/accessibility/SKILL.md (or your agent's skills folder).
name
accessibility
description
使用 WCAG 2.2 Level AA 标准设计、实施和审计包容性数字产品。运用此技能为 Web 生成语义 ARIA,并为 Web 和原生平台(iOS/Android)生成无障碍特性。
origin
ECC

无障碍性(WCAG 2.2)

本技能确保数字界面对于所有用户(包括使用屏幕阅读器、开关控制或键盘导航的用户)具有可感知性、可操作性、可理解性和健壮性(POUR)。它专注于 WCAG 2.2 成功标准的技术实现。

使用时机

  • 定义 Web、iOS 或 Android 的 UI 组件规范。
  • 审计现有代码中的无障碍性障碍或合规性差距。
  • 实现新的 WCAG 2.2 标准,如目标尺寸(最小)和焦点外观。
  • 将高层设计需求映射到技术属性(ARIA 角色、特性、提示)。

核心概念

  • POUR 原则:WCAG 的基础(可感知、可操作、可理解、健壮)。
  • 语义映射:使用原生元素而非通用容器,以提供内置的无障碍性。
  • 无障碍树:辅助技术实际“读取”的 UI 表示。
  • 焦点管理:控制键盘/屏幕阅读器光标的顺序和可见性。
  • 标签与提示:通过 aria-label、accessibilityLabel 和 contentDescription 提供上下文。

工作原理

步骤 1:识别组件角色

确定功能目的(例如,这是按钮、链接还是标签页?)。在诉诸自定义角色之前,优先使用最语义化的原生元素。

步骤 2:定义可感知属性
  • 确保文本对比度达到 4.5:1(正常文本)或 3:1(大文本/UI 组件)。
  • 为非文本内容(图像、图标)添加文本替代方案。
  • 实现响应式重排(放大至 400% 时功能不丢失)。
步骤 3:实现可操作控件
  • 确保最小 24x24 CSS 像素 的目标尺寸(WCAG 2.2 SC 2.5.8)。
  • 验证所有交互元素可通过键盘访问,并具有可见的焦点指示器(SC 2.4.11)。
  • 为拖拽操作提供单指针替代方案。
步骤 4:确保可理解逻辑
  • 使用一致的导航模式。
  • 提供描述性错误消息和更正建议(SC 3.3.3)。
  • 实现“冗余输入”(SC 3.3.7),避免重复询问相同数据。
步骤 5:验证健壮兼容性
  • 使用正确的 Name, Role, Value 模式。
  • 为动态状态更新实现 aria-live 或活动区域。

无障碍架构图

mermaid
flowchart TD
  UI["UI Component"] --> Platform{Platform?}
  Platform -->|Web| ARIA["WAI-ARIA + HTML5"]
  Platform -->|iOS| SwiftUI["Accessibility Traits + Labels"]
  Platform -->|Android| Compose["Semantics + ContentDesc"]

  ARIA --> AT["Assistive Technology (Screen Readers, Switches)"]
  SwiftUI --> AT
  Compose --> AT

跨平台映射

特性Web (HTML/ARIA)iOS (SwiftUI)Android (Compose)
主标签aria-label / <label>.accessibilityLabel()contentDescription
辅助提示aria-describedby.accessibilityHint()Modifier.semantics { stateDescription = ... }
操作角色role="button".accessibilityAddTraits(.isButton)Modifier.semantics { role = Role.Button }
实时更新aria-live="polite".accessibilityLiveRegion(.polite)Modifier.semantics { liveRegion = LiveRegionMode.Polite }

示例

Web:无障碍搜索
html
<form role="search">
  <label for="search-input" class="sr-only">Search products</label>
  <input type="search" id="search-input" placeholder="Search..." />
  <button type="submit" aria-label="Submit Search">
    <svg aria-hidden="true">...</svg>
  </button>
</form>
iOS:无障碍操作按钮
swift
Button(action: deleteItem) {
    Image(systemName: "trash")
}
.accessibilityLabel("Delete item")
.accessibilityHint("Permanently removes this item from your list")
.accessibilityAddTraits(.isButton)
Android:无障碍切换开关
kotlin
Switch(
    checked = isEnabled,
    onCheckedChange = { onToggle() },
    modifier = Modifier.semantics {
        contentDescription = "Enable notifications"
    }
)

应避免的反模式

  • Div 按钮:使用 <div> 或 <span> 处理点击事件,但未添加角色和键盘支持。
  • 仅用颜色传达含义:仅通过颜色变化(例如,将边框变为红色)来指示错误或状态。
  • 未限制的模态焦点:模态框未限制焦点,导致键盘用户在模态框打开时仍可导航背景内容。焦点必须被限制,并且可通过 Escape 键或显式关闭按钮退出(WCAG SC 2.1.2)。
  • 冗余替代文本:在替代文本中使用“图像...”或“图片...”(屏幕阅读器已宣布“图像”角色)。

最佳实践检查清单

  • [ ] 交互元素满足 24x24px(Web)或 44x44pt(原生)的目标尺寸。
  • [ ] 焦点指示器清晰可见且高对比度。
  • [ ] 模态框在打开时限制焦点,并在关闭时干净地释放焦点(Escape 键或关闭按钮)。
  • [ ] 下拉菜单和菜单在关闭时将焦点恢复到触发元素。
  • [ ] 表单提供基于文本的错误建议。
  • [ ] 所有仅图标按钮都有描述性文本标签。
  • [ ] 文本缩放时内容正确重排。

参考

相关技能

  • frontend-patterns
  • design-system
  • liquid-glass-design
  • swiftui-patterns

© affaan-m, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/zh-CN/skills/accessibility of affaan-m/ECC.

Open the folder on GitHubat commit 4eb71d9

Compare with similar skills

Accessibility next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Accessibility compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Accessibility this skillaffaan-m/ECC276k—~1kAutomated safety check: PassMIT
AccessibilityGetStream/stream-chat-react-native1.2k—~6.5kAutomated safety check: PassCustom licence
AccessibilityVeryGoodOpenSource/vgv-ai-flutter-plugin170—~4.2kAutomated safety check: PassMIT
Maui Accessibilitydavidortinau/maui-skills175—~974Automated safety check: PassMIT
Test Componentgluestack/gluestack-ui5.3k—~3.2kAutomated safety check: PassNone
Agentic A11yOvid/paad131—~9.1kAutomated safety check: PassMIT

Similar skills

  • Accessibility

    GetStream/stream-chat-react-native

    Maintain VoiceOver/TalkBack-focused accessibility in stream-chat-react-native.

    1.2k GitHub stars~6.5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Accessibility

    VeryGoodOpenSource/vgv-ai-flutter-plugin

    Audits or remediates Flutter widgets against WCAG 2.2 conformance levels A, AA, or AAA across iOS, Android, Web, macOS, Windows, and Linux, covering Semantics labels and screen reader output under…

    170 GitHub stars~4.2k tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed
  • Maui Accessibility

    davidortinau/maui-skills

    Guide for making .NET MAUI apps accessible — screen reader support via SemanticProperties, heading levels, AutomationProperties visibility control, programmatic focus and announcements, and…

    175 GitHub stars~974 tokensUpdated 3 mo ago
    Frontend & DesignAuto-check passed
  • Test Component

    gluestack/gluestack-ui

    Comprehensive testing of gluestack-ui components across platforms and apps

    5.3k GitHub stars~3.2k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Agentic A11y

    Ovid/paad

    A skill your agent uses when auditing a user-facing app — web, mobile (iOS/Android/React Native/Flutter), desktop, CLI, or games — for accessibility barriers or WCAG 2.2 conformance, before shipping…

    131 GitHub stars~9.1k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Platform Design

    nexu-io/open-design

    300+ design rules from Apple HIG, Material Design 3, and WCAG 2.2 for cross-platform apps.

    100k GitHub stars~321 tokensUpdated today
    Frontend & DesignAuto-check passed

More from affaan-m/ECC

All 683 skills in this repo
  • Skill Stocktake

    affaan-m/ECC

    Audits your installed Claude skills and commands for quality, with a quick mode for recently changed skills and a full mode that evaluates all of them through subagents.

    276k GitHub starsUsed in 5 repos~3.1k tokens
    Auto-check passed
  • Ingests, indexes, searches, edits and monitors video, audio and live streams through the VideoDB Python SDK, returning stream links, clips and timestamps.

    276k GitHub starsUsed in 3 repos~3.5k tokens
    Auto-check: notes
  • Docs Governance

    affaan-m/ECC

    Route broad documentation-governance requests to existing ECC skills and run an opt-in, read-only audit of mapped documentation roles, links, ADR indexes, and evidence references.

    276k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Rules Distillation

    affaan-m/ECC

    Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.

    276k GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check passed
  • Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.

    276k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Measures whether agents actually follow a skill, rule or agent definition by generating scenarios at three strictness levels and scoring tool-call traces.

    276k GitHub starsUsed in 1 repo~623 tokens
    Auto-check passed

Works with

Questions about Accessibility

What does Accessibility do?

使用 WCAG 2.2 Level AA 标准设计、实施和审计包容性数字产品。运用此技能为 Web 生成语义 ARIA,并为 Web 和原生平台(iOS/Android)生成无障碍特性。. Accessibility is an agent skill from affaan-m/ECC.

When should I use Accessibility?

Accessibility fits situations like: tasks that involve Accessibility.

How do I install Accessibility in Claude Code?

Run `npx skills add affaan-m/ECC --skill accessibility -a claude-code`. Or copy the skill folder (docs/zh-CN/skills/accessibility in affaan-m/ECC) into .claude/skills/accessibility in your project. Claude Code loads it when a task matches its description.

How do I install Accessibility in Codex?

Run `npx skills add affaan-m/ECC --skill accessibility -a codex`. Or copy the skill folder (docs/zh-CN/skills/accessibility in affaan-m/ECC) into .agents/skills/accessibility in your project. Codex loads it when a task matches its description.

Can I use Accessibility in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add affaan-m/ECC --skill accessibility -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/accessibility, .gemini/skills/accessibility, .github/skills/accessibility and .opencode/skills/accessibility in your project.

What does Accessibility need to run?

SKILL.md names no scripts, command-line tools or credentials: Accessibility is instructions for the agent only.

Does Accessibility access the network?

SKILL.md names 3 domains. As links in the text: w3.org, developer.apple.com and developer.android.com. This is read from the text; nothing was executed.

Is Accessibility safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Accessibility use?

Accessibility is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Accessibility use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Accessibility?

Skills that share tags, products or a category with Accessibility: Accessibility (GetStream/stream-chat-react-native, 1.2k stars), Accessibility (VeryGoodOpenSource/vgv-ai-flutter-plugin, 170 stars), Maui Accessibility (davidortinau/maui-skills, 175 stars) and Test Component (gluestack/gluestack-ui, 5.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Accessibility?

affaan-m (a GitHub user) maintains it in affaan-m/ECC, which has 276,111 GitHub stars. The repository holds 683 skills in this directory. The repository was last updated on October 10, 2026.

Source: affaan-m/ECC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.