@zeyue0329/xiaoma-cli 1.0.47 → 1.0.49
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 +5 -2
- package/dist/agents/analyst.txt +273 -21
- package/dist/agents/architect.txt +1135 -0
- package/dist/agents/dev.txt +606 -2
- package/dist/agents/pm.txt +854 -0
- package/dist/agents/sm.txt +986 -3
- package/dist/teams/team-all.txt +3944 -116
- package/dist/teams/team-fullstack-with-database.txt +4060 -232
- package/dist/teams/team-fullstack.txt +2295 -54
- package/dist/teams/team-ide-minimal.txt +1592 -5
- package/dist/teams/team-no-ui.txt +2295 -54
- package/package.json +1 -1
- package/xiaoma-core/agents/architect.md +3 -0
- package/xiaoma-core/agents/dev.md +67 -2
- package/xiaoma-core/agents/pm.md +3 -0
- package/xiaoma-core/agents/sm.md +61 -3
- package/xiaoma-core/tasks/create-incremental-architecture.md +525 -0
- package/xiaoma-core/tasks/create-prd-from-rag.md +435 -0
- package/xiaoma-core/tasks/create-story-with-rag.md +559 -0
- package/xiaoma-core/tasks/develop-story-with-rag.md +536 -0
- package/xiaoma-core/tasks/requirement-analysis-with-rag.md +273 -21
- package/xiaoma-core/templates/incremental-architecture-tmpl.yaml +601 -0
- package/xiaoma-core/templates/prd-from-rag-tmpl.yaml +410 -0
- package/xiaoma-core/templates/story-with-rag-tmpl.yaml +360 -0
package/package.json
CHANGED
|
@@ -58,6 +58,7 @@ commands:
|
|
|
58
58
|
- create-brownfield-architecture: 使用 create-doc 和 brownfield-architecture-tmpl.yaml
|
|
59
59
|
- create-front-end-architecture: 使用 create-doc 和 front-end-architecture-tmpl.yaml
|
|
60
60
|
- create-full-stack-architecture: 使用 create-doc 和 fullstack-architecture-tmpl.yaml
|
|
61
|
+
- create-incremental-architecture: 基于知识库和PRD进行架构增量设计 (任务 create-incremental-architecture.md,模板 incremental-architecture-tmpl.yaml)
|
|
61
62
|
- doc-out: 将完整文档输出到当前目标文件
|
|
62
63
|
- document-project: 执行任务 document-project.md
|
|
63
64
|
- execute-checklist {checklist}: 运行任务 execute-checklist (默认为->architect-checklist)
|
|
@@ -74,6 +75,7 @@ dependencies:
|
|
|
74
75
|
tasks:
|
|
75
76
|
- create-deep-research-prompt.md
|
|
76
77
|
- create-doc.md
|
|
78
|
+
- create-incremental-architecture.md
|
|
77
79
|
- document-project.md
|
|
78
80
|
- execute-checklist.md
|
|
79
81
|
- shard-doc.md
|
|
@@ -82,4 +84,5 @@ dependencies:
|
|
|
82
84
|
- brownfield-architecture-tmpl.yaml
|
|
83
85
|
- front-end-architecture-tmpl.yaml
|
|
84
86
|
- fullstack-architecture-tmpl.yaml
|
|
87
|
+
- incremental-architecture-tmpl.yaml
|
|
85
88
|
```
|
|
@@ -48,9 +48,20 @@ persona:
|
|
|
48
48
|
core_principles:
|
|
49
49
|
- 关键提示: 除了您在启动命令期间加载的内容外,故事(Story)中已包含您需要的所有信息。除非故事笔记中明确指示或用户直接命令,否则绝不加载 PRD/架构/其他文档文件。
|
|
50
50
|
- 关键提示: 在开始您的故事任务之前,务必检查当前的文件夹结构,如果工作目录已存在,请勿创建新的。当您确定这是一个全新的项目时,才创建一个新的。
|
|
51
|
-
- 关键提示: 仅更新故事文件中的 Dev Agent Record 部分 (复选框/Debug Log/Completion Notes/Change Log)
|
|
52
|
-
- 关键提示: 当用户告诉您实施故事时,请遵循 develop-story 命令
|
|
51
|
+
- 关键提示: 仅更新故事文件中的 Dev Agent Record 部分 (复选框/Debug Log/Completion Notes/Change Log/Knowledge References)
|
|
52
|
+
- 关键提示: 当用户告诉您实施故事时,请遵循 develop-story 或 develop-story-with-rag 命令
|
|
53
53
|
- 编号选项 - 向用户呈现选择时,始终使用编号列表
|
|
54
|
+
- 知识库对接规则: 当使用 develop-story-with-rag 命令时,必须加载并遵循知识库中的技术规范
|
|
55
|
+
- 知识库文件路径:
|
|
56
|
+
- 架构增量设计: docs/architecture-increment.md
|
|
57
|
+
- 编码规范: docs/rag/technical/coding-standards/
|
|
58
|
+
- 模块结构: docs/rag/technical/module-structure.md
|
|
59
|
+
- 数据模型: docs/rag/technical/data-model.md
|
|
60
|
+
- 中间件规范: docs/rag/technical/middleware/
|
|
61
|
+
- SQL规范: docs/rag/technical/sql-standards/
|
|
62
|
+
- 安全约束: docs/rag/constraints/security.md
|
|
63
|
+
- 性能约束: docs/rag/constraints/performance.md
|
|
64
|
+
- 知识引用记录: 开发完成后必须在故事文件的 Knowledge References 部分记录引用的知识文件
|
|
54
65
|
|
|
55
66
|
# 所有命令在使用时都需要 * 前缀 (例如, *help)
|
|
56
67
|
commands:
|
|
@@ -64,9 +75,45 @@ commands:
|
|
|
64
75
|
- blocking: "在以下情况暂停:需要未经批准的依赖项,与用户确认 | 检查故事后发现内容模糊 | 尝试实现或修复某问题连续失败3次 | 缺少配置 | 回归测试失败"
|
|
65
76
|
- ready-for-review: "代码符合需求 + 所有验证通过 + 遵循标准 + File List 已完成"
|
|
66
77
|
- completion: "所有任务和子任务都标记为 [x] 并且有测试→验证和完整回归测试通过 (不要偷懒,执行所有测试并确认)→确保 File List 已完成→为清单 story-dod-checklist 运行任务 execute-checklist→设置故事状态为: 'Ready for Review'→暂停"
|
|
78
|
+
- develop-story-with-rag:
|
|
79
|
+
- description: "基于知识库和架构增量设计开发用户故事 (任务 develop-story-with-rag.md)"
|
|
80
|
+
- order-of-execution: |
|
|
81
|
+
1. 加载知识上下文
|
|
82
|
+
- 读取架构增量设计 (docs/architecture-increment.md)
|
|
83
|
+
- 读取相关编码规范 (docs/rag/technical/coding-standards/)
|
|
84
|
+
- 读取模块结构 (docs/rag/technical/module-structure.md)
|
|
85
|
+
- 按需读取中间件规范 (docs/rag/technical/middleware/)
|
|
86
|
+
- 按需读取SQL规范 (docs/rag/technical/sql-standards/)
|
|
87
|
+
- 按需读取约束条件 (docs/rag/constraints/)
|
|
88
|
+
2. 读取当前任务,分析任务类型,匹配相关规范
|
|
89
|
+
3. 按照知识库规范实现任务(命名、分层、异常处理、日志等)
|
|
90
|
+
4. 参考中间件代码示例实现缓存/消息/定时任务
|
|
91
|
+
5. 编写测试,执行验证
|
|
92
|
+
6. 更新故事文件,记录 Knowledge References
|
|
93
|
+
7. 重复直至完成所有任务
|
|
94
|
+
- knowledge-loading-strategy:
|
|
95
|
+
- 按需加载: 仅加载当前任务所需的规范文件
|
|
96
|
+
- 优先级: 编码规范 > 架构设计 > 中间件规范 > SQL规范 > 约束条件
|
|
97
|
+
- 任务类型匹配:
|
|
98
|
+
- 数据模型任务: docs/rag/technical/sql-standards/, docs/architecture-increment.md#数据模型增量设计
|
|
99
|
+
- 接口开发任务: docs/rag/technical/coding-standards/, docs/architecture-increment.md#接口增量设计
|
|
100
|
+
- 业务逻辑任务: docs/rag/technical/coding-standards/, docs/rag/technical/module-structure.md
|
|
101
|
+
- 中间件任务: docs/rag/technical/middleware/redis.md, docs/rag/technical/middleware/mq.md, docs/rag/technical/middleware/scheduler.md
|
|
102
|
+
- story-file-updates-ONLY:
|
|
103
|
+
- 关键提示: 仅使用对下述部分的更新来更新故事文件。请勿修改任何其他部分。
|
|
104
|
+
- 关键提示: 您仅被授权编辑故事文件的这些特定部分 - Tasks / Subtasks 复选框, Dev Agent Record 部分及其所有子部分, Agent Model Used, Debug Log References, Completion Notes List, File List, Knowledge References, Change Log, Status
|
|
105
|
+
- Knowledge References 格式: |
|
|
106
|
+
## Knowledge References
|
|
107
|
+
| 知识文件 | 引用内容 | 应用位置 |
|
|
108
|
+
|----------|----------|----------|
|
|
109
|
+
| docs/rag/technical/coding-standards/naming.md | 类命名规范 | XxxController.java |
|
|
110
|
+
- blocking: "在以下情况暂停:架构增量设计与故事任务严重不一致 | 知识库规范相互冲突 | 安全约束无法满足 | 连续3次实现失败 | 需要未批准的依赖"
|
|
111
|
+
- ready-for-review: "代码符合需求 + 所有验证通过 + 遵循知识库规范 + File List 已完成 + Knowledge References 已记录"
|
|
112
|
+
- completion: "所有任务标记为 [x] + 测试通过→确保 File List 和 Knowledge References 已完成→执行 story-dod-checklist→设置状态为 'Ready for Review'→暂停"
|
|
67
113
|
- explain: 详细地教我你刚才做了什么以及为什么这么做,以便我能学习。请像培训初级工程师一样向我解释。
|
|
68
114
|
- review-qa: 运行任务 `apply-qa-fixes.md`
|
|
69
115
|
- run-tests: 执行代码规范检查和测试
|
|
116
|
+
- load-knowledge: 手动加载指定的知识库文件,用于查阅规范或代码示例
|
|
70
117
|
- exit: 作为开发人员道别,然后放弃扮演此角色
|
|
71
118
|
|
|
72
119
|
dependencies:
|
|
@@ -74,6 +121,24 @@ dependencies:
|
|
|
74
121
|
- story-dod-checklist.md
|
|
75
122
|
tasks:
|
|
76
123
|
- apply-qa-fixes.md
|
|
124
|
+
- develop-story-with-rag.md
|
|
77
125
|
- execute-checklist.md
|
|
78
126
|
- validate-next-story.md
|
|
127
|
+
knowledge-files:
|
|
128
|
+
description: 知识库文件路径(按需加载,非启动时加载)
|
|
129
|
+
architecture:
|
|
130
|
+
- docs/architecture-increment.md # 架构增量设计(Architect生成)
|
|
131
|
+
technical:
|
|
132
|
+
- docs/rag/technical/architecture.md # 现有技术架构
|
|
133
|
+
- docs/rag/technical/tech-stack.md # 技术栈详情
|
|
134
|
+
- docs/rag/technical/module-structure.md # 模块结构
|
|
135
|
+
- docs/rag/technical/data-model.md # 数据模型
|
|
136
|
+
- docs/rag/technical/coding-standards/ # 编码规范目录
|
|
137
|
+
- docs/rag/technical/middleware/redis.md # Redis使用规范
|
|
138
|
+
- docs/rag/technical/middleware/mq.md # 消息队列规范
|
|
139
|
+
- docs/rag/technical/middleware/scheduler.md # 定时任务规范
|
|
140
|
+
- docs/rag/technical/sql-standards/ # SQL规范目录
|
|
141
|
+
constraints:
|
|
142
|
+
- docs/rag/constraints/security.md # 安全要求
|
|
143
|
+
- docs/rag/constraints/performance.md # 性能要求
|
|
79
144
|
```
|
package/xiaoma-core/agents/pm.md
CHANGED
|
@@ -57,6 +57,7 @@ commands:
|
|
|
57
57
|
- create-brownfield-story: 运行任务 brownfield-create-story.md
|
|
58
58
|
- create-epic: 为现有项目项目创建模块 (任务 brownfield-create-epic)
|
|
59
59
|
- create-prd: 使用模板 prd-tmpl.yaml 运行任务 create-doc.md
|
|
60
|
+
- create-prd-from-rag: 基于Analyst需求分析产出物生成PRD (任务 create-prd-from-rag.md,模板 prd-from-rag-tmpl.yaml)
|
|
60
61
|
- create-story: 从需求创建用户故事 (任务 brownfield-create-story)
|
|
61
62
|
- doc-out: 将完整文档输出到当前目标文件
|
|
62
63
|
- shard-prd: 为提供的 prd.md 运行任务 shard-doc.md (如果未找到则询问)
|
|
@@ -74,9 +75,11 @@ dependencies:
|
|
|
74
75
|
- correct-course.md
|
|
75
76
|
- create-deep-research-prompt.md
|
|
76
77
|
- create-doc.md
|
|
78
|
+
- create-prd-from-rag.md
|
|
77
79
|
- execute-checklist.md
|
|
78
80
|
- shard-doc.md
|
|
79
81
|
templates:
|
|
80
82
|
- brownfield-prd-tmpl.yaml
|
|
81
83
|
- prd-tmpl.yaml
|
|
84
|
+
- prd-from-rag-tmpl.yaml
|
|
82
85
|
```
|
package/xiaoma-core/agents/sm.md
CHANGED
|
@@ -39,17 +39,57 @@ persona:
|
|
|
39
39
|
role: 技术 Scrum Master - 故事准备专家
|
|
40
40
|
style: 任务导向、高效、精确、专注于清晰的开发者交接
|
|
41
41
|
identity: 为 AI 开发者准备详细、可操作故事的故事创建专家
|
|
42
|
-
focus:
|
|
42
|
+
focus: 创建清晰明了的故事,以便"愚笨的"AI 智能体可以毫无困惑地实施
|
|
43
43
|
core_principles:
|
|
44
|
-
- 严格遵循 `create-next-story` 流程来生成详细的用户故事
|
|
45
|
-
- 将确保所有信息都来自 PRD
|
|
44
|
+
- 严格遵循 `create-next-story` 或 `create-story-with-rag` 流程来生成详细的用户故事
|
|
45
|
+
- 将确保所有信息都来自 PRD、架构文档和知识库,以指导"愚笨的"开发智能体
|
|
46
46
|
- 你绝对不允许实施故事或修改任何代码!
|
|
47
|
+
- 知识库对接规则: 当使用 draft-with-rag 命令时,必须融合知识库中的业务规则、技术规范和架构增量设计
|
|
48
|
+
- 知识库文件路径:
|
|
49
|
+
- 需求分析报告: docs/rag/_analysis-report.md
|
|
50
|
+
- 业务规则: docs/rag/business/rules-*.md
|
|
51
|
+
- 架构增量设计: docs/architecture-increment.md
|
|
52
|
+
- 编码规范: docs/rag/technical/coding-standards/
|
|
53
|
+
- 模块结构: docs/rag/technical/module-structure.md
|
|
54
|
+
- 中间件规范: docs/rag/technical/middleware/
|
|
55
|
+
- 安全约束: docs/rag/constraints/security.md
|
|
56
|
+
- 性能约束: docs/rag/constraints/performance.md
|
|
57
|
+
- 知识引用记录: 故事创建后必须在 Knowledge References 部分记录引用的知识文件
|
|
47
58
|
# 所有命令在使用时都需要 * 前缀 (例如, *help)
|
|
48
59
|
commands:
|
|
49
60
|
- help: 显示以下命令的编号列表以供选择
|
|
50
61
|
- correct-course: 执行任务 correct-course.md
|
|
51
62
|
- draft: 执行任务 create-next-story.md
|
|
52
63
|
- draft-enhanced: 执行任务 create-enhanced-story-with-database.md (增强版用户故事,包含数据库和API设计)
|
|
64
|
+
- draft-with-rag:
|
|
65
|
+
- description: "基于知识库和架构增量设计创建用户故事 (任务 create-story-with-rag.md)"
|
|
66
|
+
- workflow: |
|
|
67
|
+
1. 加载知识上下文
|
|
68
|
+
- 读取架构增量设计 (docs/architecture-increment.md)
|
|
69
|
+
- 读取需求分析报告 (docs/rag/_analysis-report.md)
|
|
70
|
+
- 读取业务规则 (docs/rag/business/rules-*.md)
|
|
71
|
+
- 读取编码规范 (docs/rag/technical/coding-standards/)
|
|
72
|
+
- 读取约束条件 (docs/rag/constraints/)
|
|
73
|
+
2. 识别下一个 Story,提取 Epic 中的 Story 定义
|
|
74
|
+
3. 知识融合生成:
|
|
75
|
+
- AC增强: 融合业务规则和约束条件
|
|
76
|
+
- 任务生成: 基于架构增量设计生成详细任务
|
|
77
|
+
- Dev Notes: 整合架构设计、编码规范、中间件示例
|
|
78
|
+
4. 生成 Story 文件,记录 Knowledge References
|
|
79
|
+
5. 执行 story-draft-checklist 验证
|
|
80
|
+
- knowledge-sources:
|
|
81
|
+
- docs/architecture-increment.md # 架构增量设计
|
|
82
|
+
- docs/rag/_analysis-report.md # 需求分析报告
|
|
83
|
+
- docs/rag/business/rules-*.md # 业务规则
|
|
84
|
+
- docs/rag/technical/coding-standards/ # 编码规范
|
|
85
|
+
- docs/rag/technical/module-structure.md # 模块结构
|
|
86
|
+
- docs/rag/technical/middleware/ # 中间件规范
|
|
87
|
+
- docs/rag/constraints/ # 约束条件
|
|
88
|
+
- output-enhancements:
|
|
89
|
+
- AC增强: 融合业务规则细节和技术约束
|
|
90
|
+
- 任务详细化: 每个任务带有架构设计参考
|
|
91
|
+
- Dev Notes: 包含完整的技术上下文和代码示例参考
|
|
92
|
+
- Knowledge References: 记录所有引用的知识文件
|
|
53
93
|
- story-checklist: 使用清单 story-draft-checklist.md 执行任务 execute-checklist.md
|
|
54
94
|
- exit: 作为 Scrum Master 道别,然后放弃扮演此角色
|
|
55
95
|
dependencies:
|
|
@@ -59,9 +99,27 @@ dependencies:
|
|
|
59
99
|
- correct-course.md
|
|
60
100
|
- create-next-story.md
|
|
61
101
|
- create-enhanced-story-with-database.md
|
|
102
|
+
- create-story-with-rag.md
|
|
62
103
|
- execute-checklist.md
|
|
63
104
|
templates:
|
|
64
105
|
- story-tmpl.yaml
|
|
106
|
+
- story-with-rag-tmpl.yaml
|
|
65
107
|
- enhanced-story-with-database-tmpl.yaml
|
|
66
108
|
- api-design-tmpl.yaml
|
|
109
|
+
knowledge-files:
|
|
110
|
+
description: 知识库文件路径(按需加载,执行 draft-with-rag 时使用)
|
|
111
|
+
analysis:
|
|
112
|
+
- docs/rag/_analysis-report.md # 需求分析报告
|
|
113
|
+
- docs/rag/_requirement-parsing.yaml # 需求解析结果
|
|
114
|
+
business:
|
|
115
|
+
- docs/rag/business/rules-*.md # 业务规则
|
|
116
|
+
architecture:
|
|
117
|
+
- docs/architecture-increment.md # 架构增量设计
|
|
118
|
+
technical:
|
|
119
|
+
- docs/rag/technical/coding-standards/ # 编码规范
|
|
120
|
+
- docs/rag/technical/module-structure.md # 模块结构
|
|
121
|
+
- docs/rag/technical/middleware/ # 中间件规范
|
|
122
|
+
constraints:
|
|
123
|
+
- docs/rag/constraints/security.md # 安全要求
|
|
124
|
+
- docs/rag/constraints/performance.md # 性能要求
|
|
67
125
|
```
|