sensory-instructions
它能做什么
这个技能检查页面上的说明,并为“红色按钮”或“右边的菜单”这类表述添加文字标签。它面向希望每位访客都能看懂说明的设计师和写作者。
适用场景
- ✓你请智能体检查页面说明中是否有依赖颜色、形状或位置的表述的时候。
- ✓说明中写着“点击绿色按钮”,而一些用户无法感知该颜色的时候。
- ✓页面使用了声音提示,而你希望添加视觉替代方案的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/sensory-instructions/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的说明写着“点击绿色按钮”和“右边的菜单”。请帮我改写,让每个人都能理解吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会找出依赖单一感官提示的说明,并为每处添加文字标签,例如“点击提交按钮(绿色)”。它还会为声音提示添加视觉替代,让每条信息都能通过多种信号理解。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Avoid sensory-only instructions
Color-blind users can't see 'click the red button,' screen reader users can't perceive 'the menu on the right,' and deaf users miss audio cues—multi-modal instructions include everyone.
Quick Reference
- Don't use color alone to convey information (red=error)
- Add text labels to shape and location references
- Provide visual alternatives for audio cues
- Combine multiple cues so all users can understand
Check
Review instructions and verify they don't rely only on color ('click the red button'), shape ('the circular icon'), location ('the menu on the right'), or sound ('when you hear the beep'). Ensure text labels supplement visual cues.
Fix
Add text labels to visual instructions. Instead of 'click the green button', use 'click the Submit button (green)'. Combine multiple cues so users who cannot perceive one can still understand via another.
Explain
Explain how color-blind users cannot distinguish color-only cues, screen reader users cannot perceive location or shape, and deaf users miss audio-only signals, making multi-modal instructions essential.
Code Review
Review the rendered markup and interactive states that affect Avoid sensory-only instructions. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/sensory-instructions
常见问题
为什么只靠颜色是个问题?
这个技能说,色盲用户可能无法分辨指的是哪个项目,因此需要文字标签。
声音提示如何处理?
这个技能建议提供视觉替代方案,使听障用户不会错过该提示。
每条说明都需要多种提示吗?
这个技能说,应组合多种提示,使无法感知其中一种的用户仍能通过另一种理解。
详情
作者的原始描述
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Avoid sensory-only instructions. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
热度
- GitHub 星标
- 75k
- 排名
- #3014
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。