doukui 0.0.0-stage → 0.3.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.
Files changed (135) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +42 -0
  3. package/README.md +147 -2
  4. package/bin/commands/build.js +178 -0
  5. package/bin/commands/config.js +88 -0
  6. package/bin/commands/help.js +83 -0
  7. package/bin/commands/init.js +194 -0
  8. package/bin/commands/install.js +202 -0
  9. package/bin/commands/interactive.js +352 -0
  10. package/bin/commands/list.js +108 -0
  11. package/bin/commands/loop-server.js +357 -0
  12. package/bin/commands/loop.js +1398 -0
  13. package/bin/commands/migrate.js +120 -0
  14. package/bin/commands/setup-global.js +81 -0
  15. package/bin/commands/status.js +140 -0
  16. package/bin/commands/team-cleanup.js +190 -0
  17. package/bin/commands/validate-config.js +35 -0
  18. package/bin/commands/validate.js +21 -0
  19. package/bin/commands/version.js +22 -0
  20. package/bin/context.js +143 -0
  21. package/bin/doukui.js +216 -0
  22. package/package.json +47 -4
  23. package/plugins/contracts/capabilities.js +268 -0
  24. package/plugins/contracts/checkresult-schema.json +75 -0
  25. package/plugins/contracts/config-schema.json +179 -0
  26. package/plugins/contracts/plugin-interface.js +262 -0
  27. package/plugins/contracts/plugin-schema.json +104 -0
  28. package/plugins/core/hook-session-start/index.js +281 -0
  29. package/plugins/core/hook-session-start/plugin.json +7 -0
  30. package/plugins/core/hook-skill-gate/index.js +661 -0
  31. package/plugins/core/hook-skill-gate/plugin.json +12 -0
  32. package/plugins/core/provider-loop-engine/index.js +1397 -0
  33. package/plugins/core/provider-loop-engine/plugin.json +15 -0
  34. package/plugins/core/provider-memory-store/index.js +510 -0
  35. package/plugins/core/provider-memory-store/plugin.json +9 -0
  36. package/plugins/core/provider-role-registry/index.js +376 -0
  37. package/plugins/core/provider-role-registry/plugin.json +9 -0
  38. package/plugins/core/provider-state-store/index.js +244 -0
  39. package/plugins/core/provider-state-store/plugin.json +9 -0
  40. package/plugins/core/provider-watchdog/assets/daemon-config.template.json +32 -0
  41. package/plugins/core/provider-watchdog/assets/lib/watchdog-multi-window.js +676 -0
  42. package/plugins/core/provider-watchdog/assets/watchdog.js +754 -0
  43. package/plugins/core/provider-watchdog/index.js +151 -0
  44. package/plugins/core/provider-watchdog/plugin.json +13 -0
  45. package/plugins/core/skill-agent-dispatcher/cleanup-reference.md +214 -0
  46. package/plugins/core/skill-agent-dispatcher/daemon-helpers-reference.md +249 -0
  47. package/plugins/core/skill-agent-dispatcher/plugin.json +13 -0
  48. package/plugins/core/skill-agent-dispatcher/roles-reference.md +253 -0
  49. package/plugins/core/skill-agent-dispatcher/skill.md +1291 -0
  50. package/plugins/core/skill-agentic-loop/plugin.json +20 -0
  51. package/plugins/core/skill-agentic-loop/skill.md +572 -0
  52. package/plugins/core/skill-batch-task-creator/plugin.json +15 -0
  53. package/plugins/core/skill-batch-task-creator/skill.md +620 -0
  54. package/plugins/core/skill-checklist/plugin.json +10 -0
  55. package/plugins/core/skill-checklist/skill.md +171 -0
  56. package/plugins/core/skill-completion-report/plugin.json +10 -0
  57. package/plugins/core/skill-completion-report/skill.md +331 -0
  58. package/plugins/core/skill-doukui-plan/plugin.json +15 -0
  59. package/plugins/core/skill-doukui-plan/skill.md +233 -0
  60. package/plugins/core/skill-doukui-sync/plugin.json +10 -0
  61. package/plugins/core/skill-doukui-sync/skill.md +76 -0
  62. package/plugins/core/skill-experience-logger/plugin.json +10 -0
  63. package/plugins/core/skill-experience-logger/skill.md +235 -0
  64. package/plugins/core/skill-human-checkpoint/plugin.json +10 -0
  65. package/plugins/core/skill-human-checkpoint/skill.md +194 -0
  66. package/plugins/core/skill-progress-tracker/plugin.json +10 -0
  67. package/plugins/core/skill-progress-tracker/skill.md +228 -0
  68. package/plugins/core/skill-role-manager/plugin.json +10 -0
  69. package/plugins/core/skill-role-manager/skill.md +252 -0
  70. package/plugins/core/skill-split-work-package/plugin.json +15 -0
  71. package/plugins/core/skill-split-work-package/skill.md +441 -0
  72. package/plugins/core/skill-task-archive/plugin.json +10 -0
  73. package/plugins/core/skill-task-archive/skill.md +116 -0
  74. package/plugins/core/skill-task-creator/plugin.json +15 -0
  75. package/plugins/core/skill-task-creator/skill.md +886 -0
  76. package/plugins/core/skill-team-cleanup/plugin.json +10 -0
  77. package/plugins/core/skill-team-cleanup/skill.md +266 -0
  78. package/plugins/core/skill-watchdog-manager/plugin.json +10 -0
  79. package/plugins/core/skill-watchdog-manager/skill.md +143 -0
  80. package/plugins/core/skill-workflow-orchestrator/plugin.json +13 -0
  81. package/plugins/core/skill-workflow-orchestrator/skill.md +273 -0
  82. package/plugins/core/validator-doc-sync/index.js +248 -0
  83. package/plugins/core/validator-doc-sync/plugin.json +12 -0
  84. package/plugins/core/validator-work-package/index.js +300 -0
  85. package/plugins/core/validator-work-package/plugin.json +12 -0
  86. package/plugins/plugin-registry.json +186 -0
  87. package/plugins/runtime/agent-def-generator.js +150 -0
  88. package/plugins/runtime/audit-logger.js +311 -0
  89. package/plugins/runtime/build-cli.js +89 -0
  90. package/plugins/runtime/checkresult-validator.js +131 -0
  91. package/plugins/runtime/claude-md-injector.js +159 -0
  92. package/plugins/runtime/cleanup-utils.js +293 -0
  93. package/plugins/runtime/config-manager.js +317 -0
  94. package/plugins/runtime/config-validator.js +320 -0
  95. package/plugins/runtime/context-window.js +81 -0
  96. package/plugins/runtime/event-bus.js +207 -0
  97. package/plugins/runtime/executor-claude.js +828 -0
  98. package/plugins/runtime/executor-default.js +448 -0
  99. package/plugins/runtime/executor-local.js +178 -0
  100. package/plugins/runtime/executor-sdk.js +390 -0
  101. package/plugins/runtime/harness-build.js +1037 -0
  102. package/plugins/runtime/hook-dispatcher.js +315 -0
  103. package/plugins/runtime/logger.js +192 -0
  104. package/plugins/runtime/loop-actuator.js +292 -0
  105. package/plugins/runtime/loop-coordinator.js +347 -0
  106. package/plugins/runtime/loop-defaults.js +29 -0
  107. package/plugins/runtime/loop-dispatch-batch.js +247 -0
  108. package/plugins/runtime/loop-executor.js +120 -0
  109. package/plugins/runtime/loop-report.js +327 -0
  110. package/plugins/runtime/loop-server-core.js +750 -0
  111. package/plugins/runtime/loop-snapshot.js +581 -0
  112. package/plugins/runtime/loop-trace.js +242 -0
  113. package/plugins/runtime/loop-worktree.js +404 -0
  114. package/plugins/runtime/manifest-resolver.js +457 -0
  115. package/plugins/runtime/multi-window-coordinator.js +560 -0
  116. package/plugins/runtime/objective-verifier.js +136 -0
  117. package/plugins/runtime/plan-reader.js +763 -0
  118. package/plugins/runtime/plugin-loader.js +798 -0
  119. package/plugins/runtime/plugin-trust.js +182 -0
  120. package/plugins/runtime/plugin-validator.js +491 -0
  121. package/plugins/runtime/provider-failover.js +114 -0
  122. package/plugins/runtime/provider-resolver.js +342 -0
  123. package/plugins/runtime/reflection-evaluator.js +540 -0
  124. package/plugins/runtime/resolve-plugin-path.js +297 -0
  125. package/plugins/runtime/safe-path.js +119 -0
  126. package/plugins/runtime/sandbox-context.js +235 -0
  127. package/plugins/runtime/sandbox-manager.js +609 -0
  128. package/plugins/runtime/sandbox-worker.js +215 -0
  129. package/plugins/runtime/settings-merger.js +172 -0
  130. package/plugins/runtime/state-store.js +527 -0
  131. package/plugins/runtime/team-cleanup.js +497 -0
  132. package/plugins/runtime/text-tokenize.js +25 -0
  133. package/plugins/runtime/validator-pipeline.js +475 -0
  134. package/plugins/runtime/yaml-parser.js +692 -0
  135. package/templates/harness-config.yaml +388 -0
