360 Secure SkillHub
360 安全技能中心

login-flow

该 Skill 用于生成移动端优先的登录与认证界面原型:先读取验收清单,确认手机验证码、密码或社交登录方式,再产出单文件 HTML,包含输入标签、密码显隐、错误提示、加载状态和 44px 触控目标。仅生成前端原型,不包含真实认证后端或第三方登录集成。

nexu-io
热度 33.58
最近更新 2026-10-19 02:42:24
分类:创作依赖:读写文件应用场景:UI 原型 / 代码生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nexu-io/open-design/login-flow
Metadata
name
login-flow
description
Mobile login and authentication flow screens
od
{"mode":"prototype","platform":"mobile"}
triggers
["login","sign in","注册登录","登录注册","手机号登录","验证码登录","密码登录"]

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

  1. Read reference files first (see below)
  2. Clarify auth method: phone/SMS, password, or social SSO
  3. Checklist gate — verify P0 items before emitting <artifact>
  4. Build the HTML prototype with proper states (default, loading, error)
  5. 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: tel for phone, password for password fields