frontend-design
Specifies design and validation standards for user onboarding and AI configuration forms.
Install
mkdir -p .claude/skills/frontend-design-0lin0-c && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14470" && unzip -o skill.zip -d .claude/skills/frontend-design-0lin0-c && rm skill.zipInstalls to .claude/skills/frontend-design-0lin0-c
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
前端界面与表单设计规范。定义用户画像初始化流程、AI 助手定制表单及数据校验逻辑。Key capabilities
- →Define new user registration flow with step-by-step guidance
- →Specify AI assistant customization forms
- →Implement data validation logic for frontend forms
- →Ensure field naming consistency with backend API schemas
- →Manage dynamic display of identity details based on user type
- →Configure LLM settings for users
How it works
This skill outlines the mandatory frontend design specifications for user onboarding and AI assistant customization, including form structures and data validation.
Inputs & outputs
When to use frontend-design
- →Onboarding flow design
- →AI assistant setup
- →Define form validation
About this skill
STOP AND READ THIS FIRST.
你是本项目的核心开发 Agent。本目录下的所有 Markdown 文件构成了 frontend-design 的强制性技术规范(Technical Specification)。
在进行任何前端表单、字段或交互逻辑开发之前,你必须严格遵循以下路由规则,使用你的文件读取能力查阅对应的细节文档。
1. 页面流程概览
1.1 新用户注册流程
新用户首次进入系统时,采用**分步式引导(Step-by-Step)**完成初始化:
新用户首次进入
↓
┌─────────────────────────────────────────────────────┐
│ login.html:登录/注册 │
│ ├─ 已有账号?输入用户名+密码登录 │
│ └─ 新用户?点击"立即注册"跳转 │
└─────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────┐
│ index.html:用户画像初始化(第一阶段) │
│ ├─ 基本信息(用户名、密码、身份类型) │
│ ├─ 身份详情(根据类型动态展示) │
│ └─ 使用场景 & 兴趣标签(可选) │
└─────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────┐
│ index.html:AI 助手定制(第二阶段) │
│ ├─ AI 名字(用户给助手起名) │
│ ├─ AI 身份角色 │
│ ├─ AI 性格特点 │
│ └─ 沟通风格 │
└─────────────────────────────────────────────────────┘
↓
提交至后端 API:POST /v1/user/onboarding
↓
┌─────────────────────────────────────────────────────┐
│ settings.html:LLM 配置 │
│ ├─ LLM 提供商选择 │
│ ├─ API Base URL(可选) │
│ ├─ API Key │
│ ├─ 模型名称 │
│ └─ 保存并预热 │
└─────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────┐
│ chat.html:开始对话 │
└─────────────────────────────────────────────────────┘
1.2 老用户登录流程
老用户登录
↓
┌─────────────────────────────────────────────────────┐
│ login.html:输入用户名+密码 │
└─────────────────────────────────────────────────────┘
↓
后端判断:是否已配置 LLM?
├─ 是 → 直接跳转 chat.html
└─ 否 → 跳转 settings.html
2. 页面清单
| 页面 | 文件 | 功能 |
|---|---|---|
| 登录/注册 | login.html | 用户登录入口 |
| 初始化 | index.html | 新用户画像和 AI 定制 |
| LLM 设置 | settings.html | 配置用户的 LLM API |
| 聊天 | chat.html | 与 AI 助手对话 |
3. 编码前置依赖路由表
[ACTION REQUIRED] 当我要求你开发或修改特定模块时,你必须先读取以下对应的文件。
模块 A:用户画像表单
如果你需要实现或修改用户画像收集、身份详情动态展示相关的代码:
- 必须读取:
forms/user-profile.md(基本信息、身份详情动态字段、使用场景、兴趣标签)
模块 B:AI 助手定制表单
如果你需要实现或修改AI 助手定制、性格选择、沟通风格相关的代码:
- 必须读取:
forms/ai-customization.md(AI 名字、角色、性格、沟通风格)
模块 C:请求契约
如果你需要实现前端提交逻辑或字段校验相关的代码:
- 必须读取:
api/request-schema.md(完整的请求 JSON 结构)
模块 D:LLM 设置表单
如果你需要实现或修改LLM 配置、预热状态相关的代码:
- 必须读取:
forms/llm-settings.md(提供商、API Key、模型名称、预热状态)
4. 严格的开发约束
- 字段命名一致性:前端字段名必须与
api/request-schema.md中定义的字段名完全一致。 - 动态字段逻辑:身份详情字段根据
identity_type动态展示,详见forms/user-profile.md。 - 称呼约定:AI 称呼用户时直接使用用户的
username,AI 自称使用ai_name。 - 登录状态检查:聊天页和设置页需检查 localStorage 中的
userId,未登录跳转login.html。
5. 相关 Skills 引用
- 后端处理逻辑:详见
input-pipelineskill - 数据库表结构:详见
database-schemaskill - LLM 配置:详见
llm-factory-designskill
When not to use it
- →When developing backend logic
- →When designing non-frontend components
- →When not adhering to the specified step-by-step onboarding flow
Limitations
- →Frontend field names must exactly match the `api/request-schema.md`.
- →Identity details fields are dynamically displayed based on `identity_type`.
- →The chat and settings pages require checking `localStorage` for `userId`.
How it compares
This workflow provides a structured, multi-stage user onboarding process and AI assistant setup, unlike a single-page registration.
Compared to similar skills
frontend-design side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| frontend-design (this skill) | 0 | 5mo | No flags | Intermediate |
| ui-ux-pro-max | 1,909 | 6mo | Review | Intermediate |
| penpot-uiux-design | 27 | 8mo | Review | Advanced |
| design-context | 1 | 8mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
ui-ux-pro-max
nextlevelbuilder
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
penpot-uiux-design
github
Comprehensive guide for creating professional UI/UX designs in Penpot using MCP tools. Use this skill when: (1) Creating new UI/UX designs for web, mobile, or desktop applications, (2) Building design systems with components and tokens, (3) Designing dashboards, forms, navigation, or landing pages, (4) Applying accessibility standards and best practices, (5) Following platform guidelines (iOS, Android, Material Design), (6) Reviewing or improving existing Penpot designs for usability. Triggers: "design a UI", "create interface", "build layout", "design dashboard", "create form", "design landing page", "make it accessible", "design system", "component library".
design-context
WellApp-ai
Refresh UI/UX context from design system, Storybook, and codebase
userinterface-wiki
raphaelsalaja
UI/UX best practices for web interfaces. Use when reviewing animations, CSS, audio, typography, UX patterns, prefetching, or icon implementations. Covers 11 categories from animation principles to typography. Outputs file:line findings.
frontend-design
darthlinuxer
Design thinking and decision-making for web UI. Use when designing components,
front-design
WBInCode
**DESIGN SKILL** — Tworzenie ultrazawansowanych, autorskich interfejsów UI/UX o jakości Awwwards SOTD/Site of the Year, łączących produkcyjną solidność (business CRM, dashboardy, panele) z efektem "wow" (showcase, landing, prezentacje dla klienta). USE FOR: projektowanie i implementacja stron, dashb