accessibility-skill-jyyk

Accessibility Skill: a skill specialized for WebAccessibility to help AI Agents efficiently perform tasks related to web accessibility.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "accessibility-skill-jyyk" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-79640f95dd547bf0e980b9c83f7313d34273a2ac0c942b25226796c643f03ab2. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/accessibility-skill-jyyk before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Accessibility Skill: a skill specialized for WebAccessibility to help AI Agents efficiently perform tasks related to web accessibility.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: Web无障碍访问质量保障
slug: accessibility-skill
version: 1.0.0
displayName: Web无障碍访问质量保障
description: >
  WebAccessibility专用技能,帮助AI Agent高效完成相关任务。
summary: "WebAccessibility专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 可访问性
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"

Web 无障碍访问质量保障

概述

在 Web 项目开发中,从一开始就关注无障碍访问至关重要。特别是在 AI 驱动的开发场景中,人工测试有限,更需要系统化的无障碍保障。事后修复无障碍问题的成本远高于从头做好——因此应采取无障碍优先的开发策略。

本文档凝聚了近十年无障碍领域的核心知识,由具有残障经验的人类技术专家(如 Casey Kreer)策划整理。

适用场景

  • 构建任何面向公众的 Web 应用或网站
  • 代码审查中需要检查无障碍合规性
  • React/Vue/Angular 等框架项目的组件开发
  • 需要满足 WCAG 2.2 AA 或更高等级合规要求的项目
  • AI 辅助前端开发时的无障碍约束注入

核心原则

1. 语义化 HTML 优先

  • 用真实 <button> 而非 <div onclick> 做按钮
  • 用 <header>/<nav>/<main> 做页面布局
  • 用 <form> 和 <label> 做表单
  • 用逻辑递进的标题层级(<h1> → <h2> → <h3>,不跳级)
  • 优先使用原生元素:<select>、<details>、<dialog> 等

2. ARIA 标签规范

  • 只在没有原生替代方案时才使用 ARIA
  • 使用时必须记录选择原因
  • 为每个自定义组件文档化无障碍处理方式(alt text 策略、焦点管理、屏幕阅读器通知等)
  • 图标必须添加对应 label,视觉专用内容使用 aria-hidden="true"

3. 键盘可访问性(强制)

  • 所有交互元素必须可通过键盘(Tab/Enter/Space/方向键)操作
  • 保持一致的焦点指示器样式(outline/highlight)
  • 自定义焦点元素仅在必要时使用 tabindex(且只用负值)
  • 触摸目标尺寸必须满足 WCAG 要求——所有元素应易于触达

4. 色彩对比度

WCAG 2.x 对比度公式:(L1 + 0.05) / (L2 + 0.05)

文本类型 最低对比度
普通文本 4.5:1
大文本(≥18pt 或粗体 ≥14pt) 3:1
非文本 UI 组件 3:1

适用于所有颜色状态:正常/hover/focus/disabled。

5. 非文本内容

  • 所有图片必须提供描述性 alt 文本(装饰性图片用 alt="")
  • 音频/视频提供字幕或文字稿
  • 数据表格使用 <th> 和 scope 属性
  • 避免使用 "点击这里"、"继续阅读" 等无意义链接文本

6. 文档化与代码注释

  • 为无障碍相关实现添加详细代码注释
  • 引用具体的 WCAG 2.2 条款编号
  • 说明预期的用户流程

常见反模式(禁止)

反模式 正确做法
<div> 做按钮 使用 <button>
onclick 无键盘处理 同时处理 keydown 事件
outline: none 保留或自定义焦点样式
aria-label 替代可见标签 提供可见文本标签
外部链接加 role="button" 使用语义正确的链接角色

持续维护清单

  • [ ] 每次新增图片/媒体时检查 alt 文本
  • [ ] 每次新增颜色时验证对比度
  • [ ] 保持标题层级逻辑递进
  • [ ] 使用 Pa11y 等工具集成自动化无障碍测试
  • [ ] 定期使用屏幕阅读器(NVDA/VoiceOver)手动测试
  • [ ] <html> 设置 lang 属性,多语言内容动态切换
  • [ ] 实现跳过链接(Skip links)到导航和大型内容组
  • [ ] 表单错误清晰传达(不仅靠颜色),避免使用 disabled 状态
  • [ ] 尊重 prefers-reduced-motion 媒体查询
  • [ ] 视口变化时内容优雅回流

验证清单

  • [ ] YAML frontmatter 格式正确
  • [ ] 所有交互元素支持键盘操作
  • [ ] 色彩对比度满足 WCAG 标准
  • [ ] 图片和媒体有替代文本
  • [ ] 标题层级逻辑递进无跳级
  • [ ] 自定义组件有 ARIA 角色/状态文档
  • [ ] 无障碍相关代码有注释说明

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供系统化的 Web 无障碍访问质量保障方案,覆盖 WCAG 2.2 合规要求
  • 适用于前端开发、代码审查、AI 辅助开发等多个高频刚需场景
Trigger Precision90/100

Highlights

  • 触发描述精准聚焦 WebAccessibility 专用技能,边界清晰无歧义
Structure and Standards90/100

Highlights

  • 文档结构完整,包含核心原则、反模式、维护清单等多维度指导
  • frontmatter 完整,步骤清晰,提供具体可执行的规范要求
Execution Reliability85/100

Highlights

  • 提供 WCAG 对比度计算公式、文本尺寸标准等具体可验证的执行指导
  • 覆盖键盘操作、色彩对比、非文本内容等主要异常场景的处理方案
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.