@boyingliu01/opencode-plugin 0.17.0 → 0.18.1
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/package.json +1 -1
- package/skills/delphi-review/AGENTS.md +3 -3
- package/skills/delphi-review/SKILL.md +59 -4
- package/skills/delphi-review/references/requirements.md +390 -0
- package/skills/delphi-review/references/round-templates.md +67 -0
- package/skills/sprint-flow/AGENTS.md +3 -3
- package/skills/sprint-flow/SKILL.md +22 -22
- package/skills/sprint-flow/references/components/memory.md +1 -1
- package/skills/sprint-flow/references/components/middleware.md +1 -1
- package/skills/sprint-flow/references/components/skill-invocations.md +21 -20
- package/skills/sprint-flow/references/components/tool-descriptions.md +22 -23
- package/skills/sprint-flow/references/orchestration-rules.md +14 -12
- package/skills/sprint-flow/references/phase-2-design.md +145 -133
- package/skills/sprint-flow/references/phase-3-build.md +69 -2
- package/skills/sprint-flow/references/phase-4-verify.md +93 -31
- package/skills/sprint-flow/references/phase-5-ship.md +99 -14
- package/skills/sprint-flow/references/phase-6-close.md +37 -5
- package/skills/sprint-flow/references/phase-overview.md +58 -53
- package/skills/test-specification-alignment/AGENTS.md +3 -3
- package/skills/test-specification-alignment/SKILL.md +8 -3
- package/skills/to-issues/SKILL.md +1 -1
|
@@ -3,7 +3,7 @@ name: sprint-flow
|
|
|
3
3
|
version: 2.1.0
|
|
4
4
|
description: >
|
|
5
5
|
Orchestrates a 6-phase end-to-end feature development pipeline (PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE).
|
|
6
|
-
Integrates
|
|
6
|
+
Integrates grill-with-docs, batch-grill-me, delphi-review (R1 requirements + R2 design), TDD, ralph-loop, code-walkthrough, and native ship/land steps.
|
|
7
7
|
Pauses at key gates for user decisions. Acknowledges emergent requirements with mandatory manual UAT in CLOSE phase.
|
|
8
8
|
|
|
9
9
|
WHAT: Automates the full development lifecycle from worktree isolation to production deployment.
|
|
@@ -87,12 +87,10 @@ workflow_steps:
|
|
|
87
87
|
- "Phase 6/6: CLOSE → Output: ## Phase 6/6: CLOSE (收尾)"
|
|
88
88
|
hooks:
|
|
89
89
|
security:
|
|
90
|
-
- "
|
|
91
|
-
- "
|
|
92
|
-
- "/guard": "Full safety mode combining careful + freeze for maximum protection"
|
|
90
|
+
- "tools_denied": "Destructive commands blocked via tools_denied (rm -rf, git push --force, DROP TABLE)"
|
|
91
|
+
- "Security Notes": "See Security Notes section for safety guarantees"
|
|
93
92
|
operational:
|
|
94
|
-
- "
|
|
95
|
-
- "/context-restore": "Restore sprint context on resume"
|
|
93
|
+
- "sprint-state.json": "Native sprint state persistence + --resume-from for context restore"
|
|
96
94
|
tools_allowed:
|
|
97
95
|
- "Bash(git, gh, npm, node)" # git worktree/branch/commit, gh PR/release, npm/node CLI
|
|
98
96
|
- "Read" # read project files, configs, docs
|
|
@@ -101,7 +99,7 @@ tools_allowed:
|
|
|
101
99
|
- "Glob" # find project files by pattern
|
|
102
100
|
- "Grep" # search file contents
|
|
103
101
|
- "Task" # delegate to subagents (quick, deep, unspecified-high)
|
|
104
|
-
- "Skill" # invoke integrated skills (
|
|
102
|
+
- "Skill" # invoke integrated skills (grill-with-docs, batch-grill-me, delphi-review, to-issues, etc.)
|
|
105
103
|
- "TodoWrite" # track sprint progress
|
|
106
104
|
- "Question" # ask user at decision gates
|
|
107
105
|
tools_denied:
|
|
@@ -167,15 +165,15 @@ PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE
|
|
|
167
165
|
| Phase | Name | Key Actions | Output |
|
|
168
166
|
|-------|------|-------------|--------|
|
|
169
167
|
| 1/6 | PREP | Detect protected branch → Create git worktree → AUTO-ESTIMATE sizing → Classify (lightweight/standard/complex) | Worktree path + impact assessment |
|
|
170
|
-
| 2/6 | DESIGN | CONTEXT.md 预检 (#322) →
|
|
171
|
-
| 3/6 | BUILD | GITHOOKS-GATE → DELPHI-GATE → ralph-loop (default) or parallel → TDD →
|
|
172
|
-
| 4/6 | VERIFY | delphi-review --mode code-walkthrough → test-specification-alignment →
|
|
173
|
-
| 5/6 | SHIP | VERSION-GATE →
|
|
174
|
-
| 6/6 | CLOSE | SHIP→CLOSE GATE (merge verified) → Backup sprint-state → USER ACCEPTANCE (⚠️ mandatory manual) → Capture emergent issues → Cleanup worktree + branch | Emergent issues list + cleanup report |
|
|
168
|
+
| 2/6 | DESIGN | CONTEXT.md 预检 (#322) → grill-with-docs → R1 需求评审 → 设计文档+APPROVAL (HARD-GATE) → batch-grill-me → R2 delphi-review (≥90% consensus) → to-issues → specification.yaml | specification.yaml + slices-manifest.json + requirements-reviewed.json |
|
|
169
|
+
| 3/6 | BUILD | BUILD-ENTRY-CONTRACT → GITHOOKS-GATE → DELPHI-GATE → ralph-loop (default) or parallel → TDD → blind-review (read-only subagent) → verification | MVP code |
|
|
170
|
+
| 4/6 | VERIFY | delphi-review --mode code-walkthrough → test-specification-alignment (#367 HARD-GATE) → xp-gate check --all → browser (Layer 4) → learnings + xp-gate retro | Review report + feedback-log.md + test-alignment-report.json |
|
|
171
|
+
| 5/6 | SHIP | VERSION-GATE → 分支完成决策 (4选项) → native ship (create PR) → native land (merge + CI + canary) | PR URL + deploy status + merge confirmation |
|
|
172
|
+
| 6/6 | CLOSE | SHIP→CLOSE GATE (merge verified) → Backup sprint-state → #369 返工指标 → USER ACCEPTANCE (⚠️ mandatory manual) → Capture emergent issues → Cleanup worktree + branch | Emergent issues list + cleanup report + metrics |
|
|
175
173
|
|
|
176
174
|
**Hard Gates**:
|
|
177
|
-
- **DESIGN → BUILD**:
|
|
178
|
-
- **VERIFY → SHIP**: feedback-log.md must exist (HARD-GATE)
|
|
175
|
+
- **DESIGN → BUILD**: R1 需求评审 APPROVED + 设计文档用户 APPROVED + R2 delphi-review APPROVED (≥90% consensus) + GITHOOKS-GATE + DELPHI-GATE + BUILD-ENTRY-CONTRACT (manifest schema + slice↔REQ)
|
|
176
|
+
- **VERIFY → SHIP**: feedback-log.md must exist + test-alignment-report.json PASS (#367 程序化 HARD-GATE)
|
|
179
177
|
- **SHIP → CLOSE**: PR must be merged to main + release completed (HARD-GATE)
|
|
180
178
|
|
|
181
179
|
---
|
|
@@ -282,9 +280,11 @@ next_phase_context: [key info for next phase]
|
|
|
282
280
|
|
|
283
281
|
| 门禁 | 位置 | 条件 | 失败处理 |
|
|
284
282
|
|------|------|------|----------|
|
|
283
|
+
| BUILD-ENTRY-CONTRACT | Phase 2→3 | slices-manifest.json schema 合法 + slice↔REQ 一致 | BLOCK,返回 Phase 2 修复 |
|
|
285
284
|
| GITHOOKS-GATE | Phase 2→3 | hooks 已安装且可执行 | 自动修复 (`xp-gate doctor --fix`),失败则 BLOCK |
|
|
286
|
-
| DELPHI-GATE | Phase 2→3 | delphi-review APPROVED (≥90%) | 重新设计或用户覆盖(记录原因) |
|
|
285
|
+
| DELPHI-GATE | Phase 2→3 | R2 delphi-review APPROVED (≥90%) | 重新设计或用户覆盖(记录原因) |
|
|
287
286
|
| VERSION-GATE | Phase 4→5 | VERSION 文件与 package.json 一致 | 执行 `node scripts/sync-version.cjs` |
|
|
287
|
+
| #367 EVIDENCE-GATE | Phase 4→5 | test-alignment-report.json PASS + head_commit + spec_hash | BLOCK(--skip-evidence 需 --reason,≤2 次/sprint) |
|
|
288
288
|
| SHIP→CLOSE GATE | Phase 5→6 | PR 已合并 + release 完成 | BLOCK,等待合并确认 |
|
|
289
289
|
| feedback-log GATE | Phase 4→5 | feedback-log.md 存在 | BLOCK,必须完成 VERIFY |
|
|
290
290
|
|
|
@@ -296,11 +296,11 @@ next_phase_context: [key info for next phase]
|
|
|
296
296
|
|
|
297
297
|
| Phase | 参考文件 | 核心 Skill 链 |
|
|
298
298
|
|-------|----------|---------------|
|
|
299
|
-
| 2/6 DESIGN | `@references/phase-2-design.md` | CONTEXT.md 预检 →
|
|
300
|
-
| 3/6 BUILD | `@references/phase-3-build.md` | GITHOOKS-GATE → DELPHI-GATE → ralph-loop (TDD) →
|
|
301
|
-
| 4/6 VERIFY | `@references/phase-4-verify.md` | delphi code-walkthrough → test-spec-alignment →
|
|
302
|
-
| 5/6 SHIP | `@references/phase-5-ship.md` | VERSION-GATE →
|
|
303
|
-
| 6/6 CLOSE | `@references/phase-6-close.md` | SHIP→CLOSE GATE → backup → USER ACCEPTANCE → emergent → cleanup |
|
|
299
|
+
| 2/6 DESIGN | `@references/phase-2-design.md` | CONTEXT.md 预检 → grill-with-docs → R1 需求评审 → 设计文档+APPROVAL → batch-grill-me → R2 delphi-review → to-issues |
|
|
300
|
+
| 3/6 BUILD | `@references/phase-3-build.md` | BUILD-ENTRY-CONTRACT → GITHOOKS-GATE → DELPHI-GATE → ralph-loop (TDD) → blind-review (read-only subagent) |
|
|
301
|
+
| 4/6 VERIFY | `@references/phase-4-verify.md` | delphi code-walkthrough → test-spec-alignment (#367) → xp-gate check --all → browser (Layer 4) → learnings + retro |
|
|
302
|
+
| 5/6 SHIP | `@references/phase-5-ship.md` | VERSION-GATE → 分支完成决策 (4选项) → native ship (PR) → native land (merge+CI+canary) |
|
|
303
|
+
| 6/6 CLOSE | `@references/phase-6-close.md` | SHIP→CLOSE GATE → backup → #369 返工指标 → USER ACCEPTANCE → emergent → cleanup |
|
|
304
304
|
|
|
305
305
|
**路径约定**:`@references/` 和 `@templates/` 相对于 skill 目录(`skills/sprint-flow/`)解析。
|
|
306
306
|
|
|
@@ -321,7 +321,7 @@ next_phase_context: [key info for next phase]
|
|
|
321
321
|
| Route Q&A, explanation, or code-search requests to sprint-flow | Only trigger for explicit feature development/implementation requests |
|
|
322
322
|
| Skip Phase 1/6 PREP isolation, edit directly on main/master/develop | Default: create worktree; only bypass with `--no-isolate` or `--force` + user confirmation |
|
|
323
323
|
| Skip AUTO-ESTIMATE and apply full heavy pipeline blindly | Evaluate lightweight/standard/complex first, follow recommended or user-confirmed flow |
|
|
324
|
-
| Skip Delphi review in DESIGN, go straight to BUILD | All requirement levels (lightweight/standard/complex) must pass
|
|
324
|
+
| Skip Delphi review in DESIGN, go straight to BUILD | All requirement levels (lightweight/standard/complex) must pass R1 需求评审 + R2 delphi-review; APPROVED before coding |
|
|
325
325
|
| Skip TDD, implement code directly | Phase 3/6 BUILD must follow RED → GREEN → REFACTOR; tests and implementation delivered together |
|
|
326
326
|
| Skip user acceptance, go straight to Ship | Phase 6/6 CLOSE USER ACCEPTANCE must be manual; never automate, skip, or fake |
|
|
327
327
|
| Enter CLOSE without SHIP completing merge to main | Phase 5/6 SHIP must complete merge to main + release before entering Phase 6/6 CLOSE; otherwise worktree cleanup leaves residue + UAT reviews unmerged code |
|
|
@@ -408,4 +408,4 @@ stateDiagram-v2
|
|
|
408
408
|
|
|
409
409
|
## 底层 Skills 保持独立
|
|
410
410
|
|
|
411
|
-
所有被调用的 Skills 独立可用:`delphi-review` (单独评审), `test-driven-development` (TDD),sprint-flow 仅自动串联
|
|
411
|
+
所有被调用的 Skills 独立可用:`delphi-review` (单独评审), `test-driven-development` (TDD), `grill-with-docs` (需求访谈), `batch-grill-me` (批量决策), `to-issues` (切片拆分),sprint-flow 仅自动串联
|
|
@@ -73,7 +73,7 @@ ralph-loop 内部分类:
|
|
|
73
73
|
- `permanent`: 跨 REQ 持久化(通用约束、模式)
|
|
74
74
|
- `contextual`: 当前 REQ 生命周期内有效
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
learnings.md 写入分类: permanent / contextual 通过 `.sprint-history/learnings.md` 持久化(原生,替代原 gstack/learn)。
|
|
77
77
|
|
|
78
78
|
---
|
|
79
79
|
|
|
@@ -61,7 +61,7 @@ Phase 6: SHIP → finishing-a-development-branch → canary → Sprint Summary
|
|
|
61
61
|
| `CIRCUIT_BREAKER_TRIGGERED` | sprint-flow 编排层监控成本,超阈值 BLOCK + 用户决策 |
|
|
62
62
|
| `ROLLBACK_TO_ROUND1` | verification-before-completion 失败 → 修复 max 3 次 → 仍失败 BLOCK |
|
|
63
63
|
| `GATE1_FAILED`/`GATE1_COMPLETE` | verification-before-completion 内置此区分 |
|
|
64
|
-
| `GATE2_RUNNING` | `
|
|
64
|
+
| `GATE2_RUNNING` | `xp-gate check --all`(Gate 7/8/9)— Phase 1-6 安全审计 |
|
|
65
65
|
|
|
66
66
|
---
|
|
67
67
|
|
|
@@ -15,15 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
| Skill | 来源 | 触发条件 | 输出 |
|
|
17
17
|
|-------|------|---------|------|
|
|
18
|
-
| `
|
|
18
|
+
| `grill-with-docs` | Matt Pocock (内置) | CONTEXT.md 不存在时(首个 Skill) | 访谈记录 + CONTEXT.md + ADR |
|
|
19
|
+
| `delphi-review --mode requirements` | xp-gate | R1 需求评审(轻量 2 专家 1 轮) | requirements-reviewed.json |
|
|
20
|
+
| 原生设计文档生成 | sprint-flow 编排层 | R1 APPROVED 后 | docs/plans/YYYY-MM-DD-<topic>-design.md |
|
|
19
21
|
| **硬闸门** | — | 设计未批准 → 停止 | 禁止进入 Plan |
|
|
20
22
|
|
|
21
23
|
### Phase 1: PLAN
|
|
22
24
|
|
|
23
25
|
| Skill | 来源 | 触发条件 | 条件分支 |
|
|
24
26
|
|-------|------|---------|---------|
|
|
25
|
-
| `
|
|
26
|
-
| `delphi-review` | xp-gate |
|
|
27
|
+
| `batch-grill-me` | Matt Pocock (内置) | 标准路径(change_type != "修改已存在代码") | 批量前置决策 |
|
|
28
|
+
| `delphi-review` | xp-gate | R2 设计评审;lightweight 路径使用 2 专家 1 轮 | 必须产生 `.sprint-state/delphi-reviewed.json` 且 verdict=APPROVED |
|
|
27
29
|
| `to-issues` | xp-gate | delphi-review APPROVED 后 | 拆解为垂直切片 → slices-manifest.json |
|
|
28
30
|
|
|
29
31
|
### Phase 2: BUILD
|
|
@@ -31,22 +33,22 @@
|
|
|
31
33
|
| 步骤 | Skill | 来源 | 参数注入 |
|
|
32
34
|
|------|-------|------|---------|
|
|
33
35
|
| -1 | `hooks-install` | githooks | 无 |
|
|
34
|
-
| 0 |
|
|
35
|
-
| 1 | `test-driven-development` |
|
|
36
|
-
| 2 |
|
|
37
|
-
| 3 |
|
|
38
|
-
| 4 |
|
|
39
|
-
| 5 |
|
|
40
|
-
| 6 |
|
|
41
|
-
| 7 | 成本监控 | sprint-flow 编排层 | token 阈值 |
|
|
36
|
+
| 0 | BUILD-ENTRY-CONTRACT | xp-gate CLI | slices-manifest.json schema + slice↔REQ 校验 |
|
|
37
|
+
| 1 | `test-driven-development` | xp-gate (内置) | `--lang` 注入对应 TDD skill |
|
|
38
|
+
| 2 | ralph-loop / parallel dispatch | sprint-flow 编排层 | 隔离 session,review checkpoint |
|
|
39
|
+
| 3 | blind-review (read-only subagent) | sprint-flow 编排层 | tools: [Read, Grep, Glob] |
|
|
40
|
+
| 4 | verification-before-completion | sprint-flow 编排层 | 运行测试 + lint |
|
|
41
|
+
| 5 | 成本监控 | sprint-flow 编排层 | token 阈值 |
|
|
42
|
+
| 6 | learnings.md 写入 | sprint-flow 编排层 | 原生文件写入 |
|
|
42
43
|
|
|
43
44
|
### Phase 3: REVIEW
|
|
44
45
|
|
|
45
46
|
| Skill | 模式 | 触发条件 |
|
|
46
47
|
|-------|------|---------|
|
|
47
48
|
| `delphi-review` | `--mode code-walkthrough` | 强制调用 |
|
|
48
|
-
| `test-specification-alignment` | 默认 |
|
|
49
|
-
| `
|
|
49
|
+
| `test-specification-alignment` | 默认 | 强制调用(#367 程序化 HARD-GATE) |
|
|
50
|
+
| `xp-gate check --all` | 全量门禁 | 强制调用 |
|
|
51
|
+
| 浏览器验证 | Layer 4 可选链 | gstack browse > browser-use MCP > SKIP |
|
|
50
52
|
| `k6`/`locust`/`gatling` | 性能测试 | `--with-performance` 或 `--type backend-*` |
|
|
51
53
|
|
|
52
54
|
### Phase 4: USER ACCEPTANCE
|
|
@@ -59,18 +61,17 @@
|
|
|
59
61
|
|
|
60
62
|
| Skill | 来源 | 说明 |
|
|
61
63
|
|-------|------|------|
|
|
62
|
-
|
|
|
63
|
-
| `retro` |
|
|
64
|
-
|
|
|
64
|
+
| learnings.md 写入 | 原生 | 模式记录(替代原 gstack learn) |
|
|
65
|
+
| `xp-gate retro` | 原生 CLI | 工程回顾(含 #369 返工率区块) |
|
|
66
|
+
| systematic-debugging | Layer 4 可选 | 根因调试(如已安装;否则"无根因不修复"文本纪律) |
|
|
65
67
|
|
|
66
68
|
### Phase 6: SHIP
|
|
67
69
|
|
|
68
70
|
| Skill | 说明 |
|
|
69
71
|
|-------|------|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
| `canary` | 监控告警 |
|
|
72
|
+
| 分支完成决策(原生 4 选项) | merge / PR / keep / discard |
|
|
73
|
+
| native ship 步骤 | test → VERSION-GATE → commit → push → gh pr create |
|
|
74
|
+
| native land 步骤 | merge 确认 → wait CI → canary → fail git revert |
|
|
74
75
|
|
|
75
76
|
---
|
|
76
77
|
|
|
@@ -16,14 +16,13 @@
|
|
|
16
16
|
| 步骤 | Skill | 来源 | 说明 |
|
|
17
17
|
|------|-------|------|------|
|
|
18
18
|
| -1 | `hooks-install` | githooks | `githooks/verify.sh` → 缺失则 `githooks/install.sh` |
|
|
19
|
-
| 0 |
|
|
20
|
-
| 1 | `test-driven-development` |
|
|
21
|
-
| 2 |
|
|
22
|
-
| 3 |
|
|
23
|
-
| 4 |
|
|
24
|
-
| 5 |
|
|
25
|
-
| 6 |
|
|
26
|
-
| 7 | 成本监控 | sprint-flow 编排层 | 超阈值 BLOCK |
|
|
19
|
+
| 0 | BUILD-ENTRY-CONTRACT | xp-gate CLI | slices-manifest.json schema + slice↔REQ 校验 |
|
|
20
|
+
| 1 | `test-driven-development` | xp-gate (内置) | RED → GREEN → REFACTOR |
|
|
21
|
+
| 2 | ralph-loop / parallel dispatch | sprint-flow 编排层 | 隔离 session,review checkpoint |
|
|
22
|
+
| 3 | blind-review (read-only subagent) | sprint-flow 编排层 | tools: [Read, Grep, Glob],只读盲评 |
|
|
23
|
+
| 4 | verification-before-completion | sprint-flow 编排层 | 测试 + lint |
|
|
24
|
+
| 5 | 成本监控 | sprint-flow 编排层 | 超阈值 BLOCK |
|
|
25
|
+
| 6 | learnings.md 写入 | sprint-flow 编排层 | 原生模式记录 |
|
|
27
26
|
|
|
28
27
|
### GITHOOKS-GATE (Phase 1→2 闸门)
|
|
29
28
|
|
|
@@ -46,8 +45,9 @@
|
|
|
46
45
|
| Skill | 模式 | 说明 |
|
|
47
46
|
|-------|------|------|
|
|
48
47
|
| `delphi-review` | `--mode code-walkthrough` | 多专家匿名代码走查 |
|
|
49
|
-
| `test-specification-alignment` | 默认 | 测试与 Spec
|
|
50
|
-
| `
|
|
48
|
+
| `test-specification-alignment` | 默认 | 测试与 Spec 对齐验证(#367 程序化 HARD-GATE) |
|
|
49
|
+
| `xp-gate check --all` | 全量门禁 | Gate 0–9 含安全审计 |
|
|
50
|
+
| 浏览器验证 | Layer 4 可选链 | gstack browse > browser-use MCP > SKIP |
|
|
51
51
|
| `k6` / `locust` / `gatling` | 可选 | 后端负载测试 |
|
|
52
52
|
|
|
53
53
|
---
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
|
|
57
57
|
| Skill | 说明 |
|
|
58
58
|
|-------|------|
|
|
59
|
-
|
|
|
60
|
-
| `retro` |
|
|
61
|
-
|
|
|
59
|
+
| learnings.md 写入 | 原生模式记录(替代原 gstack learn) |
|
|
60
|
+
| `xp-gate retro` | 原生工程回顾(含 #369 返工率区块) |
|
|
61
|
+
| systematic-debugging | Layer 4 可选,根因调试(如已安装) |
|
|
62
62
|
|
|
63
63
|
---
|
|
64
64
|
|
|
@@ -66,10 +66,9 @@
|
|
|
66
66
|
|
|
67
67
|
| Skill | 说明 |
|
|
68
68
|
|-------|------|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
| `canary` | 监控告警 |
|
|
69
|
+
| 分支完成决策(原生 4 选项) | merge / PR / keep / discard |
|
|
70
|
+
| native ship 步骤 | test → VERSION-GATE → commit → push → gh pr create |
|
|
71
|
+
| native land 步骤 | merge 确认 → wait CI → canary → fail git revert |
|
|
73
72
|
|
|
74
73
|
---
|
|
75
74
|
|
|
@@ -77,12 +76,12 @@
|
|
|
77
76
|
|
|
78
77
|
| Phase | Backend (default) | Web Frontend | Mobile |
|
|
79
78
|
|-------|------------------|-------------|--------|
|
|
80
|
-
| Phase 0 (THINK) | `
|
|
81
|
-
| Phase 1 (PLAN) | `
|
|
82
|
-
| Phase 2 (BUILD) | TDD + blind-review | (同 backend) | + `vercel-react-native-skills` / `flutter-review` |
|
|
83
|
-
| Phase 3 (REVIEW) | `delphi-review --mode code-walkthrough`
|
|
84
|
-
| Phase 5 (FEEDBACK) |
|
|
85
|
-
| Phase 6 (SHIP) |
|
|
79
|
+
| Phase 0 (THINK) | `grill-with-docs` + R1 `delphi-review --mode requirements` | (同) | (同) |
|
|
80
|
+
| Phase 1 (PLAN) | `batch-grill-me` + R2 `delphi-review` | + OPTIONAL `design-shotgun` | (同 web) |
|
|
81
|
+
| Phase 2 (BUILD) | TDD + blind-review (read-only subagent) | (同 backend) | + `vercel-react-native-skills` / `flutter-review` |
|
|
82
|
+
| Phase 3 (REVIEW) | `delphi-review --mode code-walkthrough` + `xp-gate check --all` | + `xp-gate ui-review` + OPTIONAL qa/design-review/benchmark | `flutter-test` / `detox E2E` |
|
|
83
|
+
| Phase 5 (FEEDBACK) | learnings.md + `xp-gate retro` | (同) | (同) |
|
|
84
|
+
| Phase 6 (SHIP) | 原生 4 选项 + native ship + native land | (同) | + platform deploy |
|
|
86
85
|
|
|
87
86
|
---
|
|
88
87
|
|
|
@@ -29,30 +29,32 @@
|
|
|
29
29
|
| Phase | 名称 | Subagent? | Category | load_skills | 执行者 |
|
|
30
30
|
|-------|------|:---------:|----------|-------------|--------|
|
|
31
31
|
| 1/6 | PREP | ❌ | Bash(直接执行) | 无 | orchestrator |
|
|
32
|
-
| 2/6 | DESIGN | ❌ | orchestrator(直接执行) | `["
|
|
32
|
+
| 2/6 | DESIGN | ❌ | orchestrator(直接执行) | `["grill-with-docs", "batch-grill-me", "delphi-review", "to-issues"]` | orchestrator |
|
|
33
33
|
| 3/6 | BUILD | ✅ | ralph-loop | `["test-driven-development"]` | subagent |
|
|
34
|
-
| 4/6 | VERIFY | ❌ | orchestrator(直接执行) | `["delphi-review", "test-specification-alignment"
|
|
35
|
-
| 5/6 | SHIP | ❌ | orchestrator(直接执行) |
|
|
34
|
+
| 4/6 | VERIFY | ❌ | orchestrator(直接执行) | `["delphi-review", "test-specification-alignment"]` | orchestrator |
|
|
35
|
+
| 5/6 | SHIP | ❌ | orchestrator(直接执行) | 无(原生步骤) | orchestrator |
|
|
36
36
|
| 6/6 | CLOSE | ❌ | **强制人工 (UAT)** + Bash (CLEANUP) | 无 | 用户 + orchestrator |
|
|
37
37
|
|
|
38
38
|
**⚠️ 交互式 skill 必须由 orchestrator 直接执行(不可 dispatch 到 subagent)**:
|
|
39
39
|
|
|
40
40
|
| Phase | Skill | 为什么不能在 subagent 中执行 |
|
|
41
41
|
|-------|-------|---------------------------|
|
|
42
|
-
| 2/6 | `
|
|
43
|
-
| 2/6 | `
|
|
42
|
+
| 2/6 | `grill-with-docs` | 需要与用户对话确认需求、提出澄清问题。Subagent 是 fire-and-forget 模式,无法暂停等待用户输入(Issue #217) |
|
|
43
|
+
| 2/6 | `batch-grill-me` | 批量决策节点暂停等待用户确认。必须由 orchestrator 直接执行 |
|
|
44
44
|
| 2/6 | `delphi-review` | design 模式需等待 verdict APPROVED;非 APPROVED 时需用户确认是否接受分歧方案(Issue #249) |
|
|
45
45
|
| 2/6 | `to-issues` | Step 6 "向用户确认" — 展示拆分结果,等待用户批准后才生成 slices-manifest.json |
|
|
46
46
|
| 4/6 | `delphi-review --mode code-walkthrough` | Code walkthrough 非 APPROVED 时需暂停等待用户处理 Critical Issues(Issue #249) |
|
|
47
|
-
| 5/6 |
|
|
48
|
-
| 5/6 |
|
|
49
|
-
| 5/6 |
|
|
47
|
+
| 5/6 | 分支完成决策 | 4 选项菜单 (merge/PR/keep/discard) 需要用户选择;Option 4 (discard) 要求 typed confirmation |
|
|
48
|
+
| 5/6 | native ship | PR 创建前需要用户确认 |
|
|
49
|
+
| 5/6 | native land | Merge 确认、rollback 决策 — 均为用户交互点 |
|
|
50
50
|
|
|
51
51
|
**Phase 2/6 DESIGN 执行模式(全部 orchestrator 直接执行)**:
|
|
52
|
-
1. **Orchestrator 直接执行
|
|
53
|
-
2. **Orchestrator
|
|
54
|
-
3. **Orchestrator
|
|
55
|
-
4. **Orchestrator 直接执行
|
|
52
|
+
1. **Orchestrator 直接执行 grill-with-docs**:`skill(name="grill-with-docs")` → 访谈 + CONTEXT.md/ADR
|
|
53
|
+
2. **Orchestrator 执行 R1 需求评审**:`npx xp-gate delphi-review --mode requirements` → requirements-reviewed.json
|
|
54
|
+
3. **Orchestrator 生成设计文档** → 等待用户 APPROVED
|
|
55
|
+
4. **Orchestrator 直接执行 batch-grill-me**:`skill(name="batch-grill-me")` → 批量决策确认
|
|
56
|
+
5. **Orchestrator 直接执行 R2 delphi-review**:`skill(name="delphi-review")` → 等待 APPROVED
|
|
57
|
+
6. **Orchestrator 直接执行 to-issues**:`skill(name="to-issues")` → 等待用户确认 Issue 拆分
|
|
56
58
|
|
|
57
59
|
**上下文隔离原则**:
|
|
58
60
|
- 每个 Subagent 在**独立 session** 中启动,不继承 orchestrator 的对话历史
|