login-flow
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLogin Flow Skill
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.
一个用于生成移动端优先的登录与认证界面的Skill。当用户需要为移动应用打造登录体验时使用,包括手机号+短信验证、密码登录以及社交SSO登录选项。
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 tag referencing the output file
<artifact>
- 先阅读参考文件(见下文)
- 确认认证方式:手机号/短信、密码或社交SSO
- 检查清单关卡——在输出前验证P0项
<artifact> - 构建HTML原型,包含合适的状态(默认、加载、错误)
- 用标签包裹,引用输出文件
<artifact>
Side Files
附属文件
- — P0/P1 acceptance criteria
references/checklist.md
- — P0/P1验收标准
references/checklist.md
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
一个独立的HTML文件,实现登录界面,包含:
- 输入框上方显示标签(绝不只使用占位符)
- 带显示/隐藏切换的密码输入框
- 带有SVG图标的社交SSO按钮
- 输入框下方的错误状态提示
- 主按钮中的加载 spinner
- 触摸目标最小尺寸44px
Mobile-First Constraints
移动端优先约束条件
- Viewport: 375px wide (iPhone standard)
- No horizontal scroll
- Safe area insets for notched devices
- Input keyboards: for phone,
telfor password fieldspassword
- 视口宽度:375px(iPhone标准尺寸)
- 无横向滚动
- 适配带刘海设备的安全区域内边距
- 输入键盘:手机号字段使用类型,密码字段使用
tel类型password