@boyingliu01/xp-gate 0.8.9 → 0.8.10
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/lib/init.js +36 -0
- package/mock-policy/AGENTS.md +94 -0
- package/mock-policy/__tests__/config.test.ts +292 -0
- package/mock-policy/__tests__/integration.test.ts +600 -0
- package/mock-policy/__tests__/mock-decision-engine.test.ts +231 -0
- package/mock-policy/__tests__/scope-scanner.test.ts +535 -0
- package/mock-policy/config.ts +106 -0
- package/mock-policy/gate-m3.ts +233 -0
- package/mock-policy/mock-decision-engine.ts +155 -0
- package/mock-policy/schema.ts +22 -0
- package/mock-policy/scope-scanner.ts +288 -0
- package/mock-policy/types.ts +65 -0
- package/mutation/AGENTS.md +73 -0
- package/mutation/__tests__/detect-ai-test.test.ts +152 -0
- package/mutation/__tests__/gate-m.test.ts +194 -0
- package/mutation/detect-ai-test.ts +128 -0
- package/mutation/gate-m.ts +619 -0
- package/mutation/init-baseline.ts +192 -0
- package/mutation/stryker-types.ts +14 -0
- package/mutation/types.ts +70 -0
- package/mutation/update-baseline.ts +160 -0
- package/package.json +5 -2
- package/plugins/claude-code/.claude-plugin/plugin.json +2 -2
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +7 -7
- package/plugins/claude-code/skills/delphi-review/INSTALL.md +1 -1
- package/plugins/claude-code/skills/delphi-review/SKILL.md +12 -12
- package/plugins/claude-code/skills/delphi-review/references/code-walkthrough.md +1 -1
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +7 -7
- package/plugins/claude-code/skills/sprint-flow/SKILL.md +1 -1
- package/plugins/claude-code/skills/sprint-flow/references/force-levels.md +1 -1
- package/plugins/claude-code/skills/sprint-flow/references/phase-3-review.md +2 -2
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +3 -3
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +7 -7
- package/plugins/opencode/skills/delphi-review/INSTALL.md +1 -1
- package/plugins/opencode/skills/delphi-review/SKILL.md +12 -12
- package/plugins/opencode/skills/delphi-review/references/code-walkthrough.md +1 -1
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +7 -7
- package/plugins/opencode/skills/sprint-flow/SKILL.md +1 -1
- package/plugins/opencode/skills/sprint-flow/references/force-levels.md +1 -1
- package/plugins/opencode/skills/sprint-flow/references/phase-3-review.md +2 -2
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +3 -3
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +7 -7
- package/plugins/qoder/skills/delphi-review/INSTALL.md +1 -1
- package/plugins/qoder/skills/delphi-review/SKILL.md +12 -12
- package/plugins/qoder/skills/delphi-review/references/code-walkthrough.md +1 -1
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +7 -7
- package/plugins/qoder/skills/sprint-flow/SKILL.md +51 -1
- package/plugins/qoder/skills/sprint-flow/references/force-levels.md +1 -1
- package/plugins/qoder/skills/sprint-flow/references/phase-3-review.md +2 -2
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +3 -3
- package/principles/AGENTS.md +111 -0
- package/principles/__tests__/analyzer.test.ts +343 -0
- package/principles/__tests__/baseline-storage.test.ts +187 -0
- package/principles/__tests__/baseline.test.ts +328 -0
- package/principles/__tests__/boy-scout-integration.test.ts +264 -0
- package/principles/__tests__/boy-scout.test.ts +646 -0
- package/principles/__tests__/config.test.ts +78 -0
- package/principles/__tests__/index.test.ts +81 -0
- package/principles/__tests__/lint-baseline.test.ts +314 -0
- package/principles/__tests__/reporter.test.ts +832 -0
- package/principles/__tests__/types.test.ts +101 -0
- package/principles/adapters/__tests__/base.test.ts +95 -0
- package/principles/adapters/__tests__/cpp.test.ts +290 -0
- package/principles/adapters/__tests__/dart.test.ts +84 -0
- package/principles/adapters/__tests__/go.test.ts +68 -0
- package/principles/adapters/__tests__/java.test.ts +68 -0
- package/principles/adapters/__tests__/kotlin.test.ts +76 -0
- package/principles/adapters/__tests__/objectivec.test.ts +453 -0
- package/principles/adapters/__tests__/python.test.ts +84 -0
- package/principles/adapters/__tests__/swift.test.ts +68 -0
- package/principles/adapters/__tests__/typescript.test.ts +116 -0
- package/principles/adapters/base.ts +124 -0
- package/principles/adapters/cpp.ts +115 -0
- package/principles/adapters/dart.ts +44 -0
- package/principles/adapters/go.ts +55 -0
- package/principles/adapters/java.ts +56 -0
- package/principles/adapters/kotlin.ts +54 -0
- package/principles/adapters/objectivec.ts +82 -0
- package/principles/adapters/python.ts +83 -0
- package/principles/adapters/swift.ts +40 -0
- package/principles/adapters/typescript.ts +66 -0
- package/principles/analyzer.ts +190 -0
- package/principles/baseline.ts +273 -0
- package/principles/boy-scout.ts +416 -0
- package/principles/config.ts +118 -0
- package/principles/index.ts +87 -0
- package/principles/lint-baseline.ts +385 -0
- package/principles/reporter.ts +188 -0
- package/principles/rules/__tests__/clean-code/code-duplication.test.ts +84 -0
- package/principles/rules/__tests__/clean-code/deep-nesting.test.ts +74 -0
- package/principles/rules/__tests__/clean-code/god-class.test.ts +111 -0
- package/principles/rules/__tests__/clean-code/large-file.test.ts +73 -0
- package/principles/rules/__tests__/clean-code/long-function.test.ts +83 -0
- package/principles/rules/__tests__/clean-code/magic-numbers.test.ts +68 -0
- package/principles/rules/__tests__/clean-code/many-exports.test.ts +118 -0
- package/principles/rules/__tests__/clean-code/missing-error-handling.test.ts +173 -0
- package/principles/rules/__tests__/clean-code/too-many-params.test.ts +60 -0
- package/principles/rules/__tests__/clean-code/unused-imports.test.ts +107 -0
- package/principles/rules/__tests__/index.test.ts +49 -0
- package/principles/rules/__tests__/solid/dip.test.ts +121 -0
- package/principles/rules/__tests__/solid/isp.test.ts +60 -0
- package/principles/rules/__tests__/solid/lsp.test.ts +184 -0
- package/principles/rules/__tests__/solid/ocp.test.ts +69 -0
- package/principles/rules/__tests__/solid/srp.test.ts +89 -0
- package/principles/rules/clean-code/code-duplication.ts +31 -0
- package/principles/rules/clean-code/deep-nesting.ts +38 -0
- package/principles/rules/clean-code/god-class.ts +54 -0
- package/principles/rules/clean-code/large-file.ts +34 -0
- package/principles/rules/clean-code/long-function.ts +47 -0
- package/principles/rules/clean-code/magic-numbers.ts +59 -0
- package/principles/rules/clean-code/many-exports.ts +40 -0
- package/principles/rules/clean-code/missing-error-handling.ts +33 -0
- package/principles/rules/clean-code/too-many-params.ts +35 -0
- package/principles/rules/clean-code/unused-imports.ts +33 -0
- package/principles/rules/index.ts +61 -0
- package/principles/rules/solid/dip.ts +47 -0
- package/principles/rules/solid/isp.ts +37 -0
- package/principles/rules/solid/lsp.ts +79 -0
- package/principles/rules/solid/ocp.ts +40 -0
- package/principles/rules/solid/srp.ts +44 -0
- package/principles/types.ts +27 -0
- package/skills/delphi-review/AGENTS.md +7 -7
- package/skills/delphi-review/INSTALL.md +1 -1
- package/skills/delphi-review/SKILL.md +12 -12
- package/skills/delphi-review/references/code-walkthrough.md +1 -1
- package/skills/sprint-flow/AGENTS.md +7 -7
- package/skills/sprint-flow/SKILL.md +1 -1
- package/skills/sprint-flow/references/force-levels.md +1 -1
- package/skills/sprint-flow/references/phase-3-review.md +2 -2
- package/skills/test-specification-alignment/AGENTS.md +3 -3
|
@@ -98,7 +98,7 @@ AUTO-ESTIMATE 输出 → Force Levels 执行 → 自动升级机制(如触发
|
|
|
98
98
|
|
|
99
99
|
| 场景 | DELPHI-GATE | Force Levels |
|
|
100
100
|
|------|------------|-------------|
|
|
101
|
-
| Phase 1 设计评审 | 3 专家、≥
|
|
101
|
+
| Phase 1 设计评审 | 3 专家、≥90% 共识、生成 specification.yaml | 不适用(设计阶段) |
|
|
102
102
|
| Phase 2 BUILD 入口 | **必须检查** `.sprint-state/delphi-reviewed.json` 中 `verdict=APPROVED` | 轻量/标准/复杂:通过对应强度的 delphi-review 生成该门禁文件 |
|
|
103
103
|
| 轻量级评审 | 生成 `delphi-reviewed.json`(2 专家、1 轮、2/2 批准) | 2 专家、1 轮、写入门禁文件 |
|
|
104
104
|
| 标准级评审 | 生成 `delphi-reviewed.json`(2 专家、最多 2 轮、2/2 批准) | 2 专家、最多 2 轮、写入门禁文件 |
|
|
@@ -11,7 +11,7 @@ Web 前端项目额外增加:系统化 QA、视觉审计、性能基线。
|
|
|
11
11
|
## 调用 Skills
|
|
12
12
|
|
|
13
13
|
**所有项目**:
|
|
14
|
-
- `delphi-review --mode code-walkthrough` — 多专家匿名代码走查(2-3 domestic models,
|
|
14
|
+
- `delphi-review --mode code-walkthrough` — 多专家匿名代码走查(2-3 domestic models, ≥90% consensus)
|
|
15
15
|
- `test-specification-alignment` — 测试与 Spec 对齐验证
|
|
16
16
|
- `browse` (gstack) — 浏览器自动化测试
|
|
17
17
|
|
|
@@ -43,7 +43,7 @@ delphi code-walkthrough 执行:
|
|
|
43
43
|
- Round 1: 匿名独立评审(防止 anchoring bias)
|
|
44
44
|
- Round 2: 交换意见,响应关切
|
|
45
45
|
- Round 3: 最终立场(如需)
|
|
46
|
-
-
|
|
46
|
+
- ≥90% 共识 + APPROVED 才通过
|
|
47
47
|
|
|
48
48
|
**如果 REQUEST_CHANGES**:
|
|
49
49
|
- ⚠️ 暂停等待用户修复 Critical Issues + 处理 Major Concerns
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-06-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-06-14
|
|
4
|
+
**Commit:** e215a50
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.8.
|
|
6
|
+
**Version:** 0.8.10.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-06-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-06-14
|
|
4
|
+
**Commit:** e215a50
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.8.
|
|
6
|
+
**Version:** 0.8.10.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
|
-
Delphi Consensus Review — multi-round anonymous expert review (≥
|
|
9
|
+
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
|
|
10
10
|
|
|
11
11
|
## STRUCTURE
|
|
12
12
|
```
|
|
@@ -30,7 +30,7 @@ skills/delphi-review/
|
|
|
30
30
|
|
|
31
31
|
## CONVENTIONS
|
|
32
32
|
- 3 experts anonymous in Round 1 (no cross-expert bias)
|
|
33
|
-
- ≥
|
|
33
|
+
- ≥90% consensus threshold (was 95%, now unified to 90%)
|
|
34
34
|
- Max 5 rounds before forcing decision
|
|
35
35
|
- Cross-provider required: experts from ≥2 different providers
|
|
36
36
|
- Domestic models only: glm, kimi, minimax, qwen, deepseek
|
|
@@ -39,7 +39,7 @@ skills/delphi-review/
|
|
|
39
39
|
- Code-walkthrough skipped on main/master pushes (by design)
|
|
40
40
|
|
|
41
41
|
## ANTI-PATTERNS (THIS PROJECT)
|
|
42
|
-
- Do NOT terminate before achieving true consensus (≥
|
|
42
|
+
- Do NOT terminate before achieving true consensus (≥90%)
|
|
43
43
|
- Do NOT reveal other experts' opinions during Round 1
|
|
44
44
|
- Do NOT accept partial agreement without resolution
|
|
45
45
|
- Do NOT skip code-walkthrough when over thresholds (BLOCK + user decision)
|
|
@@ -49,7 +49,7 @@ skills/delphi-review/
|
|
|
49
49
|
|
|
50
50
|
## UNIQUE STYLES
|
|
51
51
|
- Anonymous expert reviews (Round 1)
|
|
52
|
-
- Statistical consensus measurement (≥
|
|
52
|
+
- Statistical consensus measurement (≥90% threshold)
|
|
53
53
|
- Two modes: design review + code-walkthrough
|
|
54
54
|
- Pre-push integration: .code-walkthrough-result.json stores commit hash + verdict
|
|
55
55
|
- Delphi guard in claude-code plugin: blocks Edit/Write before APPROVAL
|
|
@@ -96,7 +96,7 @@ The skill requires at least 2 experts for code changes, 3 for architecture decis
|
|
|
96
96
|
| `experts.architecture` | Architecture reviewer configuration | Required |
|
|
97
97
|
| `experts.technical` | Technical reviewer configuration | Required |
|
|
98
98
|
| `experts.feasibility` | Feasibility reviewer configuration | Required for 3-expert mode |
|
|
99
|
-
| `consensus.threshold_percent` | Agreement threshold |
|
|
99
|
+
| `consensus.threshold_percent` | Agreement threshold | 90 |
|
|
100
100
|
| `consensus.max_review_rounds` | Maximum review rounds | 5 |
|
|
101
101
|
| `consensus.cross_provider_required` | Require different providers | true |
|
|
102
102
|
|
|
@@ -9,7 +9,7 @@ description: "Use when asked to review a design, plan, or architecture; before i
|
|
|
9
9
|
|
|
10
10
|
**In Scope:**
|
|
11
11
|
- Multi-round anonymous expert consensus review (design + code-walkthrough modes)
|
|
12
|
-
- 2-3 experts from different providers with statistical consensus (>=
|
|
12
|
+
- 2-3 experts from different providers with statistical consensus (>= 90%)
|
|
13
13
|
- Structured verdict: APPROVED / PASS_WITH_CAVEATS / REQUEST_CHANGES
|
|
14
14
|
- Domestic models only (no Anthropic/OpenAI/Google)
|
|
15
15
|
|
|
@@ -27,7 +27,7 @@ description: "Use when asked to review a design, plan, or architecture; before i
|
|
|
27
27
|
1. **匿名性** — Round 1 专家互不知道对方意见
|
|
28
28
|
2. **迭代** — 多轮直到共识,不是固定轮数
|
|
29
29
|
3. **受控反馈** — 每轮看到其他专家意见
|
|
30
|
-
4. **统计共识** — >=
|
|
30
|
+
4. **统计共识** — >=90% 一致才算共识
|
|
31
31
|
|
|
32
32
|
### 质量优先
|
|
33
33
|
|
|
@@ -95,7 +95,7 @@ description: "Use when asked to review a design, plan, or architecture; before i
|
|
|
95
95
|
|
|
96
96
|
| 阈值 | 说明 |
|
|
97
97
|
|------|------|
|
|
98
|
-
| **>=
|
|
98
|
+
| **>=90%** | 推荐默认 |
|
|
99
99
|
| 100% | 完全一致(更严格) |
|
|
100
100
|
|
|
101
101
|
---
|
|
@@ -105,14 +105,14 @@ description: "Use when asked to review a design, plan, or architecture; before i
|
|
|
105
105
|
```
|
|
106
106
|
Phase 0: 准备 → Round 1: 匿名独立评审 → 共识检查
|
|
107
107
|
│
|
|
108
|
-
├─ 一致 + >=
|
|
108
|
+
├─ 一致 + >=90% + APPROVED → ✅ 完成
|
|
109
109
|
│
|
|
110
|
-
└─ 不一致 或 <
|
|
110
|
+
└─ 不一致 或 <90% 或 REQUEST_CHANGES
|
|
111
111
|
│
|
|
112
112
|
▼
|
|
113
113
|
Round 2: 交换意见 → 共识检查
|
|
114
114
|
│
|
|
115
|
-
├─ 一致 + >=
|
|
115
|
+
├─ 一致 + >=90% + APPROVED → ✅ 完成
|
|
116
116
|
│
|
|
117
117
|
└─ 仍分歧 或 REQUEST_CHANGES
|
|
118
118
|
│
|
|
@@ -248,11 +248,11 @@ This skill activates on any request for multi-expert review. Common triggers:
|
|
|
248
248
|
2. **Dispatch anonymous experts** - 2-3 experts from ≥2 different domestic model providers
|
|
249
249
|
3. **Collect Round 1 independent reviews** - Anonymous, no cross-expert bias
|
|
250
250
|
4. **Synthesize feedback** - Measure consensus, identify disagreements
|
|
251
|
-
5. **Run Round 2+ until consensus** - Exchange opinions, iterate until ≥
|
|
251
|
+
5. **Run Round 2+ until consensus** - Exchange opinions, iterate until ≥90% agreement
|
|
252
252
|
6. **Block on unresolved Critical/Major** - Zero-tolerance: all Critical/Major must be resolved
|
|
253
253
|
7. **Emit verdict** - APPROVED (with specification.yaml) or REQUEST_CHANGES (fix + re-review)
|
|
254
254
|
|
|
255
|
-
**Consensus threshold:** ≥
|
|
255
|
+
**Consensus threshold:** ≥90% (project standard for Delphi review approval)
|
|
256
256
|
**Model policy:** Domestic models only (DeepSeek, Qwen, Kimi, GLM, MiniMax). Foreign models (Anthropic/OpenAI/Google) forbidden.
|
|
257
257
|
|
|
258
258
|
---
|
|
@@ -340,7 +340,7 @@ Every review round output MUST follow this exact JSON structure for design mode:
|
|
|
340
340
|
- [ ] Round 2+ 完成(交换意见 / 最终立场)
|
|
341
341
|
|
|
342
342
|
**CRITICAL — 共识验证:**
|
|
343
|
-
- [ ] 问题共识比例 >=
|
|
343
|
+
- [ ] 问题共识比例 >=90%
|
|
344
344
|
- [ ] 所有 Critical Issues 已解决
|
|
345
345
|
- [ ] 所有 Major Concerns 已处理
|
|
346
346
|
|
|
@@ -422,7 +422,7 @@ Every review round output MUST follow this exact JSON structure for design mode:
|
|
|
422
422
|
| 只处理 Critical,忽略 Major | 零容忍:Critical/Major 全部必须处理,不可跳过或降级 |
|
|
423
423
|
| 单专家自评 | 至少 2 位不同 provider 的专家 |
|
|
424
424
|
| 用户说"时间紧急"就跳过 | 评审是投资不是开销,跳过后期返工成本更高 |
|
|
425
|
-
| "专家几乎一致"就通过 | "几乎" = 不一致,继续到 >=
|
|
425
|
+
| "专家几乎一致"就通过 | "几乎" = 不一致,继续到 >=90% |
|
|
426
426
|
| 使用 Anthropic/GPT/Gemini 等国外昂贵模型 | 必须使用国产开源模型(DeepSeek, Qwen, Kimi, GLM, MiniMax) |
|
|
427
427
|
| 三个专家使用同一厂家模型 | 必须来自至少 2 家不同厂家 |
|
|
428
428
|
|
|
@@ -437,7 +437,7 @@ Every review round output MUST follow this exact JSON structure for design mode:
|
|
|
437
437
|
| "这只是小变更" | 所有变更都需要评审 |
|
|
438
438
|
| "Round 1 就够了" | 不够,必须多轮直到共识 |
|
|
439
439
|
| "生成报告就完成了" | APPROVED 才算完成 |
|
|
440
|
-
| "2/3 同意就是共识" | 还要检查问题共识比例 >=
|
|
440
|
+
| "2/3 同意就是共识" | 还要检查问题共识比例 >=90% |
|
|
441
441
|
|
|
442
442
|
---
|
|
443
443
|
|
|
@@ -445,7 +445,7 @@ Every review round output MUST follow this exact JSON structure for design mode:
|
|
|
445
445
|
|
|
446
446
|
**Delphi 评审完成的唯一标准:**
|
|
447
447
|
1. ✅ 所有专家裁决 APPROVED
|
|
448
|
-
2. ✅ 问题共识 >=
|
|
448
|
+
2. ✅ 问题共识 >=90%
|
|
449
449
|
3. ✅ 所有 Critical Issues 已修复验证
|
|
450
450
|
4. ✅ 所有 Major Concerns 已处理
|
|
451
451
|
5. ✅ 共识报告已生成
|
|
@@ -393,7 +393,7 @@ IF 任何检查失败:
|
|
|
393
393
|
| `confidence` | number | 整体置信度 (1-10) |
|
|
394
394
|
| `experts` | array | 专家评审结果 |
|
|
395
395
|
| `issues` | array | 未解决的问题(如有) |
|
|
396
|
-
| `consensus_ratio` | number | 问题共识比例 (≥0.
|
|
396
|
+
| `consensus_ratio` | number | 问题共识比例 (≥0.90 为共识) |
|
|
397
397
|
|
|
398
398
|
**有效期机制**:
|
|
399
399
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-06-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-06-14
|
|
4
|
+
**Commit:** e215a50
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.8.
|
|
6
|
+
**Version:** 0.8.10.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
|
-
**11-phase** development pipeline: ISOLATE → AUTO-ESTIMATE → THINK → PLAN → BUILD → REVIEW → USER ACCEPTANCE → FEEDBACK → SHIP → LAND → CLEANUP. Phase 2 default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE in Phase 1: design must pass Delphi review (≥
|
|
9
|
+
**11-phase** development pipeline: ISOLATE → AUTO-ESTIMATE → THINK → PLAN → BUILD → REVIEW → USER ACCEPTANCE → FEEDBACK → SHIP → LAND → CLEANUP. Phase 2 default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE in Phase 1: design must pass Delphi review (≥90% consensus) before any coding.
|
|
10
10
|
|
|
11
11
|
> **Doc drift**: README/CAPABILITIES still describe a "7-phase" pipeline. The canonical 11-phase model lives in `SKILL.md` and is what actually executes. See root `AGENTS.md` → "Known Drift" #4.
|
|
12
12
|
|
|
@@ -58,7 +58,7 @@ skills/sprint-flow/
|
|
|
58
58
|
| -1 | ISOLATE | Isolate working tree / worktree creation | — |
|
|
59
59
|
| -0.5 | AUTO-ESTIMATE | Sizing pass; emits estimate template | — |
|
|
60
60
|
| 0 | THINK | brainstorming → CONTEXT.md + ADR | — |
|
|
61
|
-
| 1 | PLAN | autoplan → delphi-review → specification.yaml | **HARD-GATE**: design must reach ≥
|
|
61
|
+
| 1 | PLAN | autoplan → delphi-review → specification.yaml | **HARD-GATE**: design must reach ≥90% Delphi consensus |
|
|
62
62
|
| 2 | BUILD | ralph-loop (REQ-level, default) + TDD + test-spec-alignment | — |
|
|
63
63
|
| 3 | REVIEW | code-walkthrough + QA + benchmark | — |
|
|
64
64
|
| 4 | USER ACCEPTANCE | Manual verification | — |
|
|
@@ -69,7 +69,7 @@ skills/sprint-flow/
|
|
|
69
69
|
|
|
70
70
|
## CONVENTIONS
|
|
71
71
|
- **ralph-loop is Phase 2 default**. Each REQ runs in a clean context (no linear accumulation), saving 40-67% tokens vs parallel mode.
|
|
72
|
-
- **delphi-review HARD-GATE in Phase 1**: design must reach ≥
|
|
72
|
+
- **delphi-review HARD-GATE in Phase 1**: design must reach ≥90% consensus across ≥2 model providers, domestic models only. Unapproved → BLOCK coding.
|
|
73
73
|
- **`learn` is called twice**: once per REQ in Phase 2 (ralph-loop internal, `progress.log` permanent/contextual classification) and once in Phase 5 (Sprint-level retro).
|
|
74
74
|
- **Phase isolation**: each phase has explicit entry/exit criteria documented in its `references/phase-*.md` file.
|
|
75
75
|
- **Emergent Requirements** discovered in Phase 4 (USER ACCEPTANCE) are explicitly captured via `templates/emergent-issues-template.md` — never silently merged.
|
|
@@ -81,7 +81,7 @@ skills/sprint-flow/
|
|
|
81
81
|
- Do NOT enter Phase 1 (PLAN) without completing Phase 0 (THINK).
|
|
82
82
|
- Do NOT implement before design is APPROVED — Phase 1 must reach Delphi consensus first.
|
|
83
83
|
- Do NOT merge an Emergent Requirement into the original Sprint silently — capture it via the template.
|
|
84
|
-
- Do NOT terminate Delphi review before ≥
|
|
84
|
+
- Do NOT terminate Delphi review before ≥90% consensus or 5 rounds, whichever first.
|
|
85
85
|
|
|
86
86
|
## UNIQUE STYLES
|
|
87
87
|
- **11 phases** including negative-numbered pre-phases (-1, -0.5) — intentional, captures the work that happens before "real" coding starts.
|
|
@@ -247,7 +247,7 @@ ISOLATE → AUTO-ESTIMATE → THINK → PLAN → [GITHOOKS-GATE] → BUILD → R
|
|
|
247
247
|
```
|
|
248
248
|
|
|
249
249
|
**Hard Gates**:
|
|
250
|
-
- **Phase 0→1**: Design must be APPROVED by delphi-review (≥
|
|
250
|
+
- **Phase 0→1**: Design must be APPROVED by delphi-review (≥90% consensus)
|
|
251
251
|
- **Phase 1→2**: GITHOOKS-GATE (hooks must be installed) + DELPHI-GATE (spec must be APPROVED)
|
|
252
252
|
- **Phase 4→5**: User acceptance must be completed (mandatory manual step)
|
|
253
253
|
- **Phase 5→6**: feedback-log.md must exist (HARD-GATE)
|
|
@@ -98,7 +98,7 @@ AUTO-ESTIMATE 输出 → Force Levels 执行 → 自动升级机制(如触发
|
|
|
98
98
|
|
|
99
99
|
| 场景 | DELPHI-GATE | Force Levels |
|
|
100
100
|
|------|------------|-------------|
|
|
101
|
-
| Phase 1 设计评审 | 3 专家、≥
|
|
101
|
+
| Phase 1 设计评审 | 3 专家、≥90% 共识、生成 specification.yaml | 不适用(设计阶段) |
|
|
102
102
|
| Phase 2 BUILD 入口 | **必须检查** `.sprint-state/delphi-reviewed.json` 中 `verdict=APPROVED` | 轻量/标准/复杂:通过对应强度的 delphi-review 生成该门禁文件 |
|
|
103
103
|
| 轻量级评审 | 生成 `delphi-reviewed.json`(2 专家、1 轮、2/2 批准) | 2 专家、1 轮、写入门禁文件 |
|
|
104
104
|
| 标准级评审 | 生成 `delphi-reviewed.json`(2 专家、最多 2 轮、2/2 批准) | 2 专家、最多 2 轮、写入门禁文件 |
|
|
@@ -11,7 +11,7 @@ Web 前端项目额外增加:系统化 QA、视觉审计、性能基线。
|
|
|
11
11
|
## 调用 Skills
|
|
12
12
|
|
|
13
13
|
**所有项目**:
|
|
14
|
-
- `delphi-review --mode code-walkthrough` — 多专家匿名代码走查(2-3 domestic models,
|
|
14
|
+
- `delphi-review --mode code-walkthrough` — 多专家匿名代码走查(2-3 domestic models, ≥90% consensus)
|
|
15
15
|
- `test-specification-alignment` — 测试与 Spec 对齐验证
|
|
16
16
|
- `browse` (gstack) — 浏览器自动化测试
|
|
17
17
|
|
|
@@ -43,7 +43,7 @@ delphi code-walkthrough 执行:
|
|
|
43
43
|
- Round 1: 匿名独立评审(防止 anchoring bias)
|
|
44
44
|
- Round 2: 交换意见,响应关切
|
|
45
45
|
- Round 3: 最终立场(如需)
|
|
46
|
-
-
|
|
46
|
+
- ≥90% 共识 + APPROVED 才通过
|
|
47
47
|
|
|
48
48
|
**如果 REQUEST_CHANGES**:
|
|
49
49
|
- ⚠️ 暂停等待用户修复 Critical Issues + 处理 Major Concerns
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-06-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-06-14
|
|
4
|
+
**Commit:** e215a50
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.8.
|
|
6
|
+
**Version:** 0.8.10.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "xp-gate",
|
|
3
3
|
"version": "0.8.8",
|
|
4
4
|
"displayName": "XP-Gate",
|
|
5
|
-
"description": "Extreme Programming quality gates + AI workflow skills for Qoder. Includes 10 quality gates (Gate 0-9), Sprint Flow (11 phases), and Delphi multi-expert review (>=
|
|
5
|
+
"description": "Extreme Programming quality gates + AI workflow skills for Qoder. Includes 10 quality gates (Gate 0-9), Sprint Flow (11 phases), and Delphi multi-expert review (>=90% consensus).",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "boyingliu01"
|
|
8
8
|
},
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-06-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-06-14
|
|
4
|
+
**Commit:** e215a50
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.8.
|
|
6
|
+
**Version:** 0.8.10.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
|
-
Delphi Consensus Review — multi-round anonymous expert review (≥
|
|
9
|
+
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
|
|
10
10
|
|
|
11
11
|
## STRUCTURE
|
|
12
12
|
```
|
|
@@ -30,7 +30,7 @@ skills/delphi-review/
|
|
|
30
30
|
|
|
31
31
|
## CONVENTIONS
|
|
32
32
|
- 3 experts anonymous in Round 1 (no cross-expert bias)
|
|
33
|
-
- ≥
|
|
33
|
+
- ≥90% consensus threshold (was 95%, now unified to 90%)
|
|
34
34
|
- Max 5 rounds before forcing decision
|
|
35
35
|
- Cross-provider required: experts from ≥2 different providers
|
|
36
36
|
- Domestic models only: glm, kimi, minimax, qwen, deepseek
|
|
@@ -39,7 +39,7 @@ skills/delphi-review/
|
|
|
39
39
|
- Code-walkthrough skipped on main/master pushes (by design)
|
|
40
40
|
|
|
41
41
|
## ANTI-PATTERNS (THIS PROJECT)
|
|
42
|
-
- Do NOT terminate before achieving true consensus (≥
|
|
42
|
+
- Do NOT terminate before achieving true consensus (≥90%)
|
|
43
43
|
- Do NOT reveal other experts' opinions during Round 1
|
|
44
44
|
- Do NOT accept partial agreement without resolution
|
|
45
45
|
- Do NOT skip code-walkthrough when over thresholds (BLOCK + user decision)
|
|
@@ -49,7 +49,7 @@ skills/delphi-review/
|
|
|
49
49
|
|
|
50
50
|
## UNIQUE STYLES
|
|
51
51
|
- Anonymous expert reviews (Round 1)
|
|
52
|
-
- Statistical consensus measurement (≥
|
|
52
|
+
- Statistical consensus measurement (≥90% threshold)
|
|
53
53
|
- Two modes: design review + code-walkthrough
|
|
54
54
|
- Pre-push integration: .code-walkthrough-result.json stores commit hash + verdict
|
|
55
55
|
- Delphi guard in claude-code plugin: blocks Edit/Write before APPROVAL
|
|
@@ -96,7 +96,7 @@ The skill requires at least 2 experts for code changes, 3 for architecture decis
|
|
|
96
96
|
| `experts.architecture` | Architecture reviewer configuration | Required |
|
|
97
97
|
| `experts.technical` | Technical reviewer configuration | Required |
|
|
98
98
|
| `experts.feasibility` | Feasibility reviewer configuration | Required for 3-expert mode |
|
|
99
|
-
| `consensus.threshold_percent` | Agreement threshold |
|
|
99
|
+
| `consensus.threshold_percent` | Agreement threshold | 90 |
|
|
100
100
|
| `consensus.max_review_rounds` | Maximum review rounds | 5 |
|
|
101
101
|
| `consensus.cross_provider_required` | Require different providers | true |
|
|
102
102
|
|
|
@@ -9,7 +9,7 @@ description: "Use when asked to review a design, plan, or architecture; before i
|
|
|
9
9
|
|
|
10
10
|
**In Scope:**
|
|
11
11
|
- Multi-round anonymous expert consensus review (design + code-walkthrough modes)
|
|
12
|
-
- 2-3 experts from different providers with statistical consensus (>=
|
|
12
|
+
- 2-3 experts from different providers with statistical consensus (>= 90%)
|
|
13
13
|
- Structured verdict: APPROVED / PASS_WITH_CAVEATS / REQUEST_CHANGES
|
|
14
14
|
- Domestic models only (no Anthropic/OpenAI/Google)
|
|
15
15
|
|
|
@@ -27,7 +27,7 @@ description: "Use when asked to review a design, plan, or architecture; before i
|
|
|
27
27
|
1. **匿名性** — Round 1 专家互不知道对方意见
|
|
28
28
|
2. **迭代** — 多轮直到共识,不是固定轮数
|
|
29
29
|
3. **受控反馈** — 每轮看到其他专家意见
|
|
30
|
-
4. **统计共识** — >=
|
|
30
|
+
4. **统计共识** — >=90% 一致才算共识
|
|
31
31
|
|
|
32
32
|
### 质量优先
|
|
33
33
|
|
|
@@ -95,7 +95,7 @@ description: "Use when asked to review a design, plan, or architecture; before i
|
|
|
95
95
|
|
|
96
96
|
| 阈值 | 说明 |
|
|
97
97
|
|------|------|
|
|
98
|
-
| **>=
|
|
98
|
+
| **>=90%** | 推荐默认 |
|
|
99
99
|
| 100% | 完全一致(更严格) |
|
|
100
100
|
|
|
101
101
|
---
|
|
@@ -105,14 +105,14 @@ description: "Use when asked to review a design, plan, or architecture; before i
|
|
|
105
105
|
```
|
|
106
106
|
Phase 0: 准备 → Round 1: 匿名独立评审 → 共识检查
|
|
107
107
|
│
|
|
108
|
-
├─ 一致 + >=
|
|
108
|
+
├─ 一致 + >=90% + APPROVED → ✅ 完成
|
|
109
109
|
│
|
|
110
|
-
└─ 不一致 或 <
|
|
110
|
+
└─ 不一致 或 <90% 或 REQUEST_CHANGES
|
|
111
111
|
│
|
|
112
112
|
▼
|
|
113
113
|
Round 2: 交换意见 → 共识检查
|
|
114
114
|
│
|
|
115
|
-
├─ 一致 + >=
|
|
115
|
+
├─ 一致 + >=90% + APPROVED → ✅ 完成
|
|
116
116
|
│
|
|
117
117
|
└─ 仍分歧 或 REQUEST_CHANGES
|
|
118
118
|
│
|
|
@@ -248,11 +248,11 @@ This skill activates on any request for multi-expert review. Common triggers:
|
|
|
248
248
|
2. **Dispatch anonymous experts** - 2-3 experts from ≥2 different domestic model providers
|
|
249
249
|
3. **Collect Round 1 independent reviews** - Anonymous, no cross-expert bias
|
|
250
250
|
4. **Synthesize feedback** - Measure consensus, identify disagreements
|
|
251
|
-
5. **Run Round 2+ until consensus** - Exchange opinions, iterate until ≥
|
|
251
|
+
5. **Run Round 2+ until consensus** - Exchange opinions, iterate until ≥90% agreement
|
|
252
252
|
6. **Block on unresolved Critical/Major** - Zero-tolerance: all Critical/Major must be resolved
|
|
253
253
|
7. **Emit verdict** - APPROVED (with specification.yaml) or REQUEST_CHANGES (fix + re-review)
|
|
254
254
|
|
|
255
|
-
**Consensus threshold:** ≥
|
|
255
|
+
**Consensus threshold:** ≥90% (project standard for Delphi review approval)
|
|
256
256
|
**Model policy:** Domestic models only (DeepSeek, Qwen, Kimi, GLM, MiniMax). Foreign models (Anthropic/OpenAI/Google) forbidden.
|
|
257
257
|
|
|
258
258
|
---
|
|
@@ -340,7 +340,7 @@ Every review round output MUST follow this exact JSON structure for design mode:
|
|
|
340
340
|
- [ ] Round 2+ 完成(交换意见 / 最终立场)
|
|
341
341
|
|
|
342
342
|
**CRITICAL — 共识验证:**
|
|
343
|
-
- [ ] 问题共识比例 >=
|
|
343
|
+
- [ ] 问题共识比例 >=90%
|
|
344
344
|
- [ ] 所有 Critical Issues 已解决
|
|
345
345
|
- [ ] 所有 Major Concerns 已处理
|
|
346
346
|
|
|
@@ -422,7 +422,7 @@ Every review round output MUST follow this exact JSON structure for design mode:
|
|
|
422
422
|
| 只处理 Critical,忽略 Major | 零容忍:Critical/Major 全部必须处理,不可跳过或降级 |
|
|
423
423
|
| 单专家自评 | 至少 2 位不同 provider 的专家 |
|
|
424
424
|
| 用户说"时间紧急"就跳过 | 评审是投资不是开销,跳过后期返工成本更高 |
|
|
425
|
-
| "专家几乎一致"就通过 | "几乎" = 不一致,继续到 >=
|
|
425
|
+
| "专家几乎一致"就通过 | "几乎" = 不一致,继续到 >=90% |
|
|
426
426
|
| 使用 Anthropic/GPT/Gemini 等国外昂贵模型 | 必须使用国产开源模型(DeepSeek, Qwen, Kimi, GLM, MiniMax) |
|
|
427
427
|
| 三个专家使用同一厂家模型 | 必须来自至少 2 家不同厂家 |
|
|
428
428
|
|
|
@@ -437,7 +437,7 @@ Every review round output MUST follow this exact JSON structure for design mode:
|
|
|
437
437
|
| "这只是小变更" | 所有变更都需要评审 |
|
|
438
438
|
| "Round 1 就够了" | 不够,必须多轮直到共识 |
|
|
439
439
|
| "生成报告就完成了" | APPROVED 才算完成 |
|
|
440
|
-
| "2/3 同意就是共识" | 还要检查问题共识比例 >=
|
|
440
|
+
| "2/3 同意就是共识" | 还要检查问题共识比例 >=90% |
|
|
441
441
|
|
|
442
442
|
---
|
|
443
443
|
|
|
@@ -445,7 +445,7 @@ Every review round output MUST follow this exact JSON structure for design mode:
|
|
|
445
445
|
|
|
446
446
|
**Delphi 评审完成的唯一标准:**
|
|
447
447
|
1. ✅ 所有专家裁决 APPROVED
|
|
448
|
-
2. ✅ 问题共识 >=
|
|
448
|
+
2. ✅ 问题共识 >=90%
|
|
449
449
|
3. ✅ 所有 Critical Issues 已修复验证
|
|
450
450
|
4. ✅ 所有 Major Concerns 已处理
|
|
451
451
|
5. ✅ 共识报告已生成
|
|
@@ -393,7 +393,7 @@ IF 任何检查失败:
|
|
|
393
393
|
| `confidence` | number | 整体置信度 (1-10) |
|
|
394
394
|
| `experts` | array | 专家评审结果 |
|
|
395
395
|
| `issues` | array | 未解决的问题(如有) |
|
|
396
|
-
| `consensus_ratio` | number | 问题共识比例 (≥0.
|
|
396
|
+
| `consensus_ratio` | number | 问题共识比例 (≥0.90 为共识) |
|
|
397
397
|
|
|
398
398
|
**有效期机制**:
|
|
399
399
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-06-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-06-14
|
|
4
|
+
**Commit:** e215a50
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.8.
|
|
6
|
+
**Version:** 0.8.10.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
|
-
**11-phase** development pipeline: ISOLATE → AUTO-ESTIMATE → THINK → PLAN → BUILD → REVIEW → USER ACCEPTANCE → FEEDBACK → SHIP → LAND → CLEANUP. Phase 2 default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE in Phase 1: design must pass Delphi review (≥
|
|
9
|
+
**11-phase** development pipeline: ISOLATE → AUTO-ESTIMATE → THINK → PLAN → BUILD → REVIEW → USER ACCEPTANCE → FEEDBACK → SHIP → LAND → CLEANUP. Phase 2 default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE in Phase 1: design must pass Delphi review (≥90% consensus) before any coding.
|
|
10
10
|
|
|
11
11
|
> **Doc drift**: README/CAPABILITIES still describe a "7-phase" pipeline. The canonical 11-phase model lives in `SKILL.md` and is what actually executes. See root `AGENTS.md` → "Known Drift" #4.
|
|
12
12
|
|
|
@@ -58,7 +58,7 @@ skills/sprint-flow/
|
|
|
58
58
|
| -1 | ISOLATE | Isolate working tree / worktree creation | — |
|
|
59
59
|
| -0.5 | AUTO-ESTIMATE | Sizing pass; emits estimate template | — |
|
|
60
60
|
| 0 | THINK | brainstorming → CONTEXT.md + ADR | — |
|
|
61
|
-
| 1 | PLAN | autoplan → delphi-review → specification.yaml | **HARD-GATE**: design must reach ≥
|
|
61
|
+
| 1 | PLAN | autoplan → delphi-review → specification.yaml | **HARD-GATE**: design must reach ≥90% Delphi consensus |
|
|
62
62
|
| 2 | BUILD | ralph-loop (REQ-level, default) + TDD + test-spec-alignment | — |
|
|
63
63
|
| 3 | REVIEW | code-walkthrough + QA + benchmark | — |
|
|
64
64
|
| 4 | USER ACCEPTANCE | Manual verification | — |
|
|
@@ -69,7 +69,7 @@ skills/sprint-flow/
|
|
|
69
69
|
|
|
70
70
|
## CONVENTIONS
|
|
71
71
|
- **ralph-loop is Phase 2 default**. Each REQ runs in a clean context (no linear accumulation), saving 40-67% tokens vs parallel mode.
|
|
72
|
-
- **delphi-review HARD-GATE in Phase 1**: design must reach ≥
|
|
72
|
+
- **delphi-review HARD-GATE in Phase 1**: design must reach ≥90% consensus across ≥2 model providers, domestic models only. Unapproved → BLOCK coding.
|
|
73
73
|
- **`learn` is called twice**: once per REQ in Phase 2 (ralph-loop internal, `progress.log` permanent/contextual classification) and once in Phase 5 (Sprint-level retro).
|
|
74
74
|
- **Phase isolation**: each phase has explicit entry/exit criteria documented in its `references/phase-*.md` file.
|
|
75
75
|
- **Emergent Requirements** discovered in Phase 4 (USER ACCEPTANCE) are explicitly captured via `templates/emergent-issues-template.md` — never silently merged.
|
|
@@ -81,7 +81,7 @@ skills/sprint-flow/
|
|
|
81
81
|
- Do NOT enter Phase 1 (PLAN) without completing Phase 0 (THINK).
|
|
82
82
|
- Do NOT implement before design is APPROVED — Phase 1 must reach Delphi consensus first.
|
|
83
83
|
- Do NOT merge an Emergent Requirement into the original Sprint silently — capture it via the template.
|
|
84
|
-
- Do NOT terminate Delphi review before ≥
|
|
84
|
+
- Do NOT terminate Delphi review before ≥90% consensus or 5 rounds, whichever first.
|
|
85
85
|
|
|
86
86
|
## UNIQUE STYLES
|
|
87
87
|
- **11 phases** including negative-numbered pre-phases (-1, -0.5) — intentional, captures the work that happens before "real" coding starts.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sprint-flow
|
|
3
|
+
version: 1.0.0
|
|
3
4
|
description: >
|
|
4
5
|
One-Shot Sprint 自动流水线。单一入口,自动串联 Think → Plan → Build →
|
|
5
6
|
Review → Ship 流程。整合 brainstorming + autoplan + delphi-review + TDD +
|
|
@@ -12,6 +13,7 @@ description: >
|
|
|
12
13
|
- "start sprint"
|
|
13
14
|
- "一键开发"
|
|
14
15
|
- "/sprint-flow"
|
|
16
|
+
触发后第一行输出: `Sprint Flow: ISOLATE → AUTO-ESTIMATE → THINK → PLAN → BUILD → REVIEW → USER ACCEPTANCE → FEEDBACK → SHIP → LAND → CLEANUP`
|
|
15
17
|
用法: /sprint-flow "[需求描述]"
|
|
16
18
|
示例: /sprint-flow "开发访谈机器人,支持多轮对话"
|
|
17
19
|
可选参数:
|
|
@@ -29,6 +31,24 @@ description: >
|
|
|
29
31
|
--status: 查看当前 Sprint 进度看板(不执行任何阶段,仅读取 sprint-state.json 并渲染进度)
|
|
30
32
|
Use when asked to "开发新功能", "实现 X", "start sprint", "一键开发", or "/sprint-flow" for end-to-end feature development.
|
|
31
33
|
maturity: beta
|
|
34
|
+
triggers:
|
|
35
|
+
- "/sprint-flow"
|
|
36
|
+
- "start sprint"
|
|
37
|
+
- "开发新功能"
|
|
38
|
+
- "实现 X"
|
|
39
|
+
- "一键开发"
|
|
40
|
+
workflow_steps:
|
|
41
|
+
- "Phase -1: ISOLATE"
|
|
42
|
+
- "Phase -0.5: AUTO-ESTIMATE"
|
|
43
|
+
- "Phase 0: THINK"
|
|
44
|
+
- "Phase 1: PLAN"
|
|
45
|
+
- "Phase 2: BUILD"
|
|
46
|
+
- "Phase 3: REVIEW"
|
|
47
|
+
- "Phase 4: USER ACCEPTANCE"
|
|
48
|
+
- "Phase 5: FEEDBACK"
|
|
49
|
+
- "Phase 6: SHIP"
|
|
50
|
+
- "Phase 7: LAND"
|
|
51
|
+
- "Phase 8: CLEANUP"
|
|
32
52
|
---
|
|
33
53
|
|
|
34
54
|
## Triggers
|
|
@@ -227,7 +247,7 @@ ISOLATE → AUTO-ESTIMATE → THINK → PLAN → [GITHOOKS-GATE] → BUILD → R
|
|
|
227
247
|
```
|
|
228
248
|
|
|
229
249
|
**Hard Gates**:
|
|
230
|
-
- **Phase 0→1**: Design must be APPROVED by delphi-review (≥
|
|
250
|
+
- **Phase 0→1**: Design must be APPROVED by delphi-review (≥90% consensus)
|
|
231
251
|
- **Phase 1→2**: GITHOOKS-GATE (hooks must be installed) + DELPHI-GATE (spec must be APPROVED)
|
|
232
252
|
- **Phase 4→5**: User acceptance must be completed (mandatory manual step)
|
|
233
253
|
- **Phase 5→6**: feedback-log.md must exist (HARD-GATE)
|
|
@@ -236,6 +256,36 @@ ISOLATE → AUTO-ESTIMATE → THINK → PLAN → [GITHOOKS-GATE] → BUILD → R
|
|
|
236
256
|
|
|
237
257
|
## 各 Phase 调用的 Skills
|
|
238
258
|
|
|
259
|
+
### ⚠️ 强制输出格式规范(Mandatory Output Format)
|
|
260
|
+
|
|
261
|
+
**执行每个 Phase 时,必须以以下固定格式输出阶段标题**,不可省略、不可合并、不可替换:
|
|
262
|
+
|
|
263
|
+
```markdown
|
|
264
|
+
## Phase -1: ISOLATE (隔离)
|
|
265
|
+
## Phase -0.5: AUTO-ESTIMATE (规模评估)
|
|
266
|
+
## Phase 0: THINK (思考)
|
|
267
|
+
## Phase 1: PLAN (规划)
|
|
268
|
+
## Phase 2: BUILD (构建)
|
|
269
|
+
## Phase 3: REVIEW (评审)
|
|
270
|
+
## Phase 4: USER ACCEPTANCE (用户验收)
|
|
271
|
+
## Phase 5: FEEDBACK (反馈)
|
|
272
|
+
## Phase 6: SHIP (发布)
|
|
273
|
+
## Phase 7: LAND (部署)
|
|
274
|
+
## Phase 8: CLEANUP (清理)
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
**规则**:
|
|
278
|
+
1. 每个 Phase **开始执行时必须首先输出**对应的 `## Phase X: NAME` 标题行(作为该 Phase 输出的第一行)
|
|
279
|
+
2. **禁止省略** "Phase" 关键词(如不能只写 "ISOLATE" 或 "## -1")
|
|
280
|
+
3. **禁止合并**多个 Phase 的输出(每个 Phase 必须有独立标题)
|
|
281
|
+
4. **格式必须精确匹配**:`## Phase ` + 数字 + `: ` + 大写英文名 + ` (中文名)`
|
|
282
|
+
5. 跳过某个 Phase(如 `--resume-from build` 跳过了 -1, -0.5, 0, 1)时,不输出被跳过 Phase 的标题
|
|
283
|
+
6. 触发 `/sprint-flow` 后,**第一行输出应包含工作流阶段概览**:
|
|
284
|
+
|
|
285
|
+
```
|
|
286
|
+
Sprint Flow: ISOLATE → AUTO-ESTIMATE → THINK → PLAN → BUILD → REVIEW → USER ACCEPTANCE → FEEDBACK → SHIP → LAND → CLEANUP
|
|
287
|
+
```
|
|
288
|
+
|
|
239
289
|
### Phase -1: ISOLATE(git worktree 隔离)
|
|
240
290
|
|
|
241
291
|
**执行时机**: `/sprint-flow` 启动后、Phase 0 THINK 之前。**自动执行**。
|
|
@@ -98,7 +98,7 @@ AUTO-ESTIMATE 输出 → Force Levels 执行 → 自动升级机制(如触发
|
|
|
98
98
|
|
|
99
99
|
| 场景 | DELPHI-GATE | Force Levels |
|
|
100
100
|
|------|------------|-------------|
|
|
101
|
-
| Phase 1 设计评审 | 3 专家、≥
|
|
101
|
+
| Phase 1 设计评审 | 3 专家、≥90% 共识、生成 specification.yaml | 不适用(设计阶段) |
|
|
102
102
|
| Phase 2 BUILD 入口 | **必须检查** `.sprint-state/delphi-reviewed.json` 中 `verdict=APPROVED` | 轻量/标准/复杂:通过对应强度的 delphi-review 生成该门禁文件 |
|
|
103
103
|
| 轻量级评审 | 生成 `delphi-reviewed.json`(2 专家、1 轮、2/2 批准) | 2 专家、1 轮、写入门禁文件 |
|
|
104
104
|
| 标准级评审 | 生成 `delphi-reviewed.json`(2 专家、最多 2 轮、2/2 批准) | 2 专家、最多 2 轮、写入门禁文件 |
|
|
@@ -11,7 +11,7 @@ Web 前端项目额外增加:系统化 QA、视觉审计、性能基线。
|
|
|
11
11
|
## 调用 Skills
|
|
12
12
|
|
|
13
13
|
**所有项目**:
|
|
14
|
-
- `delphi-review --mode code-walkthrough` — 多专家匿名代码走查(2-3 domestic models,
|
|
14
|
+
- `delphi-review --mode code-walkthrough` — 多专家匿名代码走查(2-3 domestic models, ≥90% consensus)
|
|
15
15
|
- `test-specification-alignment` — 测试与 Spec 对齐验证
|
|
16
16
|
- `browse` (gstack) — 浏览器自动化测试
|
|
17
17
|
|
|
@@ -43,7 +43,7 @@ delphi code-walkthrough 执行:
|
|
|
43
43
|
- Round 1: 匿名独立评审(防止 anchoring bias)
|
|
44
44
|
- Round 2: 交换意见,响应关切
|
|
45
45
|
- Round 3: 最终立场(如需)
|
|
46
|
-
-
|
|
46
|
+
- ≥90% 共识 + APPROVED 才通过
|
|
47
47
|
|
|
48
48
|
**如果 REQUEST_CHANGES**:
|
|
49
49
|
- ⚠️ 暂停等待用户修复 Critical Issues + 处理 Major Concerns
|