@zeyue0329/xiaoma-cli 1.0.37 → 1.0.38
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 +27 -26
- package/JAVA-BACKEND-COMMANDS-REFERENCE.md +62 -52
- package/JAVA-BACKEND-ITERATION-GUIDE.md +125 -18
- package/README.md +1 -1
- package/common/utils/bmad-doc-template.md +5 -5
- package/dist/agents/analyst.txt +35 -5
- package/dist/agents/architect.txt +217 -31
- package/dist/agents/automation-orchestrator.txt +4 -4
- package/dist/agents/dev.txt +3 -3
- package/dist/agents/full-requirement-orchestrator.txt +11 -11
- package/dist/agents/qa.txt +102 -102
- package/dist/agents/sm.txt +6 -6
- package/dist/agents/ux-expert.txt +6 -1
- package/dist/agents/workflow-executor.txt +879 -0
- package/dist/agents/xiaoma-master.txt +258 -37
- package/dist/teams/team-all.txt +1223 -445
- package/dist/teams/team-fullstack-with-database.txt +384 -446
- package/dist/teams/team-fullstack.txt +258 -37
- package/dist/teams/team-ide-minimal.txt +111 -111
- package/dist/teams/team-no-ui.txt +252 -36
- package/docs/architecture-sharding-modification.md +623 -0
- package/docs/automated-requirements-analysis-outputs.md +896 -0
- package/package.json +1 -1
- package/tools/builders/web-builder.js +292 -142
- package/tools/bump-all-versions.js +50 -32
- package/tools/cli.js +52 -47
- package/tools/flattener/aggregate.js +30 -12
- package/tools/flattener/binary.js +46 -43
- package/tools/flattener/discovery.js +23 -15
- package/tools/flattener/files.js +6 -6
- package/tools/flattener/ignoreRules.js +122 -121
- package/tools/flattener/main.js +249 -144
- package/tools/flattener/projectRoot.js +74 -69
- package/tools/flattener/prompts.js +12 -10
- package/tools/flattener/stats.helpers.js +90 -61
- package/tools/flattener/stats.js +1 -1
- package/tools/flattener/test-matrix.js +225 -170
- package/tools/flattener/xml.js +31 -23
- package/tools/installer/bin/xiaoma.js +199 -153
- package/tools/installer/lib/config-loader.js +76 -47
- package/tools/installer/lib/file-manager.js +101 -44
- package/tools/installer/lib/ide-base-setup.js +49 -39
- package/tools/installer/lib/ide-setup.js +694 -380
- package/tools/installer/lib/installer.js +802 -469
- package/tools/installer/lib/memory-profiler.js +22 -12
- package/tools/installer/lib/module-manager.js +16 -14
- package/tools/installer/lib/resource-locator.js +61 -35
- package/tools/lib/dependency-resolver.js +34 -23
- package/tools/lib/yaml-utils.js +7 -2
- package/tools/preview-release-notes.js +33 -25
- package/tools/shared/bannerArt.js +3 -3
- package/tools/sync-installer-version.js +16 -7
- package/tools/upgraders/v3-to-v4-upgrader.js +244 -163
- package/tools/version-bump.js +24 -18
- package/tools/xiaoma-npx-wrapper.js +15 -10
- package/tools/yaml-format.js +60 -36
- package/xiaoma-core/agent-teams/team-fullstack-with-database.yaml +0 -1
- package/xiaoma-core/agents/automated-fix-validator.yaml +2 -1
- package/xiaoma-core/agents/automated-quality-validator.yaml +10 -5
- package/xiaoma-core/agents/automation-orchestrator.md +4 -4
- package/xiaoma-core/agents/dev.md +4 -4
- package/xiaoma-core/agents/enhanced-workflow-orchestrator.yaml +2 -1
- package/xiaoma-core/agents/full-requirement-orchestrator.md +11 -11
- package/xiaoma-core/agents/global-requirements-auditor.yaml +11 -3
- package/xiaoma-core/agents/intelligent-template-adapter.yaml +19 -5
- package/xiaoma-core/agents/master-execution-engine.yaml +19 -5
- package/xiaoma-core/agents/workflow-executor.md +8 -4
- package/xiaoma-core/agents/xiaoma-master.md +1 -1
- package/xiaoma-core/data/test-levels-framework.md +12 -12
- package/xiaoma-core/tasks/analyze-existing-database.md +1 -1
- package/xiaoma-core/tasks/apply-qa-fixes.md +3 -3
- package/xiaoma-core/tasks/batch-story-generation.md +22 -22
- package/xiaoma-core/tasks/create-enhanced-story-with-database.md +6 -6
- package/xiaoma-core/tasks/nfr-assess.md +6 -6
- package/xiaoma-core/tasks/project-integration-testing.md +42 -42
- package/xiaoma-core/tasks/qa-gate.md +23 -23
- package/xiaoma-core/tasks/review-story.md +18 -18
- package/xiaoma-core/tasks/risk-profile.md +25 -25
- package/xiaoma-core/tasks/serial-development-orchestration.md +51 -51
- package/xiaoma-core/tasks/test-design.md +9 -9
- package/xiaoma-core/tasks/trace-requirements.md +21 -21
- package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +35 -5
- package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +77 -11
- package/xiaoma-core/templates/front-end-spec-tmpl.yaml +6 -1
- package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +140 -20
- package/xiaoma-core/templates/global-qa-monitoring-tmpl.yaml +2 -1
- package/xiaoma-core/templates/requirements-coverage-audit.yaml +2 -1
- package/xiaoma-core/workflows/automated-requirements-analysis.yaml +4 -4
- package/dist/agents/database-architect.txt +0 -322
package/.idea/workspace.xml
CHANGED
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
<component name="Git.Settings">
|
|
14
14
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
15
15
|
</component>
|
|
16
|
-
<component name="GitHubPullRequestSearchHistory"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
<component name="GitHubPullRequestSearchHistory">{
|
|
17
|
+
"lastFilter": {
|
|
18
|
+
"state": "OPEN",
|
|
19
|
+
"assignee": "zqyl-xiaoma"
|
|
20
20
|
}
|
|
21
|
-
}
|
|
22
|
-
<component name="GithubPullRequestsUISettings"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
}</component>
|
|
22
|
+
<component name="GithubPullRequestsUISettings">{
|
|
23
|
+
"selectedUrlAndAccountId": {
|
|
24
|
+
"url": "https://github.com/zqyl-xiaoma/xiaoma-cli-release.git",
|
|
25
|
+
"accountId": "546cd128-11fc-43f0-8e6a-11f7d5bf6c09"
|
|
26
26
|
}
|
|
27
|
-
}
|
|
27
|
+
}</component>
|
|
28
28
|
<component name="ProjectColorInfo">{
|
|
29
29
|
"associatedIndex": 4
|
|
30
30
|
}</component>
|
|
@@ -33,22 +33,22 @@
|
|
|
33
33
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
34
34
|
<option name="showLibraryContents" value="true" />
|
|
35
35
|
</component>
|
|
36
|
-
<component name="PropertiesComponent"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
36
|
+
<component name="PropertiesComponent">{
|
|
37
|
+
"keyToString": {
|
|
38
|
+
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
|
39
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
40
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
41
|
+
"git-widget-placeholder": "main",
|
|
42
|
+
"last_opened_file_path": "/Users/liueryang/Documents/gitlab/XiaoMa-Cli",
|
|
43
|
+
"node.js.detected.package.eslint": "true",
|
|
44
|
+
"node.js.detected.package.tslint": "true",
|
|
45
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
46
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
47
|
+
"nodejs_package_manager_path": "npm",
|
|
48
|
+
"prettierjs.PrettierConfiguration.Package": "/Users/liueryang/Documents/gitlab/XiaoMa-Cli/node_modules/prettier",
|
|
49
|
+
"vue.rearranger.settings.migration": "true"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}</component>
|
|
52
52
|
<component name="SharedIndexes">
|
|
53
53
|
<attachedChunks>
|
|
54
54
|
<set>
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
<option name="presentableId" value="Default" />
|
|
66
66
|
<updated>1762494962173</updated>
|
|
67
67
|
<workItem from="1762494963355" duration="2769000" />
|
|
68
|
-
<workItem from="1762781553645" duration="
|
|
68
|
+
<workItem from="1762781553645" duration="3390000" />
|
|
69
|
+
<workItem from="1762933631198" duration="16000" />
|
|
69
70
|
</task>
|
|
70
71
|
<task id="LOCAL-00001" summary="drop unchecked message">
|
|
71
72
|
<option name="closed" value="true" />
|
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
## 🎯 命令使用的三种情况
|
|
8
8
|
|
|
9
9
|
### ✅ **情况 1:必须使用专用命令**
|
|
10
|
+
|
|
10
11
|
Agent 有明确的专用命令,**必须**在 Prompt 结尾明确指出要执行的命令。
|
|
11
12
|
|
|
12
13
|
### 📝 **情况 2:无需专用命令**
|
|
14
|
+
|
|
13
15
|
Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理解任务并执行。
|
|
14
16
|
|
|
15
17
|
### 🔧 **情况 3:加载配置文件**
|
|
18
|
+
|
|
16
19
|
特殊的 Agent(如 xiaoma-master)需要加载 YAML 配置文件来执行复杂任务。
|
|
17
20
|
|
|
18
21
|
---
|
|
@@ -21,65 +24,65 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
21
24
|
|
|
22
25
|
### **阶段 1:需求理解和 PRD 创建**
|
|
23
26
|
|
|
24
|
-
| 步骤
|
|
25
|
-
|
|
26
|
-
| 1.1 分析现有架构
|
|
27
|
-
| 1.2 创建 Brownfield PRD | PM
|
|
28
|
-
| 1.2 验证 PRD 质量
|
|
29
|
-
| 1.3 创建史诗
|
|
27
|
+
| 步骤 | Agent | 是否需要命令 | 命令 | 说明 |
|
|
28
|
+
| ----------------------- | --------- | ------------ | ------------------------ | -------------------------------- |
|
|
29
|
+
| 1.1 分析现有架构 | Architect | ❌ 不需要 | 无 | 通过详细 Prompt 描述分析任务 |
|
|
30
|
+
| 1.2 创建 Brownfield PRD | PM | ✅ **需要** | `*create-brownfield-prd` | 必须在 Prompt 结尾明确执行此命令 |
|
|
31
|
+
| 1.2 验证 PRD 质量 | PM | ❌ 不需要 | 无 | 通过 Prompt 要求 Agent 自我审查 |
|
|
32
|
+
| 1.3 创建史诗 | PM | ✅ **需要** | `*create-epic` | 必须在 Prompt 结尾明确执行此命令 |
|
|
30
33
|
|
|
31
34
|
---
|
|
32
35
|
|
|
33
36
|
### **阶段 2:技术架构设计**
|
|
34
37
|
|
|
35
|
-
| 步骤
|
|
36
|
-
|
|
37
|
-
| 2.1 后端架构增量设计 | Architect | ✅ **需要**
|
|
38
|
-
| 2.1 架构评审
|
|
38
|
+
| 步骤 | Agent | 是否需要命令 | 命令 | 说明 |
|
|
39
|
+
| -------------------- | --------- | ------------ | ------------------------------ | -------------------------------- |
|
|
40
|
+
| 2.1 后端架构增量设计 | Architect | ✅ **需要** | `*create-backend-architecture` | 必须在 Prompt 结尾明确执行此命令 |
|
|
41
|
+
| 2.1 架构评审 | Architect | ❌ 不需要 | 无 | 通过 Prompt 要求 Agent 自我评审 |
|
|
39
42
|
|
|
40
43
|
---
|
|
41
44
|
|
|
42
45
|
### **阶段 3:用户故事创建和细化**
|
|
43
46
|
|
|
44
|
-
| 步骤
|
|
45
|
-
|
|
46
|
-
| 3.1 识别用户故事列表
|
|
47
|
-
| 3.2 创建增强版用户故事
|
|
48
|
-
| 3.2 验证故事质量
|
|
49
|
-
| 3.3 PO 验证用户故事
|
|
50
|
-
| 3.3 修改故事(如不通过) | SM
|
|
47
|
+
| 步骤 | Agent | 是否需要命令 | 命令 | 说明 |
|
|
48
|
+
| ------------------------ | ----- | ------------ | ----------------------- | -------------------------------- |
|
|
49
|
+
| 3.1 识别用户故事列表 | SM | ❌ 不需要 | 无 | 通过 Prompt 描述任务,输出表格 |
|
|
50
|
+
| 3.2 创建增强版用户故事 | SM | ✅ **需要** | `*draft-enhanced` | 必须在 Prompt 结尾明确执行此命令 |
|
|
51
|
+
| 3.2 验证故事质量 | SM | ❌ 不需要 | 无 | 通过 Prompt 要求 Agent 自检 |
|
|
52
|
+
| 3.3 PO 验证用户故事 | PO | ✅ **需要** | `*validate-story-draft` | 必须在 Prompt 结尾明确执行此命令 |
|
|
53
|
+
| 3.3 修改故事(如不通过) | SM | ❌ 不需要 | 无 | 通过 Prompt 描述修改要求 |
|
|
51
54
|
|
|
52
55
|
---
|
|
53
56
|
|
|
54
57
|
### **阶段 4:Java 后端开发实现**
|
|
55
58
|
|
|
56
|
-
| 步骤
|
|
57
|
-
|
|
58
|
-
| 4.1 开发用户故事
|
|
59
|
-
| 4.2 运行测试
|
|
60
|
-
| 4.2 修复测试失败
|
|
61
|
-
| 4.3 代码自检和优化 | Dev
|
|
59
|
+
| 步骤 | Agent | 是否需要命令 | 命令 | 说明 |
|
|
60
|
+
| ------------------ | ----- | ------------ | ---------------------------------- | ------------------------------------------------ |
|
|
61
|
+
| 4.1 开发用户故事 | Dev | ✅ **需要** | `*develop-story {story-file-path}` | 必须在 Prompt 结尾明确执行此命令,带文件路径参数 |
|
|
62
|
+
| 4.2 运行测试 | Dev | ✅ **需要** | `*run-tests` | 必须在 Prompt 结尾明确执行此命令 |
|
|
63
|
+
| 4.2 修复测试失败 | Dev | ❌ 不需要 | 无 | 通过 Prompt 描述失败信息和修复要求 |
|
|
64
|
+
| 4.3 代码自检和优化 | Dev | ❌ 不需要 | 无 | 通过 Prompt 提供自检清单 |
|
|
62
65
|
|
|
63
66
|
---
|
|
64
67
|
|
|
65
68
|
### **阶段 5:QA 测试和质量门禁**
|
|
66
69
|
|
|
67
|
-
| 步骤
|
|
68
|
-
|
|
69
|
-
| 5.1 QA 综合审查
|
|
70
|
-
| 5.2 修复 QA 问题 | Dev
|
|
71
|
-
| 5.2 重新测试
|
|
72
|
-
| 5.2 重新 QA 审查 | QA
|
|
73
|
-
| 5.3 质量门禁决策 | QA
|
|
70
|
+
| 步骤 | Agent | 是否需要命令 | 命令 | 说明 |
|
|
71
|
+
| ---------------- | ----- | ------------ | ------------------------------ | ------------------------------------------------ |
|
|
72
|
+
| 5.1 QA 综合审查 | QA | ✅ **需要** | `*review {story-file-path}` | 必须在 Prompt 结尾明确执行此命令,带文件路径参数 |
|
|
73
|
+
| 5.2 修复 QA 问题 | Dev | ✅ **需要** | `*review-qa {story-file-path}` | 必须在 Prompt 结尾明确执行此命令,带文件路径参数 |
|
|
74
|
+
| 5.2 重新测试 | Dev | ✅ **需要** | `*run-tests` | 必须在 Prompt 结尾明确执行此命令 |
|
|
75
|
+
| 5.2 重新 QA 审查 | QA | ✅ **需要** | `*review {story-file-path}` | 必须在 Prompt 结尾明确执行此命令 |
|
|
76
|
+
| 5.3 质量门禁决策 | QA | ✅ **需要** | `*gate {story-file-path}` | 必须在 Prompt 结尾明确执行此命令,带文件路径参数 |
|
|
74
77
|
|
|
75
78
|
---
|
|
76
79
|
|
|
77
80
|
### **阶段 6:需求覆盖度审计和全局质量验证**
|
|
78
81
|
|
|
79
|
-
| 步骤
|
|
80
|
-
|
|
82
|
+
| 步骤 | Agent | 是否需要命令 | 命令 | 说明 |
|
|
83
|
+
| ------------------ | ------------- | --------------- | ----------------------------------------- | ------------------------------------------ |
|
|
81
84
|
| 6.1 需求覆盖度审计 | XiaoMa Master | 🔧 **加载配置** | 加载 `requirements-coverage-auditor.yaml` | 在 Prompt 中说明要加载此配置文件并执行审计 |
|
|
82
|
-
| 6.2 全局质量验证
|
|
85
|
+
| 6.2 全局质量验证 | XiaoMa Master | 🔧 **加载配置** | 加载 `automated-quality-validator.yaml` | 在 Prompt 中说明要加载此配置文件并执行验证 |
|
|
83
86
|
|
|
84
87
|
**说明**:对于加载配置文件的情况,目前文档中的做法是正确的:在 Prompt 中明确说"请加载 xxx.yaml 配置"。具体的加载方式可能因 Agent 实现而异。
|
|
85
88
|
|
|
@@ -87,13 +90,13 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
87
90
|
|
|
88
91
|
### **阶段 7:文档整理和交付准备**
|
|
89
92
|
|
|
90
|
-
| 步骤
|
|
91
|
-
|
|
92
|
-
| 7.1 生成完成故事汇总 | PO
|
|
93
|
-
| 7.2 生成 API 文档
|
|
94
|
-
| 7.3 生成数据库文档
|
|
95
|
-
| 7.4 生成部署文档
|
|
96
|
-
| 7.5 最终 PO 验收
|
|
93
|
+
| 步骤 | Agent | 是否需要命令 | 命令 | 说明 |
|
|
94
|
+
| -------------------- | --------- | ------------ | ------------------- | -------------------------------------- |
|
|
95
|
+
| 7.1 生成完成故事汇总 | PO | ❌ 不需要 | 无 | 通过详细 Prompt 描述文档内容和格式要求 |
|
|
96
|
+
| 7.2 生成 API 文档 | Architect | ⚠️ **可选** | `*document-project` | 可以使用此命令或详细 Prompt |
|
|
97
|
+
| 7.3 生成数据库文档 | Architect | ⚠️ **可选** | `*document-project` | 可以使用此命令或详细 Prompt |
|
|
98
|
+
| 7.4 生成部署文档 | Architect | ⚠️ **可选** | `*document-project` | 可以使用此命令或详细 Prompt |
|
|
99
|
+
| 7.5 最终 PO 验收 | PO | ❌ 不需要 | 无 | 通过详细 Prompt 描述验收清单和决策标准 |
|
|
97
100
|
|
|
98
101
|
---
|
|
99
102
|
|
|
@@ -112,6 +115,7 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
112
115
|
```
|
|
113
116
|
|
|
114
117
|
**关键点**:
|
|
118
|
+
|
|
115
119
|
- ✅ 在 Prompt 最后明确写出命令
|
|
116
120
|
- ✅ 命令前加粗标注"**请执行命令**:"
|
|
117
121
|
- ✅ Agent 会执行此命令并生成 PRD 文档
|
|
@@ -128,6 +132,7 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
128
132
|
```
|
|
129
133
|
|
|
130
134
|
**关键点**:
|
|
135
|
+
|
|
131
136
|
- ✅ 不需要在 Prompt 结尾加命令
|
|
132
137
|
- ✅ 通过详细描述让 Agent 理解任务
|
|
133
138
|
- ✅ Agent 会根据 Prompt 执行分析并生成报告
|
|
@@ -149,6 +154,7 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
149
154
|
```
|
|
150
155
|
|
|
151
156
|
**关键点**:
|
|
157
|
+
|
|
152
158
|
- ✅ 命令需要带文件路径参数
|
|
153
159
|
- ✅ 参数是用户故事文件的完整路径
|
|
154
160
|
- ✅ Agent 会读取该文件并执行开发
|
|
@@ -168,6 +174,7 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
168
174
|
```
|
|
169
175
|
|
|
170
176
|
**关键点**:
|
|
177
|
+
|
|
171
178
|
- ✅ 明确说明要加载哪个配置文件
|
|
172
179
|
- ✅ 说明加载后要执行什么任务
|
|
173
180
|
- ✅ 具体加载方式可能因实现而异
|
|
@@ -191,7 +198,7 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
191
198
|
|
|
192
199
|
3. **命令执行确认**:
|
|
193
200
|
- 发送 Prompt 后,观察 Agent 的响应
|
|
194
|
-
- Agent 应该明确说"正在执行
|
|
201
|
+
- Agent 应该明确说"正在执行 \*xxx 命令"
|
|
195
202
|
- 如果没有执行,需要重新发送 Prompt 并明确命令
|
|
196
203
|
|
|
197
204
|
### ❌ **不要做的**
|
|
@@ -228,19 +235,20 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
228
235
|
|
|
229
236
|
### **判断依据 2:任务类型**
|
|
230
237
|
|
|
231
|
-
| 任务类型
|
|
232
|
-
|
|
233
|
-
| 创建正式文档(PRD、史诗、故事) | ✅ 需要
|
|
234
|
-
| 开发/测试代码
|
|
235
|
-
| 质量审查和决策
|
|
236
|
-
| 探索性分析
|
|
237
|
-
| 自检和评审
|
|
238
|
-
| 文档生成(非正式)
|
|
239
|
-
| 验收决策
|
|
238
|
+
| 任务类型 | 是否需要命令 | 示例 |
|
|
239
|
+
| ------------------------------- | ------------ | --------------------------------- |
|
|
240
|
+
| 创建正式文档(PRD、史诗、故事) | ✅ 需要 | `*create-epic`, `*draft-enhanced` |
|
|
241
|
+
| 开发/测试代码 | ✅ 需要 | `*develop-story`, `*run-tests` |
|
|
242
|
+
| 质量审查和决策 | ✅ 需要 | `*review`, `*gate` |
|
|
243
|
+
| 探索性分析 | ❌ 不需要 | 分析架构、识别故事列表 |
|
|
244
|
+
| 自检和评审 | ❌ 不需要 | 代码自检、架构评审 |
|
|
245
|
+
| 文档生成(非正式) | ❌ 不需要 | 汇总文档、API文档 |
|
|
246
|
+
| 验收决策 | ❌ 不需要 | 最终验收 |
|
|
240
247
|
|
|
241
248
|
### **判断依据 3:查看原始操作手册**
|
|
242
249
|
|
|
243
250
|
在《JAVA-BACKEND-ITERATION-GUIDE.md》中:
|
|
251
|
+
|
|
244
252
|
- 如果 Prompt 底部有 `*command-name` 格式的内容 → **需要命令**
|
|
245
253
|
- 如果只有详细描述,没有 `*` 开头的命令 → **不需要命令**
|
|
246
254
|
|
|
@@ -255,7 +263,8 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
255
263
|
### **建议 2:观察 Agent 响应**
|
|
256
264
|
|
|
257
265
|
发送 Prompt 后,观察 Agent 的响应:
|
|
258
|
-
|
|
266
|
+
|
|
267
|
+
- 如果 Agent 说"正在执行 \*xxx 命令" → 命令已识别 ✅
|
|
259
268
|
- 如果 Agent 开始描述任务而不是执行 → 可能需要补充命令
|
|
260
269
|
- 如果 Agent 说"我没有此命令" → 检查命令是否正确
|
|
261
270
|
|
|
@@ -273,9 +282,10 @@ Agent 没有对应的专用命令,通过详细的 Prompt 描述让 Agent 理
|
|
|
273
282
|
### **建议 4:命令执行确认**
|
|
274
283
|
|
|
275
284
|
对于关键步骤(如开发、QA),确认 Agent 执行了命令:
|
|
285
|
+
|
|
276
286
|
- 查看 Agent 的回复是否包含命令执行的确认
|
|
277
287
|
- 查看输出文件是否生成
|
|
278
|
-
- 如有疑问,询问 Agent:"你刚才执行了
|
|
288
|
+
- 如有疑问,询问 Agent:"你刚才执行了 \*xxx 命令吗?"
|
|
279
289
|
|
|
280
290
|
---
|
|
281
291
|
|