lanhu-design
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese蓝湖设计稿分析
Lanhu Design Draft Analysis
前置条件
Prerequisites
lanhu MCP Server 已注册在 。首次使用需配置蓝湖 Cookie:
.claude/settings.json- 浏览器登录蓝湖 → F12 开发者工具 → Network → 复制请求头中的 Cookie
- 填入 的
.claude/settings.jsonlanhu.env.LANHU_COOKIE
lanhu MCP Server is registered in . For first-time use, you need to configure Lanhu Cookie:
.claude/settings.json- Log in to Lanhu via browser → F12 Developer Tools → Network → Copy the Cookie from the request header
- Fill in in
lanhu.env.LANHU_COOKIE.claude/settings.json
MCP 工具清单
MCP Tool List
| 工具 | 用途 | 输入 |
|---|---|---|
| 解析蓝湖邀请链接 | 邀请链接 URL |
| 获取原型文档页面列表+截图 | 含 docId 的蓝湖 URL |
| AI 分析原型页面(开发/测试/探索视角) | 含 docId 的 URL + 页面名 + 模式 |
| 获取 UI 设计图列表 | 不含 docId 的蓝湖 URL |
| AI 分析设计图(含尺寸/颜色/CSS) | 不含 docId 的 URL + 设计图名 |
| 提取设计稿切图资源 | 不含 docId 的 URL + 设计图名 |
| 发送团队留言 | URL + 内容 |
| 查询留言列表 | URL 或 'all' |
| 查看留言详情 | 消息 ID |
| 编辑留言 | URL + 消息 ID + 新内容 |
| 删除留言 | URL + 消息 ID |
| 获取项目成员 | URL |
| Tool | Purpose | Input |
|---|---|---|
| Parse Lanhu invitation links | Invite link URL |
| Get prototype document page list + screenshots | Lanhu URL containing docId |
| AI analyze prototype pages (from development/testing/exploration perspectives) | URL with docId + page name + mode |
| Get UI design draft list | Lanhu URL without docId |
| AI analyze design drafts (including size/color/CSS) | URL without docId + design draft name |
| Extract slice resources from design drafts | URL without docId + design draft name |
| Send team messages | URL + content |
| Query message list | URL or 'all' |
| View message details | Message ID |
| Edit messages | URL + message ID + new content |
| Delete messages | URL + message ID |
| Get project members | URL |
URL 类型区分(重要)
URL Type Differentiation (Important)
| URL 类型 | 特征 | 用于 |
|---|---|---|
| 原型文档 URL | 含 | |
| 设计项目 URL | 不含 | |
| 邀请链接 | | 先用 |
| URL Type | Feature | Used For |
|---|---|---|
| Prototype Document URL | Contains | |
| Design Project URL | No | |
| Invitation Link | | First use |
典型工作流
Typical Workflows
1. 需求分析(与 analyze-requirements 联动)
1. Requirement Analysis (Integration with analyze-requirements)
收到蓝湖链接
│
├─ 邀请链接? → lanhu_resolve_invite_link → 获取真实 URL
│
├─ 含 docId?(原型文档)
│ ├─ lanhu_get_pages → 获取页面列表和截图
│ └─ lanhu_get_ai_analyze_page_result(mode="development") → 获取字段/逻辑/流程
│
└─ 不含 docId?(设计项目)
├─ lanhu_get_designs → 获取设计图列表
└─ lanhu_get_ai_analyze_design_result → 获取尺寸/颜色/CSSReceive Lanhu link
│
├─ Is it an invitation link? → lanhu_resolve_invite_link → Get real URL
│
├─ Contains docId? (Prototype Document)
│ ├─ lanhu_get_pages → Get page list and screenshots
│ └─ lanhu_get_ai_analyze_page_result(mode="development") → Get fields/logic/processes
│
└─ No docId? (Design Project)
├─ lanhu_get_designs → Get design draft list
└─ lanhu_get_ai_analyze_design_result → Get size/color/CSS2. 前端开发(获取设计参数)
2. Frontend Development (Obtain Design Parameters)
lanhu_get_designs → 查看设计图列表
→ lanhu_get_ai_analyze_design_result → 获取精确设计参数(尺寸/间距/颜色/字体)+ HTML+CSS 代码
→ lanhu_get_design_slices → 提取切图/图标资源lanhu_get_designs → View design draft list
→ lanhu_get_ai_analyze_design_result → Obtain precise design parameters (size/spacing/color/font) + HTML+CSS code
→ lanhu_get_design_slices → Extract slice/icon resources3. 分析模式选择
3. Analysis Mode Selection
lanhu_get_ai_analyze_page_result| 模式 | 关注点 | 适用场景 |
|---|---|---|
| 字段规则、业务逻辑、全局流程图 | 后端/前端开发 |
| 测试场景、用例、边界值、校验规则 | 测试编写 |
| 核心功能概览、模块依赖、评审要点 | 需求评审 |
lanhu_get_ai_analyze_page_result| Mode | Focus | Applicable Scenario |
|---|---|---|
| Field rules, business logic, global flow chart | Backend/frontend development |
| Test scenarios, use cases, boundary values, validation rules | Test case writing |
| Core function overview, module dependencies, review key points | Requirement review |
与其他技能联动
Integration with Other Skills
| 场景 | 先用 lanhu-design | 再用 |
|---|---|---|
| 需求分析 | 获取原型截图和页面结构 | |
| 前端开发 | 获取设计参数和切图 | |
| 接口开发 | 从原型推导接口字段 | |
| Scenario | First Use lanhu-design | Then Use |
|---|---|---|
| Requirement Analysis | Obtain prototype screenshots and page structure | |
| Frontend Development | Obtain design parameters and slices | |
| Interface Development | Derive interface fields from prototypes | |
注意
Notes
- 蓝湖 Cookie 有效期有限,过期需重新获取
- 原型文档和设计项目使用不同的 URL 格式,工具不能混用
- 大型原型建议分页面分析,避免单次请求过大
- 与 的区别:本技能负责从蓝湖获取数据,
analyze-requirements负责分析数据输出任务analyze-requirements
- Lanhu Cookie has a limited validity period; re-obtain it when expired
- Prototype documents and design projects use different URL formats, tools cannot be mixed
- For large prototypes, it is recommended to analyze by page to avoid excessive single requests
- Difference from : This skill is responsible for obtaining data from Lanhu, while
analyze-requirementsis responsible for analyzing data and outputting tasksanalyze-requirements