@boyingliu01/xp-gate 0.18.5 → 0.19.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/adapter-common.sh +27 -0
- package/adapters/gate-3.sh +0 -0
- package/adapters/gate-4.sh +0 -0
- package/adapters/gate-7.sh +0 -0
- package/adapters/gate-8.sh +0 -0
- package/adapters/gate-9.sh +0 -0
- package/adapters/powershell.sh +85 -33
- package/adapters/typescript.sh +8 -8
- package/build-integrity/__tests__/import-resolver.test.ts +22 -0
- package/build-integrity/__tests__/orchestrator.test.ts +1 -2
- package/build-integrity/gate-10.ts +7 -0
- package/gate-12-file-hygiene.sh +230 -0
- package/hooks/adapter-common.sh +27 -0
- package/hooks/gate-10.sh +105 -0
- package/hooks/gate-12-file-hygiene.sh +0 -0
- package/hooks/lib/validate-code-walkthrough.cjs +125 -0
- package/hooks/pre-commit +130 -33
- package/hooks/pre-push +15 -91
- package/lib/__tests__/check-version.test.js +67 -46
- package/lib/__tests__/doctor.test.js +7 -6
- package/lib/__tests__/gate-runner.test.js +267 -0
- package/lib/__tests__/init.test.js +32 -0
- package/lib/__tests__/npm-package.test.js +13 -0
- package/lib/__tests__/phase-transition.test.js +604 -12
- package/lib/__tests__/sprint-discovery.test.ts +0 -1
- package/lib/__tests__/sprint-status-rework.test.js +100 -1
- package/lib/__tests__/update-hooks.test.js +143 -10
- package/lib/__tests__/upgrade-exec.test.js +73 -45
- package/lib/__tests__/upgrade-skill-sync.test.js +1 -1
- package/lib/__tests__/upgrade.test.js +12 -11
- package/lib/doctor.js +2 -1
- package/lib/gate-runner.js +68 -23
- package/lib/init.js +34 -5
- package/lib/install-skill.js +1 -0
- package/lib/mattpocock-license-verdict.json +1 -1
- package/lib/phase-transition.js +203 -23
- package/lib/shared-paths.js +2 -0
- package/lib/sprint-status.js +15 -4
- package/lib/test-alignment.ts +3 -13
- package/lib/update-hooks.js +129 -15
- package/mock-policy/AGENTS.md +5 -5
- package/mock-policy/__tests__/gate-m3.test.ts +0 -5
- package/mock-policy/__tests__/scope-scanner.test.ts +8 -2
- package/mutation/AGENTS.md +4 -4
- package/mutation/__tests__/mutmut-runner.test.ts +443 -2
- package/mutation/__tests__/update-baseline.test.ts +0 -2
- package/mutation/runners/mutmut-runner.ts +67 -17
- package/package.json +9 -3
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/skills/clipboard-vision/SKILL.md +47 -0
- package/plugins/claude-code/skills/clipboard-vision/__tests__/clipboard-vision-distribution.test.cjs +65 -0
- package/plugins/claude-code/skills/clipboard-vision/__tests__/clipboard-vision-security.test.cjs +185 -0
- package/plugins/claude-code/skills/clipboard-vision/__tests__/clipboard-vision.Tests.ps1 +138 -0
- package/plugins/claude-code/skills/clipboard-vision/__tests__/clipboard-vision.test.cjs +273 -0
- package/plugins/claude-code/skills/clipboard-vision/describe-clipboard.ps1 +115 -0
- package/plugins/claude-code/skills/clipboard-vision/describe-clipboard.sh +161 -0
- package/plugins/claude-code/skills/clipboard-vision/scripts/clipboard-vision.ps1 +86 -0
- package/plugins/claude-code/skills/clipboard-vision/scripts/clipboard-vision.sh +137 -0
- package/plugins/claude-code/skills/delphi-review/.delphi-config.json.example +24 -27
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +13 -12
- package/plugins/claude-code/skills/delphi-review/INSTALL.md +15 -17
- package/plugins/claude-code/skills/delphi-review/SKILL.md +30 -29
- package/plugins/claude-code/skills/delphi-review/opencode.json.delphi.example +6 -10
- package/plugins/claude-code/skills/delphi-review/references/code-walkthrough.md +33 -49
- package/plugins/claude-code/skills/delphi-review/references/requirements.md +66 -54
- package/plugins/claude-code/skills/delphi-review/references/round-templates.md +7 -7
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +5 -5
- package/plugins/claude-code/skills/sprint-flow/SKILL.md +4 -4
- package/plugins/claude-code/skills/sprint-flow/references/components/skill-invocations.md +2 -2
- package/plugins/claude-code/skills/sprint-flow/references/force-levels.md +37 -35
- package/plugins/claude-code/skills/sprint-flow/references/orchestration-rules.md +1 -1
- package/plugins/claude-code/skills/sprint-flow/references/phase-1-prep.md +1 -1
- package/plugins/claude-code/skills/sprint-flow/references/phase-2-design.md +24 -14
- package/plugins/claude-code/skills/sprint-flow/references/phase-4-verify.md +6 -6
- package/plugins/claude-code/skills/sprint-flow/references/phase-overview.md +2 -2
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +4 -4
- package/plugins/dsh/README.md +25 -0
- package/plugins/dsh/cordis.patch.yml +7 -0
- package/plugins/dsh/package.json +70 -0
- package/plugins/dsh/scripts/prepack.cjs +82 -0
- package/plugins/dsh/skills/admin-template-guidelines/SKILL.md +113 -0
- package/plugins/dsh/skills/admin-template-guidelines/references/rule-1.md +91 -0
- package/plugins/dsh/skills/admin-template-guidelines/references/rule-2.md +155 -0
- package/plugins/dsh/skills/admin-template-guidelines/references/rule-3.md +70 -0
- package/plugins/dsh/skills/admin-template-guidelines/references/rule-4.md +154 -0
- package/plugins/dsh/skills/admin-template-guidelines/references/rule-5.md +126 -0
- package/plugins/dsh/skills/admin-template-guidelines/references/rule-6.md +180 -0
- package/plugins/dsh/skills/batch-grill-me/SKILL.md +15 -0
- package/plugins/dsh/skills/clipboard-vision/SKILL.md +47 -0
- package/plugins/dsh/skills/clipboard-vision/__tests__/clipboard-vision-distribution.test.cjs +65 -0
- package/plugins/dsh/skills/clipboard-vision/__tests__/clipboard-vision-security.test.cjs +185 -0
- package/plugins/dsh/skills/clipboard-vision/__tests__/clipboard-vision.Tests.ps1 +138 -0
- package/plugins/dsh/skills/clipboard-vision/__tests__/clipboard-vision.test.cjs +273 -0
- package/plugins/dsh/skills/clipboard-vision/describe-clipboard.ps1 +115 -0
- package/plugins/dsh/skills/clipboard-vision/describe-clipboard.sh +161 -0
- package/plugins/dsh/skills/clipboard-vision/scripts/clipboard-vision.ps1 +86 -0
- package/plugins/dsh/skills/clipboard-vision/scripts/clipboard-vision.sh +137 -0
- package/plugins/dsh/skills/delphi-review/.delphi-config.json.example +70 -0
- package/plugins/dsh/skills/delphi-review/AGENTS.md +67 -0
- package/plugins/dsh/skills/delphi-review/INSTALL.md +150 -0
- package/plugins/dsh/skills/delphi-review/SKILL.md +559 -0
- package/plugins/dsh/skills/delphi-review/hooks.md +19 -0
- package/plugins/dsh/skills/delphi-review/opencode.json.delphi.example +52 -0
- package/plugins/dsh/skills/delphi-review/references/code-walkthrough.md +470 -0
- package/plugins/dsh/skills/delphi-review/references/orchestrator-dispatch.md +64 -0
- package/plugins/dsh/skills/delphi-review/references/requirements.md +402 -0
- package/plugins/dsh/skills/delphi-review/references/round-templates.md +134 -0
- package/plugins/dsh/skills/delphi-review/scripts/verify-consensus.sh +43 -0
- package/plugins/dsh/skills/delphi-review/tools.md +29 -0
- package/plugins/dsh/skills/domain-modeling/ADR-FORMAT.md +64 -0
- package/plugins/dsh/skills/domain-modeling/CONTEXT-FORMAT.md +60 -0
- package/plugins/dsh/skills/domain-modeling/SKILL.md +74 -0
- package/plugins/dsh/skills/grill-with-docs/SKILL.md +7 -0
- package/plugins/dsh/skills/grilling/SKILL.md +12 -0
- package/plugins/dsh/skills/improve-codebase-architecture/SKILL.md +156 -0
- package/plugins/dsh/skills/ralph-loop/SKILL.md +198 -0
- package/plugins/dsh/skills/ralph-loop/references/components.md +113 -0
- package/plugins/dsh/skills/ralph-loop/references/phase-2-build-ralph.md +89 -0
- package/plugins/dsh/skills/ralph-loop/references/workflow-details.md +99 -0
- package/plugins/dsh/skills/ralph-loop/templates/progress-log.md +36 -0
- package/plugins/dsh/skills/sprint-flow/AGENTS.md +103 -0
- package/plugins/dsh/skills/sprint-flow/SKILL.md +411 -0
- package/plugins/dsh/skills/sprint-flow/__tests__/sprint-flow.test.cjs +457 -0
- package/plugins/dsh/skills/sprint-flow/hooks.md +18 -0
- package/plugins/dsh/skills/sprint-flow/references/components/memory.md +87 -0
- package/plugins/dsh/skills/sprint-flow/references/components/middleware.md +75 -0
- package/plugins/dsh/skills/sprint-flow/references/components/skill-invocations.md +105 -0
- package/plugins/dsh/skills/sprint-flow/references/components/system-prompt.md +27 -0
- package/plugins/dsh/skills/sprint-flow/references/components/tool-descriptions.md +95 -0
- package/plugins/dsh/skills/sprint-flow/references/force-levels.md +204 -0
- package/plugins/dsh/skills/sprint-flow/references/orchestration-rules.md +236 -0
- package/plugins/dsh/skills/sprint-flow/references/phase-1-prep.md +294 -0
- package/plugins/dsh/skills/sprint-flow/references/phase-2-design.md +273 -0
- package/plugins/dsh/skills/sprint-flow/references/phase-3-build.md +348 -0
- package/plugins/dsh/skills/sprint-flow/references/phase-4-verify.md +225 -0
- package/plugins/dsh/skills/sprint-flow/references/phase-5-ship.md +222 -0
- package/plugins/dsh/skills/sprint-flow/references/phase-6-close.md +266 -0
- package/plugins/dsh/skills/sprint-flow/references/phase-overview.md +486 -0
- package/plugins/dsh/skills/sprint-flow/scripts/verify-sprint-state.sh +38 -0
- package/plugins/dsh/skills/sprint-flow/templates/auto-estimate-learning-log.md +136 -0
- package/plugins/dsh/skills/sprint-flow/templates/auto-estimate-output-template.md +110 -0
- package/plugins/dsh/skills/sprint-flow/templates/emergent-issues-template.md +120 -0
- package/plugins/dsh/skills/sprint-flow/templates/pain-document-template.md +115 -0
- package/plugins/dsh/skills/sprint-flow/templates/sprint-progress-template.md +140 -0
- package/plugins/dsh/skills/sprint-flow/templates/sprint-summary-template.md +121 -0
- package/plugins/dsh/skills/sprint-flow/tools.md +29 -0
- package/plugins/dsh/skills/test-driven-development/SKILL.md +371 -0
- package/plugins/dsh/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +56 -0
- package/plugins/dsh/skills/test-specification-alignment/SKILL.md +205 -0
- package/plugins/dsh/skills/test-specification-alignment/references/alignment-verification-algorithm.md +493 -0
- package/plugins/dsh/skills/test-specification-alignment/references/phase2-constraint-enforcement.md +431 -0
- package/plugins/dsh/skills/test-specification-alignment/references/specification-format.md +348 -0
- package/plugins/dsh/skills/to-issues/SKILL.md +277 -0
- package/plugins/dsh/src/command.test.ts +102 -0
- package/plugins/dsh/src/command.ts +75 -0
- package/plugins/dsh/src/contract.test.ts +62 -0
- package/plugins/dsh/src/gate-runner.test.ts +100 -0
- package/plugins/dsh/src/gate-runner.ts +58 -0
- package/plugins/dsh/src/index.test.ts +97 -0
- package/plugins/dsh/src/index.ts +94 -0
- package/plugins/dsh/src/skills.test.ts +58 -0
- package/plugins/dsh/tsconfig.build.json +13 -0
- package/plugins/dsh/tsconfig.json +19 -0
- package/plugins/dsh/vitest.config.ts +8 -0
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/scripts/prepack.cjs +1 -0
- package/plugins/opencode/skills/clipboard-vision/SKILL.md +47 -0
- package/plugins/opencode/skills/clipboard-vision/__tests__/clipboard-vision-distribution.test.cjs +65 -0
- package/plugins/opencode/skills/clipboard-vision/__tests__/clipboard-vision-security.test.cjs +185 -0
- package/plugins/opencode/skills/clipboard-vision/__tests__/clipboard-vision.Tests.ps1 +138 -0
- package/plugins/opencode/skills/clipboard-vision/__tests__/clipboard-vision.test.cjs +273 -0
- package/plugins/opencode/skills/clipboard-vision/describe-clipboard.ps1 +115 -0
- package/plugins/opencode/skills/clipboard-vision/describe-clipboard.sh +161 -0
- package/plugins/opencode/skills/clipboard-vision/scripts/clipboard-vision.ps1 +86 -0
- package/plugins/opencode/skills/clipboard-vision/scripts/clipboard-vision.sh +137 -0
- package/plugins/opencode/skills/delphi-review/.delphi-config.json.example +24 -27
- package/plugins/opencode/skills/delphi-review/AGENTS.md +13 -12
- package/plugins/opencode/skills/delphi-review/INSTALL.md +15 -17
- package/plugins/opencode/skills/delphi-review/SKILL.md +30 -29
- package/plugins/opencode/skills/delphi-review/opencode.json.delphi.example +6 -10
- package/plugins/opencode/skills/delphi-review/references/code-walkthrough.md +33 -49
- package/plugins/opencode/skills/delphi-review/references/requirements.md +66 -54
- package/plugins/opencode/skills/delphi-review/references/round-templates.md +7 -7
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +5 -5
- package/plugins/opencode/skills/sprint-flow/SKILL.md +4 -4
- package/plugins/opencode/skills/sprint-flow/references/components/skill-invocations.md +2 -2
- package/plugins/opencode/skills/sprint-flow/references/force-levels.md +37 -35
- package/plugins/opencode/skills/sprint-flow/references/orchestration-rules.md +1 -1
- package/plugins/opencode/skills/sprint-flow/references/phase-1-prep.md +1 -1
- package/plugins/opencode/skills/sprint-flow/references/phase-2-design.md +24 -14
- package/plugins/opencode/skills/sprint-flow/references/phase-4-verify.md +6 -6
- package/plugins/opencode/skills/sprint-flow/references/phase-overview.md +2 -2
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +4 -4
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/clipboard-vision/SKILL.md +47 -0
- package/plugins/qoder/skills/clipboard-vision/__tests__/clipboard-vision-distribution.test.cjs +65 -0
- package/plugins/qoder/skills/clipboard-vision/__tests__/clipboard-vision-security.test.cjs +185 -0
- package/plugins/qoder/skills/clipboard-vision/__tests__/clipboard-vision.Tests.ps1 +138 -0
- package/plugins/qoder/skills/clipboard-vision/__tests__/clipboard-vision.test.cjs +273 -0
- package/plugins/qoder/skills/clipboard-vision/clipboard-vision/SKILL.md +47 -0
- package/plugins/qoder/skills/clipboard-vision/clipboard-vision/__tests__/clipboard-vision-distribution.test.cjs +65 -0
- package/plugins/qoder/skills/clipboard-vision/clipboard-vision/__tests__/clipboard-vision-security.test.cjs +185 -0
- package/plugins/qoder/skills/clipboard-vision/clipboard-vision/__tests__/clipboard-vision.Tests.ps1 +138 -0
- package/plugins/qoder/skills/clipboard-vision/clipboard-vision/__tests__/clipboard-vision.test.cjs +273 -0
- package/plugins/qoder/skills/clipboard-vision/clipboard-vision/scripts/clipboard-vision.ps1 +86 -0
- package/plugins/qoder/skills/clipboard-vision/clipboard-vision/scripts/clipboard-vision.sh +137 -0
- package/plugins/qoder/skills/clipboard-vision/scripts/clipboard-vision.ps1 +86 -0
- package/plugins/qoder/skills/clipboard-vision/scripts/clipboard-vision.sh +137 -0
- package/plugins/qoder/skills/delphi-review/.delphi-config.json.example +3 -11
- package/plugins/qoder/skills/delphi-review/AGENTS.md +15 -17
- package/plugins/qoder/skills/delphi-review/INSTALL.md +12 -12
- package/plugins/qoder/skills/delphi-review/SKILL.md +58 -25
- package/plugins/qoder/skills/delphi-review/opencode.json.delphi.example +1 -1
- package/plugins/qoder/skills/delphi-review/references/code-walkthrough.md +33 -49
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +5 -5
- package/plugins/qoder/skills/sprint-flow/SKILL.md +2 -2
- package/plugins/qoder/skills/sprint-flow/references/force-levels.md +38 -35
- package/plugins/qoder/skills/sprint-flow/references/phase-1-prep.md +1 -1
- package/plugins/qoder/skills/sprint-flow/references/phase-2-design.md +48 -6
- package/plugins/qoder/skills/sprint-flow/references/phase-4-verify.md +5 -6
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +4 -4
- package/principles/AGENTS.md +4 -4
- package/scripts/__tests__/sync-package-content.test.js +30 -0
- package/scripts/delphi-external-review.cjs +194 -63
- package/scripts/sync-package-content.js +9 -2
- package/skills/clipboard-vision/SKILL.md +47 -0
- package/skills/clipboard-vision/__tests__/clipboard-vision-distribution.test.cjs +65 -0
- package/skills/clipboard-vision/__tests__/clipboard-vision-security.test.cjs +185 -0
- package/skills/clipboard-vision/__tests__/clipboard-vision.Tests.ps1 +138 -0
- package/skills/clipboard-vision/__tests__/clipboard-vision.test.cjs +273 -0
- package/skills/clipboard-vision/describe-clipboard.ps1 +115 -0
- package/skills/clipboard-vision/describe-clipboard.sh +161 -0
- package/skills/clipboard-vision/scripts/clipboard-vision.ps1 +86 -0
- package/skills/clipboard-vision/scripts/clipboard-vision.sh +137 -0
- package/skills/delphi-review/.delphi-config.json.example +24 -27
- package/skills/delphi-review/AGENTS.md +13 -12
- package/skills/delphi-review/INSTALL.md +15 -17
- package/skills/delphi-review/SKILL.md +30 -29
- package/skills/delphi-review/opencode.json.delphi.example +6 -10
- package/skills/delphi-review/references/code-walkthrough.md +33 -49
- package/skills/delphi-review/references/requirements.md +66 -54
- package/skills/delphi-review/references/round-templates.md +7 -7
- package/skills/sprint-flow/AGENTS.md +5 -5
- package/skills/sprint-flow/SKILL.md +4 -4
- package/skills/sprint-flow/references/components/skill-invocations.md +2 -2
- package/skills/sprint-flow/references/force-levels.md +37 -35
- package/skills/sprint-flow/references/orchestration-rules.md +1 -1
- package/skills/sprint-flow/references/phase-1-prep.md +1 -1
- package/skills/sprint-flow/references/phase-2-design.md +24 -14
- package/skills/sprint-flow/references/phase-4-verify.md +6 -6
- package/skills/sprint-flow/references/phase-overview.md +2 -2
- package/skills/test-specification-alignment/AGENTS.md +4 -4
- package/sprint-gate.sh +291 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# AUTO-ESTIMATE 输出模板
|
|
2
|
+
|
|
3
|
+
本模板定义了 Phase 1/6 PREP 在终端向用户展示 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}` | 建议流程描述 | 轻量流程 (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
|
+
| [1] 轻量流程 — reduced DESIGN + 简化 Delphi + BUILD/VERIFY |
|
|
68
|
+
| [2] 标准流程 — brainstorming + Delphi + BUILD + VERIFY |
|
|
69
|
+
| [3] 完整流程 — 完整 Sprint Flow (6 phases) |
|
|
70
|
+
| |
|
|
71
|
+
| 修改原因(必填):____________________ |
|
|
72
|
+
| |
|
|
73
|
+
| [确认] [取消] |
|
|
74
|
+
+-------------------------------------------------------------+
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 指标计算规则
|
|
78
|
+
|
|
79
|
+
### 对于删除/修改已存在代码
|
|
80
|
+
|
|
81
|
+
| 指标 | 计算方式 | 工具 |
|
|
82
|
+
|------|---------|------|
|
|
83
|
+
| 引用计数 | `grep -rn "{target_pattern}" --include="*.{ext}" | wc -l` | bash |
|
|
84
|
+
| 跨模块依赖 | 分析 import 语句中不同目录层级的引用 | bash + grep |
|
|
85
|
+
| 循环依赖 | 检查 import 图是否存在环 | bash |
|
|
86
|
+
| Public API 暴露 | `grep -rn "^export "` 计数 | bash |
|
|
87
|
+
| 测试文件数 | `find . -name "*{target}*.test.*" | wc -l` | bash |
|
|
88
|
+
|
|
89
|
+
### 对于新增功能(brainstorming 后)
|
|
90
|
+
|
|
91
|
+
| 指标 | 计算方式 | 来源 |
|
|
92
|
+
|------|---------|------|
|
|
93
|
+
| 新增模块数 | 设计文档中列出的模块数 | Phase 2/6 DESIGN 输出 |
|
|
94
|
+
| 跨系统集成 | 涉及 API/DB/外部 数量 | Phase 2/6 DESIGN 输出 |
|
|
95
|
+
| 状态复杂度 | 状态机状态数 | Phase 2/6 DESIGN 输出 |
|
|
96
|
+
| REQ 数量 | user_stories 数量 | Phase 2/6 DESIGN 输出 |
|
|
97
|
+
|
|
98
|
+
## 路由决策表
|
|
99
|
+
|
|
100
|
+
| 评估结果 | 路由 | 说明 |
|
|
101
|
+
|---------|------|------|
|
|
102
|
+
| **轻量** (引用 ≤3, 同模块,无循环依赖) | reduced DESIGN → 简化 Delphi → BUILD/VERIFY(6 phases, reduced intensity) | 低强度执行,仍需 DELPHI-GATE APPROVED |
|
|
103
|
+
| **标准** (引用 4-10, 跨 1-2 模块) | 完整 DESIGN → BUILD → VERIFY(6 phases) | 标准 sprint |
|
|
104
|
+
| **复杂** (引用 >10 或 循环依赖 或 跨 3+ 模块) | 完整 Sprint Flow(6 phases) | 完整流程 + 风险警告 |
|
|
105
|
+
|
|
106
|
+
**所有流程路线均需在 Phase 3/6 BUILD 前获得 delphi-review APPROVED verdict。**
|
|
107
|
+
|
|
108
|
+
## 学习闭环
|
|
109
|
+
|
|
110
|
+
当用户选择「修改流程」时,记录 override 数据到 `.sprint-state/auto-estimate-learning.json`(追加模式),用于阈值迭代优化。
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Emergent Issues Template
|
|
2
|
+
|
|
3
|
+
## 使用说明
|
|
4
|
+
|
|
5
|
+
此模板用于 Phase 6/6 CLOSE (USER ACCEPTANCE) 人工验收。
|
|
6
|
+
|
|
7
|
+
⚠️ 这是 AI 无法预测的 UX/质量问题,只有实际使用才能发现。
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Emergent Issues - [需求名称]
|
|
12
|
+
|
|
13
|
+
## 验收元信息
|
|
14
|
+
|
|
15
|
+
```yaml
|
|
16
|
+
验收日期: YYYY-MM-DD
|
|
17
|
+
验收阶段: Phase 6/6 - CLOSE (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
|
+
- [ ] ✅ 验收通过,进入 CLEANUP → Sprint 结束
|
|
108
|
+
- [ ] ⚠️ 发现问题需 Sprint 2 迭代
|
|
109
|
+
- [ ] ❌ 重大问题,需重新规划
|
|
110
|
+
|
|
111
|
+
**验收人签名**: ________________ **日期**: ________________
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Next Step
|
|
116
|
+
|
|
117
|
+
根据验收结论:
|
|
118
|
+
- ✅ 验收通过 → 进入 Phase 6/6 CLOSE (CLEANUP) 自动执行
|
|
119
|
+
- ⚠️ 发现问题 → 记录反馈 → 准备 Sprint 2 → 进入 CLEANUP
|
|
120
|
+
- ❌ 重大问题 → Sprint 2 回到 Phase 2/6 DESIGN 重新规划
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Pain Document Template
|
|
2
|
+
|
|
3
|
+
## 使用说明
|
|
4
|
+
|
|
5
|
+
此模板用于 Phase 2/6 DESIGN (brainstorming) 输出。基于 office-hours 六个强制问题验证需求真实性。
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Pain Document - [需求名称]
|
|
10
|
+
|
|
11
|
+
## 元信息
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
生成日期: YYYY-MM-DD
|
|
15
|
+
生成阶段: Phase 2/6 - DESIGN
|
|
16
|
+
来源: brainstorming / 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 2/6 DESIGN (PLAN 阶段) 自动执行
|
|
115
|
+
- 调用 autoplan + delphi-review 进行设计评审
|
|
@@ -0,0 +1,140 @@
|
|
|
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/6 PREP {duration_1} |
|
|
24
|
+
| {icon_2} Phase 2/6 DESIGN {duration_2} |
|
|
25
|
+
| {icon_3} Phase 3/6 BUILD {duration_3} |
|
|
26
|
+
| {icon_4} Phase 4/6 VERIFY {duration_4} |
|
|
27
|
+
| {icon_5} Phase 5/6 SHIP {duration_5} |
|
|
28
|
+
| {icon_6} Phase 6/6 CLOSE {duration_6} |
|
|
29
|
+
| |
|
|
30
|
+
| [{progress_bar}] {pct}% |
|
|
31
|
+
+============================================================+
|
|
32
|
+
| > 当前: Phase {current_phase}/6 {current_phase_name} |
|
|
33
|
+
| 状态: {current_phase_status} |
|
|
34
|
+
| |
|
|
35
|
+
| 下一步: {next_action} |
|
|
36
|
+
| {next_action_detail} |
|
|
37
|
+
+============================================================+
|
|
38
|
+
| 输出物: |
|
|
39
|
+
| {output_list} |
|
|
40
|
+
+============================================================+
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## 字段说明
|
|
44
|
+
|
|
45
|
+
| 字段 | 来源 | 说明 |
|
|
46
|
+
|------|------|------|
|
|
47
|
+
| `{sprint_id}` | `sprint-state.json → id` | Sprint 标识 |
|
|
48
|
+
| `{task_description}` | `sprint-state.json → task_description` | 需求描述(缺失时显示 "-") |
|
|
49
|
+
| `{branch}` | `sprint-state.json → isolation.branch` | 工作分支 |
|
|
50
|
+
| `{overall_status}` | `sprint-state.json → status` | running / paused / completed |
|
|
51
|
+
| `{started_at}` | `sprint-state.json → started_at` | Sprint 启动时间(格式化: YYYY-MM-DD HH:MM) |
|
|
52
|
+
| `{icon_N}` | `phase_history[N].status` | 状态图标(见上方映射) |
|
|
53
|
+
| `{duration_N}` | `phase_history[N].duration_seconds` | 耗时(见下方格式化规则) |
|
|
54
|
+
| `{current_phase}` | `sprint-state.json → phase` | 当前阶段编号 (1-6) |
|
|
55
|
+
| `{current_phase_name}` | Phase 名称映射 | PREP / DESIGN / BUILD / VERIFY / SHIP / CLOSE |
|
|
56
|
+
| `{current_phase_status}` | `phase_history` 中当前阶段的 status | running / paused / completed |
|
|
57
|
+
| `{next_action}` | 下方"下一步行动表" | 用户需要执行的操作 |
|
|
58
|
+
| `{next_action_detail}` | 操作细节 | 具体指令 |
|
|
59
|
+
| `{output_list}` | `sprint-state.json → outputs` | 已生成的输出物路径列表(每项一行) |
|
|
60
|
+
| `{progress_bar}` | 已完成阶段数 / 总阶段数 | 格式: `████▓░░░░░░` |
|
|
61
|
+
| `{pct}` | 完成百分比 | 整数 |
|
|
62
|
+
|
|
63
|
+
## 进度条生成规则
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
总阶段数 = 6(Phase 1/6, 2/6, 3/6, 4/6, 5/6, 6/6)
|
|
67
|
+
已完成数 = phase_history 中 status == "completed" 的数量
|
|
68
|
+
每个阶段 = 1 个字符宽度
|
|
69
|
+
填充: 已完成 = █ | 当前 = ▓ | 待做 = ░ | 跳过 = ▒
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 下一步行动表
|
|
73
|
+
|
|
74
|
+
| 当前阶段 | 当前状态 | 下一步行动 | 行动细节 |
|
|
75
|
+
|---------|---------|-----------|---------|
|
|
76
|
+
| Phase 1/6 | completed | 确认评估 | 查看 AUTO-ESTIMATE 结果,选择流程级别 |
|
|
77
|
+
| Phase 1/6 | running | 等待隔离 | worktree 创建 + 评估中,无需操作 |
|
|
78
|
+
| Phase 2/6 | completed | 确认设计评审 | delphi-review 已通过,检查 specification.yaml |
|
|
79
|
+
| Phase 2/6 | paused | 等待设计 | brainstorming 或 delphi-review 等待 APPROVED |
|
|
80
|
+
| Phase 2/6 | running | 等待规划 | brainstorming/autoplan 执行中,无需操作 |
|
|
81
|
+
| Phase 3/6 | completed | 审阅代码 | BUILD 完成,进入 Phase 4/6 VERIFY |
|
|
82
|
+
| Phase 3/6 | running | 等待构建 | ralph-loop 迭代中,无需操作 |
|
|
83
|
+
| Phase 4/6 | completed | 确认发布 | 验证完成,反馈已收集,准备进入 Phase 5/6 SHIP |
|
|
84
|
+
| Phase 4/6 | running | 等待验证 | code-walkthrough + QA + feedback 执行中 |
|
|
85
|
+
| Phase 5/6 | completed | 确认验收 | PR 已创建 + 部署完成,准备进入 Phase 6/6 CLOSE |
|
|
86
|
+
| Phase 5/6 | paused | 确认合并 | PR 已创建,确认是否合并 |
|
|
87
|
+
| Phase 6/6 | completed | Sprint 完成 | 检查 Sprint Summary,如有 emergent issues 考虑 Sprint 2 |
|
|
88
|
+
| Phase 6/6 | paused | 执行验收 | ⚠️ 必须人工验收,请实际使用后确认 |
|
|
89
|
+
| 任意 | failed | 处理错误 | 查看错误信息,决定修复或放弃 |
|
|
90
|
+
|
|
91
|
+
## 耗时格式化规则
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
< 60s → "{N}s"
|
|
95
|
+
< 60m → "{N}m"
|
|
96
|
+
< 24h → "{X}h {Y}m"
|
|
97
|
+
>= 24h → "{X}d {Y}h"
|
|
98
|
+
无数据 → "-"
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## 向后兼容
|
|
102
|
+
|
|
103
|
+
当 `sprint-state.json` 缺少以下字段时(旧版 sprint 创建的状态文件),渲染规则:
|
|
104
|
+
- `task_description` 缺失 → 显示 "-"
|
|
105
|
+
- `started_at` 缺失 → 显示 "-"
|
|
106
|
+
- `phase_history` 缺失 → 从 `phase` 字段推断:小于等于 `phase` 的阶段标记为 ✅,当前阶段标记为 🔄,其余标记为 ⬜;所有耗时显示 "-"
|
|
107
|
+
- **旧版 11-phase sprint-state.json**: phase 编号为 -1, -0.5, 0..8 的历史文件仍可渲染,但新 sprint 使用 1-6 numbering
|
|
108
|
+
|
|
109
|
+
## 示例渲染
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
+============================================================+
|
|
113
|
+
| SPRINT PROGRESS sprint-2026-07-08-01 |
|
|
114
|
+
+============================================================+
|
|
115
|
+
| 需求: 为 sprint-flow 添加进度看板功能 |
|
|
116
|
+
| 分支: sprint/2026-07-08-01 |
|
|
117
|
+
| 状态: running 启动: 2026-07-08 10:25 |
|
|
118
|
+
+============================================================+
|
|
119
|
+
| |
|
|
120
|
+
| ✅ Phase 1/6 PREP 5m |
|
|
121
|
+
| ✅ Phase 2/6 DESIGN 12m |
|
|
122
|
+
| 🔄 Phase 3/6 BUILD 15m |
|
|
123
|
+
| ⬜ Phase 4/6 VERIFY - |
|
|
124
|
+
| ⬜ Phase 5/6 SHIP - |
|
|
125
|
+
| ⬜ Phase 6/6 CLOSE - |
|
|
126
|
+
| |
|
|
127
|
+
| [██▓░░░] 50% |
|
|
128
|
+
+============================================================+
|
|
129
|
+
| > 当前: Phase 3/6 BUILD |
|
|
130
|
+
| 状态: running |
|
|
131
|
+
| |
|
|
132
|
+
| 下一步: 等待构建完成 |
|
|
133
|
+
| ralph-loop 迭代中,完成后自动进入 Phase 4/6 VERIFY |
|
|
134
|
+
+============================================================+
|
|
135
|
+
| 输出物: |
|
|
136
|
+
| 设计文档: .sprint-state/phase-outputs/design-doc.md |
|
|
137
|
+
| 评审报告: .sprint-state/delphi-reviewed.json |
|
|
138
|
+
| 规格说明: .sprint-state/phase-outputs/specification.yaml |
|
|
139
|
+
+============================================================+
|
|
140
|
+
```
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Sprint Summary Template
|
|
2
|
+
|
|
3
|
+
## 使用说明
|
|
4
|
+
|
|
5
|
+
此模板用于 Phase 6/6 CLOSE 结束时生成 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
|
+
| 1/6: PREP | [X min] | ✅ 完成 | 0 | worktree + 规模评估 |
|
|
29
|
+
| 2/6: DESIGN | [X min] | ✅ 完成 | [N] | brainstorming + delphi-review |
|
|
30
|
+
| 3/6: BUILD | [X min] | ✅ 完成 | [N] | ralph-loop + TDD |
|
|
31
|
+
| 4/6: VERIFY | [X min] | ✅ 完成 | [N] | code-walkthrough + QA + feedback |
|
|
32
|
+
| 5/6: SHIP | [X min] | ✅ 完成 | [N] | PR + deploy + canary |
|
|
33
|
+
| 6/6: CLOSE | [X min] | ✅ 完成 | 1 (UAT 必须) | 人工验收 + cleanup |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Skills 调用统计
|
|
38
|
+
|
|
39
|
+
| Skill | 调用次数 | 结果 | 备注 |
|
|
40
|
+
|-------|---------|------|------|
|
|
41
|
+
| brainstorming | 1 | ✅ | design doc |
|
|
42
|
+
| autoplan | 1 | ✅/⚠️ | [taste_decisions 数量] |
|
|
43
|
+
| delphi-review (design) | [N] rounds | ✅ APPROVED | [Round 数量] |
|
|
44
|
+
| delphi-review (code-walkthrough) | [N] rounds | ✅ APPROVED | [Round 数量] |
|
|
45
|
+
| to-issues | 1 | ✅ | slices-manifest.json |
|
|
46
|
+
| test-driven-development | [N] | ✅ | BUILD 内部调用 |
|
|
47
|
+
| test-specification-alignment | 1 | ✅ | [覆盖率] |
|
|
48
|
+
| browse | 1 | ✅ | [QA 通过] |
|
|
49
|
+
| qa (web) | 1 | ✅ | [health score] |
|
|
50
|
+
| benchmark (web) | 1 | ✅ | [perf baseline] |
|
|
51
|
+
| learn | 1 | ✅ | [记录数量] |
|
|
52
|
+
| retro | 1 | ✅ | Sprint 回顾 |
|
|
53
|
+
| ship | 1 | ✅ | [PR URL] |
|
|
54
|
+
| land-and-deploy | 1 | ✅ | [部署 URL] |
|
|
55
|
+
| canary | 1 | ✅ | [监控正常] |
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Emergent 发现统计
|
|
60
|
+
|
|
61
|
+
| 类别 | 数量 | 处理状态 | 备注 |
|
|
62
|
+
|------|------|---------|------|
|
|
63
|
+
| Critical | [N] | [自动 Sprint 2] | [描述] |
|
|
64
|
+
| Major | [N] | [询问用户] | [描述] |
|
|
65
|
+
| Minor | [N] | [可选纳入 Sprint 2] | [描述] |
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 交付物清单
|
|
70
|
+
|
|
71
|
+
| 交付物 | 路径 | 状态 |
|
|
72
|
+
|-------|------|------|
|
|
73
|
+
| Pain Document | `.sprint-state/phase-outputs/pain-document.md` | ✅ |
|
|
74
|
+
| Specification | `.sprint-state/phase-outputs/specification.yaml` | ✅ |
|
|
75
|
+
| MVP v1 | `.sprint-state/phase-outputs/mvp-v1/` | ✅ |
|
|
76
|
+
| Review Report | `.sprint-state/phase-outputs/review-report.md` | ✅ |
|
|
77
|
+
| Emergent Issues | `.sprint-state/phase-outputs/emergent-issues.md` | ✅/⚠️ |
|
|
78
|
+
| Feedback Log | `.sprint-state/phase-outputs/feedback-log.md` | ✅ |
|
|
79
|
+
| Sprint Summary | `.sprint-state/phase-outputs/sprint-summary.md` | ✅ |
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 关键决策记录
|
|
84
|
+
|
|
85
|
+
| 决策点 | 选项 | 选择 | 理由 |
|
|
86
|
+
|-------|------|------|------|
|
|
87
|
+
| [决策1] | [A/B] | [选择] | [理由] |
|
|
88
|
+
| [决策2] | [A/B] | [选择] | [理由] |
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Sprint 2 建议(如有 emergent issues)
|
|
93
|
+
|
|
94
|
+
```yaml
|
|
95
|
+
Sprint 2 触发: [auto/user-confirm/none]
|
|
96
|
+
Sprint 2 Pain Document: sprint2-pain.md
|
|
97
|
+
|
|
98
|
+
Critical Issues (自动纳入):
|
|
99
|
+
- [Issue 1]
|
|
100
|
+
- [Issue 2]
|
|
101
|
+
|
|
102
|
+
Major Issues (建议纳入):
|
|
103
|
+
- [Issue 1]
|
|
104
|
+
|
|
105
|
+
Minor Issues (可选纳入):
|
|
106
|
+
- [Issue 1]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## 下一步行动
|
|
112
|
+
|
|
113
|
+
根据 Sprint 状态:
|
|
114
|
+
- ✅ Sprint 完成 → 结束流程
|
|
115
|
+
- ⚠️ 有 emergent issues → 提示用户是否开始 Sprint 2
|
|
116
|
+
- ❌ Sprint 失败 → 记录失败原因,结束流程
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
**Sprint 结束时间**: YYYY-MM-DD HH:MM:SS
|
|
121
|
+
**报告生成人**: sprint-flow skill
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Tools Whitelist — Sprint Flow
|
|
2
|
+
|
|
3
|
+
Sprint Flow is an **orchestration skill** that coordinates subagents and system commands.
|
|
4
|
+
It does NOT implement code directly — it delegates implementation to subagents.
|
|
5
|
+
|
|
6
|
+
## Allowed Tools
|
|
7
|
+
|
|
8
|
+
| Tool | Usage | Rationale |
|
|
9
|
+
|------|-------|-----------|
|
|
10
|
+
| `Bash(git, gh, npm, node)` | git worktree/branch/commit, gh PR/release, npm/node CLI | Required for sprint infrastructure management |
|
|
11
|
+
| `Read` | Read project files, configs, docs | Required for context gathering |
|
|
12
|
+
| `Write` | Write sprint-state, specification.yaml, phase summaries | Required for sprint state persistence |
|
|
13
|
+
| `Edit` | Edit sprint-state, CHANGELOG, VERSION | Required for version management |
|
|
14
|
+
| `Glob` | Find project files by pattern | Required for project discovery |
|
|
15
|
+
| `Grep` | Search file contents | Required for codebase understanding |
|
|
16
|
+
| `Task` | Delegate to subagents (quick, deep, unspecified-high) | Core orchestration mechanism |
|
|
17
|
+
| `Skill` | Invoke integrated skills (brainstorming, autoplan, delphi-review, etc.) | Required for skill chain execution |
|
|
18
|
+
| `TodoWrite` | Track sprint progress | Required for progress visibility |
|
|
19
|
+
| `Question` | Ask user at decision gates | Required for user decision points |
|
|
20
|
+
|
|
21
|
+
## Denied Tools
|
|
22
|
+
|
|
23
|
+
| Tool | Rationale |
|
|
24
|
+
|------|-----------|
|
|
25
|
+
| `rm -rf (any recursive force remove)` | Destructive — sprint flow only cleans up via `git worktree remove` |
|
|
26
|
+
| `git push --force` | Destructive — never force push during sprint |
|
|
27
|
+
| `DROP TABLE or destructive DB operations` | Destructive — sprint flow orchestrates, does not manage databases |
|
|
28
|
+
| `Write(source code)` | Sprint flow NEVER writes implementation code directly — delegates to subagents via `Task` |
|
|
29
|
+
| `Edit(source code)` | Sprint flow NEVER edits implementation code — delegates to subagents via `Task` |
|