login-flow
它能做什么
这个工具用于创建移动应用的登录界面。它可以生成多种登录方式,比如短信验证码登录、密码登录,或第三方账号登录(如 Google、Facebook 等)。
适用场景
- ✓需要为新的移动应用设计入口界面时。
- ✓应用需要通过短信验证用户手机号时。
- ✓想利用现有账号(如 Google、Facebook)添加快捷登录选项时。
技能链接
https://github.com/nexu-io/open-design/blob/main/skills/login-flow/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为我的应用创建一个登录界面,支持手机号加短信验证码登录,并带有一个 Google 登录按钮。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会先检查基本需求,然后询问你偏好哪种登录方式(短信、密码或第三方账号)。最后,它会生成该界面的 HTML 代码,包括错误状态和加载状态。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Login Flow Skill
A skill for generating mobile-first login and authentication screens. Use this when the user wants a sign-in experience for a mobile app, including phone + SMS verification, password-based login, and social SSO options.
Workflow
- Read reference files first (see below)
- Clarify auth method: phone/SMS, password, or social SSO
- Checklist gate — verify P0 items before emitting
<artifact> - Build the HTML prototype with proper states (default, loading, error)
- Wrap in
<artifact>tag referencing the output file
Side Files
references/checklist.md— P0/P1 acceptance criteria
Output
A single standalone HTML file implementing the login screen with:
- Labels above inputs (never placeholder-only)
- Password field with show/hide toggle
- Social SSO buttons with SVG icons
- Error states below fields
- Loading spinner in primary CTA
- Touch targets minimum 44px
Mobile-First Constraints
- Viewport: 375px wide (iPhone standard)
- No horizontal scroll
- Safe area insets for notched devices
- Input keyboards:
telfor phone,passwordfor password fields
常见问题
登录界面上的“状态”是什么?
指界面可能呈现的不同样式,比如正常状态、验证密码时的加载状态,或出错时的错误状态。
“mobile-first”是什么意思?
意思是界面主要以手机端的使用体验为优先进行设计,标准屏幕宽度为 375 像素,确保内容不会被截断,也无需横向滚动。
什么是“touch targets”?
指界面上可点击的区域,比如按钮和输入框。44px 的“touch targets”能确保你用手指在手机屏幕上轻松点击。
详情
热度
- GitHub 星标
- 101k
- 排名
- #1198
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …