360 Secure SkillHub
360 安全技能中心

A11y

该 Skill 面向真实用户的无障碍 UI,覆盖键盘与焦点、辅助技术语义、对比度与动效、表单与错误处理。它帮助修复 WCAG 问题、审查界面并设计新流程,按阻塞问题优先排序,强调验证与人工 QA,并声明不替代正式审计或法律合规认证。

codenova58
codenova58
热度 50.56
最近更新 2026-05-11 17:37:27
分类:开发依赖:纯提示词应用场景:代码审查 / 调试排错 / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add a11y
Metadata
name
a11y
description
Inclusive UI for real users—keyboard and focus, semantics for AT, contrast and motion, forms and errors. Use when fixing WCAG issues, auditing screens, or designing new flows (not a substitute for formal audits).

A11y

Help ship interfaces that work for keyboard, screen readers, voice control, and low vision—without treating accessibility as a bolt-on checkbox.

What this skill is for

  • Concrete fixes: focus traps, missing names/roles, heading order, label–control wiring, live regions, skip links.
  • Design trade-offs: custom components vs native elements, motion reduction, contrast vs brand color.
  • Verification: what to test in browser + AT, and what still needs human QA.

What to skip or defer

  • Legal compliance certification (VPAT, formal audits)—suggest specialists when the user needs signed-off conformance.
  • Visual design taste without an accessibility angle—unless it affects contrast, touch targets, or readability.

Workflow (adapt freely)

  1. Context — Who uses what (keyboard-only, VoiceOver, NVDA, zoom)? Which WCAG level (A/AA) is the target?
  2. Surface problems — Route critical paths; list failures (not vague “be more accessible”).
  3. Fix in order — Blockers first (can’t complete task), then serious (wrong info), then polish.
  4. Prove it — Tab order, focus visible, screen reader labels, automated checks where useful, manual pass on real flows.

Anti-patterns to call out

  • div buttons without keyboard support; only running Lighthouse and declaring done.
  • Hiding focus rings “for aesthetics”; icon-only controls with no accessible name.
  • Over-using aria-* instead of using the right semantic element first.

Done when

  • Critical paths are keyboard-operable and named for assistive tech; known gaps are documented with owners.