增加了设计,后台功能模块设计

This commit is contained in:
史悦
2025-08-12 14:02:16 +08:00
parent feba423b16
commit e3a645d519
12 changed files with 882 additions and 74 deletions

View File

@@ -3,30 +3,140 @@
"stateHistory": [
{
"from": "initial",
"command": "action",
"timestamp": "2025-08-11T10:11:24.381Z",
"args": [
"product-manager"
]
},
{
"from": "role_activated_with_memory",
"command": "init",
"timestamp": "2025-08-11T10:11:46.821Z",
"timestamp": "2025-08-12T05:01:27.557Z",
"args": [
{
"workingDirectory": "E:\\我的项目\\2023年12月21日"
"workingDirectory": "e:/我的项目/2023年12月21日"
}
]
},
{
"from": "initialized",
"command": "action",
"timestamp": "2025-08-11T10:11:54.465Z",
"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",
"args": [
"nuwa"
]
},
{
"from": "role_activated_with_memory",
"command": "init",
"timestamp": "2025-08-12T05:37:54.407Z",
"args": [
{
"workingDirectory": "e:\\我的项目\\2023年12月21日"
}
]
},
{
"from": "initialized",
"command": "welcome",
"timestamp": "2025-08-12T05:38:06.826Z",
"args": []
},
{
"from": "service_discovery",
"command": "action",
"timestamp": "2025-08-12T05:47:09.951Z",
"args": [
"dev-manager"
]
},
{
"from": "role_activated_with_memory",
"command": "action",
"timestamp": "2025-08-12T05:47:40.157Z",
"args": [
"dev-manager"
]
},
{
"from": "role_activated_with_memory",
"command": "action",
"timestamp": "2025-08-12T05:48:23.606Z",
"args": [
"dev-manager"
]
}
],
"lastUpdated": "2025-08-11T10:11:54.481Z"
"lastUpdated": "2025-08-12T05:48:23.703Z"
}

View File

@@ -4,9 +4,9 @@
"metadata": {
"version": "2.0.0",
"description": "project 级资源注册表",
"createdAt": "2025-08-11T10:11:46.830Z",
"updatedAt": "2025-08-11T10:11:46.838Z",
"resourceCount": 4
"createdAt": "2025-08-12T05:37:54.415Z",
"updatedAt": "2025-08-12T05:37:54.422Z",
"resourceCount": 5
},
"resources": [
{
@@ -17,9 +17,9 @@
"description": "执行模式,定义具体的行为模式",
"reference": "@project://.promptx/resource/domain/product-manager/execution/workflow.execution.md",
"metadata": {
"createdAt": "2025-08-11T10:11:46.833Z",
"updatedAt": "2025-08-11T10:11:46.833Z",
"scannedAt": "2025-08-11T10:11:46.833Z",
"createdAt": "2025-08-12T05:37:54.418Z",
"updatedAt": "2025-08-12T05:37:54.418Z",
"scannedAt": "2025-08-12T05:37:54.418Z",
"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-11T10:11:46.834Z",
"updatedAt": "2025-08-11T10:11:46.834Z",
"scannedAt": "2025-08-11T10:11:46.834Z",
"createdAt": "2025-08-12T05:37:54.418Z",
"updatedAt": "2025-08-12T05:37:54.418Z",
"scannedAt": "2025-08-12T05:37:54.418Z",
"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-11T10:11:46.835Z",
"updatedAt": "2025-08-11T10:11:46.835Z",
"scannedAt": "2025-08-11T10:11:46.835Z",
"createdAt": "2025-08-12T05:37:54.419Z",
"updatedAt": "2025-08-12T05:37:54.419Z",
"scannedAt": "2025-08-12T05:37:54.419Z",
"path": "domain/project_manager/project_manager.role.md"
}
},
@@ -59,21 +59,35 @@
"description": "专业角色,提供特定领域的专业能力",
"reference": "@project://.promptx/resource/domain/ui_ux_designer/ui_ux_designer.role.md",
"metadata": {
"createdAt": "2025-08-11T10:11:46.836Z",
"updatedAt": "2025-08-11T10:11:46.836Z",
"scannedAt": "2025-08-11T10:11:46.836Z",
"createdAt": "2025-08-12T05:37:54.420Z",
"updatedAt": "2025-08-12T05:37:54.420Z",
"scannedAt": "2025-08-12T05:37:54.420Z",
"path": "domain/ui_ux_designer/ui_ux_designer.role.md"
}
},
{
"id": "dev-manager",
"source": "project",
"protocol": "role",
"name": "Dev Manager 角色",
"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",
"path": "role/dev-manager/dev-manager.role.md"
}
}
],
"stats": {
"totalResources": 4,
"totalResources": 5,
"byProtocol": {
"execution": 1,
"role": 3
"role": 4
},
"bySource": {
"project": 4
"project": 5
}
}
}

View File

@@ -0,0 +1,44 @@
<role>
<personality>
我是绿邻回收项目的研发经理,是技术战略的制定者和项目执行的保障者。我负责将产品蓝图转化为高质量、可扩展的技术现实。
我深度理解业务,以终为始,确保技术决策服务于核心商业目标。我关注团队成长,致力于打造一个高效、协作、有战斗力的研发团队。
<thought>
<exploration>
## 技术选型与架构探索
- **评估当前技术栈**Node.js + NestJS, uni-app, PostgreSQL。它们的优势和潜在风险是什么
- **预见未来挑战**:随着业务扩展(如物流、积分商城),当前架构需要预留哪些扩展点?
- **寻找效率杠杆**团队对NestJS和uni-app的熟练度如何如何通过技术预研和规范统一来提升效率
</exploration>
</thought>
</personality>
<principle>
<execution>
<constraint>
## 关键约束
- **MVP范围**: 严格遵守初步设计文档中定义的MVP范围任何变更需经产品、项目、研发三方评估。
- **技术栈**: 遵循选定的技术栈 (Node.js/NestJS, uni-app, PostgreSQL),任何调整需充分论证。
- **时间表**: 遵循4周2个Sprint完成MVP的总体排期。
</constraint>
<rule>
## 强制规则
- **每日站会**: 必须在每天上午10点组织15分钟站会同步进度、风险和阻塞点。
- **每周复盘**: 必须在每周五下午进行功能演示和复盘。
- **API文档先行**: 后端必须在Sprint 1结束时提供完整的API文档。
- **E2E测试**: MVP上线前必须通过核心流程的端到端测试。
</rule>
<guideline>
## 指导原则
- **风险驱动**: 主动识别技术、团队和需求风险,并制定应对策略。
- **质量内建**: 在开发流程中融入代码审查Code Review、单元测试保障交付质量。
</guideline>
</execution>
</principle>
<knowledge>
## 绿邻回收项目特定知识
- **核心矛盾**: 居民“便捷、透明处理废品”的需求与传统回收行业“效率低下、信息不透明”现状的矛盾。
- **MVP目标**: 跑通“居民到小站”的核心商业模式闭环。
- **核心用户**: 对价格敏感、希望操作简单的中老年用户(王大妈)。
</knowledge>
</role>