用户界面设计师
- 作者仓库星标 0
- 作者更新于 2026年8月24日 07:33
- 作者仓库 claude-code-skills
- 领域
- 工程开发
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @daymade · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- macOS · Linux · Windows
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 命令执行
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
第 1 步:收集输入
用户请求:参考图像目录:包含 UI 屏幕截图/模型的文件夹路径项目创意文件:描述产品概念和目标的文档现有 PRD(可选):如果 PRD 已存在,请跳过步骤 3
第2步:从图像中提取设计系统
将任务工具与通用子代理结合使用,提供: 来自`assets/design-system.md`的提示模板:分析调色板(主色、次要色、强调色、功能色) 提取版式(字体系列、大小、粗细、行高) 识别组件样式(按钮、卡片、输入、图标)
步骤 3:生成 MVP PRD(如果未提供)
将任务工具与通用子代理结合使用,提供: `assets/app-overview-generator.md` 中的提示模板:将 `{项目背景}` 替换为项目创意文件中的内容 模板引导:电梯推介、问题陈述、目标受众、USP、功能列表、UX/UI 考虑因素 与用户互动以细化和澄清产品需求
第 4 步:编写最终 UI 实现提示
使用 `assets/vibe-design-template.md` 将设计系统和 PRD 结合起来: 替换: `{项目设计指南}` → 步骤 2 中的设计系统 `{项目MVP PRD}` → 步骤 3 中的 PRD 或提供的 PRD 文件 结果:完整的、可实施的提示,包含:
第5步:验证React环境
检查现有的 React 项目:如果没有找到,则通知用户:
第 6 步:实施用户界面
使用步骤 4 中的最终组合提示在 React 项目中实现 UI。提示指示: 创建多个设计变体(3 个用于移动设备,2 个用于网页) 组织为单独的组件:`[solution-name]/pages/[page-name].jsx` 聚合展示页面中的所有变体
# UI Designer
## Overview
This skill enables systematic extraction of design systems from reference UI images through a multi-step workflow: analyze visual patterns → generate design system documentation → create PRD → produce implementation-ready UI prompts.
## When to Use
- User provides UI screenshots, mockups, or design references
- Need to extract color palettes, typography, spacing from existing designs
- Want to generate design system documentation from visual examples
- Building MVP UI that should match reference aesthetics
- Creating multiple UI variations following consistent design principles
## Workflow
### Step 1: Gather Inputs
Request from user:
- **Reference images directory**: Path to folder containing UI screenshots/mockups
- **Project idea file**: Document describing the product concept and goals
- **Existing PRD** (optional): If PRD already exists, skip Step 3
### Step 2: Extract Design System from Images
**Use Task tool with general-purpose subagent**, providing:
**Prompt template** from `assets/design-system.md`:
- Analyze color palettes (primary, secondary, accent, functional colors)
- Extract typography (font families, sizes, weights, line heights)
- Identify component styles (buttons, cards, inputs, icons)
- Document spacing system
- Note animations/transitions patterns
- Include dark mode variants if present
**Attach reference images** to the subagent context.
**Output**: Complete design system markdown following the template format
**Save to**: `documents/designs/{image_dir_name}_design_system.md`
### Step 3: Generate MVP PRD (if not provided)
**Use Task tool with general-purpose subagent**, providing:
**Prompt template** from `assets/app-overview-generator.md`:
- Replace `{项目背景}` with content from project idea file
- The template guides through: elevator pitch, problem statement, target audience, USP, features list, UX/UI considerations
**Interact with user** to refine and clarify product requirements
**Output**: Structured PRD markdown
**Save as variable** for Step 4 (optionally save to `documents/prd/`)
### Step 4: Compose Final UI Implementation Prompt
Combine design system and PRD using `assets/vibe-design-template.md`:
**Substitutions:**
- `{项目设计指南}` → Design system from Step 2
- `{项目MVP PRD}` → PRD from Step 3 or provided PRD file
**Result**: Complete, implementation-ready prompt containing:
- Design aesthetics principles
- Project-specific color/typography guidelines
- App overview and feature requirements
- Implementation tasks (multiple UI variations, component structure)
**Save to**: `documents/ux-design/{idea_file_name}_design_prompt_{timestamp}.md`
### Step 5: Verify React Environment
Check for existing React project:
```bash
find . -name "package.json" -exec grep -l "react" {} \;
```
If none found, inform user:
```bash
npx create-react-app my-app
cd my-app
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
npm install lucide-react
```
### Step 6: Implement UI
Use the final composed prompt from Step 4 to implement UI in React project.
The prompt instructs to:
- Create multiple design variations (3 for mobile, 2 for web)
- Organize as separate components: `[solution-name]/pages/[page-name].jsx`
- Aggregate all variations in showcase page
## Template Assets
### assets/design-system.md
Template for extracting visual design patterns. Includes sections for:
- Color palette (primary, secondary, accent, functional, backgrounds)
- Typography (font families, weights, text styles)
- Component styles (buttons, cards, inputs, icons)
- Spacing system (4dp-48dp scale)
- Animations (durations, easing curves)
- Dark mode variants
Use this template when analyzing reference images to ensure comprehensive design system coverage.
### assets/app-overview-generator.md
Template for collaborative PRD generation. Guides through:
- Elevator pitch
- Problem statement and target audience
- Unique selling proposition
- Platform targets
- Feature list with user stories
- UX/UI considerations per screen
Designed for interactive refinement with user to clarify requirements.
### assets/vibe-design-template.md
Final implementation prompt template combining design system and PRD. Includes:
- Aesthetic principles (minimalism, whitespace, color theory, typography hierarchy)
- Practical requirements (Tailwind CSS, Lucide icons, responsive design)
- Task specifications (multiple variations, component organization)
This template produces prompts ready for UI implementation without further modification.
## Best Practices
### Image Analysis
- Read all images before starting analysis
- Look for patterns across multiple screens
- Note both explicit styles (colors, fonts) and implicit principles (spacing, hierarchy)
- Capture dark mode if present in references
### Design System Extraction
- Be systematic: cover all template sections
- Use specific values (hex codes, px sizes) not generic descriptions
- Document the "why" for design choices when inferable
- Include variants (hover states, disabled states)
### PRD Generation
- Engage user interactively to clarify ambiguities
- Suggest features based on problem understanding
- Ensure MVP scope is realistic
- Document UX considerations per screen/interaction
### Output Organization
- Save design system with descriptive filename (based on image dir name)
- Save final prompt with timestamp for version tracking
- Keep all outputs in `documents/` directory for easy reference
- Preserve intermediate outputs for iteration
## Example Usage
**User provides:**
- `reference-images/saas-dashboard/` (5 screenshots)
- `ideas/project-management-app.md` (project concept)
**Execute workflow:**
1. Read 5 images from `reference-images/saas-dashboard/`
2. Use Task tool → design-system.md template → analyze images
3. Save to `documents/designs/saas-dashboard_design_system.md`
4. Use Task tool → app-overview-generator.md with project concept
5. Refine PRD through user interaction
6. Combine design system + PRD using vibe-design-template.md
7. Save to `documents/ux-design/project-management-app_design_prompt_20251025_153000.md`
8. Check React environment, inform user if setup needed
9. Implement UI using final prompt
## Notes
- This is a **high freedom** workflow—adapt steps based on context
- Templates provide structure but encourage thoughtful analysis over rote filling
- User interaction during PRD generation is critical for quality
- Final prompt quality directly impacts UI implementation success
- Preserve all intermediate outputs for iteration and refinement
章节与文件索引
按说明文件中的顺序排列。
概述
何时使用
第 1 步:收集输入
第2步:从图像中提取设计系统
步骤 3:生成 MVP PRD(如果未提供)
文件/命令 -> assets/design-system.md · documents/designs/{image_dir_name}_design_system.md · assets/app-overview-generator.md · {项目背景} · documents/prd/ · assets/vibe-design-template.md · {项目设计指南} · {项目MVP PRD}
内容校验值 -> b6313dc0af36
当前原文的自动摘译,尚未人工审校。
概述
该技能可以通过多步骤工作流程从参考 UI 图像中系统地提取设计系统:分析视觉模式 → 生成设计系统文档 → 创建 PRD → 生成可实施的 UI 提示。
何时使用
用户提供 UI 屏幕截图、模型或设计参考 需要从现有设计中提取调色板、版式、间距 希望从视觉示例生成设计系统文档 构建应符合参考美学的 MVP UI 创建遵循一致设计原则的多种 UI 变体
步骤 3:生成 MVP PRD(如果未提供)
将任务工具与通用子代理结合使用,提供:
assets/app-overview-generator.md中的提示模板:用项目创意文件中的内容替换{项目背景}模板引导:电梯推介、问题陈述、目标受众、USP、功能列表、UX/UI 考虑因素 与用户互动以细化和澄清产品需求