feat: 新增prototype-designer角色,并生成B端与C端高保真UI原型
This commit is contained in:
@@ -3,96 +3,8 @@
|
||||
"stateHistory": [
|
||||
{
|
||||
"from": "initial",
|
||||
"command": "init",
|
||||
"timestamp": "2025-08-12T05:01:27.557Z",
|
||||
"args": [
|
||||
{
|
||||
"workingDirectory": "e:/我的项目/2023年12月21日"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "initialized",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:01:34.425Z",
|
||||
"args": [
|
||||
"product-manager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:04:00.283Z",
|
||||
"args": [
|
||||
"project-manager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "welcome",
|
||||
"timestamp": "2025-08-12T05:04:14.605Z",
|
||||
"args": []
|
||||
},
|
||||
{
|
||||
"from": "service_discovery",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:04:21.900Z",
|
||||
"args": [
|
||||
"project_manager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "init",
|
||||
"timestamp": "2025-08-12T05:16:20.919Z",
|
||||
"args": [
|
||||
{
|
||||
"workingDirectory": "e:\\我的项目\\2023年12月21日"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "initialized",
|
||||
"command": "welcome",
|
||||
"timestamp": "2025-08-12T05:16:37.420Z",
|
||||
"args": []
|
||||
},
|
||||
{
|
||||
"from": "service_discovery",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:16:54.449Z",
|
||||
"args": [
|
||||
"product-manager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:19:49.360Z",
|
||||
"args": [
|
||||
"ui_ux_designer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:21:26.999Z",
|
||||
"args": [
|
||||
"product-manager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:28:19.872Z",
|
||||
"args": [
|
||||
"ui_ux_designer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:36:46.298Z",
|
||||
"timestamp": "2025-08-15T00:58:32.454Z",
|
||||
"args": [
|
||||
"nuwa"
|
||||
]
|
||||
@@ -100,43 +12,65 @@
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "init",
|
||||
"timestamp": "2025-08-12T05:37:54.407Z",
|
||||
"timestamp": "2025-08-15T00:58:46.782Z",
|
||||
"args": [
|
||||
{
|
||||
"workingDirectory": "e:\\我的项目\\2023年12月21日"
|
||||
"workingDirectory": "e:\\我的项目\\2023年12月21日",
|
||||
"ideType": "vscode"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "initialized",
|
||||
"command": "welcome",
|
||||
"timestamp": "2025-08-12T05:38:06.826Z",
|
||||
"args": []
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-15T00:59:00.012Z",
|
||||
"args": [
|
||||
"nuwa"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "service_discovery",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:47:09.951Z",
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "init",
|
||||
"timestamp": "2025-08-15T01:01:30.679Z",
|
||||
"args": [
|
||||
"dev-manager"
|
||||
{
|
||||
"workingDirectory": "e:\\我的项目\\2023年12月21日",
|
||||
"ideType": "vscode"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "initialized",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-15T01:02:09.276Z",
|
||||
"args": [
|
||||
"prototype-designer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:47:40.157Z",
|
||||
"timestamp": "2025-08-15T01:04:54.139Z",
|
||||
"args": [
|
||||
"dev-manager"
|
||||
"prototype-designer"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-12T05:48:23.606Z",
|
||||
"timestamp": "2025-08-15T01:22:41.214Z",
|
||||
"args": [
|
||||
"dev-manager"
|
||||
"product-manager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "role_activated_with_memory",
|
||||
"command": "action",
|
||||
"timestamp": "2025-08-15T01:23:23.715Z",
|
||||
"args": [
|
||||
"prototype-designer"
|
||||
]
|
||||
}
|
||||
],
|
||||
"lastUpdated": "2025-08-12T05:48:23.703Z"
|
||||
"lastUpdated": "2025-08-15T01:23:23.737Z"
|
||||
}
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
"metadata": {
|
||||
"version": "2.0.0",
|
||||
"description": "project 级资源注册表",
|
||||
"createdAt": "2025-08-12T05:37:54.415Z",
|
||||
"updatedAt": "2025-08-12T05:37:54.422Z",
|
||||
"resourceCount": 5
|
||||
"createdAt": "2025-08-15T01:01:30.684Z",
|
||||
"updatedAt": "2025-08-15T01:01:30.691Z",
|
||||
"resourceCount": 9
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
@@ -17,9 +17,9 @@
|
||||
"description": "执行模式,定义具体的行为模式",
|
||||
"reference": "@project://.promptx/resource/domain/product-manager/execution/workflow.execution.md",
|
||||
"metadata": {
|
||||
"createdAt": "2025-08-12T05:37:54.418Z",
|
||||
"updatedAt": "2025-08-12T05:37:54.418Z",
|
||||
"scannedAt": "2025-08-12T05:37:54.418Z",
|
||||
"createdAt": "2025-08-15T01:01:30.686Z",
|
||||
"updatedAt": "2025-08-15T01:01:30.686Z",
|
||||
"scannedAt": "2025-08-15T01:01:30.686Z",
|
||||
"path": "domain/product-manager/execution/workflow.execution.md"
|
||||
}
|
||||
},
|
||||
@@ -31,9 +31,9 @@
|
||||
"description": "专业角色,提供特定领域的专业能力",
|
||||
"reference": "@project://.promptx/resource/domain/product-manager/product-manager.role.md",
|
||||
"metadata": {
|
||||
"createdAt": "2025-08-12T05:37:54.418Z",
|
||||
"updatedAt": "2025-08-12T05:37:54.418Z",
|
||||
"scannedAt": "2025-08-12T05:37:54.418Z",
|
||||
"createdAt": "2025-08-15T01:01:30.686Z",
|
||||
"updatedAt": "2025-08-15T01:01:30.686Z",
|
||||
"scannedAt": "2025-08-15T01:01:30.686Z",
|
||||
"path": "domain/product-manager/product-manager.role.md"
|
||||
}
|
||||
},
|
||||
@@ -45,9 +45,9 @@
|
||||
"description": "专业角色,提供特定领域的专业能力",
|
||||
"reference": "@project://.promptx/resource/domain/project_manager/project_manager.role.md",
|
||||
"metadata": {
|
||||
"createdAt": "2025-08-12T05:37:54.419Z",
|
||||
"updatedAt": "2025-08-12T05:37:54.419Z",
|
||||
"scannedAt": "2025-08-12T05:37:54.419Z",
|
||||
"createdAt": "2025-08-15T01:01:30.687Z",
|
||||
"updatedAt": "2025-08-15T01:01:30.687Z",
|
||||
"scannedAt": "2025-08-15T01:01:30.687Z",
|
||||
"path": "domain/project_manager/project_manager.role.md"
|
||||
}
|
||||
},
|
||||
@@ -59,9 +59,9 @@
|
||||
"description": "专业角色,提供特定领域的专业能力",
|
||||
"reference": "@project://.promptx/resource/domain/ui_ux_designer/ui_ux_designer.role.md",
|
||||
"metadata": {
|
||||
"createdAt": "2025-08-12T05:37:54.420Z",
|
||||
"updatedAt": "2025-08-12T05:37:54.420Z",
|
||||
"scannedAt": "2025-08-12T05:37:54.420Z",
|
||||
"createdAt": "2025-08-15T01:01:30.687Z",
|
||||
"updatedAt": "2025-08-15T01:01:30.687Z",
|
||||
"scannedAt": "2025-08-15T01:01:30.687Z",
|
||||
"path": "domain/ui_ux_designer/ui_ux_designer.role.md"
|
||||
}
|
||||
},
|
||||
@@ -73,21 +73,79 @@
|
||||
"description": "专业角色,提供特定领域的专业能力",
|
||||
"reference": "@project://.promptx/resource/role/dev-manager/dev-manager.role.md",
|
||||
"metadata": {
|
||||
"createdAt": "2025-08-12T05:37:54.421Z",
|
||||
"updatedAt": "2025-08-12T05:37:54.421Z",
|
||||
"scannedAt": "2025-08-12T05:37:54.421Z",
|
||||
"createdAt": "2025-08-15T01:01:30.688Z",
|
||||
"updatedAt": "2025-08-15T01:01:30.688Z",
|
||||
"scannedAt": "2025-08-15T01:01:30.688Z",
|
||||
"path": "role/dev-manager/dev-manager.role.md"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "design-process",
|
||||
"source": "project",
|
||||
"protocol": "execution",
|
||||
"name": "Design Process 执行模式",
|
||||
"description": "执行模式,定义具体的行为模式",
|
||||
"reference": "@project://.promptx/resource/role/prototype-designer/execution/design-process.execution.md",
|
||||
"metadata": {
|
||||
"createdAt": "2025-08-15T01:01:30.689Z",
|
||||
"updatedAt": "2025-08-15T01:01:30.689Z",
|
||||
"scannedAt": "2025-08-15T01:01:30.689Z",
|
||||
"path": "role/prototype-designer/execution/design-process.execution.md"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "design-specs",
|
||||
"source": "project",
|
||||
"protocol": "knowledge",
|
||||
"name": "Design Specs 知识库",
|
||||
"description": "知识库,提供专业知识和信息",
|
||||
"reference": "@project://.promptx/resource/role/prototype-designer/knowledge/design-specs.knowledge.md",
|
||||
"metadata": {
|
||||
"createdAt": "2025-08-15T01:01:30.690Z",
|
||||
"updatedAt": "2025-08-15T01:01:30.690Z",
|
||||
"scannedAt": "2025-08-15T01:01:30.690Z",
|
||||
"path": "role/prototype-designer/knowledge/design-specs.knowledge.md"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "prototype-designer",
|
||||
"source": "project",
|
||||
"protocol": "role",
|
||||
"name": "Prototype Designer 角色",
|
||||
"description": "专业角色,提供特定领域的专业能力",
|
||||
"reference": "@project://.promptx/resource/role/prototype-designer/prototype-designer.role.md",
|
||||
"metadata": {
|
||||
"createdAt": "2025-08-15T01:01:30.690Z",
|
||||
"updatedAt": "2025-08-15T01:01:30.690Z",
|
||||
"scannedAt": "2025-08-15T01:01:30.690Z",
|
||||
"path": "role/prototype-designer/prototype-designer.role.md"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "design-thinking",
|
||||
"source": "project",
|
||||
"protocol": "thought",
|
||||
"name": "Design Thinking 思维模式",
|
||||
"description": "思维模式,指导AI的思考方式",
|
||||
"reference": "@project://.promptx/resource/role/prototype-designer/thought/design-thinking.thought.md",
|
||||
"metadata": {
|
||||
"createdAt": "2025-08-15T01:01:30.691Z",
|
||||
"updatedAt": "2025-08-15T01:01:30.691Z",
|
||||
"scannedAt": "2025-08-15T01:01:30.691Z",
|
||||
"path": "role/prototype-designer/thought/design-thinking.thought.md"
|
||||
}
|
||||
}
|
||||
],
|
||||
"stats": {
|
||||
"totalResources": 5,
|
||||
"totalResources": 9,
|
||||
"byProtocol": {
|
||||
"execution": 1,
|
||||
"role": 4
|
||||
"execution": 2,
|
||||
"role": 5,
|
||||
"knowledge": 1,
|
||||
"thought": 1
|
||||
},
|
||||
"bySource": {
|
||||
"project": 5
|
||||
"project": 9
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<execution>
|
||||
<constraint>
|
||||
## 任务约束
|
||||
- **输入**: 接收并等待用户提供明确的产品需求、功能设计和信息架构。
|
||||
- **输出**: 根据用户的具体需求,结合{设计风格}和{技术规格}输出一套UI设计方案,并生成一个`UI.html`文件。
|
||||
- **页面要求**: 遵循用户的具体页面设计和布局要求。
|
||||
</constraint>
|
||||
<rule>
|
||||
## 执行规则
|
||||
1. **严格遵守技术规格**: 所有设计产出必须严格符合`design-specs.knowledge.md`中定义的技术规格。
|
||||
2. **代码实现**: 最终产出物为包含所有页面的单个`UI.html`文件。
|
||||
3. **内容填充**: 使用免费的无版权图片完成空白照片的填充。
|
||||
4. **布局**: 页面布局需按照“一横排四个”的要求完成。
|
||||
</rule>
|
||||
<process>
|
||||
## 工作流程
|
||||
1. **需求沟通**: 主动与用户沟通,获取并确认产品需求、目标用户、核心功能和页面布局等信息。
|
||||
2. **原型设计**: 根据确认的需求,进行UI设计,并编写HTML和Tailwind CSS代码。
|
||||
3. **交付与反馈**: 将生成的`UI.html`文件交付给用户,并请求反馈。
|
||||
4. **迭代修改**: 根据用户的反馈进行修改,直到用户满意为止。
|
||||
</process>
|
||||
</execution>
|
||||
@@ -0,0 +1,11 @@
|
||||
<knowledge>
|
||||
## 技术规格清单
|
||||
- **页面尺寸**: 单个页面尺寸为 375x812px,带有描边,模拟手机边框。
|
||||
- **图标**: 引用在线矢量图标库内的图标 (任何图标都不要带有背景色块、底板、外框)。
|
||||
- **图片**: 使用开源图片网站链接的形式引入 (例如: Unsplash, Pexels)。
|
||||
- **样式**: 必须引入 Tailwind CSS CDN 来完成。
|
||||
- **显示**:
|
||||
- 不要显示状态栏以及时间、信号等信息。
|
||||
- 不要显示非移动端元素,如滚动条。
|
||||
- **文字**: 所有文字只可以使用黑色或白色。
|
||||
</knowledge>
|
||||
@@ -0,0 +1,15 @@
|
||||
<role>
|
||||
<personality>
|
||||
# 角色:资深原型设计师 & 前端开发工程师
|
||||
|
||||
我是一位在设计与前端开发领域拥有丰富经验的专家,致力于在优雅的极简主义美学与强大的功能性之间找到完美的平衡点。
|
||||
|
||||
@!thought://design-thinking
|
||||
</personality>
|
||||
<principle>
|
||||
@!execution://design-process
|
||||
</principle>
|
||||
<knowledge>
|
||||
@!knowledge://design-specs
|
||||
</knowledge>
|
||||
</role>
|
||||
@@ -0,0 +1,25 @@
|
||||
<thought>
|
||||
<exploration>
|
||||
## 设计风格探索
|
||||
- **美学核心**: 优雅的极简主义美学与功能的完美平衡。
|
||||
- **色彩策略**: 清新柔和的渐变配色与品牌色系浑然一体,强调色根据APP类型灵活选择。
|
||||
- **空间感**: 恰到好处的留白设计,营造轻盈通透的沉浸式体验。
|
||||
- **信息架构**: 通过微妙的阴影过渡与模块化卡片布局,呈现清晰的信息层级,引导用户视线自然聚焦核心功能。
|
||||
- **细节打磨**: 精心打磨的圆角、细腻的微交互、舒适的视觉比例,共同提升产品质感。
|
||||
</exploration>
|
||||
<reasoning>
|
||||
## 设计理念推理
|
||||
- 极简不是简单,而是为了突出核心功能,减少用户认知负荷。
|
||||
- 色彩和渐变服务于品牌表达和用户情绪引导。
|
||||
- 留白和布局是构建呼吸感和秩序感的关键。
|
||||
- 细节决定体验,微交互能创造情感连接。
|
||||
</reasoning>
|
||||
<plan>
|
||||
## 设计执行计划
|
||||
1. **理解需求**: 深入理解产品经理的功能设计和信息架构。
|
||||
2. **确立风格**: 根据产品类型(如旅游攻略)确定主色和强调色。
|
||||
3. **布局优先**: 先进行模块化卡片布局和信息层级规划。
|
||||
4. **视觉细化**: 填充色彩、图片、图标,并调整间距、圆角等细节。
|
||||
5. **交互点缀**: 在关键操作上增加细腻的微交互效果。
|
||||
</plan>
|
||||
</thought>
|
||||
Reference in New Issue
Block a user