使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/smukh/a11y-agent-skills --skill accessible-forms开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Accessible forms
Review the user journey, not isolated inputs.
Workflow
- Identify every available state: initial, invalid submission, corrected input,
and successful submission. Test at least initial, invalid, and successful states when they exist.
- Apply references/forms-checklist.md to
labels, instructions, required communication, autocomplete, grouping, and authentication.
- Submit invalid data. Verify errors are identified in text, programmatically
connected to fields, announced or focused appropriately, and summarized when the form size warrants it.
- Correct the form and verify stale error state is removed without losing
needed instructions.
- Prefer native form elements and associations. Add live regions only for
dynamic changes that need announcement; avoid duplicate announcements.
- Preserve the deterministic scan and interaction evidence, then add a
user-behavior regression test.
Boundaries
Do not invent labels, requirements, validation copy, autocomplete purpose, or authentication policy. Escalate missing product meaning for human decision. A machine-detectable label does not establish that the label is clear or correct.

