@boyingliu01/opencode-plugin 0.10.17 → 0.11.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/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-06-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-06-29
|
|
4
|
+
**Commit:** 8efd33c
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.
|
|
6
|
+
**Version:** 0.11.0.1
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
|
|
@@ -19,6 +19,15 @@ auto_continue: true
|
|
|
19
19
|
- Does NOT replace testing or CI/CD verification
|
|
20
20
|
- Does NOT handle deployment or release decisions
|
|
21
21
|
|
|
22
|
+
## Activation
|
|
23
|
+
**MANDATORY**: Every delphi-review response MUST begin with `[DelphiReview]` as the first line.
|
|
24
|
+
This marker is required for skill-cert L1 trigger detection.
|
|
25
|
+
|
|
26
|
+
Permitted variants (all satisfy L1 trigger):
|
|
27
|
+
- `[DelphiReview]` — standard entry
|
|
28
|
+
- `[DelphiReview:BLOCKED]` — Step 0 input validation failure
|
|
29
|
+
- `[DelphiReview:WARNING]` — red flag detected (reserved)
|
|
30
|
+
|
|
22
31
|
## 核心原则
|
|
23
32
|
|
|
24
33
|
**Delphi 方法只有一个目的:得到所有专家一致认可的可行方案。**
|
|
@@ -104,6 +113,46 @@ Phase 0: 准备 → Round 1: 匿名独立评审 → 共识检查
|
|
|
104
113
|
└─ REQUEST_CHANGES → 修复方案 → 回到 Round 2 重新评审
|
|
105
114
|
```
|
|
106
115
|
|
|
116
|
+
### Step 0: Input Validation (MANDATORY — 必须在任何评审前执行)
|
|
117
|
+
|
|
118
|
+
检查用户 prompt 中是否包含可评审内容(设计文档、代码、specification.yaml、PR diff):
|
|
119
|
+
|
|
120
|
+
1. **有完整输入** → 直接进入 Phase 0(准备阶段),开始 Round 1
|
|
121
|
+
2. **有部分输入**(占位符、描述性文本)→ 按输入内容执行评审,标注 `[INPUT: PARTIAL]`,但继续执行
|
|
122
|
+
3. **无输入**(仅触发词,无文档/代码)→ 输出以下阻断响应,记入步骤完成:
|
|
123
|
+
|
|
124
|
+
**Detection heuristics for Step 0**:
|
|
125
|
+
- **Complete**: Contains ≥1 structural element (e.g., `##`, `requirement`, `AC-`, `function`, `class`, `interface`, YAML frontmatter, code block with language tag) AND ≥50 non-whitespace characters of actual content (not placeholder brackets like `[...]`, `{...}`, `<insert here>`).
|
|
126
|
+
- **Partial**: Contains descriptive text referencing a design/code artifact BUT lacks substantive structure (e.g., "I need to review my login module" with no actual code/design attached), OR contains obvious placeholders like `[...]`, `(content)`, `<insert here>`, `TODO`.
|
|
127
|
+
- **None**: Only trigger words (`/delphi-review`, "review this") with zero additional content, OR content that is exclusively questions about the review process itself ("how does delphi work?").
|
|
128
|
+
|
|
129
|
+
**Partial input constraint**: When input is PARTIAL, cap review to 1 round with `confidence=low` annotation. Do NOT proceed with full multi-round review on insufficient input.
|
|
130
|
+
|
|
131
|
+
**File path validation**: If user provides a file path (e.g., `--spec specification.yaml`):
|
|
132
|
+
- Verify the file exists and is non-empty
|
|
133
|
+
- If path is invalid → output: `[DelphiReview:BLOCKED] File not found: [path]. Please verify the path.`
|
|
134
|
+
- If file is empty → output: `[DelphiReview:BLOCKED] File is empty: [path]. Please provide valid content.`
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
[DelphiReview:BLOCKED] 需要设计文档或代码内容才能启动评审。
|
|
138
|
+
|
|
139
|
+
请提供以下之一:
|
|
140
|
+
- 设计文档(design doc / specification)
|
|
141
|
+
- 代码变更(code diff / PR link)
|
|
142
|
+
- specification.yaml 文件路径
|
|
143
|
+
- 架构设计说明
|
|
144
|
+
|
|
145
|
+
评审输入示例:
|
|
146
|
+
/delphi-review "Design Doc: [your content here]"
|
|
147
|
+
/delphi-review --spec specification.yaml
|
|
148
|
+
/delphi-review --mode code-walkthrough
|
|
149
|
+
REMAINING STEPS: N/A (input validation failed)
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
在此状态下,BLOCKED 视为步骤已完成(后续步骤标记为 N/A)。
|
|
153
|
+
|
|
154
|
+
**重要**: 内嵌在 prompt 中的文档内容(如 "Design Doc: [content]"或代码片段)应视为"有完整输入",直接进入评审。
|
|
155
|
+
|
|
107
156
|
**Round 模板**(匿名评审/交换意见/最终立场/修复报告格式)→ 详见 `references/round-templates.md`
|
|
108
157
|
|
|
109
158
|
**Orchestrator 自动调度规则**(#218 subagent 内部自动多轮循环)→ 详见 `references/orchestrator-dispatch.md`
|
|
@@ -165,6 +214,23 @@ Phase 0: 准备 → Round 1: 匿名独立评审 → 共识检查
|
|
|
165
214
|
|
|
166
215
|
## Output Format (MANDATORY)
|
|
167
216
|
|
|
217
|
+
**Single 模式简化输出**: 当 single reviewer 模式(非 Multi-Expert)时,可使用简化输出格式:
|
|
218
|
+
- verdict + confidence + issues_list(合并 critical/major/minor)+ summary
|
|
219
|
+
- 完整 JSON 格式保留用于 multi-expert 多轮评审场景
|
|
220
|
+
|
|
221
|
+
**Single 模式简化模板**:
|
|
222
|
+
```
|
|
223
|
+
[DelphiReview] verdict=APPROVED | REQUEST_CHANGES | BLOCKED
|
|
224
|
+
confidence=N/10
|
|
225
|
+
issues=[critical: N, major: N, minor: N]
|
|
226
|
+
summary: [1-2 sentence verdict summary]
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
**⚠️ Single vs Multi-Expert Output**:
|
|
230
|
+
- **Multi-Expert Mode (default)**: MUST use the full JSON schema below. Each expert outputs independently; the orchestrator aggregates into `consensus_report`. DO NOT use the simplified template.
|
|
231
|
+
- **Single Reviewer Mode** (explicitly invoked with `--single`): MAY use the simplified text template above.
|
|
232
|
+
- **Never mix formats**. If you are one of multiple experts in the same round, output JSON only.
|
|
233
|
+
|
|
168
234
|
```json
|
|
169
235
|
{
|
|
170
236
|
"expert_id": "A|B|C",
|
|
@@ -243,10 +309,23 @@ Phase 0: 准备 → Round 1: 匿名独立评审 → 共识检查
|
|
|
243
309
|
|
|
244
310
|
## Red Flags
|
|
245
311
|
|
|
312
|
+
### 检测触发器(模型可执行检测)
|
|
313
|
+
|
|
314
|
+
| 用户输入模式 | 触发词 | 响应动作 |
|
|
315
|
+
|-------------|--------|---------|
|
|
316
|
+
| 要求跳过评审 | "skip review", "不用评审", "跳过评审", "直接提交", "不评审" | → 提醒: `[DelphiReview] 评审是投资而非开销。Delphi 设计要求多轮共识(>=90%),不可快速跳过。` |
|
|
317
|
+
| 时间压力 | "来不及", "时间紧", "emergency", "赶时间", "deadline" | → 提醒: `[DelphiReview] 时间紧迫正是需要评审的时刻。跳过评审省 30 分钟,后期修复可能花 3 天。` |
|
|
318
|
+
| 提前终止 | Round 1 后用户说 "可以了", "够了", "enough" | → BLOCK: `[DelphiReview:BLOCKED] 评审未达终止条件。仍需 [共识>=90% + 所有 Critical/Major 已处理]。` |
|
|
319
|
+
| 单专家自评 | 用户仅指定 1 个专家 或 说 "我自己看了" | → 提醒: `[DelphiReview] 至少需要 2 位不同 provider 的专家参与评审。` |
|
|
320
|
+
| 无文档输入 | 仅触发词,无设计/代码内容 | → 输出 `[DelphiReview:BLOCKED]` 阻断响应(见 Step 0) |
|
|
321
|
+
|
|
322
|
+
### 原则性声明
|
|
323
|
+
|
|
246
324
|
| 借口 | 现实 |
|
|
247
325
|
|------|------|
|
|
248
326
|
| "这只是小变更" | 所有变更都需要评审 |
|
|
249
327
|
| "Round 1 就够了" | 不够,必须多轮直到共识 |
|
|
328
|
+
| "生成报告就完成了" | APPROVED 才算完成 |
|
|
250
329
|
| "2/3 同意就是共识" | 还要检查问题共识比例 >=90% |
|
|
251
330
|
|
|
252
331
|
---
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-06-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-06-29
|
|
4
|
+
**Commit:** 8efd33c
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.
|
|
6
|
+
**Version:** 0.11.0.1
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
**11-phase** development pipeline: ISOLATE → AUTO-ESTIMATE → THINK → PLAN → BUILD → REVIEW → SHIP → LAND → USER ACCEPTANCE → FEEDBACK → 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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-06-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-06-29
|
|
4
|
+
**Commit:** 8efd33c
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.
|
|
6
|
+
**Version:** 0.11.0.1
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|