accessible-authentication
它能做什么
这项技能检查登录、两步验证和密码找回,找出会阻碍认知、运动或低视力用户的障碍。适合希望让所有人都能顺利登录的产品团队。
适用场景
- ✓当你正在构建或审查登录表单、注册页面或密码重置功能时。
- ✓当你的网站在登录时使用验证码或记忆测试时。
- ✓当你希望取消对密码管理器和登录框粘贴操作的限制时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/accessible-authentication/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审查我们的登录和密码重置流程,看看有没有会阻碍有无障碍需求用户的地方。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查整个登录路径,包括错误处理和备用选项,查找是否阻止粘贴、是否有记忆测试,以及验证码输入是否不清楚。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Provide accessible authentication methods
Authentication often becomes the first hard blocker for users with cognitive, motor, low-vision, or speech-input needs. If sign-in, MFA, or recovery relies on memorization or transcription with no assisted path, the user may be locked out before they can access the product at all.
Quick Reference
- Do not block paste or password managers in login and recovery flows
- Prefer passkeys, magic links, device approval, or password-manager-friendly flows
- Support OTP autofill and paste with appropriate semantics such as
autocomplete="one-time-code" - Avoid CAPTCHA or secondary checks that require memorizing or transcribing information without an alternative
Check
Review login, MFA, password reset, and account recovery for accessible authentication problems. Flag blocked paste, password-manager hostility, manual transcription requirements, inaccessible OTP handling, and CAPTCHA or knowledge checks without a compliant alternative.
Fix
Add password-manager-friendly fields, support paste and OTP autofill, and provide at least one authentication path that does not depend on a cognitive function test.
Explain
Explain WCAG Accessible Authentication, why memorization and transcription are barriers, and how passkeys, password managers, OTP autofill, and device approval improve both accessibility and security.
Code Review
Review authentication pages, MFA steps, recovery flows, and security controls related to Provide accessible authentication methods. Flag exact steps that require memorization, transcription, blocked assistive tooling, or inaccessible fallback paths.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/accessible-authentication
常见问题
这项技能只检查主登录表单吗?
不是。这项技能说明要审查完整路径,包括两步验证、找回和重新登录。
什么能帮助无法记住验证码的人?
这项技能建议使用通行密钥(passkey)、魔法链接、设备确认以及密码管理器支持。
可以使用验证码吗?
只有在提供替代方案的前提下才可以,因为需要记忆或输入文字的验证码会阻挡部分用户。
详情
作者的原始描述
Use when reviewing sign-in, sign-up, MFA, CAPTCHA, recovery, and re-auth flows. Evaluate the full authentication path, including error handling and backup methods, not just the primary login form.
热度
- GitHub 星标
- 75k
- 排名
- #2709
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。