@boyingliu01/xp-gate 0.7.0 → 0.8.0
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/bin/xp-gate.js +4 -9
- package/lib/__tests__/audit-log.test.ts +107 -0
- package/lib/__tests__/detect-deps.test.js +212 -42
- package/lib/__tests__/doctor.test.js +1 -0
- package/lib/__tests__/gate-audit.test.ts +59 -0
- package/lib/__tests__/init.test.js +47 -1
- package/lib/__tests__/install-skill.test.js +1 -45
- package/lib/__tests__/ui-detector.test.ts +186 -26
- package/lib/__tests__/ui-review.test.ts +119 -0
- package/lib/__tests__/uninstall.test.js +1 -0
- package/lib/detect-deps.js +180 -37
- package/lib/doctor.js +7 -9
- package/lib/gate-audit.ts +26 -42
- package/lib/init.js +42 -13
- package/lib/install-skill.js +20 -48
- package/lib/rollback.js +1 -16
- package/lib/shared-paths.js +30 -0
- package/lib/shared-utils.js +25 -0
- package/lib/ui-detector.ts +20 -14
- package/lib/ui-review.ts +58 -53
- package/lib/uninstall.js +8 -9
- package/package.json +1 -1
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/skills/admin-template-guidelines/SKILL.md +904 -0
- package/plugins/claude-code/skills/delphi-review/.delphi-config.json.example +45 -0
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +66 -0
- package/plugins/claude-code/skills/delphi-review/INSTALL.md +152 -0
- package/plugins/claude-code/skills/delphi-review/SKILL.md +454 -0
- package/plugins/claude-code/skills/delphi-review/opencode.json.delphi.example +56 -0
- package/plugins/claude-code/skills/delphi-review/references/code-walkthrough.md +486 -0
- package/plugins/claude-code/skills/improve-codebase-architecture/SKILL.md +156 -0
- package/plugins/claude-code/skills/ralph-loop/SKILL.md +501 -0
- package/plugins/claude-code/skills/ralph-loop/references/components/memory.md +55 -0
- package/plugins/claude-code/skills/ralph-loop/references/components/middleware.md +54 -0
- package/plugins/claude-code/skills/ralph-loop/references/components/skill-invocations.md +39 -0
- package/plugins/claude-code/skills/ralph-loop/references/components/system-prompt.md +24 -0
- package/plugins/claude-code/skills/ralph-loop/references/components/tool-descriptions.md +32 -0
- package/plugins/claude-code/skills/ralph-loop/references/phase-2-build-ralph.md +89 -0
- package/plugins/claude-code/skills/ralph-loop/templates/progress-log.md +36 -0
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +68 -0
- package/plugins/claude-code/skills/sprint-flow/SKILL.md +1248 -0
- package/plugins/claude-code/skills/sprint-flow/references/components/memory.md +87 -0
- package/plugins/claude-code/skills/sprint-flow/references/components/middleware.md +72 -0
- package/plugins/claude-code/skills/sprint-flow/references/components/skill-invocations.md +104 -0
- package/plugins/claude-code/skills/sprint-flow/references/components/system-prompt.md +27 -0
- package/plugins/claude-code/skills/sprint-flow/references/components/tool-descriptions.md +96 -0
- package/plugins/claude-code/skills/sprint-flow/references/force-levels.md +203 -0
- package/plugins/claude-code/skills/sprint-flow/references/phase-0-think.md +115 -0
- package/plugins/claude-code/skills/sprint-flow/references/phase-1-plan.md +178 -0
- package/plugins/claude-code/skills/sprint-flow/references/phase-2-build.md +198 -0
- package/plugins/claude-code/skills/sprint-flow/references/phase-3-review.md +213 -0
- package/plugins/claude-code/skills/sprint-flow/references/phase-4-uat.md +125 -0
- package/plugins/claude-code/skills/sprint-flow/references/phase-5-feedback.md +100 -0
- package/plugins/claude-code/skills/sprint-flow/references/phase-6-ship.md +193 -0
- package/plugins/claude-code/skills/sprint-flow/references/phase-7-land.md +140 -0
- package/plugins/claude-code/skills/sprint-flow/references/phase-8-cleanup.md +192 -0
- package/plugins/claude-code/skills/sprint-flow/references/phase-minus-0-5-auto-estimate.md +257 -0
- package/plugins/claude-code/skills/sprint-flow/templates/auto-estimate-learning-log.md +136 -0
- package/plugins/claude-code/skills/sprint-flow/templates/auto-estimate-output-template.md +132 -0
- package/plugins/claude-code/skills/sprint-flow/templates/emergent-issues-template.md +120 -0
- package/plugins/claude-code/skills/sprint-flow/templates/pain-document-template.md +115 -0
- package/plugins/claude-code/skills/sprint-flow/templates/sprint-progress-template.md +151 -0
- package/plugins/claude-code/skills/sprint-flow/templates/sprint-summary-template.md +120 -0
- package/plugins/claude-code/skills/test-driven-development/SKILL.md +71 -0
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +56 -0
- package/plugins/claude-code/skills/test-specification-alignment/SKILL.md +702 -0
- package/plugins/claude-code/skills/test-specification-alignment/references/alignment-verification-algorithm.md +493 -0
- package/plugins/claude-code/skills/test-specification-alignment/references/phase2-constraint-enforcement.md +431 -0
- package/plugins/claude-code/skills/test-specification-alignment/references/specification-format.md +348 -0
- package/plugins/claude-code/skills/to-issues/SKILL.md +277 -0
- package/plugins/opencode/README.md +38 -0
- package/plugins/opencode/index.ts +85 -0
- package/plugins/opencode/package.json +18 -0
- package/plugins/opencode/skills/admin-template-guidelines/SKILL.md +904 -0
- package/plugins/opencode/skills/delphi-review/.delphi-config.json.example +45 -0
- package/plugins/opencode/skills/delphi-review/AGENTS.md +66 -0
- package/plugins/opencode/skills/delphi-review/INSTALL.md +152 -0
- package/plugins/opencode/skills/delphi-review/SKILL.md +454 -0
- package/plugins/opencode/skills/delphi-review/opencode.json.delphi.example +56 -0
- package/plugins/opencode/skills/delphi-review/references/code-walkthrough.md +486 -0
- package/plugins/opencode/skills/improve-codebase-architecture/SKILL.md +156 -0
- package/plugins/opencode/skills/ralph-loop/SKILL.md +501 -0
- package/plugins/opencode/skills/ralph-loop/references/components/memory.md +55 -0
- package/plugins/opencode/skills/ralph-loop/references/components/middleware.md +54 -0
- package/plugins/opencode/skills/ralph-loop/references/components/skill-invocations.md +39 -0
- package/plugins/opencode/skills/ralph-loop/references/components/system-prompt.md +24 -0
- package/plugins/opencode/skills/ralph-loop/references/components/tool-descriptions.md +32 -0
- package/plugins/opencode/skills/ralph-loop/references/phase-2-build-ralph.md +89 -0
- package/plugins/opencode/skills/ralph-loop/templates/progress-log.md +36 -0
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +68 -0
- package/plugins/opencode/skills/sprint-flow/SKILL.md +1248 -0
- package/plugins/opencode/skills/sprint-flow/references/components/memory.md +87 -0
- package/plugins/opencode/skills/sprint-flow/references/components/middleware.md +72 -0
- package/plugins/opencode/skills/sprint-flow/references/components/skill-invocations.md +104 -0
- package/plugins/opencode/skills/sprint-flow/references/components/system-prompt.md +27 -0
- package/plugins/opencode/skills/sprint-flow/references/components/tool-descriptions.md +96 -0
- package/plugins/opencode/skills/sprint-flow/references/force-levels.md +203 -0
- package/plugins/opencode/skills/sprint-flow/references/phase-0-think.md +115 -0
- package/plugins/opencode/skills/sprint-flow/references/phase-1-plan.md +178 -0
- package/plugins/opencode/skills/sprint-flow/references/phase-2-build.md +198 -0
- package/plugins/opencode/skills/sprint-flow/references/phase-3-review.md +213 -0
- package/plugins/opencode/skills/sprint-flow/references/phase-4-uat.md +125 -0
- package/plugins/opencode/skills/sprint-flow/references/phase-5-feedback.md +100 -0
- package/plugins/opencode/skills/sprint-flow/references/phase-6-ship.md +193 -0
- package/plugins/opencode/skills/sprint-flow/references/phase-7-land.md +140 -0
- package/plugins/opencode/skills/sprint-flow/references/phase-8-cleanup.md +192 -0
- package/plugins/opencode/skills/sprint-flow/references/phase-minus-0-5-auto-estimate.md +257 -0
- package/plugins/opencode/skills/sprint-flow/templates/auto-estimate-learning-log.md +136 -0
- package/plugins/opencode/skills/sprint-flow/templates/auto-estimate-output-template.md +132 -0
- package/plugins/opencode/skills/sprint-flow/templates/emergent-issues-template.md +120 -0
- package/plugins/opencode/skills/sprint-flow/templates/pain-document-template.md +115 -0
- package/plugins/opencode/skills/sprint-flow/templates/sprint-progress-template.md +151 -0
- package/plugins/opencode/skills/sprint-flow/templates/sprint-summary-template.md +120 -0
- package/plugins/opencode/skills/test-driven-development/SKILL.md +71 -0
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +56 -0
- package/plugins/opencode/skills/test-specification-alignment/SKILL.md +702 -0
- package/plugins/opencode/skills/test-specification-alignment/references/alignment-verification-algorithm.md +493 -0
- package/plugins/opencode/skills/test-specification-alignment/references/phase2-constraint-enforcement.md +431 -0
- package/plugins/opencode/skills/test-specification-alignment/references/specification-format.md +348 -0
- package/plugins/opencode/skills/to-issues/SKILL.md +277 -0
- package/plugins/opencode/tsconfig.json +15 -0
- package/plugins/qoder/skills/admin-template-guidelines/SKILL.md +904 -0
- package/plugins/qoder/skills/delphi-review/.delphi-config.json.example +45 -0
- package/plugins/qoder/skills/delphi-review/AGENTS.md +66 -0
- package/plugins/qoder/skills/delphi-review/INSTALL.md +152 -0
- package/plugins/qoder/skills/delphi-review/SKILL.md +454 -0
- package/plugins/qoder/skills/delphi-review/opencode.json.delphi.example +56 -0
- package/plugins/qoder/skills/delphi-review/references/code-walkthrough.md +486 -0
- package/plugins/qoder/skills/improve-codebase-architecture/SKILL.md +156 -0
- package/plugins/qoder/skills/ralph-loop/SKILL.md +501 -0
- package/plugins/qoder/skills/ralph-loop/references/components/memory.md +55 -0
- package/plugins/qoder/skills/ralph-loop/references/components/middleware.md +54 -0
- package/plugins/qoder/skills/ralph-loop/references/components/skill-invocations.md +39 -0
- package/plugins/qoder/skills/ralph-loop/references/components/system-prompt.md +24 -0
- package/plugins/qoder/skills/ralph-loop/references/components/tool-descriptions.md +32 -0
- package/plugins/qoder/skills/ralph-loop/references/phase-2-build-ralph.md +89 -0
- package/plugins/qoder/skills/ralph-loop/templates/progress-log.md +36 -0
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +68 -0
- package/plugins/qoder/skills/sprint-flow/SKILL.md +1248 -0
- package/plugins/qoder/skills/sprint-flow/references/components/memory.md +87 -0
- package/plugins/qoder/skills/sprint-flow/references/components/middleware.md +72 -0
- package/plugins/qoder/skills/sprint-flow/references/components/skill-invocations.md +104 -0
- package/plugins/qoder/skills/sprint-flow/references/components/system-prompt.md +27 -0
- package/plugins/qoder/skills/sprint-flow/references/components/tool-descriptions.md +96 -0
- package/plugins/qoder/skills/sprint-flow/references/force-levels.md +203 -0
- package/plugins/qoder/skills/sprint-flow/references/phase-0-think.md +115 -0
- package/plugins/qoder/skills/sprint-flow/references/phase-1-plan.md +178 -0
- package/plugins/qoder/skills/sprint-flow/references/phase-2-build.md +198 -0
- package/plugins/qoder/skills/sprint-flow/references/phase-3-review.md +213 -0
- package/plugins/qoder/skills/sprint-flow/references/phase-4-uat.md +125 -0
- package/plugins/qoder/skills/sprint-flow/references/phase-5-feedback.md +100 -0
- package/plugins/qoder/skills/sprint-flow/references/phase-6-ship.md +193 -0
- package/plugins/qoder/skills/sprint-flow/references/phase-7-land.md +140 -0
- package/plugins/qoder/skills/sprint-flow/references/phase-8-cleanup.md +192 -0
- package/plugins/qoder/skills/sprint-flow/references/phase-minus-0-5-auto-estimate.md +257 -0
- package/plugins/qoder/skills/sprint-flow/templates/auto-estimate-learning-log.md +136 -0
- package/plugins/qoder/skills/sprint-flow/templates/auto-estimate-output-template.md +132 -0
- package/plugins/qoder/skills/sprint-flow/templates/emergent-issues-template.md +120 -0
- package/plugins/qoder/skills/sprint-flow/templates/pain-document-template.md +115 -0
- package/plugins/qoder/skills/sprint-flow/templates/sprint-progress-template.md +151 -0
- package/plugins/qoder/skills/sprint-flow/templates/sprint-summary-template.md +120 -0
- package/plugins/qoder/skills/test-driven-development/SKILL.md +71 -0
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +56 -0
- package/plugins/qoder/skills/test-specification-alignment/SKILL.md +702 -0
- package/plugins/qoder/skills/test-specification-alignment/references/alignment-verification-algorithm.md +493 -0
- package/plugins/qoder/skills/test-specification-alignment/references/phase2-constraint-enforcement.md +431 -0
- package/plugins/qoder/skills/test-specification-alignment/references/specification-format.md +348 -0
- package/plugins/qoder/skills/to-issues/SKILL.md +277 -0
- package/skills/admin-template-guidelines/SKILL.md +904 -0
- package/skills/delphi-review/SKILL.md +112 -77
- package/skills/improve-codebase-architecture/SKILL.md +156 -0
- package/skills/ralph-loop/SKILL.md +165 -34
- package/skills/sprint-flow/SKILL.md +448 -107
- package/skills/sprint-flow/references/components/skill-invocations.md +1 -1
- package/skills/sprint-flow/references/components/tool-descriptions.md +1 -1
- package/skills/sprint-flow/references/force-levels.md +203 -0
- package/skills/sprint-flow/references/phase-1-plan.md +4 -4
- package/skills/sprint-flow/references/phase-minus-0-5-auto-estimate.md +20 -1
- package/skills/sprint-flow/templates/auto-estimate-output-template.md +7 -5
- package/skills/sprint-flow/templates/sprint-progress-template.md +151 -0
- package/skills/test-driven-development/SKILL.md +71 -0
- package/skills/test-specification-alignment/SKILL.md +98 -24
- package/skills/to-issues/SKILL.md +277 -0
- package/plugins/qoder/AGENTS.md +0 -93
- package/plugins/qoder/README.md +0 -87
- package/plugins/qoder/widgets/quality-report.html +0 -163
- package/plugins/qoder/widgets/sprint-dashboard.html +0 -172
- package/skills/delphi-review/evals/evals.json +0 -82
- package/skills/delphi-review/references/qoder-multi-model.md +0 -191
- package/skills/ralph-loop/evals/evals.json +0 -311
- package/skills/ralph-loop/evolution-history.json +0 -59
- package/skills/ralph-loop/evolution-log.md +0 -16
- package/skills/sprint-flow/evals/evals.json +0 -130
- package/skills/sprint-flow/evolution-history.json +0 -39
- package/skills/sprint-flow/evolution-log.md +0 -23
- package/skills/sprint-flow/references/qoder-adaptation.md +0 -173
- package/skills/test-specification-alignment/evals/evals.json +0 -75
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# AUTO-ESTIMATE 输出模板
|
|
2
|
+
|
|
3
|
+
本模板定义了 Phase -0.5 在终端向用户展示 AUTO-ESTIMATE 结果的标准格式。
|
|
4
|
+
|
|
5
|
+
## 输出格式
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
+-------------------------------------------------------------+
|
|
9
|
+
| AUTO-ESTIMATE 评估结果 |
|
|
10
|
+
+-------------------------------------------------------------+
|
|
11
|
+
| 需求:{task_description} |
|
|
12
|
+
| 类型:{change_type} |
|
|
13
|
+
| |
|
|
14
|
+
| [{impact_level}] Impact: {impact_label} |
|
|
15
|
+
| |
|
|
16
|
+
| 引用:{ref_count} 处 |
|
|
17
|
+
| 跨模块:{cross_module_count} 个 ({module_list}) |
|
|
18
|
+
| 循环依赖:{circular_dep_status} |
|
|
19
|
+
| Public API:{public_api_count} 个 |
|
|
20
|
+
| {additional_metrics} |
|
|
21
|
+
| |
|
|
22
|
+
| 建议流程:{recommended_flow} |
|
|
23
|
+
| |
|
|
24
|
+
| {risk_warning} |
|
|
25
|
+
| |
|
|
26
|
+
| [接受建议] [修改流程] [取消] |
|
|
27
|
+
+-------------------------------------------------------------+
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## 字段说明
|
|
31
|
+
|
|
32
|
+
| 字段 | 说明 | 示例 |
|
|
33
|
+
|------|------|------|
|
|
34
|
+
| `{task_description}` | 用户输入的需求描述 | 删除平面维护界面 |
|
|
35
|
+
| `{change_type}` | 变更类型 | 删除/修改已存在代码 或 新增功能 |
|
|
36
|
+
| `{impact_level}` | 影响级别标识 | `[轻量]` / `[标准]` / `[复杂]` |
|
|
37
|
+
| `{impact_label}` | 影响级别标签 | 低 / 中 / 高 |
|
|
38
|
+
| `{ref_count}` | 引用出现次数 | 12 |
|
|
39
|
+
| `{cross_module_count}` | 跨模块数量 | 3 |
|
|
40
|
+
| `{module_list}` | 涉及模块名列表 | auth, user, admin |
|
|
41
|
+
| `{circular_dep_status}` | 循环依赖状态 | ✅ 无 / ⚠️ 存在 (A ↔ B) |
|
|
42
|
+
| `{public_api_count}` | Public API 暴露数 | 5 |
|
|
43
|
+
| `{additional_metrics}` | 附加指标(可选行) | 测试文件:4 个 / 影响范围:3 层调用 |
|
|
44
|
+
| `{recommended_flow}` | 建议流程描述 | 轻量流程 (Phase 0-3, reduced-intensity Delphi) |
|
|
45
|
+
| `{risk_warning}` | 风险警告(可选块) | ⚠️ 此操作涉及循环依赖… |
|
|
46
|
+
| 操作按钮 | 用户确认选项 | 接受建议 / 修改流程 / 取消 |
|
|
47
|
+
|
|
48
|
+
## 风险警告格式
|
|
49
|
+
|
|
50
|
+
当检测到高风险信号时(循环依赖、大范围 Public API、>10 处引用),追加风险警告块:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
| |
|
|
54
|
+
| ⚠️ {risk_description} |
|
|
55
|
+
| {mitigation_suggestion} |
|
|
56
|
+
| |
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
示例:
|
|
60
|
+
```
|
|
61
|
+
| |
|
|
62
|
+
| ⚠️ 此操作涉及循环依赖,建议保留层级结构作为过渡方案 |
|
|
63
|
+
| 避免直接删除导致编译失败 |
|
|
64
|
+
| |
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## 修改流程子菜单
|
|
68
|
+
|
|
69
|
+
当用户选择「修改流程」时,展示以下选项:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
+-------------------------------------------------------------+
|
|
73
|
+
| 选择流程级别: |
|
|
74
|
+
| |
|
|
75
|
+
| [1] 轻量流程 — minimal THINK + 简化 Delphi + BUILD/REVIEW (Phase 0-3) |
|
|
76
|
+
| [2] 标准流程 — brainstorming + Delphi + BUILD + REVIEW (Phase 0-4) |
|
|
77
|
+
| [3] 完整流程 — 完整 Sprint Flow (Phase 0-8) |
|
|
78
|
+
| |
|
|
79
|
+
| 修改原因(必填):____________________ |
|
|
80
|
+
| |
|
|
81
|
+
| [确认] [取消] |
|
|
82
|
+
+-------------------------------------------------------------+
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## 指标计算规则
|
|
86
|
+
|
|
87
|
+
### 对于删除/修改已存在代码
|
|
88
|
+
|
|
89
|
+
| 指标 | 计算方式 | 工具 |
|
|
90
|
+
|------|---------|------|
|
|
91
|
+
| 引用计数 | `grep -rn "{target_pattern}" --include="*.{ext}" | wc -l` | bash |
|
|
92
|
+
| 跨模块依赖 | 分析 import 语句中不同目录层级的引用 | bash + grep |
|
|
93
|
+
| 循环依赖 | 检查 import 图是否存在环(简单检查:A imports B, B imports A) | bash |
|
|
94
|
+
| Public API 暴露 | `grep -rn "^export "` 计数 | bash |
|
|
95
|
+
| 测试文件数 | `find . -name "*{target}*.test.*" | wc -l` | bash |
|
|
96
|
+
|
|
97
|
+
### 对于新增功能(brainstorming 后)
|
|
98
|
+
|
|
99
|
+
| 指标 | 计算方式 | 来源 |
|
|
100
|
+
|------|---------|------|
|
|
101
|
+
| 新增模块数 | 设计文档中列出的模块数 | Phase 0 输出 |
|
|
102
|
+
| 跨系统集成 | 涉及 API/DB/外部 数量 | Phase 0 输出 |
|
|
103
|
+
| 状态复杂度 | 状态机状态数 | Phase 0 输出 |
|
|
104
|
+
| REQ 数量 | user_stories 数量 | Phase 1 输出 |
|
|
105
|
+
|
|
106
|
+
## 路由决策表
|
|
107
|
+
|
|
108
|
+
| 评估结果 | 路由 | 说明 |
|
|
109
|
+
|---------|------|------|
|
|
110
|
+
| **轻量** (引用 ≤3, 同模块,无循环依赖) | Phase 0-3(minimal THINK → 简化 Delphi 评审 → BUILD/REVIEW) | 低强度执行,仍需 DELPHI-GATE APPROVED |
|
|
111
|
+
| **标准** (引用 4-10, 跨 1-2 模块) | Phase 0-4(完整 THINK → BUILD → REVIEW) | 标准 sprint |
|
|
112
|
+
| **复杂** (引用 >10 或 循环依赖 或 跨 3+ 模块) | Phase 0-8(完整 sprint-flow) | 完整流程 + 风险警告 |
|
|
113
|
+
|
|
114
|
+
**所有流程路线均需在 Phase 2 前获得 delphi-review APPROVED verdict。**
|
|
115
|
+
|
|
116
|
+
## 学习闭环
|
|
117
|
+
|
|
118
|
+
当用户选择「修改流程」时,记录 override 数据:
|
|
119
|
+
|
|
120
|
+
```json
|
|
121
|
+
{
|
|
122
|
+
"sprint_id": "sprint-YYYY-MM-DD-NN",
|
|
123
|
+
"task_description": "原始需求描述",
|
|
124
|
+
"estimated_level": "标准",
|
|
125
|
+
"user_override_level": "轻量",
|
|
126
|
+
"override_reason": "用户输入原因",
|
|
127
|
+
"actual_effort": "TBD",
|
|
128
|
+
"timestamp": "ISO 8601"
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
数据写入 `.sprint-state/auto-estimate-learning.json`(追加模式),用于阈值迭代优化。
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Emergent Issues Template
|
|
2
|
+
|
|
3
|
+
## 使用说明
|
|
4
|
+
|
|
5
|
+
此模板用于 Phase 4 (USER ACCEPTANCE) 人工验收。
|
|
6
|
+
|
|
7
|
+
⚠️ 这是 AI 无法预测的 UX/质量问题,只有实际使用才能发现。
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Emergent Issues - [需求名称]
|
|
12
|
+
|
|
13
|
+
## 验收元信息
|
|
14
|
+
|
|
15
|
+
```yaml
|
|
16
|
+
验收日期: YYYY-MM-DD
|
|
17
|
+
验收阶段: Phase 4 - USER ACCEPTANCE
|
|
18
|
+
验收人: [姓名]
|
|
19
|
+
MVP 版本: v1.0
|
|
20
|
+
Sprint ID: sprint-YYYY-MM-DD-NN
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 检查清单
|
|
26
|
+
|
|
27
|
+
### 1. 核心功能体验 (Core Functionality UX)
|
|
28
|
+
|
|
29
|
+
- [ ] 功能是否按预期工作?
|
|
30
|
+
- [ ] 输入 → 输出的流程是否流畅?
|
|
31
|
+
- [ ] 边界情况处理是否正确?(空值、极限值、异常输入)
|
|
32
|
+
- [ ] 错误处理是否友好?
|
|
33
|
+
|
|
34
|
+
**发现的问题**:
|
|
35
|
+
| 问题描述 | 严重程度 | 影响范围 | 发现场景 |
|
|
36
|
+
|---------|---------|---------|---------|
|
|
37
|
+
| [填写] | [Critical/Major/Minor] | [填写] | [填写] |
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
### 2. 多轮交互体验 (Multi-turn Interaction UX)
|
|
42
|
+
|
|
43
|
+
- [ ] 多轮对话/操作是否连贯?
|
|
44
|
+
- [ ] 上下文是否正确传递?
|
|
45
|
+
- [ ] 用户意图理解是否准确?
|
|
46
|
+
- [ ] 响应是否生硬/机械?
|
|
47
|
+
|
|
48
|
+
**发现的问题**:
|
|
49
|
+
| 问题描述 | 严重程度 | 影响范围 | 发现场景 |
|
|
50
|
+
|---------|---------|---------|---------|
|
|
51
|
+
| [填写] | [Critical/Major/Minor] | [填写] | [填写] |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
### 3. 视觉/交互体验 (Visual/Interaction UX)
|
|
56
|
+
|
|
57
|
+
- [ ] UI 元素是否清晰可辨?
|
|
58
|
+
- [ ] 是否存在"看起来像按钮但不可点击"的元素?
|
|
59
|
+
- [ ] 错误消息位置是否合理?(是否远离问题发生处)
|
|
60
|
+
- [ ] 响应时间是否满意?
|
|
61
|
+
- [ ] 移动端/桌面端是否一致?
|
|
62
|
+
|
|
63
|
+
**发现的问题**:
|
|
64
|
+
| 问题描述 | 严重程度 | 影响范围 | 发现场景 |
|
|
65
|
+
|---------|---------|---------|---------|
|
|
66
|
+
| [填写] | [Critical/Major/Minor] | [填写] | [填写] |
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### 4. 用户认知负担 (Cognitive Load)
|
|
71
|
+
|
|
72
|
+
- [ ] 用户是否容易理解如何使用?
|
|
73
|
+
- [ ] 是否需要额外学习/培训?
|
|
74
|
+
- [ ] 概念/术语是否一致?
|
|
75
|
+
- [ ] 流程是否符合用户心智模型?
|
|
76
|
+
|
|
77
|
+
**发现的问题**:
|
|
78
|
+
| 问题描述 | 严重程度 | 影响范围 | 发现场景 |
|
|
79
|
+
|---------|---------|---------|---------|
|
|
80
|
+
| [填写] | [Critical/Major/Minor] | [填写] | [填写] |
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
### 5. 意外发现 (Unexpected Observations)
|
|
85
|
+
|
|
86
|
+
- [ ] 是否发现了未预期的用户行为?
|
|
87
|
+
- [ ] 是否发现了新需求场景?
|
|
88
|
+
- [ ] 是否发现了潜在优化点?
|
|
89
|
+
|
|
90
|
+
**发现的问题**:
|
|
91
|
+
| 问题描述 | 严重程度 | 影响范围 | 发现场景 |
|
|
92
|
+
|---------|---------|---------|---------|
|
|
93
|
+
| [填写] | [Critical/Major/Minor] | [填写] | [填写] |
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Emergent Issues Summary
|
|
98
|
+
|
|
99
|
+
| 总计发现问题数 | Critical | Major | Minor |
|
|
100
|
+
|---------------|----------|-------|-------|
|
|
101
|
+
| [填写] | [填写] | [填写] | [填写] |
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 验收结论
|
|
106
|
+
|
|
107
|
+
- [ ] ✅ 验收通过,进入 Phase 5 (Ship)
|
|
108
|
+
- [ ] ⚠️ 发现问题需 Sprint 2 迭代
|
|
109
|
+
- [ ] ❌ 重大问题,需重新规划
|
|
110
|
+
|
|
111
|
+
**验收人签名**: ________________ **日期**: ________________
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Next Step
|
|
116
|
+
|
|
117
|
+
根据验收结论:
|
|
118
|
+
- ✅ 验收通过 → 进入 Phase 5 (FEEDBACK) 自动执行
|
|
119
|
+
- ⚠️ 发现问题 → 进入 Phase 5,记录反馈,准备 Sprint 2
|
|
120
|
+
- ❌ 重大问题 → Sprint 2 回到 Phase 0 重新规划
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Pain Document Template
|
|
2
|
+
|
|
3
|
+
## 使用说明
|
|
4
|
+
|
|
5
|
+
此模板用于 Phase 0 (THINK) 输出。基于 office-hours 六个强制问题验证需求真实性。
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Pain Document - [需求名称]
|
|
10
|
+
|
|
11
|
+
## 元信息
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
生成日期: YYYY-MM-DD
|
|
15
|
+
生成阶段: Phase 0 - THINK
|
|
16
|
+
来源: office-hours skill
|
|
17
|
+
Sprint ID: sprint-YYYY-MM-DD-NN
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 1. 需求现实 (Demand Reality)
|
|
23
|
+
|
|
24
|
+
**真实用户是否真的需要这个?**
|
|
25
|
+
|
|
26
|
+
[回答]
|
|
27
|
+
|
|
28
|
+
**现在有什么替代方案?**
|
|
29
|
+
|
|
30
|
+
[回答]
|
|
31
|
+
|
|
32
|
+
**为什么他们还没有用替代方案?**
|
|
33
|
+
|
|
34
|
+
[回答]
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 2. 当前状态 (Status Quo)
|
|
39
|
+
|
|
40
|
+
**用户现在怎么解决这个问题?**
|
|
41
|
+
|
|
42
|
+
[回答]
|
|
43
|
+
|
|
44
|
+
**他们的现状有多糟糕?**
|
|
45
|
+
|
|
46
|
+
[回答]
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 3. 绝望的具体性 (Desperate Specificity)
|
|
51
|
+
|
|
52
|
+
**能否描述一个具体的用户场景?**
|
|
53
|
+
|
|
54
|
+
[回答]
|
|
55
|
+
|
|
56
|
+
**这个场景有多绝望?**
|
|
57
|
+
|
|
58
|
+
[回答]
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 4. 最窄切入点 (Narrowest Wedge)
|
|
63
|
+
|
|
64
|
+
**最小的可行切入点是什么?**
|
|
65
|
+
|
|
66
|
+
[回答]
|
|
67
|
+
|
|
68
|
+
**为什么这是"最窄"?**
|
|
69
|
+
|
|
70
|
+
[回答]
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 5. 观察证据 (Observation)
|
|
75
|
+
|
|
76
|
+
**你自己是否观察到这个问题?**
|
|
77
|
+
|
|
78
|
+
[回答]
|
|
79
|
+
|
|
80
|
+
**数据或访谈支持吗?**
|
|
81
|
+
|
|
82
|
+
[回答]
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 6. 未来适配 (Future-fit)
|
|
87
|
+
|
|
88
|
+
**这个需求在未来 3-5 年是否仍然存在?**
|
|
89
|
+
|
|
90
|
+
[回答]
|
|
91
|
+
|
|
92
|
+
**是否会被技术变化淘汰?**
|
|
93
|
+
|
|
94
|
+
[回答]
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Pain Statement (一句话痛点)
|
|
99
|
+
|
|
100
|
+
> [用一句话描述为什么这是真实痛点]
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Proposed Solution (建议方案)
|
|
105
|
+
|
|
106
|
+
基于六个问题推导出的初步方案:
|
|
107
|
+
|
|
108
|
+
[方案描述]
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Next Step
|
|
113
|
+
|
|
114
|
+
- 进入 Phase 1 (PLAN) 自动执行
|
|
115
|
+
- 调用 autoplan skill 进行需求评审
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Sprint Progress Template
|
|
2
|
+
|
|
3
|
+
本模板定义了 Sprint 进度看板的标准显示格式。
|
|
4
|
+
Orchestrator 在每个 Phase 完成后、以及响应用户 `--status` 查询时,使用此模板渲染进度。
|
|
5
|
+
|
|
6
|
+
## 渲染规则
|
|
7
|
+
|
|
8
|
+
1. 从 `.sprint-state/sprint-state.json` 读取 `id`, `task_description`, `phase`, `status`, `started_at`, `phase_history`, `outputs`, `isolation`
|
|
9
|
+
2. 按下方模板渲染 ASCII 看板
|
|
10
|
+
3. 状态图标映射:✅ completed | 🔄 running | ⏸️ paused | ⬜ pending | ⏭️ skipped | ❌ failed
|
|
11
|
+
|
|
12
|
+
## 看板模板
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
+============================================================+
|
|
16
|
+
| SPRINT PROGRESS {sprint_id} |
|
|
17
|
+
+============================================================+
|
|
18
|
+
| 需求: {task_description} |
|
|
19
|
+
| 分支: {branch} |
|
|
20
|
+
| 状态: {overall_status} 启动: {started_at} |
|
|
21
|
+
+============================================================+
|
|
22
|
+
| |
|
|
23
|
+
| {icon_-1} Phase -1 ISOLATE {duration_-1} |
|
|
24
|
+
| {icon_-0.5} Phase -0.5 AUTO-ESTIMATE {duration_-0.5} |
|
|
25
|
+
| {icon_0} Phase 0 THINK {duration_0} |
|
|
26
|
+
| {icon_1} Phase 1 PLAN {duration_1} |
|
|
27
|
+
| {icon_2} Phase 2 BUILD {duration_2} |
|
|
28
|
+
| {icon_3} Phase 3 REVIEW {duration_3} |
|
|
29
|
+
| {icon_4} Phase 4 USER ACCEPT {duration_4} |
|
|
30
|
+
| {icon_5} Phase 5 FEEDBACK {duration_5} |
|
|
31
|
+
| {icon_6} Phase 6 SHIP {duration_6} |
|
|
32
|
+
| {icon_7} Phase 7 LAND {duration_7} |
|
|
33
|
+
| {icon_8} Phase 8 CLEANUP {duration_8} |
|
|
34
|
+
| |
|
|
35
|
+
| [{progress_bar}] {pct}% |
|
|
36
|
+
+============================================================+
|
|
37
|
+
| > 当前: Phase {current_phase} {current_phase_name} |
|
|
38
|
+
| 状态: {current_phase_status} |
|
|
39
|
+
| |
|
|
40
|
+
| 下一步: {next_action} |
|
|
41
|
+
| {next_action_detail} |
|
|
42
|
+
+============================================================+
|
|
43
|
+
| 输出物: |
|
|
44
|
+
| {output_list} |
|
|
45
|
+
+============================================================+
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## 字段说明
|
|
49
|
+
|
|
50
|
+
| 字段 | 来源 | 说明 |
|
|
51
|
+
|------|------|------|
|
|
52
|
+
| `{sprint_id}` | `sprint-state.json → id` | Sprint 标识 |
|
|
53
|
+
| `{task_description}` | `sprint-state.json → task_description` | 需求描述(缺失时显示 "-") |
|
|
54
|
+
| `{branch}` | `sprint-state.json → isolation.branch` | 工作分支 |
|
|
55
|
+
| `{overall_status}` | `sprint-state.json → status` | running / paused / completed |
|
|
56
|
+
| `{started_at}` | `sprint-state.json → started_at` | Sprint 启动时间(格式化: YYYY-MM-DD HH:MM) |
|
|
57
|
+
| `{icon_N}` | `phase_history[N].status` | 状态图标(见上方映射) |
|
|
58
|
+
| `{duration_N}` | `phase_history[N].duration_seconds` | 耗时(见下方格式化规则) |
|
|
59
|
+
| `{current_phase}` | `sprint-state.json → phase` | 当前阶段编号 |
|
|
60
|
+
| `{current_phase_name}` | Phase 名称映射 | ISOLATE / AUTO-ESTIMATE / THINK 等 |
|
|
61
|
+
| `{current_phase_status}` | `phase_history` 中当前阶段的 status | running / paused / completed |
|
|
62
|
+
| `{next_action}` | 下方"下一步行动表" | 用户需要执行的操作 |
|
|
63
|
+
| `{next_action_detail}` | 操作细节 | 具体指令 |
|
|
64
|
+
| `{output_list}` | `sprint-state.json → outputs` | 已生成的输出物路径列表(每项一行) |
|
|
65
|
+
| `{progress_bar}` | 已完成阶段数 / 总阶段数 | 格式: `████▓░░░░░░` |
|
|
66
|
+
| `{pct}` | 完成百分比 | 整数 |
|
|
67
|
+
|
|
68
|
+
## 进度条生成规则
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
总阶段数 = 11(Phase -1, -0.5, 0, 1, 2, 3, 4, 5, 6, 7, 8)
|
|
72
|
+
已完成数 = phase_history 中 status == "completed" 的数量
|
|
73
|
+
每个阶段 = 1 个字符宽度
|
|
74
|
+
填充: 已完成 = █ | 当前 = ▓ | 待做 = ░ | 跳过 = ▒
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 下一步行动表
|
|
78
|
+
|
|
79
|
+
| 当前阶段 | 当前状态 | 下一步行动 | 行动细节 |
|
|
80
|
+
|---------|---------|-----------|---------|
|
|
81
|
+
| Phase -1 | completed | 确认环境 | 检查 worktree 路径,准备进入需求分析 |
|
|
82
|
+
| Phase -0.5 | completed | 确认评估 | 查看 AUTO-ESTIMATE 结果,选择流程级别 |
|
|
83
|
+
| Phase 0 | completed | 确认设计 | 审阅设计文档,确认后进入 Phase 1 |
|
|
84
|
+
| Phase 0 | paused | 审阅设计 | 设计文档等待您的 APPROVED 确认 |
|
|
85
|
+
| Phase 1 | completed | 确认评审 | delphi-review 已通过,检查 specification.yaml |
|
|
86
|
+
| Phase 1 | paused | 等待评审 | delphi-review 进行中或等待 taste_decisions 确认 |
|
|
87
|
+
| Phase 2 | completed | 审阅代码 | BUILD 完成,进入 Phase 3 REVIEW |
|
|
88
|
+
| Phase 2 | running | 等待构建 | ralph-loop 迭代中,无需操作 |
|
|
89
|
+
| Phase 3 | completed | 开始验收 | 进入 Phase 4 人工验收 |
|
|
90
|
+
| Phase 4 | completed | 确认反馈 | 验收完成,Phase 5 自动进行 |
|
|
91
|
+
| Phase 4 | paused | 执行验收 | 必须人工验收,请实际使用后确认 |
|
|
92
|
+
| Phase 5 | completed | 确认发布 | 反馈已收集,准备进入 Phase 6 SHIP |
|
|
93
|
+
| Phase 6 | completed | 确认合并 | PR 已创建,确认是否合并 |
|
|
94
|
+
| Phase 7 | completed | 确认清理 | 合并成功,准备清理 worktree |
|
|
95
|
+
| Phase 8 | completed | Sprint 完成 | 检查 Sprint Summary,如有 emergent issues 考虑 Sprint 2 |
|
|
96
|
+
| 任意 | failed | 处理错误 | 查看错误信息,决定修复或放弃 |
|
|
97
|
+
|
|
98
|
+
## 耗时格式化规则
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
< 60s → "{N}s"
|
|
102
|
+
< 60m → "{N}m"
|
|
103
|
+
< 24h → "{X}h {Y}m"
|
|
104
|
+
>= 24h → "{X}d {Y}h"
|
|
105
|
+
无数据 → "-"
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## 向后兼容
|
|
109
|
+
|
|
110
|
+
当 `sprint-state.json` 缺少以下字段时(旧版 sprint 创建的状态文件),渲染规则:
|
|
111
|
+
- `task_description` 缺失 → 显示 "-"
|
|
112
|
+
- `started_at` 缺失 → 显示 "-"
|
|
113
|
+
- `phase_history` 缺失 → 从 `phase` 字段推断:小于等于 `phase` 的阶段标记为 ✅,当前阶段标记为 🔄,其余标记为 ⬜;所有耗时显示 "-"
|
|
114
|
+
|
|
115
|
+
## 示例渲染
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
+============================================================+
|
|
119
|
+
| SPRINT PROGRESS sprint-2026-06-04-01 |
|
|
120
|
+
+============================================================+
|
|
121
|
+
| 需求: 为 sprint-flow 添加进度看板功能 |
|
|
122
|
+
| 分支: sprint/2026-06-04-01 |
|
|
123
|
+
| 状态: running 启动: 2026-06-04 19:25 |
|
|
124
|
+
+============================================================+
|
|
125
|
+
| |
|
|
126
|
+
| ✅ Phase -1 ISOLATE 3m |
|
|
127
|
+
| ✅ Phase -0.5 AUTO-ESTIMATE 1m |
|
|
128
|
+
| ✅ Phase 0 THINK 2m |
|
|
129
|
+
| ✅ Phase 1 PLAN 5m |
|
|
130
|
+
| 🔄 Phase 2 BUILD 12m |
|
|
131
|
+
| ⬜ Phase 3 REVIEW - |
|
|
132
|
+
| ⬜ Phase 4 USER ACCEPT - |
|
|
133
|
+
| ⬜ Phase 5 FEEDBACK - |
|
|
134
|
+
| ⬜ Phase 6 SHIP - |
|
|
135
|
+
| ⬜ Phase 7 LAND - |
|
|
136
|
+
| ⬜ Phase 8 CLEANUP - |
|
|
137
|
+
| |
|
|
138
|
+
| [████▓░░░░░░] 36% |
|
|
139
|
+
+============================================================+
|
|
140
|
+
| > 当前: Phase 2 BUILD |
|
|
141
|
+
| 状态: running |
|
|
142
|
+
| |
|
|
143
|
+
| 下一步: 等待构建完成 |
|
|
144
|
+
| ralph-loop 迭代中,完成后自动进入 Phase 3 REVIEW |
|
|
145
|
+
+============================================================+
|
|
146
|
+
| 输出物: |
|
|
147
|
+
| 设计文档: .sprint-state/phase-outputs/design-doc.md |
|
|
148
|
+
| 评审报告: .sprint-state/delphi-reviewed.json |
|
|
149
|
+
| 规格说明: .sprint-state/phase-outputs/specification.yaml |
|
|
150
|
+
+============================================================+
|
|
151
|
+
```
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Sprint Summary Template
|
|
2
|
+
|
|
3
|
+
## 使用说明
|
|
4
|
+
|
|
5
|
+
此模板用于 Phase 6 (SHIP) 结束时生成 Sprint 总结。
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Sprint Summary - [需求名称]
|
|
10
|
+
|
|
11
|
+
## Sprint 元信息
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
Sprint ID: sprint-YYYY-MM-DD-NN
|
|
15
|
+
开始日期: YYYY-MM-DD
|
|
16
|
+
结束日期: YYYY-MM-DD
|
|
17
|
+
总耗时: [X hours/days]
|
|
18
|
+
MVP 版本: v1.0
|
|
19
|
+
最终状态: [completed/needs-sprint-2]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 阶段执行统计
|
|
25
|
+
|
|
26
|
+
| Phase | 耗时 | 状态 | 暂停次数 | 备注 |
|
|
27
|
+
|-------|------|------|---------|------|
|
|
28
|
+
| Phase 0: THINK | [X min] | ✅ 完成 | 0 | [备注] |
|
|
29
|
+
| Phase 1: PLAN | [X min] | ✅ 完成 | [N] | [备注] |
|
|
30
|
+
| Phase 2: BUILD | [X min] | ✅ 完成 | [N] | [备注] |
|
|
31
|
+
| Phase 3: REVIEW | [X min] | ✅ 完成 | [N] | [备注] |
|
|
32
|
+
| Phase 4: UAT | [X min] | ✅ 完成 | 1 (必须) | [备注] |
|
|
33
|
+
| Phase 5: FEEDBACK | [X min] | ✅ 完成 | 0 | [备注] |
|
|
34
|
+
| Phase 6: SHIP | [X min] | ✅ 完成 | [N] | [备注] |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Skills 调用统计
|
|
39
|
+
|
|
40
|
+
| Skill | 调用次数 | 结果 | 备注 |
|
|
41
|
+
|-------|---------|------|------|
|
|
42
|
+
| office-hours | 1 | ✅ | Pain Document 生成 |
|
|
43
|
+
| autoplan | 1 | ✅/⚠️ | [taste_decisions 数量] |
|
|
44
|
+
| delphi-review | [N] rounds | ✅ APPROVED | [Round 数量] |
|
|
45
|
+
| specification.yaml | 1 | ✅ | specification.yaml |
|
|
46
|
+
| BUILD (TDD + review) | 1 | ✅ APPROVED | [Gate 1 失败次数] |
|
|
47
|
+
| test-driven-development | [N] | ✅ | [BUILD (TDD + review) 内部调用] |
|
|
48
|
+
| cross-model-review | [N] rounds | ✅ APPROVED | [Round 数量] |
|
|
49
|
+
| test-specification-alignment | 1 | ✅ | [覆盖率] |
|
|
50
|
+
| browse | 1 | ✅ | [QA 通过] |
|
|
51
|
+
| learn | 1 | ✅ | [记录数量] |
|
|
52
|
+
| ship | 1 | ✅ | [PR URL] |
|
|
53
|
+
| land-and-deploy | 1 | ✅ | [部署 URL] |
|
|
54
|
+
| canary | 1 | ✅ | [监控正常] |
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Emergent 发现统计
|
|
59
|
+
|
|
60
|
+
| 类别 | 数量 | 处理状态 | 备注 |
|
|
61
|
+
|------|------|---------|------|
|
|
62
|
+
| Critical | [N] | [自动 Sprint 2] | [描述] |
|
|
63
|
+
| Major | [N] | [询问用户] | [描述] |
|
|
64
|
+
| Minor | [N] | [可选纳入 Sprint 2] | [描述] |
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 交付物清单
|
|
69
|
+
|
|
70
|
+
| 交付物 | 路径 | 状态 |
|
|
71
|
+
|-------|------|------|
|
|
72
|
+
| Pain Document | `.sprint-state/phase-outputs/pain-document.md` | ✅ |
|
|
73
|
+
| Specification | `.sprint-state/phase-outputs/specification.yaml` | ✅ |
|
|
74
|
+
| MVP v1 | `.sprint-state/phase-outputs/mvp-v1/` | ✅ |
|
|
75
|
+
| Review Report | `.sprint-state/phase-outputs/review-report.md` | ✅ |
|
|
76
|
+
| Emergent Issues | `.sprint-state/phase-outputs/emergent-issues.md` | ✅/⚠️ |
|
|
77
|
+
| Feedback Log | `.sprint-state/phase-outputs/feedback-log.md` | ✅ |
|
|
78
|
+
| Sprint Summary | `.sprint-state/phase-outputs/sprint-summary.md` | ✅ |
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 关键决策记录
|
|
83
|
+
|
|
84
|
+
| 决策点 | 选项 | 选择 | 理由 |
|
|
85
|
+
|-------|------|------|------|
|
|
86
|
+
| [决策1] | [A/B] | [选择] | [理由] |
|
|
87
|
+
| [决策2] | [A/B] | [选择] | [理由] |
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Sprint 2 建议(如有 emergent issues)
|
|
92
|
+
|
|
93
|
+
```yaml
|
|
94
|
+
Sprint 2 触发: [auto/user-confirm/none]
|
|
95
|
+
Sprint 2 Pain Document: sprint2-pain.md
|
|
96
|
+
|
|
97
|
+
Critical Issues (自动纳入):
|
|
98
|
+
- [Issue 1]
|
|
99
|
+
- [Issue 2]
|
|
100
|
+
|
|
101
|
+
Major Issues (建议纳入):
|
|
102
|
+
- [Issue 1]
|
|
103
|
+
|
|
104
|
+
Minor Issues (可选纳入):
|
|
105
|
+
- [Issue 1]
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 下一步行动
|
|
111
|
+
|
|
112
|
+
根据 Sprint 状态:
|
|
113
|
+
- ✅ Sprint 完成 → 结束流程
|
|
114
|
+
- ⚠️ 有 emergent issues → 提示用户是否开始 Sprint 2
|
|
115
|
+
- ❌ Sprint 失败 → 记录失败原因,结束流程
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
**Sprint 结束时间**: YYYY-MM-DD HH:MM:SS
|
|
120
|
+
**报告生成人**: sprint-flow skill
|