Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计通过

accessibility无障碍

Agent Skill

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

总安装

1,045

周安装

44

GitHub Stars

10

下载量

366
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oakoss/agent-skills --skill accessibility

简介

accessibility 用于辅助无障碍访问检查、页面可用性审计和前端可访问性改进。

  • 它适合检查语义标签、键盘操作、颜色对比、ARIA 属性和自动化检测结果。
  • 使用时需结合真实页面和浏览器验证,不应仅依赖静态文本判断。
  • 涉及修复建议时,应兼顾设计系统、组件复用和 WCAG 等通用无障碍规范。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Web Accessibility (WCAG 2.2 AA)

Build for everyone — accessibility is a requirement, not a feature.

Contrast Ratios (WCAG AA)

ElementMinimum Ratio
Normal text (< 18pt)4.5:1
Large text (>= 18pt or 14pt bold)3:1
UI components and focus indicators3:1

WCAG 2.2 New AA Criteria

CriterionRequirement
Target Size Minimum (2.5.8)Interactive targets at least 24x24 CSS pixels
Focus Not Obscured Minimum (2.4.11)Focused element at least partially visible, not hidden by sticky headers or overlays
Focus Appearance (2.4.13)Focus indicator has minimum area (2px perimeter) and 3:1 contrast change
Dragging Movements (2.5.7)Provide single-pointer alternative for any drag interaction
Redundant Entry (3.3.7)Do not require re-entering previously provided information
Consistent Help (3.2.6)Help mechanisms (chat, phone, FAQ) appear in same relative order across pages
Accessible Authentication (3.3.8)No cognitive function test for login (allow paste, autofill, or alternatives)

Essential Keyboard Patterns

KeyAction
Tab / Shift+TabNavigate between focusable elements
Enter / SpaceActivate buttons and links
Arrow keysNavigate within widgets (tabs, menus)
EscapeClose dialogs and menus
Home / EndJump to first/last item in widget

Element Selection

NeedElement
Navigates to page<a href="...">
Submits form<button type="submit">
Opens dialog<button aria-haspopup="dialog">
Other action<button type="button">
Self-contained article<article>
Navigation links<nav>
Supplementary info<aside>

Common ARIA Attributes

AttributePurpose
aria-labelName when no visible label exists
aria-labelledbyReference existing text as label
aria-describedbyAdditional description (hints, errors)
aria-liveAnnounce dynamic updates (polite or assertive)
aria-expandedCollapsible/expandable state
aria-hidden="true"Hide decorative elements from screen readers
aria-invalidMark form fields with errors
aria-required="true"Mark required fields
aria-busyIndicate loading state

WCAG 2.2 AA Checklist Summary

PrincipleKey Requirements
PerceivableAlt text on images, contrast >= 4.5:1, color not sole indicator, text resizable to 200%, captions on video, prefers-reduced-motion support
OperableKeyboard accessible, visible focus not obscured, focus appearance meets minimum, targets >= 24px, skip links, dragging alternatives
Understandable<html lang="en">, consistent navigation, consistent help placement, form labels, error identification, no redundant entry, accessible auth
RobustValid HTML, name/role/value on all UI components, aria-live for status messages (SC 4.1.1 Parsing is obsolete in WCAG 2.2)

Anti-Patterns

Anti-PatternFix
<div onClick> instead of <button>Use semantic HTML elements
outline: none without replacementUse :focus-visible with visible outline
Placeholder as labelUse <label> element
tabindex > 0Use DOM order or tabindex="0" / tabindex="-1"
Color-only state indicatorsAdd icon and text label
Skipped heading levelsUse sequential h1-h6, style with CSS
role="button" on <button>Remove redundant ARIA
aria-hidden on interactive elementsNever hide interactive content
Fixed font sizes (px)Use rem units
No focus trap in modal dialogsTrap focus, close on Escape

Common Mistakes

MistakeCorrect Pattern
Adding aria-label to elements that already have visible textUse aria-labelledby to reference existing visible text instead
Using aria-live="assertive" for non-urgent updatesUse aria-live="polite" for most dynamic content; reserve assertive for errors and alerts
Setting alt="" on informative imagesProvide descriptive alt text; only use empty alt on purely decorative images
Adding keyboard handlers to non-focusable elementsUse native interactive elements or add tabindex="0" plus role and key handlers
Testing only with automated tools like axeAutomated scans catch ~30% of issues; always supplement with keyboard-only and screen reader testing

Screen Reader and Browser Pairings

Screen ReaderBrowserPlatform
JAWSChromeWindows
NVDAChromeWindows (free)
NVDAFirefoxWindows (free)
VoiceOverSafarimacOS / iOS
TalkBackChromeAndroid
NarratorEdgeWindows (built-in)

Testing Quick Guide

MethodToolEffort
Keyboard-onlyHide mouse, Tab through page5 min
Screen readerJAWS + Chrome or NVDA + Chrome/Firefox10 min
Screen readerVoiceOver + Safari (macOS)10 min
Automated scanaxe DevTools browser extension2 min
LighthouseChrome F12 > Lighthouse > Accessibility2 min
Unit testsjest-axe (Jest) or vitest-axe (Vitest)Ongoing

Delegation

When working on accessibility, delegate to:

  • design-system — Color tokens and contrast verification
  • react-patterns — Component patterns and hooks
  • testing — jest-axe integration and test patterns

Resources

References

  • Semantic HTML and Structure — Document landmarks, heading hierarchy, element selection, skip links
  • Focus Management — Focus indicators, focus not obscured, dialog focus traps, SPA route focus, focus-visible patterns
  • ARIA Patterns — Accessible tabs, live regions, data tables with ARIA attributes
  • Forms and Validation — Label association, error announcement, redundant entry, accessible authentication
  • Color and Media — Contrast requirements, reduced motion, dragging alternatives, video captions, alt text
  • Testing — Keyboard testing, screen reader pairings, axe DevTools, jest-axe and vitest-axe unit tests

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.63%
按下载量换算123

Claude

29%
按下载量换算106

Cursor

19.2%
按下载量换算70

Gemini CLI

10.28%
按下载量换算38

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills