opencode-empirical-plan 0.3.7 → 0.3.8
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/src/hooks/skill-reminder.ts +11 -6
package/package.json
CHANGED
|
@@ -44,18 +44,23 @@ const REMINDER_TEXT = `## [Empirical Plan Reminder]
|
|
|
44
44
|
skill(name="empirical-plan")
|
|
45
45
|
\`\`\`
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
**重要**:通过三个阻断性 task() 运行生命周期,禁止在当前 session 内联执行:
|
|
48
48
|
\`\`\`
|
|
49
49
|
// 1. 初始化生命周期
|
|
50
50
|
lifecycle_start(run_dir="<绝对路径>/.opencode/plans/YYYYMMDD-<主题>")
|
|
51
51
|
|
|
52
|
-
// 2.
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
// 2. 创建三个 todo(PLAN / EXECUTE / REFLECT),依序阻断执行:
|
|
53
|
+
// [TODO 1] Phase 1-3 PLAN
|
|
54
|
+
task(category="unspecified-high", load_skills=["empirical-plan"], run_in_background=false, prompt="你是 empirical-plan PLAN 阶段执行者(Phase 1-3)。\\nrun_dir: <绝对路径>\\n目标:<描述>\\n完成后仅输出:PLAN COMPLETE")
|
|
55
|
+
|
|
56
|
+
// [TODO 2] Phase 4 EXECUTE(TODO 1 返回后)
|
|
57
|
+
task(category="unspecified-high", load_skills=["empirical-plan"], run_in_background=false, prompt="你是 empirical-plan EXECUTE 阶段执行者(Phase 4)。\\nrun_dir: <绝对路径>\\n读 plan.md 执行,完成后调用 lifecycle_record_execution。")
|
|
55
58
|
|
|
56
|
-
|
|
59
|
+
// [TODO 3] Phase 5 REFLECT(TODO 2 返回后,强制,不可跳过)
|
|
60
|
+
task(category="unspecified-high", load_skills=["empirical-plan"], run_in_background=false, prompt="你是 empirical-plan REFLECT 阶段执行者(Phase 5)。\\nrun_dir: <绝对路径>\\n读 plan.md 和 execution.md,与 Oracle 讨论,write reflect.md,调用 lifecycle_record_reflection。")
|
|
61
|
+
\`\`\`
|
|
57
62
|
|
|
58
|
-
|
|
63
|
+
如果你已经在某个阶段子 session 中,直接执行当前阶段工作,不要再嵌套启动新的生命周期。
|
|
59
64
|
|
|
60
65
|
如果这只是一个澄清问题(非任务),或本 session 已加载过 empirical-plan,可跳过。`;
|
|
61
66
|
|