@zeyue0329/xiaoma-cli 1.0.42 → 1.0.44
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/.idea/workspace.xml +2 -7
- package/JAVA-BACKEND-COMMANDS-REFERENCE.md +2 -2
- package/JAVA-BACKEND-ITERATION-GUIDE.md +31 -31
- package/dist/agents/analyst.txt +1514 -0
- package/dist/agents/architect.txt +1 -1
- package/dist/agents/pm.txt +20 -20
- package/dist/agents/po.txt +1 -1
- package/dist/agents/sm.txt +1 -1
- package/dist/agents/workflow-executor.txt +22 -22
- package/dist/agents/xiaoma-master.txt +20 -20
- package/dist/teams/team-all.txt +1640 -331
- package/dist/teams/team-fullstack-with-database.txt +1616 -307
- package/dist/teams/team-fullstack.txt +1618 -309
- package/dist/teams/team-ide-minimal.txt +2 -2
- package/dist/teams/team-no-ui.txt +1618 -309
- package/docs/architecture-sharding-modification.md +4 -4
- package/docs/automated-requirements-analysis-outputs.md +29 -29
- package/docs/prd/workflow-coordinator-prd.md +2 -2
- package/package.json +1 -1
- package/xiaoma-core/agents/analyst.md +8 -0
- package/xiaoma-core/agents/pm.md +1 -1
- package/xiaoma-core/agents/po.md +1 -1
- package/xiaoma-core/agents/requirements-coverage-auditor.yaml +1 -1
- package/xiaoma-core/agents/sm.md +1 -1
- package/xiaoma-core/agents/workflow-executor.md +22 -22
- package/xiaoma-core/tasks/batch-story-generation.md +1 -1
- package/xiaoma-core/tasks/requirement-analysis-with-rag.md +352 -0
- package/xiaoma-core/tasks/requirements-coverage-audit.md +5 -5
- package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +1 -1
- package/xiaoma-core/templates/prd-tmpl.yaml +19 -19
- package/xiaoma-core/templates/rag-knowledge-tmpl.yaml +569 -0
- package/xiaoma-core/templates/rag-questions-tmpl.yaml +371 -0
- package/xiaoma-core/templates/requirements-coverage-audit.yaml +6 -6
- package/xiaoma-core/workflows/automated-requirements-analysis.yaml +90 -90
- package/xiaoma-core/workflows/automated-requirements-development.yaml +10 -10
- package/xiaoma-core/workflows/enhanced-fullstack-with-qa-loop.yaml +1 -1
- package/xiaoma-core/workflows/full-requirement-automation.yaml +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -4,13 +4,7 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="4ca3d6ad-bc27-4e67-9acd-07dccd21dd95" name="Changes" comment="drop unchecked message"
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/dist/agents/architect.txt" beforeDir="false" afterPath="$PROJECT_DIR$/dist/agents/architect.txt" afterDir="false" />
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/dist/teams/team-all.txt" beforeDir="false" afterPath="$PROJECT_DIR$/dist/teams/team-all.txt" afterDir="false" />
|
|
10
|
-
<change beforePath="$PROJECT_DIR$/dist/teams/team-fullstack-with-database.txt" beforeDir="false" afterPath="$PROJECT_DIR$/dist/teams/team-fullstack-with-database.txt" afterDir="false" />
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/dist/teams/team-fullstack.txt" beforeDir="false" afterPath="$PROJECT_DIR$/dist/teams/team-fullstack.txt" afterDir="false" />
|
|
12
|
-
<change beforePath="$PROJECT_DIR$/dist/teams/team-no-ui.txt" beforeDir="false" afterPath="$PROJECT_DIR$/dist/teams/team-no-ui.txt" afterDir="false" />
|
|
13
|
-
</list>
|
|
7
|
+
<list default="true" id="4ca3d6ad-bc27-4e67-9acd-07dccd21dd95" name="Changes" comment="drop unchecked message" />
|
|
14
8
|
<option name="SHOW_DIALOG" value="false" />
|
|
15
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
16
10
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -74,6 +68,7 @@
|
|
|
74
68
|
<workItem from="1762781553645" duration="3390000" />
|
|
75
69
|
<workItem from="1762933631198" duration="16000" />
|
|
76
70
|
<workItem from="1763045898895" duration="4599000" />
|
|
71
|
+
<workItem from="1763520819252" duration="7876000" />
|
|
77
72
|
</task>
|
|
78
73
|
<task id="LOCAL-00001" summary="drop unchecked message">
|
|
79
74
|
<option name="closed" value="true" />
|
|
@@ -29,7 +29,7 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
29
29
|
| 1.1 分析现有架构 | Architect | ❌ 不需要 | 无 | 通过详细 Prompt 描述分析任务 |
|
|
30
30
|
| 1.2 创建 Brownfield PRD | PM | ✅ **需要** | `*create-brownfield-prd` | 必须在 Prompt 结尾明确执行此命令 |
|
|
31
31
|
| 1.2 验证 PRD 质量 | PM | ❌ 不需要 | 无 | 通过 Prompt 要求 Agent 自我审查 |
|
|
32
|
-
| 1.3
|
|
32
|
+
| 1.3 创建模块 | PM | ✅ **需要** | `*create-epic` | 必须在 Prompt 结尾明确执行此命令 |
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
|
@@ -237,7 +237,7 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
237
237
|
|
|
238
238
|
| 任务类型 | 是否需要命令 | 示例 |
|
|
239
239
|
| ------------------------------- | ------------ | --------------------------------- |
|
|
240
|
-
| 创建正式文档(PRD
|
|
240
|
+
| 创建正式文档(PRD、模块、故事) | ✅ 需要 | `*create-epic`, `*draft-enhanced` |
|
|
241
241
|
| 开发/测试代码 | ✅ 需要 | `*develop-story`, `*run-tests` |
|
|
242
242
|
| 质量审查和决策 | ✅ 需要 | `*review`, `*gate` |
|
|
243
243
|
| 探索性分析 | ❌ 不需要 | 分析架构、识别故事列表 |
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
/your-project/
|
|
22
22
|
├── src/ # Java 源码
|
|
23
23
|
├── docs/ # 文档目录
|
|
24
|
-
│ ├── prd/ # PRD
|
|
24
|
+
│ ├── prd/ # PRD 和模块
|
|
25
25
|
│ └── stories/ # 用户故事
|
|
26
26
|
├── .xiaoma-core/ # xiaoma-core 配置
|
|
27
27
|
└── req.txt # PM 提供的需求文档
|
|
@@ -130,7 +130,7 @@ cd /your-project/
|
|
|
130
130
|
6. 数据需求(数据库变更)
|
|
131
131
|
7. API 需求(新增/修改的接口)
|
|
132
132
|
8. 验收标准
|
|
133
|
-
9.
|
|
133
|
+
9. 实施计划(模块拆分建议)
|
|
134
134
|
|
|
135
135
|
**特别注意**:
|
|
136
136
|
- 这是现有项目的迭代需求,需要考虑与现有系统的兼容性
|
|
@@ -169,41 +169,41 @@ cd /your-project/
|
|
|
169
169
|
|
|
170
170
|
---
|
|
171
171
|
|
|
172
|
-
### 📍 **步骤 1.3
|
|
172
|
+
### 📍 **步骤 1.3:拆分模块(针对大型需求)**
|
|
173
173
|
|
|
174
|
-
**判断依据**:如果 PRD 包含多个独立的功能模块(≥3
|
|
174
|
+
**判断依据**:如果 PRD 包含多个独立的功能模块(≥3个),建议拆分为模块。
|
|
175
175
|
|
|
176
176
|
#### 操作步骤:
|
|
177
177
|
|
|
178
178
|
**① 保持 PM Agent 激活状态**
|
|
179
179
|
|
|
180
|
-
**② 发送 Prompt
|
|
180
|
+
**② 发送 Prompt(针对每个模块)**
|
|
181
181
|
|
|
182
182
|
```
|
|
183
|
-
基于刚才创建的 PRD
|
|
183
|
+
基于刚才创建的 PRD,我需要创建模块。
|
|
184
184
|
|
|
185
|
-
|
|
186
|
-
根据 PRD
|
|
187
|
-
1. [
|
|
188
|
-
2. [
|
|
189
|
-
3. [
|
|
185
|
+
**模块拆分建议**:
|
|
186
|
+
根据 PRD 的功能模块,建议拆分为以下模块:
|
|
187
|
+
1. [模块1名称]:[功能描述]
|
|
188
|
+
2. [模块2名称]:[功能描述]
|
|
189
|
+
3. [模块3名称]:[功能描述]
|
|
190
190
|
|
|
191
191
|
**当前任务**:
|
|
192
|
-
|
|
192
|
+
请为第一个模块"[模块1名称]"创建模块文档。
|
|
193
193
|
|
|
194
|
-
|
|
195
|
-
-
|
|
196
|
-
- 功能范围:[
|
|
194
|
+
**模块信息**:
|
|
195
|
+
- 模块名称:[模块1名称]
|
|
196
|
+
- 功能范围:[详细描述此模块包含的功能]
|
|
197
197
|
- 业务价值:[业务价值说明]
|
|
198
198
|
- 优先级:高/中/低
|
|
199
|
-
- 依赖关系:[
|
|
199
|
+
- 依赖关系:[是否依赖其他模块]
|
|
200
200
|
|
|
201
|
-
|
|
202
|
-
1.
|
|
201
|
+
**模块文档要求**:
|
|
202
|
+
1. 模块级别的目标和价值
|
|
203
203
|
2. 包含的用户故事清单(初步识别)
|
|
204
|
-
3.
|
|
205
|
-
4.
|
|
206
|
-
5. API
|
|
204
|
+
3. 技术设计概要(针对此模块)
|
|
205
|
+
4. 数据库变更(针对此模块)
|
|
206
|
+
5. API 接口清单(针对此模块)
|
|
207
207
|
6. 验收标准
|
|
208
208
|
7. 估算工作量
|
|
209
209
|
|
|
@@ -218,8 +218,8 @@ cd /your-project/
|
|
|
218
218
|
|
|
219
219
|
**期望输出**:
|
|
220
220
|
|
|
221
|
-
-
|
|
222
|
-
-
|
|
221
|
+
- 模块文档:`docs/prd/Epic[名称].md`
|
|
222
|
+
- 对每个模块重复此步骤
|
|
223
223
|
|
|
224
224
|
---
|
|
225
225
|
|
|
@@ -347,7 +347,7 @@ cd /your-project/
|
|
|
347
347
|
**用户故事清单格式**:
|
|
348
348
|
请以表格形式列出所有用户故事:
|
|
349
349
|
|
|
350
|
-
| 编号 | 故事名称 |
|
|
350
|
+
| 编号 | 故事名称 | 所属模块 | 优先级 | 估算复杂度 | 依赖 |
|
|
351
351
|
|------|---------|---------|--------|----------|------|
|
|
352
352
|
| US-01 | [名称] | Epic-01 | 高 | 中 | 无 |
|
|
353
353
|
| US-02 | [名称] | Epic-01 | 高 | 高 | US-01 |
|
|
@@ -384,7 +384,7 @@ cd /your-project/
|
|
|
384
384
|
**故事基本信息**:
|
|
385
385
|
- 故事 ID:US-01
|
|
386
386
|
- 故事名称:[从清单中获取]
|
|
387
|
-
-
|
|
387
|
+
- 所属模块:[Epic 名称]
|
|
388
388
|
- 优先级:高/中/低
|
|
389
389
|
- 估算复杂度:低/中/高
|
|
390
390
|
|
|
@@ -1250,7 +1250,7 @@ cd /your-project/
|
|
|
1250
1250
|
|
|
1251
1251
|
**审计范围**:
|
|
1252
1252
|
- PRD 文档:`docs/prd/云链API平台需求文档.md`
|
|
1253
|
-
-
|
|
1253
|
+
- 模块文档:`docs/prd/Epic-*.md`(如有)
|
|
1254
1254
|
- 所有用户故事:`docs/stories/epic*-story*.md`
|
|
1255
1255
|
|
|
1256
1256
|
**审计任务**:
|
|
@@ -1481,7 +1481,7 @@ cd /your-project/
|
|
|
1481
1481
|
- 迭代目标
|
|
1482
1482
|
|
|
1483
1483
|
**2. 完成故事清单**:
|
|
1484
|
-
| 故事ID | 故事名称 |
|
|
1484
|
+
| 故事ID | 故事名称 | 所属模块 | 优先级 | 状态 | 完成日期 | 开发者 |
|
|
1485
1485
|
|--------|---------|---------|-------|------|---------|--------|
|
|
1486
1486
|
| US-01 | [名称] | Epic-01 | 高 | Done | 2025-01-15 | Dev Agent |
|
|
1487
1487
|
| ... | ... | ... | ... | ... | ... | ... |
|
|
@@ -1492,13 +1492,13 @@ cd /your-project/
|
|
|
1492
1492
|
- 完成率:[百分比]
|
|
1493
1493
|
- 高优先级完成率:[百分比]
|
|
1494
1494
|
|
|
1495
|
-
**4.
|
|
1496
|
-
**Epic 01: [
|
|
1495
|
+
**4. 功能交付清单**(按模块分组):
|
|
1496
|
+
**Epic 01: [模块名称]**
|
|
1497
1497
|
- ✅ [功能1](US-01)
|
|
1498
1498
|
- ✅ [功能2](US-02)
|
|
1499
1499
|
- ...
|
|
1500
1500
|
|
|
1501
|
-
**Epic 02: [
|
|
1501
|
+
**Epic 02: [模块名称]**
|
|
1502
1502
|
- ✅ [功能3](US-03)
|
|
1503
1503
|
- ...
|
|
1504
1504
|
|
|
@@ -2047,7 +2047,7 @@ systemctl start your-service
|
|
|
2047
2047
|
1. **需求分析和 PRD 创建**(1-2 小时)
|
|
2048
2048
|
- Architect: 分析现有架构
|
|
2049
2049
|
- PM: 创建 Brownfield PRD
|
|
2050
|
-
- PM:
|
|
2050
|
+
- PM: 拆分模块(如需要)
|
|
2051
2051
|
|
|
2052
2052
|
2. **技术架构设计**(1-2 小时)
|
|
2053
2053
|
- Architect: 后端增量设计
|