@@ -0,0 +1,171 @@
1
+ ---
2
+ name: skill-checklist
3
+ description: "Use when user says \"运行检查\", \"执行清单\", \"检查清单\", or after completing a work package to verify quality"
4
+ ---
5
+
6
+ # Checklist
7
+
8
+ 开发完成质量检查技能。
9
+
10
+ ## When to Use
11
+ - 用户说 "运行检查" / "执行清单" / "检查清单"
12
+ - **每个工作包完成后自动执行**
13
+ - 提交代码前的最终检查
14
+
15
+ - 功能开发后验证质量
16
+ - Bug 修复后验证修复效果
17
+
18
+ ## Flow
19
+ ```dot
20
+ digraph checklist {
21
+ rankdir=LR;
22
+ node [shape=box]; label="读取 CHECKLIST.md";
23
+
24
+ "读取 CHECKLIST.md" -> "匹配 EXPERIENCE.md";
25
+ "匹配 EXPERIENCE.md" [shape=box];
26
+ "匹配 EXPERIENCE.md" -> "执行检查项";
27
+ "执行检查项" [shape=box];
28
+ "执行检查项" -> "有问题?";
29
+ "有问题?" [shape=diamond];
30
+ "有问题?" -> "查阅经验库" [label="是"];
31
+ "有问题?" -> "生成报告" [label="否"];
32
+ "查阅经验库" [shape=box];
33
+ "查阅经验库" -> "修复问题";
34
+ "修复问题" [shape=box];
35
+ "修复问题" -> "生成报告";
36
+ "生成报告" [shape=box];
37
+ }
38
+ ```
39
+
40
+ ## Checklist Categories
41
+
42
+ ### 1. 代码质量检查
43
+ - [ ] 代码符合 GDScript 规范
44
+ - [ ] 无编译错误/警告
45
+ - [ ] 公共函数有文档注释
46
+ - [ ] 无 ERROR 输出
47
+
48
+ - [ ] 无重复 WARNING
49
+
50
+ - [ ] 临时调试代码已移除
51
+
52
+ ### 2. 测试检查
53
+ - [ ] 测试用例已编写
54
+ - [ ] 测试全部通过
55
+ - [ ] 边界情况已覆盖
56
+ - [ ] 测试文件语法正确
57
+
58
+ ### 3. 文档检查
59
+ - [ ] PROGRESS.md 已更新
60
+ - [ ] task.md 状态已更新
61
+ - [ ] 工作包清单已更新
62
+ - [ ] 新增函数有注释
63
+ - [ ] 复杂逻辑有说明
64
+
65
+ ### 4. Git 检查
66
+ - [ ] git status 确认变更范围
67
+ - [ ] 无误提交文件
68
+ - [ ] 提交信息格式正确
69
+ - [ ] 包含 Co-Authored-By
70
+
71
+ ### 5. 经验记录
72
+ - [ ] 遇到的问题已记录到 EXPERIENCE.md
73
+ - [ ] 解决方案已记录
74
+ - [ ] 可复用的模式已提取
75
+ - [ ] 新发现的坑已添加到 CHECKLIST.md
76
+
77
+ ## Experience Matching Rules
78
+
79
+ 根据工作类型自动匹配相关经验:
80
+
81
+ | 工作类型 | 匹配标签 |
82
+ |----------|----------|
83
+ | 修复脚本错误 | [脚本调试], [API兼容] |
84
+ | 创建/修改场景 | [场景设计], [UI/UX] |
85
+ | 系统重构 | [系统架构], [性能优化] |
86
+ | 添加美术资源 | [美术资源] |
87
+ | 调试运行问题 | [脚本调试], [工具使用] |
88
+
89
+ ## Report Template
90
+ ```markdown
91
+ ## 工作包完成检查报告
92
+
93
+ **工作包**: WP-XXX
94
+ **检查时间**: YYYY-MM-DD HH:mm
95
+
96
+ ### 检查结果
97
+ | 类别 | 通过/总数 | 状态 |
98
+ |------|----------|------|
99
+ | 代码质量 | X/X | ✅/❌ |
100
+ | 测试检查 | X/X | ✅/❌ |
101
+ | 文档检查 | X/X | ✅/❌ |
102
+ | Git 检查 | X/X | ✅/❌ |
103
+ | 经验记录 | X/X | ✅/❌ |
104
+
105
+ ### 未通过项
106
+ - [ ] 检查项 - 原因
107
+
108
+ ### 建议后续操作
109
+ 1. ...
110
+
111
+ <!-- 以下为机器可读判定,供 reflection-evaluator 消费,请勿手改 -->
112
+ ```json:machine-readable
113
+ {
114
+ "wpId": "WP-XXX",
115
+ "checkedAt": "2026-06-12T14:40:00Z",
116
+ "passed": false,
117
+ "summary": { "total": 20, "passed": 18, "failed": 2 },
118
+ "categories": [
119
+ {
120
+ "name": "代码质量",
121
+ "passed": true,
122
+ "items": [
123
+ { "id": "code-1", "text": "代码符合规范", "passed": true },
124
+ { "id": "code-2", "text": "无编译错误", "passed": true }
125
+ ]
126
+ },
127
+ {
128
+ "name": "测试检查",
129
+ "passed": false,
130
+ "items": [
131
+ { "id": "test-3", "text": "边界情况已覆盖", "passed": false, "reason": "缺少边界 X" }
132
+ ]
133
+ }
134
+ ],
135
+ "failedItems": [
136
+ { "category": "测试检查", "id": "test-3", "reason": "缺少边界 X" }
137
+ ]
138
+ }
139
+ ```
140
+ ```
141
+
142
+ ### Machine-Readable Verdict(机器可读判定契约)
143
+
144
+ Report 末尾的 `json:machine-readable` fenced block 是供 **reflection-evaluator**(Agentic Loop Reflect 层)程序化消费的结构化判定,与上方人类可读 Markdown 表格**并存**(追加式,不破坏表格输出)。
145
+
146
+ 字段规范(详见 `docs/reports/agentic-loop-design.md` §5.4):
147
+
148
+ | 字段 | 类型 | 说明 |
149
+ |------|------|------|
150
+ | `wpId` | string | 受检工作包 ID |
151
+ | `checkedAt` | string | ISO 8601 检查时间 |
152
+ | `passed` | boolean | 全部通过才 `true`(与表格"状态"一致) |
153
+ | `summary` | object | `{ total, passed, failed }` 总数统计 |
154
+ | `categories[].name` | string | 与 5 类对齐(代码质量/测试/文档/Git/经验) |
155
+ | `categories[].passed` | boolean | 该类全过才 `true` |
156
+ | `categories[].items[].id` | string | **稳定 ID**(见下方规则) |
157
+ | `categories[].items[].reason` | string? | 失败原因(仅 failed 项必填) |
158
+ | `failedItems` | array | 扁平失败项列表,reflection-evaluator 的 `failingDrivers` 直接映射 |
159
+
160
+ **🔴 `item.id` 跨轮稳定性规则(发散检测前提)**:
161
+
162
+ - 格式 = 类别前缀 + 序号:`code-N` / `test-N` / `doc-N` / `git-N` / `exp-N`(对应 5 类检查)
163
+ - 同一检查项跨多轮 Report **必须用同一个 id**(如"边界情况已覆盖"恒为 `test-3`)
164
+ - **禁止**使用行号、时间戳、随机串或每次重新编号——否则 Agentic Loop 的发散检测("同一失败项反复失败")无法跨轮比对
165
+ - 类别内序号一经分配不再变更;新增检查项追加新序号,不重排已有项
166
+ ```
167
+
168
+ ## Important
169
+ - **每个工作包完成后必须执行此检查清单**
170
+ - 检查未通过时,应修复后再提交
171
+ - 经验记录有助于避免重复踩坑
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "skill-completion-report",
3
+ "version": "1.0.0",
4
+ "type": "skill",
5
+ "description": "Use when completing a work package or batch of tasks - generates standardized completion report and asks for next steps. Triggers after work package execution or when user says \"汇报结果\".",
6
+ "triggers": ["完成报告", "completion-report", "工作包完成", "completion report", "work package complete"],
7
+ "dependencies": ["provider:state-store"],
8
+ "provides": ["skill:completion-report"],
9
+ "config": {}
10
+ }
@@ -0,0 +1,331 @@
1
+ ---
2
+ name: skill-completion-report
3
+ description: "Use when completing a work package or batch of tasks - generates standardized completion report and asks for next steps. Triggers after work package execution or when user says \"汇报结果\"."
4
+ ---
5
+
6
+ <HARD-GATE>
7
+ After generating the completion report, you MUST ask "下一步安排是什么?" and wait for user instruction.
8
+ Do NOT assume what the user wants to do next.
9
+ This is not negotiable.
10
+ </HARD-GATE>
11
+
12
+ # Completion Report
13
+
14
+ 工作包/批次完成后的标准化汇报与询问机制。
15
+
16
+ ## When to Use
17
+
18
+ **自动触发场景**:
19
+ - 工作包执行完成后
20
+ - 批量工作包完成后
21
+ - checklist 检查通过后
22
+
23
+ **手动触发词**:
24
+ - "汇报结果" / "完成报告"
25
+ - "执行完毕" / "任务完成"
26
+ - "总结一下" / "汇报"
27
+
28
+ ## Red Flags - STOP
29
+
30
+ | Thought | Reality |
31
+ |---------|---------|
32
+ | "用户应该知道接下来做什么" | 必须明确询问 |
33
+ | "直接开始下一个任务" | 需要用户确认 |
34
+ | "汇报完就结束" | 必须询问下一步 |
35
+ | "结果很好,不用问了" | 任何情况都要问 |
36
+
37
+ ## Flow
38
+
39
+ ```dot
40
+ digraph completion {
41
+ rankdir=TB;
42
+
43
+ "任务完成" [shape=box];
44
+ "收集执行结果" [shape=box];
45
+ "生成标准化报告" [shape=box];
46
+ "同步所有文档状态" [shape=box, style=filled, fillcolor=orange];
47
+ "运行门控验证" [shape=box, style=filled, fillcolor=red];
48
+ "执行 checklist" [shape=box];
49
+ "记录经验" [shape=box];
50
+ "询问下一步" [shape=box, style=filled, fillcolor=yellow];
51
+ "🛑 等待指令" [shape=box, style=filled, fillcolor=red];
52
+
53
+ "任务完成" -> "收集执行结果";
54
+ "收集执行结果" -> "生成标准化报告";
55
+ "生成标准化报告" -> "同步所有文档状态";
56
+ "同步所有文档状态" -> "运行门控验证";
57
+ "运行门控验证" -> "执行 checklist" [label="通过"];
58
+ "运行门控验证" -> "同步所有文档状态" [label="失败,修复"];
59
+ "执行 checklist" -> "记录经验";
60
+ "记录经验" -> "询问下一步";
61
+ "询问下一步" -> "🛑 等待指令";
62
+ }
63
+ ```
64
+
65
+ ## 强制文档同步
66
+
67
+ **关键步骤** - 生成报告后必须同步更新以下文档状态:
68
+
69
+ | 文档 | 用途 | 必须同步 |
70
+ |------|------|----------|
71
+ | `task.md` | 任务清单(主索引) | ✅ |
72
+ | `docs/wp/WP-XXX.md` | 工作包详情(XXX 为数字编号,支持任意位数) | ⚠️ 如存在 |
73
+
74
+ **同步内容**:
75
+ - 更新工作包状态:`📋 待开始` → `✅ 已完成`
76
+ - 添加完成日期
77
+ - 更新任务列表中的复选框
78
+
79
+ **同步时机**:在生成报告后、执行 checklist 前必须完成
80
+
81
+ ### 状态同步验证 (不可跳过)
82
+
83
+ 同步完成后,必须执行以下验证:
84
+
85
+ ```bash
86
+ # 验证 task.md 状态已更新(替换为实际编号,如 WP-56 或 WP-1056)
87
+ grep "WP-XXX" task.md | grep "✅ 完成"
88
+ ```
89
+
90
+ | 验证结果 | 处理 |
91
+ |----------|------|
92
+ | ✅ 找到 | 继续执行 checklist |
93
+ | ❌ 未找到 | **停止!** 重新执行状态同步 |
94
+
95
+ **这是硬性要求,不可跳过。**
96
+
97
+ ## 代码门控验证(必须)
98
+
99
+ **同步完成后必须运行门控验证**:
100
+
101
+ ```bash
102
+ node .claude/validators/skill-gate.js completion-report WP-XXX # 替换为实际编号,如 WP-56 或 WP-1056
103
+ ```
104
+
105
+ | 结果 | 处理 |
106
+ |------|------|
107
+ | ✅ 通过 | 继续执行 checklist |
108
+ | ❌ 失败 | 必须修复文档状态,重新验证 |
109
+
110
+ **这是硬性要求,不可跳过。**
111
+
112
+ ## Report Types
113
+
114
+ ### 1. 单个工作包完成报告
115
+
116
+ ```markdown
117
+ 帅哥,工作包执行完成!
118
+
119
+ ## 📦 WP-XXX: 工作包名称 <!-- XXX = 实际数字编号,无位数限制 -->
120
+
121
+ ### 执行结果
122
+ | 任务ID | 任务名称 | 状态 | 说明 |
123
+ |--------|----------|------|------|
124
+ | XXX-001 | 任务1 | ✅ 完成 | - |
125
+ | XXX-002 | 任务2 | ✅ 完成 | - |
126
+
127
+ ### 创建/修改的文件
128
+ ```
129
+ scripts/xxx.gd # 新增
130
+ scenes/xxx.tscn # 修改
131
+ test/unit/test_xxx.gd # 新增
132
+ ```
133
+
134
+ ### 验收标准完成情况
135
+ - [x] XXX-001-A1: 验收项1
136
+ - [x] XXX-001-A2: 验收项2
137
+ - [x] XXX-002-A1: 验收项1
138
+
139
+ ### 测试结果
140
+ - 单元测试: ✅ 5/5 通过
141
+ - 集成测试: ✅ 3/3 通过
142
+
143
+ ### 检查结果
144
+ | 类别 | 通过/总数 | 状态 |
145
+ |------|----------|------|
146
+ | 代码质量 | 5/5 | ✅ |
147
+ | 测试检查 | 4/4 | ✅ |
148
+ | 文档检查 | 3/3 | ✅ |
149
+ | Git 检查 | 2/2 | ✅ |
150
+
151
+ ### 遇到的问题与解决
152
+ - **问题**: [问题描述]
153
+ - **解决**: [解决方案]
154
+
155
+ ---
156
+ 🔴 **下一步安排是什么?**
157
+ ```
158
+
159
+ ### 2. 批量工作包完成报告
160
+
161
+ ```markdown
162
+ 帅哥,本批次工作包执行完成!
163
+
164
+ ## 📊 执行总览
165
+
166
+ | 工作包 | 状态 | 子任务 | 测试 | 说明 |
167
+ |--------|------|--------|------|------|
168
+ | WP-XXX | ✅ 完成 | 3/3 | 9/9 | - | <!-- 编号支持任意位数,如 WP-56 或 WP-1056 -->
169
+ | WP-YYY | ✅ 完成 | 2/2 | 6/6 | - |
170
+ | WP-ZZZ | ❌ 阻塞 | 1/3 | 2/6 | 依赖未满足 |
171
+
172
+ ### 统计
173
+ - **总工作包**: 3 个
174
+ - **完成**: 2 个
175
+ - **阻塞**: 1 个
176
+ - **总耗时**: 约 Xh
177
+ - **测试通过率**: 17/21 (81%)
178
+
179
+ ## ❌ 未完成项
180
+
181
+ ### WP-ZZZ: 工作包名称
182
+ - **阻塞原因**: 依赖 WP-AAA 未完成
183
+ - **需要**: [具体依赖内容]
184
+ - **建议**: 先完成 WP-AAA
185
+
186
+ ## 📁 文件变更汇总
187
+ ```
188
+ 新增文件:
189
+ scripts/aaa.gd
190
+ scripts/bbb.gd
191
+ test/unit/test_aaa.gd
192
+
193
+ 修改文件:
194
+ scenes/main.tscn
195
+ scripts/manager.gd
196
+ ```
197
+
198
+ ## 💡 经验总结
199
+ - [经验1]: 描述
200
+ - [经验2]: 描述
201
+
202
+ ## 📋 下一步建议
203
+
204
+ **优先级排序**:
205
+ 1. 完成 WP-AAA(解除 WP-ZZZ 阻塞)
206
+ 2. 继续执行 WP-ZZZ
207
+ 3. 开始新的工作包 WP-BBB
208
+
209
+ ---
210
+ 🔴 **下一步安排是什么?**
211
+ ```
212
+
213
+ ### 3. 简化完成报告(单任务快速汇报)
214
+
215
+ ```markdown
216
+ 帅哥,任务完成!
217
+
218
+ ## ✅ 完成内容
219
+ - [具体完成的内容1]
220
+ - [具体完成的内容2]
221
+
222
+ ## 📁 变更文件
223
+ - `scripts/xxx.gd` - 修改
224
+ - `test/unit/test_xxx.gd` - 新增
225
+
226
+ ## ✅ 测试状态
227
+ - 全部通过 (X/X)
228
+
229
+ ---
230
+ 🔴 **下一步安排是什么?**
231
+ ```
232
+
233
+ ## Required Elements
234
+
235
+ 每个完成报告必须包含:
236
+
237
+ | 元素 | 说明 | 必需 |
238
+ |------|------|------|
239
+ | 执行结果表 | 任务完成状态 | ✅ |
240
+ | 文件变更 | 创建/修改的文件 | ✅ |
241
+ | 测试状态 | 测试通过情况 | ✅ |
242
+ | 检查结果 | checklist 结果 | ✅ |
243
+ | 文档同步 | PROGRESS.md + task.md | ✅ **必须** |
244
+ | 未完成项 | 阻塞/失败原因 | ⚠️ 如有 |
245
+ | 下一步建议 | 建议的后续操作 | ⚠️ 可选 |
246
+ | 询问下一步 | "下一步安排是什么?" | ✅ 必须 |
247
+
248
+ ## 清理状态验证(批量执行后必须)
249
+
250
+ **如果本次执行使用了 agent-dispatcher(批量执行)**,报告必须包含清理状态:
251
+
252
+ ```markdown
253
+ ## 🧹 清理状态
254
+
255
+ - Teamee 逻辑销毁: ✅ 已完成(teamee_map 已空) / ❌ 未完成
256
+ - 批次标签 (team_name): {team_name}
257
+ - 清理时间: {cleanup_time}
258
+ ```
259
+
260
+ **如果 Teamee 未全部逻辑销毁**,报告必须包含警告:
261
+
262
+ ```markdown
263
+ ⚠️ **警告**: Teamee 未全部逻辑销毁(teamee_map 非空),存在资源残留!
264
+ 建议补执行 markTeameeDestroyed 清空映射表(当前 session implicit team 随 session 自动清理,无需 TeamDelete)
265
+ ```
266
+
267
+ ### 清理验证方法
268
+
269
+ ```bash
270
+ # 验证 Teamee 已逻辑销毁(teamee_map 已空)
271
+ # 注:当前 session implicit team 随 session 自动清理,不依赖目录删除
272
+ # 历史残留的显式/UUID 团队目录可用 team-cleanup CLI 清理
273
+ ```
274
+
275
+ | 验证结果 | 处理 |
276
+ |----------|------|
277
+ | ✅ 目录不存在 | 清理成功,继续报告 |
278
+ | ❌ 目录存在 | 在报告中标注警告,建议手动清理 |
279
+
280
+ ## Question Templates
281
+
282
+ 必须使用以下询问模板之一:
283
+
284
+ - 🔴 **下一步安排是什么?**
285
+ - 🔴 **请问接下来要做什么?**
286
+ - 🔴 **您希望我继续做什么?**
287
+
288
+ ## Response Handling
289
+
290
+ ### 继续执行类
291
+ - "继续执行 WP-XXX" → 开始执行指定工作包
292
+ - "按你的建议来" → 执行建议的下一步
293
+
294
+ ### 新任务类
295
+ - "创建任务..." → 调用 task-creator
296
+ - "先处理 XXX" → 切换到新任务
297
+
298
+ ### 暂停类
299
+ - "先停一下" / "等等" → 保持等待状态
300
+ - "今天到这里" → 记录进度,结束会话
301
+
302
+ ### 修改类
303
+ - "XXX 需要改一下" → 处理修改意见
304
+
305
+ ## Integration with Other Skills
306
+
307
+ ```dot
308
+ digraph integration {
309
+ rankdir=LR;
310
+
311
+ "工作包完成" [shape=box];
312
+ "completion-report" [shape=box, style=filled, fillcolor=lightblue];
313
+ "checklist" [shape=box];
314
+ "experience-logger" [shape=box];
315
+ "human-checkpoint" [shape=box];
316
+ "用户指令" [shape=box];
317
+
318
+ "工作包完成" -> "completion-report";
319
+ "completion-report" -> "checklist";
320
+ "completion-report" -> "experience-logger";
321
+ "completion-report" -> "human-checkpoint";
322
+ "human-checkpoint" -> "用户指令";
323
+ }
324
+ ```
325
+
326
+ ## Forbidden Actions
327
+
328
+ - ❌ 不要在报告后直接开始新任务
329
+ - ❌ 不要假设用户想要什么
330
+ - ❌ 不要省略询问下一步
331
+ - ❌ 不要忽略未完成项
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "skill-doukui-plan",
3
+ "version": "1.0.0",
4
+ "type": "skill",
5
+ "description": "目标驱动计划生成器 - 把自然语言需求/目标分解为符合 plan-reader 契约的结构化计划,输出到 docs/plan/,供 skill-agentic-loop 读取拆 WP 自闭环执行。仅生成计划,不执行、不拆 WP 文档。",
6
+ "triggers": ["生成计划", "制定计划", "写计划", "规划方案", "doukui-plan", "generate plan", "make plan", "目标分解"],
7
+ "dependencies": ["provider:state-store"],
8
+ "provides": ["skill:doukui-plan"],
9
+ "metadata": {
10
+ "gatedByCode": true
11
+ },
12
+ "config": {
13
+ "plan_mode_required": true
14
+ }
15
+ }