smukh/a11y-agent-skills

accessible-component-review

Reviews an interface component's native semantics, name-role-value, keyboard behavior, focus, colors, motion, target size, announcements, and disabled states.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/smukh/a11y-agent-skills --skill accessible-component-review

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Accessible component review

Review every supported state and input path of one reusable component.

Workflow

  1. Inventory states, variants, input methods, content slots, and expected

semantics.

  1. Select the native element that already provides the behavior. Use ARIA

patterns only when native HTML cannot provide the required interaction.

  1. Apply references/component-checklist.md

to each state.

  1. Run deterministic rules, keyboard behavior, forced-colors, reduced-motion,

zoom/reflow, and pointer target checks. Record manual judgment separately.

  1. Trace failures to the component source and repair the smallest shared layer

that owns the defect.

  1. Add tests for user-visible behavior and verify consuming examples do not

regress.

Boundaries

Do not add ARIA that duplicates or conflicts with native semantics. Do not treat a single Storybook example as coverage of every consumer. Do not assert that an accessible name is meaningful without content context.

来自同一仓库

更多 Skills

全部 Skills