opencode-core-rules-injector 1.2.0 → 1.2.2
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/core-rules.md +13 -8
- package/package.json +1 -1
package/core-rules.md
CHANGED
|
@@ -29,16 +29,14 @@
|
|
|
29
29
|
- 使用 Superpowers 的 using-git-worktrees 技能,在 `.worktree/` 下创建隔离功能分支
|
|
30
30
|
- 使用 Subagent-Driven Development 按 Plan 顺序执行
|
|
31
31
|
- Task 0 到 Task N 全自动推进,无需用户确认
|
|
32
|
-
- 每个 Task
|
|
33
|
-
1. 子 Agent
|
|
34
|
-
2. 子 Agent Code Review
|
|
35
|
-
3. 子 Agent QA
|
|
36
|
-
4.
|
|
37
|
-
5. QA 独立子 Agent 明确报告全绿 → 主 Agent commit
|
|
32
|
+
- 每个 Task 完整的闭环(所有子 Agent 都是严格上下文隔离的独立子 Agent):
|
|
33
|
+
1. 子 Agent TDD 编码 + 单元测试(先写测试→看失败→写实现→全绿)
|
|
34
|
+
2. 子 Agent Code Review(只读审核,发现问题报告但不修改)→ 有问题则回到步骤 1
|
|
35
|
+
3. 子 Agent QA 全面质量审核(只读审核,发现问题报告但不修改)→ 有问题则回到步骤 1
|
|
36
|
+
4. 全绿 → 子 Agent 报告全绿
|
|
38
37
|
|
|
39
38
|
### 3. Commit 阶段
|
|
40
|
-
-
|
|
41
|
-
- 任何非 QA 独立子 Agent 的全绿声明都不可信,不能作为 commit 依据
|
|
39
|
+
- 只有子 Agent 明确报告全绿,主 Agent 才能 commit
|
|
42
40
|
- 每个 commit 对应一个有意义的 Task 提交
|
|
43
41
|
- 全部 Task 完成后向用户汇报最终结果
|
|
44
42
|
|
|
@@ -57,3 +55,10 @@
|
|
|
57
55
|
|
|
58
56
|
## 注入确认
|
|
59
57
|
本段核心规则被注入后,你的第一条输出必须使用绿色文字(ANSI 转义码 \033[32m)输出"已收到核心规则注入,开始执行工作流",然后才能进行思考、调用工具或进行其他操作。
|
|
58
|
+
|
|
59
|
+
## 通信规范
|
|
60
|
+
所有代理(含主代理、子代理)的评审、测试、审核结论必须基于事实表达:
|
|
61
|
+
- **不通过**:明确指出问题点,逐条列出
|
|
62
|
+
- **通过**:明确说"通过"
|
|
63
|
+
- **禁止**使用"基本没问题""有条件通过""但在……需要改进"等防御性模糊口吻
|
|
64
|
+
- 只要有任何问题存在,就不是全绿
|