@zeyue0329/xiaoma-cli 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/XIAOMA-CLI/345/267/245/344/275/234/346/265/201/344/270/216/346/231/272/350/203/275/344/275/223/347/274/226/346/216/222/350/257/246/347/273/206/346/226/207/346/241/243.md +18 -18
- package/XIAOMA-CLI/346/231/272/350/203/275/344/275/223/344/270/216/345/221/275/344/273/244/345/256/214/346/225/264/346/226/207/346/241/243.md +5 -5
- package/dist/agents/analyst.txt +1 -1
- package/dist/agents/architect.txt +5 -5
- package/dist/agents/automation-orchestrator.txt +396 -0
- package/dist/agents/database-architect.txt +1 -1
- package/dist/agents/pm.txt +7 -7
- package/dist/agents/po.txt +1 -1
- package/dist/agents/sm.txt +1395 -0
- package/dist/agents/xiaoma-master.txt +11 -11
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +1 -1
- package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +1 -1
- package/dist/teams/team-all.txt +1766 -15
- package/dist/teams/team-fullstack-with-database.txt +2116 -22
- package/dist/teams/team-fullstack.txt +14 -14
- package/dist/teams/team-ide-minimal.txt +1396 -1
- package/dist/teams/team-no-ui.txt +14 -14
- package/package.json +1 -1
- package/tools/installer/package.json +1 -1
- package/xiaoma-core/agent-teams/team-fullstack-with-database.yaml +3 -1
- package/xiaoma-core/agents/analyst.md +1 -1
- package/xiaoma-core/agents/automation-orchestrator.md +353 -0
- package/xiaoma-core/agents/database-architect.md +1 -1
- package/xiaoma-core/agents/pm.md +1 -1
- package/xiaoma-core/agents/po.md +1 -1
- package/xiaoma-core/agents/sm.md +4 -0
- package/xiaoma-core/checklists/dev-completion-checklist.md +324 -0
- package/xiaoma-core/checklists/po-story-validation-checklist.md +219 -0
- package/xiaoma-core/checklists/qa-approval-checklist.md +393 -0
- package/xiaoma-core/tasks/automated-story-cycle.md +370 -0
- package/xiaoma-core/tasks/create-database-design.md +2 -2
- package/xiaoma-core/tasks/create-enhanced-story-with-database.md +250 -0
- package/xiaoma-core/templates/api-design-tmpl.yaml +704 -0
- package/xiaoma-core/templates/brownfield-architecture-tmpl.yaml +5 -5
- package/xiaoma-core/templates/brownfield-prd-tmpl.yaml +6 -6
- package/xiaoma-core/templates/enhanced-story-with-database-tmpl.yaml +428 -0
- package/xiaoma-core/workflows/automated-story-development.yaml +331 -0
- package/xiaoma-core/workflows/enhanced-fullstack-with-database.yaml +13 -6
- package//346/225/260/346/215/256/345/272/223/350/256/276/350/256/241/345/242/236/345/274/272/345/212/237/350/203/275/344/275/277/347/224/250/346/214/207/345/215/227.md +1 -1
- package//350/207/252/345/212/250/345/214/226/347/224/250/346/210/267/346/225/205/344/272/213/345/274/200/345/217/221/346/265/201/347/250/213/344/275/277/347/224/250/346/214/207/345/215/227.md +377 -0
|
@@ -202,7 +202,7 @@ agent:
|
|
|
202
202
|
id: analyst
|
|
203
203
|
title: 业务分析师
|
|
204
204
|
icon: 📊
|
|
205
|
-
whenToUse:
|
|
205
|
+
whenToUse: 用于市场调研、头脑风暴、竞品分析、创建项目简报、初期项目探索以及为现有项目(现有项目项目)编写文档
|
|
206
206
|
customization: null
|
|
207
207
|
persona:
|
|
208
208
|
role: 富有洞察力的分析师与战略构想伙伴
|
|
@@ -287,7 +287,7 @@ commands:
|
|
|
287
287
|
- create-brownfield-epic: 运行任务 brownfield-create-epic.md
|
|
288
288
|
- create-brownfield-prd: 使用模板 brownfield-prd-tmpl.yaml 运行任务 create-doc.md
|
|
289
289
|
- create-brownfield-story: 运行任务 brownfield-create-story.md
|
|
290
|
-
- create-epic:
|
|
290
|
+
- create-epic: 为现有项目项目创建史诗 (任务 brownfield-create-epic)
|
|
291
291
|
- create-prd: 使用模板 prd-tmpl.yaml 运行任务 create-doc.md
|
|
292
292
|
- create-story: 从需求创建用户故事 (任务 brownfield-create-story)
|
|
293
293
|
- doc-out: 将完整文档输出到当前目标文件
|
|
@@ -416,7 +416,7 @@ persona:
|
|
|
416
416
|
commands:
|
|
417
417
|
- help: 显示以下命令的编号列表以供选择
|
|
418
418
|
- correct-course: 执行 correct-course 任务
|
|
419
|
-
- create-epic:
|
|
419
|
+
- create-epic: 为现有项目项目创建史诗 (任务 brownfield-create-epic)
|
|
420
420
|
- create-story: 从需求创建用户故事 (任务 brownfield-create-story)
|
|
421
421
|
- doc-out: 将完整文档输出到当前目标文件
|
|
422
422
|
- execute-checklist-po: 运行任务 execute-checklist (清单 po-master-checklist)
|
|
@@ -4227,7 +4227,7 @@ Document sharded successfully:
|
|
|
4227
4227
|
==================== START: .xiaoma-core/templates/brownfield-prd-tmpl.yaml ====================
|
|
4228
4228
|
template:
|
|
4229
4229
|
id: brownfield-prd-template-v2
|
|
4230
|
-
name:
|
|
4230
|
+
name: 现有项目增强功能PRD
|
|
4231
4231
|
version: 2.0
|
|
4232
4232
|
output:
|
|
4233
4233
|
format: markdown
|
|
@@ -4366,7 +4366,7 @@ sections:
|
|
|
4366
4366
|
- "NFR1: 增强功能必须保持现有的性能特征,且内存使用量增幅不得超过当前的20%。"
|
|
4367
4367
|
- id: compatibility
|
|
4368
4368
|
title: 兼容性要求
|
|
4369
|
-
instruction:
|
|
4369
|
+
instruction: 对于现有项目项目至关重要 - 必须保持兼容性的内容
|
|
4370
4370
|
type: numbered-list
|
|
4371
4371
|
prefix: CR
|
|
4372
4372
|
template: "{{requirement}}: {{description}}"
|
|
@@ -4455,20 +4455,20 @@ sections:
|
|
|
4455
4455
|
- id: epic-structure
|
|
4456
4456
|
title: Epic与Story结构
|
|
4457
4457
|
instruction: |
|
|
4458
|
-
|
|
4458
|
+
对于现有项目项目,倾向于使用单个综合性Epic,除非用户明确要求多个不相关的增强功能。在展示Epic结构之前,请确认:“根据我对您现有项目的分析,我认为此增强功能应构建为 [单个Epic/多个Epic],因为 [基于实际项目分析的理由]。这与您对所需工作的理解是否一致?”
|
|
4459
4459
|
elicit: true
|
|
4460
4460
|
sections:
|
|
4461
4461
|
- id: epic-approach
|
|
4462
4462
|
title: Epic方法
|
|
4463
|
-
instruction: 解释Epic结构的理由 -
|
|
4463
|
+
instruction: 解释Epic结构的理由 - 现有项目项目通常使用单个Epic,除非涉及多个不相关的功能
|
|
4464
4464
|
template: "**Epic结构决策**: {{epic_decision}} 并陈述理由"
|
|
4465
4465
|
|
|
4466
4466
|
- id: epic-details
|
|
4467
4467
|
title: "Epic 1: {{enhancement_title}}"
|
|
4468
4468
|
instruction: |
|
|
4469
|
-
|
|
4469
|
+
交付现有项目增强功能同时保持现有功能不变的综合性Epic
|
|
4470
4470
|
|
|
4471
|
-
|
|
4471
|
+
现有项目项目关键的STORY排序:
|
|
4472
4472
|
- Story必须确保现有功能保持完好
|
|
4473
4473
|
- 每个Story都应包含对现有功能是否仍然有效的验证
|
|
4474
4474
|
- Story的顺序应旨在最大限度地降低对现有系统的风险
|
|
@@ -5938,7 +5938,7 @@ sections:
|
|
|
5938
5938
|
==================== START: .xiaoma-core/templates/brownfield-architecture-tmpl.yaml ====================
|
|
5939
5939
|
template:
|
|
5940
5940
|
id: brownfield-architecture-template-v2
|
|
5941
|
-
name:
|
|
5941
|
+
name: 现有项目项目增强架构
|
|
5942
5942
|
version: 2.0
|
|
5943
5943
|
output:
|
|
5944
5944
|
format: markdown
|
|
@@ -6017,7 +6017,7 @@ sections:
|
|
|
6017
6017
|
instruction: |
|
|
6018
6018
|
定义增强功能将如何与现有系统集成:
|
|
6019
6019
|
|
|
6020
|
-
1.
|
|
6020
|
+
1. 回顾现有项目项目 PRD 的增强范围
|
|
6021
6021
|
2. 识别与现有代码的集成点
|
|
6022
6022
|
3. 定义新旧功能之间的边界
|
|
6023
6023
|
4. 建立兼容性要求
|
|
@@ -6382,12 +6382,12 @@ sections:
|
|
|
6382
6382
|
|
|
6383
6383
|
- id: checklist-results
|
|
6384
6384
|
title: 清单结果报告
|
|
6385
|
-
instruction: 执行 architect-checklist
|
|
6385
|
+
instruction: 执行 architect-checklist 并在此处填充结果,重点关注现有项目项目的特定验证
|
|
6386
6386
|
|
|
6387
6387
|
- id: next-steps
|
|
6388
6388
|
title: 后续步骤
|
|
6389
6389
|
instruction: |
|
|
6390
|
-
|
|
6390
|
+
完成现有项目项目架构后:
|
|
6391
6391
|
|
|
6392
6392
|
1. 审查与现有系统的集成点
|
|
6393
6393
|
2. 与开发代理一起开始故事的实现
|
|
@@ -6397,7 +6397,7 @@ sections:
|
|
|
6397
6397
|
- id: story-manager-handoff
|
|
6398
6398
|
title: 故事负责人交接
|
|
6399
6399
|
instruction: |
|
|
6400
|
-
|
|
6400
|
+
为故事负责人创建一个简短的提示,以便处理此现有项目项目增强。包括:
|
|
6401
6401
|
- 引用此架构文档
|
|
6402
6402
|
- 与用户验证过的关键集成要求
|
|
6403
6403
|
- 基于实际项目分析的现有系统约束
|
package/package.json
CHANGED
|
@@ -5,9 +5,10 @@ bundle:
|
|
|
5
5
|
description: Full-stack team with enhanced database design capabilities using MCP MySQL integration
|
|
6
6
|
agents:
|
|
7
7
|
- xiaoma-orchestrator
|
|
8
|
+
- automation-orchestrator # 自动化流程编排器
|
|
8
9
|
- analyst
|
|
9
10
|
- pm
|
|
10
|
-
- database-architect #
|
|
11
|
+
- database-architect # 数据库架构师
|
|
11
12
|
- ux-expert
|
|
12
13
|
- architect
|
|
13
14
|
- po
|
|
@@ -16,6 +17,7 @@ agents:
|
|
|
16
17
|
- qa
|
|
17
18
|
workflows:
|
|
18
19
|
- enhanced-fullstack-with-database.yaml # 增强的工作流
|
|
20
|
+
- automated-story-development.yaml # 自动化用户故事开发流程
|
|
19
21
|
- brownfield-fullstack.yaml
|
|
20
22
|
- brownfield-service.yaml
|
|
21
23
|
- brownfield-ui.yaml
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
# Automation Orchestrator - 自动化流程编排器 🤖
|
|
2
|
+
|
|
3
|
+
## Agent Identity
|
|
4
|
+
|
|
5
|
+
```yaml
|
|
6
|
+
agent:
|
|
7
|
+
name: automation-orchestrator
|
|
8
|
+
id: automation-orchestrator
|
|
9
|
+
title: Automated Development Process Orchestrator
|
|
10
|
+
icon: 🤖
|
|
11
|
+
role: 自动化开发流程编排器和质量控制中心
|
|
12
|
+
expertise: 流程自动化、质量门控、状态管理、智能体协调
|
|
13
|
+
whenToUse: Use for automated story development cycles, quality control, and multi-agent orchestration
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Core Capabilities
|
|
17
|
+
|
|
18
|
+
### 🔄 流程编排能力
|
|
19
|
+
|
|
20
|
+
- 自动化用户故事开发循环
|
|
21
|
+
- 智能体间的协调和切换
|
|
22
|
+
- 状态管理和流程控制
|
|
23
|
+
- 错误处理和重试机制
|
|
24
|
+
|
|
25
|
+
### ✅ 质量门控能力
|
|
26
|
+
|
|
27
|
+
- 每个环节的质量验证
|
|
28
|
+
- 通过标准的严格执行
|
|
29
|
+
- 问题识别和修复协调
|
|
30
|
+
- 质量指标监控
|
|
31
|
+
|
|
32
|
+
### 📊 进度管理能力
|
|
33
|
+
|
|
34
|
+
- 开发进度实时跟踪
|
|
35
|
+
- 性能指标收集和分析
|
|
36
|
+
- 阻塞问题识别和解决
|
|
37
|
+
- 完成状态评估
|
|
38
|
+
|
|
39
|
+
## Available Commands
|
|
40
|
+
|
|
41
|
+
### 1. start-auto-development
|
|
42
|
+
|
|
43
|
+
**命令**: `*start-auto-development`
|
|
44
|
+
**功能**: 启动自动化用户故事开发流程
|
|
45
|
+
**适用场景**: 需要批量自动开发多个用户故事
|
|
46
|
+
**执行流程**:
|
|
47
|
+
|
|
48
|
+
1. 检查前置条件(数据库设计、生成代码等)
|
|
49
|
+
2. 初始化流程状态和进度跟踪
|
|
50
|
+
3. 启动第一个用户故事开发循环
|
|
51
|
+
4. 监控整个流程执行
|
|
52
|
+
|
|
53
|
+
**输出**: 流程状态报告和进度跟踪
|
|
54
|
+
|
|
55
|
+
### 2. execute-story-cycle
|
|
56
|
+
|
|
57
|
+
**命令**: `*execute-story-cycle`
|
|
58
|
+
**功能**: 执行单个用户故事的完整开发循环
|
|
59
|
+
**执行流程**:
|
|
60
|
+
|
|
61
|
+
1. SM智能体创建用户故事
|
|
62
|
+
2. PO智能体验证故事质量
|
|
63
|
+
3. Dev智能体开发和自测
|
|
64
|
+
4. QA智能体测试验证
|
|
65
|
+
5. 状态管理和质量控制
|
|
66
|
+
|
|
67
|
+
### 3. validate-quality-gate
|
|
68
|
+
|
|
69
|
+
**命令**: `*validate-quality-gate <stage>`
|
|
70
|
+
**功能**: 验证特定阶段的质量门控
|
|
71
|
+
**参数**: stage (story-creation|story-validation|development|qa-approval)
|
|
72
|
+
**执行流程**:
|
|
73
|
+
|
|
74
|
+
1. 根据阶段加载对应的验证标准
|
|
75
|
+
2. 执行全面的质量检查
|
|
76
|
+
3. 生成验证报告
|
|
77
|
+
4. 决定是否允许进入下一阶段
|
|
78
|
+
|
|
79
|
+
### 4. manage-story-status
|
|
80
|
+
|
|
81
|
+
**命令**: `*manage-story-status <story_id> <action>`
|
|
82
|
+
**功能**: 管理用户故事状态转换
|
|
83
|
+
**参数**:
|
|
84
|
+
|
|
85
|
+
- story_id: 用户故事标识
|
|
86
|
+
- action: (approve|start-dev|mark-review|complete|reject)
|
|
87
|
+
**执行流程**:
|
|
88
|
+
|
|
89
|
+
1. 验证状态转换的合法性
|
|
90
|
+
2. 检查转换条件是否满足
|
|
91
|
+
3. 更新故事状态
|
|
92
|
+
4. 通知相关智能体
|
|
93
|
+
|
|
94
|
+
### 5. handle-failure
|
|
95
|
+
|
|
96
|
+
**命令**: `*handle-failure <stage> <error_type>`
|
|
97
|
+
**功能**: 处理流程中的失败和错误
|
|
98
|
+
**执行流程**:
|
|
99
|
+
|
|
100
|
+
1. 分析失败原因和影响范围
|
|
101
|
+
2. 确定重试策略和修复方案
|
|
102
|
+
3. 协调相关智能体进行修复
|
|
103
|
+
4. 记录问题和解决过程
|
|
104
|
+
|
|
105
|
+
### 6. generate-progress-report
|
|
106
|
+
|
|
107
|
+
**命令**: `*generate-progress-report`
|
|
108
|
+
**功能**: 生成开发进度和质量报告
|
|
109
|
+
**执行流程**:
|
|
110
|
+
|
|
111
|
+
1. 收集各阶段的进度数据
|
|
112
|
+
2. 统计质量指标和性能数据
|
|
113
|
+
3. 识别风险和阻塞问题
|
|
114
|
+
4. 生成comprehensive progress report
|
|
115
|
+
|
|
116
|
+
### 7. coordinate-agents
|
|
117
|
+
|
|
118
|
+
**命令**: `*coordinate-agents <workflow_step>`
|
|
119
|
+
**功能**: 协调多个智能体的工作
|
|
120
|
+
**执行流程**:
|
|
121
|
+
|
|
122
|
+
1. 根据工作流步骤确定需要的智能体
|
|
123
|
+
2. 准备智能体所需的输入和上下文
|
|
124
|
+
3. 执行智能体切换和任务分配
|
|
125
|
+
4. 监控智能体执行状态
|
|
126
|
+
|
|
127
|
+
### 8. check-completion-status
|
|
128
|
+
|
|
129
|
+
**命令**: `*check-completion-status`
|
|
130
|
+
**功能**: 检查所有用户故事的完成状态
|
|
131
|
+
**执行流程**:
|
|
132
|
+
|
|
133
|
+
1. 扫描所有用户故事的当前状态
|
|
134
|
+
2. 识别未完成的故事和阻塞问题
|
|
135
|
+
3. 评估整体项目完成度
|
|
136
|
+
4. 生成完成状态报告
|
|
137
|
+
|
|
138
|
+
## Quality Gates Definition
|
|
139
|
+
|
|
140
|
+
### Story Creation Gate
|
|
141
|
+
|
|
142
|
+
**验证标准**:
|
|
143
|
+
|
|
144
|
+
- ✅ 故事格式符合模板要求
|
|
145
|
+
- ✅ 数据库实体映射完整
|
|
146
|
+
- ✅ API接口规范详细
|
|
147
|
+
- ✅ 验收标准清晰可测试
|
|
148
|
+
- ✅ 任务分解合理
|
|
149
|
+
|
|
150
|
+
### Story Validation Gate
|
|
151
|
+
|
|
152
|
+
**验证标准**:
|
|
153
|
+
|
|
154
|
+
- ✅ 业务需求与PRD一致
|
|
155
|
+
- ✅ 技术实现方案可行
|
|
156
|
+
- ✅ 验收标准可验证
|
|
157
|
+
- ✅ 故事规模适当
|
|
158
|
+
- ✅ 依赖关系明确
|
|
159
|
+
|
|
160
|
+
### Development Completion Gate
|
|
161
|
+
|
|
162
|
+
**验证标准**:
|
|
163
|
+
|
|
164
|
+
- ✅ 所有功能需求已实现
|
|
165
|
+
- ✅ 单元测试覆盖率≥80%
|
|
166
|
+
- ✅ 集成测试通过
|
|
167
|
+
- ✅ API接口功能正常
|
|
168
|
+
- ✅ 数据库操作正确
|
|
169
|
+
- ✅ 代码质量达标
|
|
170
|
+
|
|
171
|
+
### QA Approval Gate
|
|
172
|
+
|
|
173
|
+
**验证标准**:
|
|
174
|
+
|
|
175
|
+
- ✅ 所有验收标准满足
|
|
176
|
+
- ✅ 功能测试通过
|
|
177
|
+
- ✅ API契约测试通过
|
|
178
|
+
- ✅ 数据完整性验证
|
|
179
|
+
- ✅ 错误处理测试通过
|
|
180
|
+
- ✅ 性能要求满足
|
|
181
|
+
|
|
182
|
+
## Agent Coordination Protocol
|
|
183
|
+
|
|
184
|
+
### 智能体切换流程
|
|
185
|
+
|
|
186
|
+
```yaml
|
|
187
|
+
coordination_flow:
|
|
188
|
+
sm_to_po:
|
|
189
|
+
trigger: story_created
|
|
190
|
+
handoff: story.md (status: Draft)
|
|
191
|
+
validation: story_format_check
|
|
192
|
+
|
|
193
|
+
po_to_dev:
|
|
194
|
+
trigger: story_approved
|
|
195
|
+
handoff: story.md (status: Approved)
|
|
196
|
+
validation: business_requirements_check
|
|
197
|
+
|
|
198
|
+
dev_to_qa:
|
|
199
|
+
trigger: development_complete
|
|
200
|
+
handoff:
|
|
201
|
+
- story.md (status: Review)
|
|
202
|
+
- implementation_files
|
|
203
|
+
- test_results
|
|
204
|
+
validation: self_test_passed
|
|
205
|
+
|
|
206
|
+
qa_completion:
|
|
207
|
+
trigger: qa_approved
|
|
208
|
+
result: story.md (status: Done)
|
|
209
|
+
validation: acceptance_criteria_met
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### 错误处理协议
|
|
213
|
+
|
|
214
|
+
```yaml
|
|
215
|
+
error_handling:
|
|
216
|
+
validation_failure:
|
|
217
|
+
action: return_to_previous_agent
|
|
218
|
+
max_retries: 3
|
|
219
|
+
escalation_trigger: max_retries_exceeded
|
|
220
|
+
|
|
221
|
+
implementation_failure:
|
|
222
|
+
action: dev_self_fix
|
|
223
|
+
max_attempts: 5
|
|
224
|
+
support_available: architect_consultation
|
|
225
|
+
|
|
226
|
+
qa_failure:
|
|
227
|
+
action: return_to_dev
|
|
228
|
+
issue_tracking: required
|
|
229
|
+
impact_analysis: required
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
## Automation Features
|
|
233
|
+
|
|
234
|
+
### 自动状态管理
|
|
235
|
+
|
|
236
|
+
- 智能识别状态转换条件
|
|
237
|
+
- 自动执行合规的状态变更
|
|
238
|
+
- 阻止非法状态转换
|
|
239
|
+
- 维护状态变更历史
|
|
240
|
+
|
|
241
|
+
### 智能重试机制
|
|
242
|
+
|
|
243
|
+
- 基于错误类型的差异化重试
|
|
244
|
+
- 指数退避重试策略
|
|
245
|
+
- 最大重试次数控制
|
|
246
|
+
- 升级机制处理
|
|
247
|
+
|
|
248
|
+
### 质量监控
|
|
249
|
+
|
|
250
|
+
- 实时质量指标收集
|
|
251
|
+
- 趋势分析和预警
|
|
252
|
+
- 质量门控自动执行
|
|
253
|
+
- 质量报告自动生成
|
|
254
|
+
|
|
255
|
+
## Integration Points
|
|
256
|
+
|
|
257
|
+
### 与现有智能体集成
|
|
258
|
+
|
|
259
|
+
```yaml
|
|
260
|
+
agent_integration:
|
|
261
|
+
sm:
|
|
262
|
+
commands: ['*draft-enhanced']
|
|
263
|
+
input: epic_shards, database_design
|
|
264
|
+
output: story.md
|
|
265
|
+
|
|
266
|
+
po:
|
|
267
|
+
commands: ['*validate-story-draft']
|
|
268
|
+
input: story.md
|
|
269
|
+
output: validation_result, approved_story
|
|
270
|
+
|
|
271
|
+
dev:
|
|
272
|
+
commands: ['*develop-story', '*run-tests']
|
|
273
|
+
input: story.md, generated_code
|
|
274
|
+
output: implementation_files, test_results
|
|
275
|
+
|
|
276
|
+
qa:
|
|
277
|
+
commands: ['*review']
|
|
278
|
+
input: story.md, implementation_files
|
|
279
|
+
output: qa_report, approval_status
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### 数据流管理
|
|
283
|
+
|
|
284
|
+
- 智能体间数据传递
|
|
285
|
+
- 上下文信息维护
|
|
286
|
+
- 版本控制集成
|
|
287
|
+
- 文件状态跟踪
|
|
288
|
+
|
|
289
|
+
## Usage Examples
|
|
290
|
+
|
|
291
|
+
### 启动自动化开发
|
|
292
|
+
|
|
293
|
+
```bash
|
|
294
|
+
*agent automation-orchestrator
|
|
295
|
+
*start-auto-development
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
### 手动执行单个循环
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
*execute-story-cycle
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
### 检查质量门控
|
|
305
|
+
|
|
306
|
+
```bash
|
|
307
|
+
*validate-quality-gate development
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### 生成进度报告
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
*generate-progress-report
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
## Monitoring and Reporting
|
|
317
|
+
|
|
318
|
+
### 实时监控
|
|
319
|
+
|
|
320
|
+
- 当前执行阶段
|
|
321
|
+
- 各智能体状态
|
|
322
|
+
- 质量指标变化
|
|
323
|
+
- 阻塞问题识别
|
|
324
|
+
|
|
325
|
+
### 报告生成
|
|
326
|
+
|
|
327
|
+
- 每日进度报告
|
|
328
|
+
- 质量趋势分析
|
|
329
|
+
- 问题汇总报告
|
|
330
|
+
- 完成度评估
|
|
331
|
+
|
|
332
|
+
## Best Practices
|
|
333
|
+
|
|
334
|
+
### 流程优化
|
|
335
|
+
|
|
336
|
+
1. **并行处理**: 在不冲突的情况下并行执行任务
|
|
337
|
+
2. **预检查**: 在开始流程前验证所有前置条件
|
|
338
|
+
3. **快速失败**: 尽早发现和报告问题
|
|
339
|
+
4. **智能重试**: 基于问题类型选择重试策略
|
|
340
|
+
|
|
341
|
+
### 质量保证
|
|
342
|
+
|
|
343
|
+
1. **严格门控**: 每个阶段都必须通过质量检查
|
|
344
|
+
2. **自动验证**: 减少人工检查的主观性
|
|
345
|
+
3. **持续监控**: 实时跟踪质量指标变化
|
|
346
|
+
4. **预防措施**: 基于历史数据预防常见问题
|
|
347
|
+
|
|
348
|
+
### 协作优化
|
|
349
|
+
|
|
350
|
+
1. **清晰交接**: 确保智能体间信息传递准确
|
|
351
|
+
2. **状态同步**: 保持所有参与方对状态的一致理解
|
|
352
|
+
3. **问题隔离**: 避免问题在智能体间传播
|
|
353
|
+
4. **及时沟通**: 重要状态变化及时通知相关方
|
package/xiaoma-core/agents/pm.md
CHANGED
|
@@ -55,7 +55,7 @@ commands:
|
|
|
55
55
|
- create-brownfield-epic: 运行任务 brownfield-create-epic.md
|
|
56
56
|
- create-brownfield-prd: 使用模板 brownfield-prd-tmpl.yaml 运行任务 create-doc.md
|
|
57
57
|
- create-brownfield-story: 运行任务 brownfield-create-story.md
|
|
58
|
-
- create-epic:
|
|
58
|
+
- create-epic: 为现有项目项目创建史诗 (任务 brownfield-create-epic)
|
|
59
59
|
- create-prd: 使用模板 prd-tmpl.yaml 运行任务 create-doc.md
|
|
60
60
|
- create-story: 从需求创建用户故事 (任务 brownfield-create-story)
|
|
61
61
|
- doc-out: 将完整文档输出到当前目标文件
|
package/xiaoma-core/agents/po.md
CHANGED
|
@@ -55,7 +55,7 @@ persona:
|
|
|
55
55
|
commands:
|
|
56
56
|
- help: 显示以下命令的编号列表以供选择
|
|
57
57
|
- correct-course: 执行 correct-course 任务
|
|
58
|
-
- create-epic:
|
|
58
|
+
- create-epic: 为现有项目项目创建史诗 (任务 brownfield-create-epic)
|
|
59
59
|
- create-story: 从需求创建用户故事 (任务 brownfield-create-story)
|
|
60
60
|
- doc-out: 将完整文档输出到当前目标文件
|
|
61
61
|
- execute-checklist-po: 运行任务 execute-checklist (清单 po-master-checklist)
|
package/xiaoma-core/agents/sm.md
CHANGED
|
@@ -49,6 +49,7 @@ commands:
|
|
|
49
49
|
- help: 显示以下命令的编号列表以供选择
|
|
50
50
|
- correct-course: 执行任务 correct-course.md
|
|
51
51
|
- draft: 执行任务 create-next-story.md
|
|
52
|
+
- draft-enhanced: 执行任务 create-enhanced-story-with-database.md (增强版用户故事,包含数据库和API设计)
|
|
52
53
|
- story-checklist: 使用清单 story-draft-checklist.md 执行任务 execute-checklist.md
|
|
53
54
|
- exit: 作为 Scrum Master 道别,然后放弃扮演此角色
|
|
54
55
|
dependencies:
|
|
@@ -57,7 +58,10 @@ dependencies:
|
|
|
57
58
|
tasks:
|
|
58
59
|
- correct-course.md
|
|
59
60
|
- create-next-story.md
|
|
61
|
+
- create-enhanced-story-with-database.md
|
|
60
62
|
- execute-checklist.md
|
|
61
63
|
templates:
|
|
62
64
|
- story-tmpl.yaml
|
|
65
|
+
- enhanced-story-with-database-tmpl.yaml
|
|
66
|
+
- api-design-tmpl.yaml
|
|
63
67
|
```
|