@zmice/zc 0.2.1 → 0.2.4

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 (253) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +242 -55
  3. package/dist/cli/__tests__/platform.test.js +573 -34
  4. package/dist/cli/__tests__/platform.test.js.map +1 -1
  5. package/dist/cli/__tests__/toolkit.test.js +35 -0
  6. package/dist/cli/__tests__/toolkit.test.js.map +1 -1
  7. package/dist/cli/platform.d.ts +15 -1
  8. package/dist/cli/platform.d.ts.map +1 -1
  9. package/dist/cli/platform.js +1195 -87
  10. package/dist/cli/platform.js.map +1 -1
  11. package/dist/cli/toolkit.d.ts.map +1 -1
  12. package/dist/cli/toolkit.js +26 -1
  13. package/dist/cli/toolkit.js.map +1 -1
  14. package/dist/node_modules/@zmice/platform-core/dist/index.d.ts +54 -1
  15. package/dist/node_modules/@zmice/platform-core/dist/index.d.ts.map +1 -1
  16. package/dist/node_modules/@zmice/platform-core/dist/index.js +53 -0
  17. package/dist/node_modules/@zmice/platform-core/dist/index.js.map +1 -1
  18. package/dist/node_modules/@zmice/platform-core/dist/index.test.js +1 -1
  19. package/dist/node_modules/@zmice/platform-core/dist/index.test.js.map +1 -1
  20. package/dist/node_modules/@zmice/platform-core/package.json +1 -1
  21. package/dist/platform-state/doctor.d.ts +3 -0
  22. package/dist/platform-state/doctor.d.ts.map +1 -0
  23. package/dist/platform-state/doctor.js +96 -0
  24. package/dist/platform-state/doctor.js.map +1 -0
  25. package/dist/platform-state/index.d.ts +2 -1
  26. package/dist/platform-state/index.d.ts.map +1 -1
  27. package/dist/platform-state/index.js +1 -0
  28. package/dist/platform-state/index.js.map +1 -1
  29. package/dist/platform-state/receipt.d.ts +5 -0
  30. package/dist/platform-state/receipt.d.ts.map +1 -1
  31. package/dist/platform-state/receipt.js +5 -0
  32. package/dist/platform-state/receipt.js.map +1 -1
  33. package/dist/platform-state/types.d.ts +16 -0
  34. package/dist/platform-state/types.d.ts.map +1 -1
  35. package/dist/utils/install-target.d.ts +1 -1
  36. package/dist/utils/install-target.d.ts.map +1 -1
  37. package/dist/utils/install-target.js +16 -6
  38. package/dist/utils/install-target.js.map +1 -1
  39. package/dist/utils/install-target.test.js +19 -10
  40. package/dist/utils/install-target.test.js.map +1 -1
  41. package/dist/utils/platform-install-cleanup.d.ts +7 -0
  42. package/dist/utils/platform-install-cleanup.d.ts.map +1 -0
  43. package/dist/utils/platform-install-cleanup.js +34 -0
  44. package/dist/utils/platform-install-cleanup.js.map +1 -0
  45. package/dist/utils/platform-install-cleanup.test.d.ts +2 -0
  46. package/dist/utils/platform-install-cleanup.test.d.ts.map +1 -0
  47. package/dist/utils/platform-install-cleanup.test.js +30 -0
  48. package/dist/utils/platform-install-cleanup.test.js.map +1 -0
  49. package/dist/utils/platform-install-receipt.d.ts +1 -0
  50. package/dist/utils/platform-install-receipt.d.ts.map +1 -1
  51. package/dist/utils/platform-install-receipt.js +10 -2
  52. package/dist/utils/platform-install-receipt.js.map +1 -1
  53. package/dist/utils/platform-install-receipt.test.js +30 -2
  54. package/dist/utils/platform-install-receipt.test.js.map +1 -1
  55. package/dist/utils/qwen-extension-cli.d.ts +52 -0
  56. package/dist/utils/qwen-extension-cli.d.ts.map +1 -0
  57. package/dist/utils/qwen-extension-cli.js +169 -0
  58. package/dist/utils/qwen-extension-cli.js.map +1 -0
  59. package/dist/utils/qwen-extension-cli.test.d.ts +2 -0
  60. package/dist/utils/qwen-extension-cli.test.d.ts.map +1 -0
  61. package/dist/utils/qwen-extension-cli.test.js +100 -0
  62. package/dist/utils/qwen-extension-cli.test.js.map +1 -0
  63. package/package.json +22 -8
  64. package/vendor/node_modules/@zmice/platform-core/dist/index.d.ts +54 -1
  65. package/vendor/node_modules/@zmice/platform-core/dist/index.d.ts.map +1 -1
  66. package/vendor/node_modules/@zmice/platform-core/dist/index.js +53 -0
  67. package/vendor/node_modules/@zmice/platform-core/dist/index.js.map +1 -1
  68. package/vendor/node_modules/@zmice/platform-core/dist/index.test.js +1 -1
  69. package/vendor/node_modules/@zmice/platform-core/dist/index.test.js.map +1 -1
  70. package/vendor/node_modules/@zmice/platform-core/package.json +1 -1
  71. package/vendor/packages/platform-claude/dist/generate.d.ts +2 -0
  72. package/vendor/packages/platform-claude/dist/generate.d.ts.map +1 -0
  73. package/vendor/packages/platform-claude/dist/generate.js +2 -0
  74. package/vendor/packages/platform-claude/dist/generate.js.map +1 -0
  75. package/vendor/packages/platform-claude/dist/index.d.ts +50 -0
  76. package/vendor/packages/platform-claude/dist/index.d.ts.map +1 -0
  77. package/vendor/packages/platform-claude/dist/index.js +250 -0
  78. package/vendor/packages/platform-claude/dist/index.js.map +1 -0
  79. package/vendor/packages/platform-claude/dist/index.test.js +81 -0
  80. package/vendor/packages/platform-claude/dist/index.test.js.map +1 -0
  81. package/vendor/packages/platform-claude/dist/install.d.ts +2 -0
  82. package/vendor/packages/platform-claude/dist/install.d.ts.map +1 -0
  83. package/vendor/packages/platform-claude/dist/install.js +2 -0
  84. package/vendor/packages/platform-claude/dist/install.js.map +1 -0
  85. package/vendor/packages/platform-claude/package.json +46 -0
  86. package/vendor/packages/platform-claude/templates/.gitkeep +1 -0
  87. package/vendor/packages/platform-claude/templates/CLAUDE.md +1 -0
  88. package/vendor/packages/platform-codex/dist/index.d.ts +36 -2
  89. package/vendor/packages/platform-codex/dist/index.d.ts.map +1 -1
  90. package/vendor/packages/platform-codex/dist/index.js +231 -6
  91. package/vendor/packages/platform-codex/dist/index.js.map +1 -1
  92. package/vendor/packages/platform-codex/dist/index.test.js +40 -10
  93. package/vendor/packages/platform-codex/dist/index.test.js.map +1 -1
  94. package/vendor/packages/platform-opencode/dist/generate.d.ts +2 -0
  95. package/vendor/packages/platform-opencode/dist/generate.d.ts.map +1 -0
  96. package/vendor/packages/platform-opencode/dist/generate.js +2 -0
  97. package/vendor/packages/platform-opencode/dist/generate.js.map +1 -0
  98. package/vendor/packages/platform-opencode/dist/index.d.ts +46 -0
  99. package/vendor/packages/platform-opencode/dist/index.d.ts.map +1 -0
  100. package/vendor/packages/platform-opencode/dist/index.js +308 -0
  101. package/vendor/packages/platform-opencode/dist/index.js.map +1 -0
  102. package/vendor/packages/platform-opencode/dist/index.test.d.ts +2 -0
  103. package/vendor/packages/platform-opencode/dist/index.test.d.ts.map +1 -0
  104. package/vendor/packages/platform-opencode/dist/index.test.js +106 -0
  105. package/vendor/packages/platform-opencode/dist/index.test.js.map +1 -0
  106. package/vendor/packages/platform-opencode/dist/install.d.ts +2 -0
  107. package/vendor/packages/platform-opencode/dist/install.d.ts.map +1 -0
  108. package/vendor/packages/platform-opencode/dist/install.js +2 -0
  109. package/vendor/packages/platform-opencode/dist/install.js.map +1 -0
  110. package/vendor/packages/{platform-qoder → platform-opencode}/package.json +2 -2
  111. package/vendor/packages/platform-opencode/templates/AGENTS.md +1 -0
  112. package/vendor/packages/platform-qwen/dist/index.d.ts +55 -2
  113. package/vendor/packages/platform-qwen/dist/index.d.ts.map +1 -1
  114. package/vendor/packages/platform-qwen/dist/index.js +229 -11
  115. package/vendor/packages/platform-qwen/dist/index.js.map +1 -1
  116. package/vendor/packages/platform-qwen/dist/index.test.js +54 -16
  117. package/vendor/packages/platform-qwen/dist/index.test.js.map +1 -1
  118. package/vendor/packages/toolkit/dist/loaders.test.js +1 -1
  119. package/vendor/packages/toolkit/dist/loaders.test.js.map +1 -1
  120. package/vendor/packages/toolkit/dist/manifests.test.js +29 -2
  121. package/vendor/packages/toolkit/dist/manifests.test.js.map +1 -1
  122. package/vendor/packages/toolkit/dist/query/toolkit-query.d.ts +4 -6
  123. package/vendor/packages/toolkit/dist/query/toolkit-query.d.ts.map +1 -1
  124. package/vendor/packages/toolkit/dist/query/toolkit-query.js +99 -1
  125. package/vendor/packages/toolkit/dist/query/toolkit-query.js.map +1 -1
  126. package/vendor/packages/toolkit/dist/query.test.js +209 -0
  127. package/vendor/packages/toolkit/dist/query.test.js.map +1 -1
  128. package/vendor/packages/toolkit/dist/schema/asset-meta.d.ts.map +1 -1
  129. package/vendor/packages/toolkit/dist/schema/asset-meta.js +105 -1
  130. package/vendor/packages/toolkit/dist/schema/asset-meta.js.map +1 -1
  131. package/vendor/packages/toolkit/dist/types.d.ts +41 -1
  132. package/vendor/packages/toolkit/dist/types.d.ts.map +1 -1
  133. package/vendor/packages/toolkit/dist/types.js +26 -1
  134. package/vendor/packages/toolkit/dist/types.js.map +1 -1
  135. package/vendor/packages/toolkit/package.json +1 -1
  136. package/vendor/packages/toolkit/src/content/agents/architect/meta.yaml +2 -1
  137. package/vendor/packages/toolkit/src/content/agents/backend-specialist/meta.yaml +2 -1
  138. package/vendor/packages/toolkit/src/content/agents/code-reviewer/meta.yaml +2 -1
  139. package/vendor/packages/toolkit/src/content/agents/frontend-specialist/meta.yaml +2 -1
  140. package/vendor/packages/toolkit/src/content/agents/performance-engineer/meta.yaml +2 -1
  141. package/vendor/packages/toolkit/src/content/agents/product-owner/meta.yaml +2 -1
  142. package/vendor/packages/toolkit/src/content/agents/security-auditor/meta.yaml +2 -1
  143. package/vendor/packages/toolkit/src/content/agents/test-engineer/meta.yaml +2 -1
  144. package/vendor/packages/toolkit/src/content/commands/api/meta.yaml +2 -1
  145. package/vendor/packages/toolkit/src/content/commands/build/body.md +15 -20
  146. package/vendor/packages/toolkit/src/content/commands/build/meta.yaml +12 -1
  147. package/vendor/packages/toolkit/src/content/commands/careful/body.md +21 -11
  148. package/vendor/packages/toolkit/src/content/commands/careful/meta.yaml +16 -1
  149. package/vendor/packages/toolkit/src/content/commands/ci/meta.yaml +2 -1
  150. package/vendor/packages/toolkit/src/content/commands/commit/meta.yaml +2 -1
  151. package/vendor/packages/toolkit/src/content/commands/ctx-health/body.md +16 -16
  152. package/vendor/packages/toolkit/src/content/commands/ctx-health/meta.yaml +11 -1
  153. package/vendor/packages/toolkit/src/content/commands/debug/body.md +16 -17
  154. package/vendor/packages/toolkit/src/content/commands/debug/meta.yaml +12 -1
  155. package/vendor/packages/toolkit/src/content/commands/doc/body.md +15 -16
  156. package/vendor/packages/toolkit/src/content/commands/doc/meta.yaml +11 -1
  157. package/vendor/packages/toolkit/src/content/commands/freeze/body.md +20 -9
  158. package/vendor/packages/toolkit/src/content/commands/freeze/meta.yaml +16 -1
  159. package/vendor/packages/toolkit/src/content/commands/guard/body.md +21 -10
  160. package/vendor/packages/toolkit/src/content/commands/guard/meta.yaml +16 -1
  161. package/vendor/packages/toolkit/src/content/commands/idea/body.md +15 -16
  162. package/vendor/packages/toolkit/src/content/commands/idea/meta.yaml +12 -1
  163. package/vendor/packages/toolkit/src/content/commands/learn/meta.yaml +2 -1
  164. package/vendor/packages/toolkit/src/content/commands/migrate/meta.yaml +2 -1
  165. package/vendor/packages/toolkit/src/content/commands/onboard/body.md +15 -17
  166. package/vendor/packages/toolkit/src/content/commands/onboard/meta.yaml +11 -1
  167. package/vendor/packages/toolkit/src/content/commands/perf/meta.yaml +2 -1
  168. package/vendor/packages/toolkit/src/content/commands/plan-review/body.md +21 -20
  169. package/vendor/packages/toolkit/src/content/commands/plan-review/meta.yaml +12 -1
  170. package/vendor/packages/toolkit/src/content/commands/product-analysis/body.md +52 -0
  171. package/vendor/packages/toolkit/src/content/commands/product-analysis/meta.yaml +35 -0
  172. package/vendor/packages/toolkit/src/content/commands/qa/meta.yaml +2 -1
  173. package/vendor/packages/toolkit/src/content/commands/quality-review/body.md +13 -18
  174. package/vendor/packages/toolkit/src/content/commands/quality-review/meta.yaml +13 -1
  175. package/vendor/packages/toolkit/src/content/commands/retro/meta.yaml +2 -1
  176. package/vendor/packages/toolkit/src/content/commands/sdd-tdd/body.md +29 -29
  177. package/vendor/packages/toolkit/src/content/commands/sdd-tdd/meta.yaml +11 -1
  178. package/vendor/packages/toolkit/src/content/commands/secure/meta.yaml +2 -1
  179. package/vendor/packages/toolkit/src/content/commands/ship/body.md +16 -11
  180. package/vendor/packages/toolkit/src/content/commands/ship/meta.yaml +11 -1
  181. package/vendor/packages/toolkit/src/content/commands/simplify/meta.yaml +2 -1
  182. package/vendor/packages/toolkit/src/content/commands/spec/body.md +16 -21
  183. package/vendor/packages/toolkit/src/content/commands/spec/meta.yaml +12 -1
  184. package/vendor/packages/toolkit/src/content/commands/start/body.md +148 -0
  185. package/vendor/packages/toolkit/src/content/commands/start/meta.yaml +55 -0
  186. package/vendor/packages/toolkit/src/content/commands/task-plan/body.md +13 -18
  187. package/vendor/packages/toolkit/src/content/commands/task-plan/meta.yaml +12 -1
  188. package/vendor/packages/toolkit/src/content/commands/ui/meta.yaml +2 -1
  189. package/vendor/packages/toolkit/src/content/commands/verify/body.md +12 -17
  190. package/vendor/packages/toolkit/src/content/commands/verify/meta.yaml +15 -1
  191. package/vendor/packages/toolkit/src/content/skills/api-and-interface-design/meta.yaml +2 -1
  192. package/vendor/packages/toolkit/src/content/skills/brainstorming-and-design/meta.yaml +2 -1
  193. package/vendor/packages/toolkit/src/content/skills/branch-finish-and-cleanup/meta.yaml +2 -1
  194. package/vendor/packages/toolkit/src/content/skills/browser-qa-testing/meta.yaml +2 -1
  195. package/vendor/packages/toolkit/src/content/skills/ci-cd-and-automation/meta.yaml +2 -1
  196. package/vendor/packages/toolkit/src/content/skills/code-review-and-quality/meta.yaml +2 -1
  197. package/vendor/packages/toolkit/src/content/skills/code-simplification/meta.yaml +2 -1
  198. package/vendor/packages/toolkit/src/content/skills/codebase-onboarding/body.md +6 -3
  199. package/vendor/packages/toolkit/src/content/skills/codebase-onboarding/meta.yaml +2 -1
  200. package/vendor/packages/toolkit/src/content/skills/context-budget-audit/meta.yaml +2 -1
  201. package/vendor/packages/toolkit/src/content/skills/context-engineering/body.md +7 -5
  202. package/vendor/packages/toolkit/src/content/skills/context-engineering/meta.yaml +2 -1
  203. package/vendor/packages/toolkit/src/content/skills/continuous-learning/body.md +15 -15
  204. package/vendor/packages/toolkit/src/content/skills/continuous-learning/meta.yaml +2 -1
  205. package/vendor/packages/toolkit/src/content/skills/debugging-and-error-recovery/body.md +9 -6
  206. package/vendor/packages/toolkit/src/content/skills/debugging-and-error-recovery/meta.yaml +2 -1
  207. package/vendor/packages/toolkit/src/content/skills/deprecation-and-migration/meta.yaml +2 -1
  208. package/vendor/packages/toolkit/src/content/skills/developer-experience-audit/meta.yaml +2 -1
  209. package/vendor/packages/toolkit/src/content/skills/documentation-and-adrs/body.md +7 -11
  210. package/vendor/packages/toolkit/src/content/skills/documentation-and-adrs/meta.yaml +2 -1
  211. package/vendor/packages/toolkit/src/content/skills/engineering-principles/meta.yaml +2 -1
  212. package/vendor/packages/toolkit/src/content/skills/frontend-ui-engineering/meta.yaml +2 -1
  213. package/vendor/packages/toolkit/src/content/skills/git-workflow-and-versioning/meta.yaml +2 -1
  214. package/vendor/packages/toolkit/src/content/skills/idea-refine/body.md +31 -160
  215. package/vendor/packages/toolkit/src/content/skills/idea-refine/meta.yaml +2 -1
  216. package/vendor/packages/toolkit/src/content/skills/incremental-implementation/meta.yaml +2 -1
  217. package/vendor/packages/toolkit/src/content/skills/multi-perspective-review/meta.yaml +2 -1
  218. package/vendor/packages/toolkit/src/content/skills/parallel-agent-dispatch/meta.yaml +2 -1
  219. package/vendor/packages/toolkit/src/content/skills/performance-optimization/meta.yaml +2 -1
  220. package/vendor/packages/toolkit/src/content/skills/planning-and-task-breakdown/meta.yaml +2 -1
  221. package/vendor/packages/toolkit/src/content/skills/release-documentation-sync/meta.yaml +2 -1
  222. package/vendor/packages/toolkit/src/content/skills/review-response-and-resolution/meta.yaml +2 -1
  223. package/vendor/packages/toolkit/src/content/skills/safety-guardrails/body.md +6 -2
  224. package/vendor/packages/toolkit/src/content/skills/safety-guardrails/meta.yaml +2 -1
  225. package/vendor/packages/toolkit/src/content/skills/sdd-tdd-workflow/meta.yaml +2 -1
  226. package/vendor/packages/toolkit/src/content/skills/security-and-hardening/meta.yaml +2 -1
  227. package/vendor/packages/toolkit/src/content/skills/shipping-and-launch/body.md +7 -11
  228. package/vendor/packages/toolkit/src/content/skills/shipping-and-launch/meta.yaml +2 -1
  229. package/vendor/packages/toolkit/src/content/skills/source-driven-development/meta.yaml +2 -1
  230. package/vendor/packages/toolkit/src/content/skills/spec-driven-development/meta.yaml +2 -1
  231. package/vendor/packages/toolkit/src/content/skills/sprint-retrospective/meta.yaml +2 -1
  232. package/vendor/packages/toolkit/src/content/skills/subagent-driven-development/meta.yaml +2 -1
  233. package/vendor/packages/toolkit/src/content/skills/team-orchestration/meta.yaml +2 -1
  234. package/vendor/packages/toolkit/src/content/skills/test-driven-development/meta.yaml +2 -1
  235. package/vendor/packages/toolkit/src/content/skills/using-agent-skills/meta.yaml +2 -1
  236. package/vendor/packages/toolkit/src/content/skills/verification-before-completion/meta.yaml +2 -1
  237. package/vendor/packages/platform-qoder/dist/generate.d.ts +0 -2
  238. package/vendor/packages/platform-qoder/dist/generate.d.ts.map +0 -1
  239. package/vendor/packages/platform-qoder/dist/generate.js +0 -2
  240. package/vendor/packages/platform-qoder/dist/generate.js.map +0 -1
  241. package/vendor/packages/platform-qoder/dist/index.d.ts +0 -15
  242. package/vendor/packages/platform-qoder/dist/index.d.ts.map +0 -1
  243. package/vendor/packages/platform-qoder/dist/index.js +0 -46
  244. package/vendor/packages/platform-qoder/dist/index.js.map +0 -1
  245. package/vendor/packages/platform-qoder/dist/index.test.js +0 -38
  246. package/vendor/packages/platform-qoder/dist/index.test.js.map +0 -1
  247. package/vendor/packages/platform-qoder/dist/install.d.ts +0 -2
  248. package/vendor/packages/platform-qoder/dist/install.d.ts.map +0 -1
  249. package/vendor/packages/platform-qoder/dist/install.js +0 -2
  250. package/vendor/packages/platform-qoder/dist/install.js.map +0 -1
  251. package/vendor/packages/platform-qoder/templates/instructions.md +0 -7
  252. /package/vendor/packages/{platform-qoder → platform-claude}/dist/index.test.d.ts +0 -0
  253. /package/vendor/packages/{platform-qoder → platform-claude}/dist/index.test.d.ts.map +0 -0
@@ -0,0 +1,148 @@
1
+ 调用统一任务开始流程。先评估任务,再在固定 workflow 中选路,不直接假定你已经知道该用哪条命令。
2
+
3
+ ## 核心动作
4
+
5
+ 1. 判断任务主类型:产品分析、完整交付、Bug 修复、审查收尾、文档发布、调查摸底
6
+ 2. 判断需求清晰度:清晰、部分清晰、模糊
7
+ 3. 判断当前阶段:未定义 / 已有 spec / 已有 plan / 正在 build / 待 review / 待收尾
8
+ 4. 判断风险等级:`trivial` / `standard` / `high-risk`
9
+ 5. 输出推荐 workflow、该 workflow 的默认入口和必要的防护建议
10
+
11
+ ## 固定 workflow
12
+
13
+ ### 1. `product-analysis`
14
+
15
+ 适用:
16
+
17
+ - 需求还模糊
18
+ - 目标用户、价值、范围或验收标准不稳定
19
+ - 需要先把想法压成可执行方案
20
+
21
+ 默认入口:
22
+
23
+ - `product-analysis`
24
+
25
+ ### 2. `full-delivery`
26
+
27
+ 适用:
28
+
29
+ - 已确认要做
30
+ - 准备进入完整交付门控
31
+ - 需要走定义、计划、实现、审查、验证的主线
32
+
33
+ 默认入口:
34
+
35
+ - `sdd-tdd`
36
+
37
+ 说明:
38
+
39
+ - `sdd-tdd` 是 `full-delivery` 的 workflow-entry
40
+ - 它不是统一分诊入口
41
+
42
+ ### 3. `bugfix`
43
+
44
+ 适用:
45
+
46
+ - Bug
47
+ - 失败测试
48
+ - 构建失败
49
+ - 异常行为
50
+
51
+ 默认入口:
52
+
53
+ - `debug`
54
+
55
+ ### 4. `review-closure`
56
+
57
+ 适用:
58
+
59
+ - 已有改动
60
+ - 当前重点是审查、反馈处理、分支收尾
61
+
62
+ 默认入口:
63
+
64
+ - `quality-review`
65
+
66
+ ### 5. `docs-release`
67
+
68
+ 适用:
69
+
70
+ - 文档、ADR、发布说明
71
+ - 上线准备与发布后同步
72
+
73
+ 默认入口:
74
+
75
+ - `doc`
76
+
77
+ ### 6. `investigation`
78
+
79
+ 适用:
80
+
81
+ - 陌生代码库
82
+ - 上下文失焦
83
+ - 需要先做项目理解或技术摸底
84
+
85
+ 默认入口:
86
+
87
+ - `onboard`
88
+
89
+ ## 路由原则
90
+
91
+ - 需求模糊、价值与范围未收敛:优先进入 `product-analysis`
92
+ - 已明确要做且需要完整交付:进入 `full-delivery`
93
+ - Bug、异常行为、失败测试:进入 `bugfix`
94
+ - 已完成实现待审查或待响应 review:进入 `review-closure`
95
+ - 重点是文档、ADR、发布与同步:进入 `docs-release`
96
+ - 当前先要理解项目、修复上下文、摸清约束:进入 `investigation`
97
+
98
+ ## 在 workflow 内部的切入点
99
+
100
+ - `product-analysis`
101
+ - 主入口:`product-analysis`
102
+ - 需要先发散想法:`idea`
103
+ - 需要产品判断:`product-owner`
104
+ - 需要方案探索:`brainstorming-and-design`
105
+ - 需要沉淀规格:`spec`
106
+ - 需要做方案评审:`plan-review`
107
+ - `full-delivery`
108
+ - 主入口:`sdd-tdd`
109
+ - 已有 spec:`task-plan`
110
+ - 已有 plan:`build`
111
+ - 待审查:`quality-review`
112
+ - 待验证:`verify`
113
+ - `bugfix`
114
+ - 主入口:`debug`
115
+ - `review-closure`
116
+ - 主入口:`quality-review`
117
+ - `docs-release`
118
+ - 文档优先:`doc`
119
+ - 发布优先:`ship`
120
+ - `investigation`
121
+ - 陌生项目:`onboard`
122
+ - 上下文漂移:`ctx-health`
123
+ - 需要重新收敛问题:`idea`
124
+
125
+ ## 平台说明
126
+
127
+ - `start` 是 canonical command,不等于所有平台都有原生同名命令
128
+ - 在 Codex 上,它更适合作为“统一任务开始方式”的自然语言入口
129
+ - 在 Qwen / Qoder 上,可以呈现为更接近命令式的入口文案
130
+ - 当前阶段没有 `zc start` CLI
131
+
132
+ ## 使用方式
133
+
134
+ 直接描述任务即可;如果你已经知道当前阶段,也可以一起说明。`start` 的职责是帮你先选固定 workflow,再给出下一条入口。
135
+
136
+ ### 示例
137
+
138
+ ```text
139
+ 开始一个新需求:实现用户登录和刷新 token,先判断该直接进 full-delivery 还是先做 product-analysis
140
+
141
+ 修复一个问题:批量导入时偶发重复数据,先帮我判型并选择流程
142
+
143
+ 我这里需求还比较散,先帮我做 product-analysis,整理成可落地方案
144
+
145
+ 我这里已经有 spec,帮我判断下一步应该进 task-plan 还是 build
146
+
147
+ 审查最近的改动,并告诉我是否还需要 verify 或 ship
148
+ ```
@@ -0,0 +1,55 @@
1
+ kind: command
2
+ name: start
3
+ title: 开始
4
+ description: 统一任务开始入口,先评估任务,再在 6 条固定 workflow 中选择合适的路线和默认入口。
5
+ tier: core
6
+ audience: default
7
+ stability: stable
8
+ suggests:
9
+ - command:product-analysis
10
+ - agent:product-owner
11
+ - skill:brainstorming-and-design
12
+ - command:sdd-tdd
13
+ - command:spec
14
+ - command:plan-review
15
+ - command:task-plan
16
+ - command:build
17
+ - command:quality-review
18
+ - command:verify
19
+ - command:debug
20
+ - command:doc
21
+ - command:ship
22
+ - command:onboard
23
+ - command:ctx-health
24
+ - command:idea
25
+ - command:guard
26
+ platforms:
27
+ - qwen
28
+ - codex
29
+ - claude
30
+ - opencode
31
+ workflow_family: intake
32
+ workflow_role: intake-router
33
+ routing_workflows:
34
+ - product-analysis
35
+ - full-delivery
36
+ - bugfix
37
+ - review-closure
38
+ - docs-release
39
+ - investigation
40
+ task_types:
41
+ - feature
42
+ - bugfix
43
+ - review
44
+ - docs
45
+ - release
46
+ - investigation
47
+ platform_exposure:
48
+ codex: prompt-entry
49
+ qwen: command-style
50
+ claude: command-style
51
+ opencode: command-style
52
+ source:
53
+ upstream: toolkit-original
54
+ strategy: curated
55
+ notes: 本仓库新增的统一任务入口,用于 intake、任务判型,并在 product-analysis、full-delivery、bugfix、review-closure、docs-release、investigation 六条固定 workflow 中选路;其中 product-analysis 由独立 workflow-entry 承接。
@@ -1,32 +1,27 @@
1
- 调用 `planning-and-task-breakdown`,只做计划,不直接写代码。
1
+ 这是 `command:start` 之后的 **任务拆解阶段入口**。
2
2
 
3
- ## 核心动作
3
+ `command:start` 或 `command:spec` 已经把任务边界定义清楚,就从这里接力到 `planning-and-task-breakdown`,只做计划,不直接写代码。
4
4
 
5
- 1. 读取规格和相关代码,识别依赖图
5
+ ## 当前阶段要做什么
6
+
7
+ 1. 读取规格、相关代码和依赖关系
6
8
  2. 用垂直切片拆任务,保证每项都可工作、可测试
7
9
  3. 控制改动半径,默认保持小任务、小文件面
8
10
  4. 标注依赖、上下文、风险和验证步骤
9
11
  5. 明确可并行项,并等待计划确认后再进入实现
10
12
 
11
- ## 相关原则
13
+ ## 当前阶段的边界
12
14
 
13
15
  - 计划要服务实现,不做形式化拆分
14
16
  - 每个任务都必须能独立验证
15
- - 先控制复杂度,再谈并行
16
-
17
- ## 使用方式
17
+ - 先控制复杂度,再谈并行和分派
18
18
 
19
- `/task-plan` 后提供 Spec 或需求描述,我会拆解为可执行的原子任务列表。
19
+ ## 从这里通常接到哪里
20
20
 
21
- ### 示例
21
+ - 计划需要额外评审:进入 `command:plan-review`
22
+ - 计划已经确认:进入 `command:build`
23
+ - 如果发现规格仍有空洞,回到 `command:spec`
22
24
 
23
- ```
24
- # 基于 spec 拆解
25
- /task-plan 按照 spec.md 的要求拆解文件上传功能的任务
26
-
27
- # 直接描述需求
28
- /task-plan 拆解用户权限管理模块:RBAC 模型、角色分配、菜单权限、数据权限
25
+ ## 使用方式
29
26
 
30
- # 大型重构
31
- /task-plan 规划单体应用拆微服务的任务,优先拆分用户模块和订单模块
32
- ```
27
+ 提供已确认的规格或需求描述,我会拆成可执行的原子任务,并指出下一步该进入评审还是实现。
@@ -13,7 +13,18 @@ suggests:
13
13
  platforms:
14
14
  - qwen
15
15
  - codex
16
- - qoder
16
+ - claude
17
+ - opencode
18
+ workflow_family: lifecycle
19
+ workflow_role: stage-entry
20
+ task_types:
21
+ - feature
22
+ - bugfix
23
+ platform_exposure:
24
+ codex: prompt-entry
25
+ qwen: command-style
26
+ claude: command-style
27
+ opencode: command-style
17
28
  source:
18
29
  upstream: agent-skills
19
30
  strategy: adapted
@@ -13,7 +13,8 @@ suggests:
13
13
  platforms:
14
14
  - qwen
15
15
  - codex
16
- - qoder
16
+ - claude
17
+ - opencode
17
18
  source:
18
19
  upstream: toolkit-original
19
20
  strategy: curated
@@ -1,6 +1,8 @@
1
- 调用 `verification-before-completion`。未运行验证命令,不得声明完成。
1
+ 这是 `command:start` 之后的 **完成前验证阶段入口**。
2
2
 
3
- ## 核心动作
3
+ `command:quality-review` 已经收敛,或者你准备声明“任务已完成、问题已修复、产物可交付”时,就从这里接力到 `verification-before-completion`。
4
+
5
+ ## 当前阶段要做什么
4
6
 
5
7
  1. 明确验证目标:你准备声明什么已经成立
6
8
  2. 执行新鲜验证:测试、构建、检查或运行验证
@@ -8,25 +10,18 @@
8
10
  4. 带证据汇报:通过则给证据,不通过则报失败点
9
11
  5. 必要时对照 Spec / Plan 做逐项核验
10
12
 
11
- ## 相关原则
13
+ ## 当前阶段的边界
12
14
 
13
15
  - 证据先于断言
14
16
  - 不依赖历史输出和主观感觉
15
- - 失败时先说明实际结果,再判断下一步
16
-
17
- ## 使用方式
17
+ - 验证失败时先说明实际结果,再决定是否回退
18
18
 
19
- 在完成任何实现工作后使用。描述要验证的内容,我会执行完整验证流程。
19
+ ## 从这里通常接到哪里
20
20
 
21
- ### 示例
21
+ - 验证通过:可以进入提交、交付或下一轮任务
22
+ - 验证失败:回到 `command:build`
23
+ - 如果失败暴露范围理解错误:回到 `command:spec` 或 `command:task-plan`
22
24
 
23
- ```
24
- # 功能实现后验证
25
- /verify 确认用户登录功能的所有测试通过,构建成功
26
-
27
- # Bug 修复后验证
28
- /verify 确认批量导入的重复数据问题已修复,回归测试全部通过
25
+ ## 使用方式
29
26
 
30
- # Spec 对照验证
31
- /verify 对照 spec.md 逐项检查文件上传功能的实现完整性
32
- ```
27
+ 说明要验证的结论或交付声明,我会执行完整验证流程,并明确是否真的可以宣布完成。
@@ -12,7 +12,21 @@ suggests:
12
12
  platforms:
13
13
  - qwen
14
14
  - codex
15
- - qoder
15
+ - claude
16
+ - opencode
17
+ workflow_family: lifecycle
18
+ workflow_role: stage-entry
19
+ task_types:
20
+ - feature
21
+ - bugfix
22
+ - review
23
+ - docs
24
+ - release
25
+ platform_exposure:
26
+ codex: prompt-entry
27
+ qwen: command-style
28
+ claude: command-style
29
+ opencode: command-style
16
30
  source:
17
31
  upstream: andrej-karpathy-skills
18
32
  strategy: inspired
@@ -11,7 +11,8 @@ suggests:
11
11
  platforms:
12
12
  - qwen
13
13
  - codex
14
- - qoder
14
+ - claude
15
+ - opencode
15
16
  source:
16
17
  upstream: agent-skills
17
18
  strategy: adapted
@@ -11,7 +11,8 @@ suggests:
11
11
  platforms:
12
12
  - qwen
13
13
  - codex
14
- - qoder
14
+ - claude
15
+ - opencode
15
16
  source:
16
17
  upstream: superpowers
17
18
  strategy: inspired
@@ -10,7 +10,8 @@ suggests:
10
10
  platforms:
11
11
  - qwen
12
12
  - codex
13
- - qoder
13
+ - claude
14
+ - opencode
14
15
  source:
15
16
  upstream: superpowers
16
17
  strategy: inspired
@@ -10,7 +10,8 @@ suggests:
10
10
  platforms:
11
11
  - qwen
12
12
  - codex
13
- - qoder
13
+ - claude
14
+ - opencode
14
15
  source:
15
16
  upstream: agent-skills
16
17
  strategy: adapted
@@ -11,7 +11,8 @@ suggests:
11
11
  platforms:
12
12
  - qwen
13
13
  - codex
14
- - qoder
14
+ - claude
15
+ - opencode
15
16
  source:
16
17
  upstream: agent-skills
17
18
  strategy: adapted
@@ -11,7 +11,8 @@ suggests:
11
11
  platforms:
12
12
  - qwen
13
13
  - codex
14
- - qoder
14
+ - claude
15
+ - opencode
15
16
  source:
16
17
  upstream: agent-skills
17
18
  strategy: adapted
@@ -11,7 +11,8 @@ suggests:
11
11
  platforms:
12
12
  - qwen
13
13
  - codex
14
- - qoder
14
+ - claude
15
+ - opencode
15
16
  source:
16
17
  upstream: agent-skills
17
18
  strategy: adapted
@@ -1,5 +1,7 @@
1
1
  # 代码库导览
2
2
 
3
+ 这是 `command:start` 判型后进入的专项 skill:当任务核心是理解陌生项目、建立上下文地图、决定下一步从哪里切入时,进入这里。
4
+
3
5
  ## 何时使用
4
6
 
5
7
  - 第一次接触一个代码库
@@ -34,7 +36,8 @@
34
36
  - 聚焦当前任务相关区域,不求一次理解全仓库
35
37
  - 概览是压缩上下文,不是转述源码
36
38
 
37
- ## 与其他技能的衔接
39
+ ## 回到主流程
38
40
 
39
- - 产出的概览可直接供 `context-engineering` 使用
40
- - 在陌生项目上做需求或实现前,可先接 `brainstorming-and-design` / `spec-driven-development`
41
+ - 项目地图已经足够,可交给 `context-engineering` 做最小上下文装载
42
+ - 如果接下来要定义需求或方案:回到 `spec-driven-development`
43
+ - 如果已经确认目标,只是缺实现上下文:回到 `incremental-implementation`
@@ -10,7 +10,8 @@ suggests:
10
10
  platforms:
11
11
  - qwen
12
12
  - codex
13
- - qoder
13
+ - claude
14
+ - opencode
14
15
  source:
15
16
  upstream: agent-skills
16
17
  strategy: adapted
@@ -10,7 +10,8 @@ requires:
10
10
  platforms:
11
11
  - qwen
12
12
  - codex
13
- - qoder
13
+ - claude
14
+ - opencode
14
15
  source:
15
16
  upstream: toolkit-original
16
17
  strategy: curated
@@ -1,5 +1,7 @@
1
1
  # 上下文工程
2
2
 
3
+ 这是 `command:start` 判型后进入的专项 skill:当任务核心不是“做什么”,而是“如何把正确上下文装载给接下来的阶段”,进入这里。
4
+
3
5
  ## 何时使用
4
6
 
5
7
  - 开始新的编码会话或新子任务时
@@ -47,9 +49,9 @@
47
49
  - 规格和规则优先于猜测
48
50
  - 压缩上下文是持续动作,不是最后补救
49
51
 
50
- ## 与其他技能的衔接
52
+ ## 回到主流程
51
53
 
52
- - 与 `engineering-principles` 配合,在进入实现前先校准工作方式
53
- - `codebase-onboarding` 配合,先建立地图再装载局部上下文
54
- - `context-budget-audit` 配合,检查上下文是否膨胀
55
- - 为几乎所有实现和审查技能提供前置支持
54
+ - 上下文已校准完成:回到后续真正要执行的阶段或专项入口
55
+ - 需求仍模糊:回到 `spec-driven-development`
56
+ - 任务已经明确、准备实现:回到 `incremental-implementation`
57
+ - 会话健康恶化明显:结合 `context-budget-audit`
@@ -10,7 +10,8 @@ suggests:
10
10
  platforms:
11
11
  - qwen
12
12
  - codex
13
- - qoder
13
+ - claude
14
+ - opencode
14
15
  source:
15
16
  upstream: superpowers
16
17
  strategy: inspired
@@ -162,7 +162,7 @@ Hooks 是确定性的 — 只要事件触发,脚本就一定执行,不受模
162
162
  ### 文件结构
163
163
 
164
164
  ```
165
- ~/.qoder/homunculus/
165
+ ~/.zc/homunculus/
166
166
  ├── observations.jsonl # 全局观察(无项目时的 fallback)
167
167
  ├── instincts/
168
168
  │ ├── personal/ # 全局自动学习的 instincts
@@ -197,8 +197,8 @@ Hooks 是确定性的 — 只要事件触发,脚本就一定执行,不受模
197
197
  # 自动检测平台并安装
198
198
  bash skills/continuous-learning/hooks/setup.sh
199
199
 
200
- # 指定平台
201
- bash skills/continuous-learning/hooks/setup.sh --platform qoder
200
+ # 指定平台适配器(按脚本支持情况选择)
201
+ bash skills/continuous-learning/hooks/setup.sh --platform codex
202
202
  bash skills/continuous-learning/hooks/setup.sh --platform qwen-code
203
203
  ```
204
204
 
@@ -207,8 +207,8 @@ bash skills/continuous-learning/hooks/setup.sh --platform qwen-code
207
207
  # 自动检测平台并安装
208
208
  .\skills\continuous-learning\hooks\setup.ps1
209
209
 
210
- # 指定平台
211
- .\skills\continuous-learning\hooks\setup.ps1 -Platform qoder
210
+ # 指定平台适配器(按脚本支持情况选择)
211
+ .\skills\continuous-learning\hooks\setup.ps1 -Platform codex
212
212
  .\skills\continuous-learning\hooks\setup.ps1 -Platform qwen-code
213
213
 
214
214
  # 卸载
@@ -217,16 +217,16 @@ bash skills/continuous-learning/hooks/setup.sh --platform qwen-code
217
217
 
218
218
  ### 手动配置
219
219
 
220
- `~/.qoder/settings.json`(Qoder)或对应配置文件中添加:
220
+ 在你所使用平台支持的 hooks / automation 配置文件中接入观察脚本。下面只给出一个通用示意,实际键名和事件名应以目标平台官方文档为准:
221
221
 
222
222
  **macOS / Linux:**
223
223
  ```json
224
224
  {
225
225
  "hooks": {
226
- "PostToolUse": [{"matcher": "*", "hooks": [{"type": "command", "command": "~/.qoder/hooks/continuous-learning/observe.sh"}]}],
227
- "UserPromptSubmit": [{"hooks": [{"type": "command", "command": "~/.qoder/hooks/continuous-learning/observe.sh"}]}],
228
- "PostToolUseFailure": [{"matcher": "*", "hooks": [{"type": "command", "command": "~/.qoder/hooks/continuous-learning/observe.sh"}]}],
229
- "Stop": [{"hooks": [{"type": "command", "command": "~/.qoder/hooks/continuous-learning/session-end.sh"}]}]
226
+ "PostToolUse": [{"matcher": "*", "hooks": [{"type": "command", "command": "~/.zc/hooks/continuous-learning/observe.sh"}]}],
227
+ "UserPromptSubmit": [{"hooks": [{"type": "command", "command": "~/.zc/hooks/continuous-learning/observe.sh"}]}],
228
+ "PostToolUseFailure": [{"matcher": "*", "hooks": [{"type": "command", "command": "~/.zc/hooks/continuous-learning/observe.sh"}]}],
229
+ "Stop": [{"hooks": [{"type": "command", "command": "~/.zc/hooks/continuous-learning/session-end.sh"}]}]
230
230
  }
231
231
  }
232
232
  ```
@@ -235,10 +235,10 @@ bash skills/continuous-learning/hooks/setup.sh --platform qwen-code
235
235
  ```json
236
236
  {
237
237
  "hooks": {
238
- "PostToolUse": [{"matcher": "*", "hooks": [{"type": "command", "command": "pwsh -NoProfile -File \"~/.qoder/hooks/continuous-learning/observe.ps1\""}]}],
239
- "UserPromptSubmit": [{"hooks": [{"type": "command", "command": "pwsh -NoProfile -File \"~/.qoder/hooks/continuous-learning/observe.ps1\""}]}],
240
- "PostToolUseFailure": [{"matcher": "*", "hooks": [{"type": "command", "command": "pwsh -NoProfile -File \"~/.qoder/hooks/continuous-learning/observe.ps1\""}]}],
241
- "Stop": [{"hooks": [{"type": "command", "command": "pwsh -NoProfile -File \"~/.qoder/hooks/continuous-learning/session-end.ps1\""}]}]
238
+ "PostToolUse": [{"matcher": "*", "hooks": [{"type": "command", "command": "pwsh -NoProfile -File \"~/.zc/hooks/continuous-learning/observe.ps1\""}]}],
239
+ "UserPromptSubmit": [{"hooks": [{"type": "command", "command": "pwsh -NoProfile -File \"~/.zc/hooks/continuous-learning/observe.ps1\""}]}],
240
+ "PostToolUseFailure": [{"matcher": "*", "hooks": [{"type": "command", "command": "pwsh -NoProfile -File \"~/.zc/hooks/continuous-learning/observe.ps1\""}]}],
241
+ "Stop": [{"hooks": [{"type": "command", "command": "pwsh -NoProfile -File \"~/.zc/hooks/continuous-learning/session-end.ps1\""}]}]
242
242
  }
243
243
  }
244
244
  ```
@@ -360,7 +360,7 @@ Memory 存储格式:
360
360
  设置完成后确认:
361
361
 
362
362
  - [ ] Hook 脚本已安装且有执行权限
363
- - [ ] `~/.qoder/homunculus/` 目录结构已创建
363
+ - [ ] `~/.zc/homunculus/` 目录结构已创建
364
364
  - [ ] PostToolUse hook 能正常记录观察(检查 observations.jsonl)
365
365
  - [ ] `/learn` 命令能正确分析并提取 instincts
366
366
  - [ ] 高置信度 instincts 已同步到 Agent Memory
@@ -11,7 +11,8 @@ suggests:
11
11
  platforms:
12
12
  - qwen
13
13
  - codex
14
- - qoder
14
+ - claude
15
+ - opencode
15
16
  source:
16
17
  upstream: toolkit-original
17
18
  strategy: curated
@@ -1,17 +1,19 @@
1
1
  # 调试与恢复
2
2
 
3
+ 这是 `command:start` 判型后进入的专项 skill:当任务核心是定位问题、复现异常、确认根因时,进入这里,而不是继续沿完整交付流程硬推。
4
+
3
5
  ## 何时使用
4
6
 
5
7
  - 测试失败、构建报错或运行结果与预期不一致
6
8
  - 收到 bug 报告,需要先复现再修复
7
- - 某个问题开始反复出现,但根因不清楚
9
+ - 某个问题反复出现,但根因不清楚
8
10
  - 你已经开始“凭感觉试错”时
9
11
 
10
12
  ## 输入前提
11
13
 
12
14
  - 已保留失败证据:报错、日志、复现步骤或测试输出
13
- - 愿意暂停继续开发,先处理当前异常
14
- - 接受先定位根因,再动实现
15
+ - 接受先停线,再定位,不继续叠加功能
16
+ - 愿意先把异常收敛成可验证问题,再回到实现主线
15
17
 
16
18
  ## 执行步骤
17
19
 
@@ -36,8 +38,9 @@
36
38
  - 先复现,再修复
37
39
  - 调试过程必须保留证据链
38
40
 
39
- ## 与其他技能的衔接
41
+ ## 回到主流程
40
42
 
41
- - bug 修复时与 `test-driven-development` 的 Prove-It 模式配合
42
- - 修复完成后交给 `verification-before-completion`
43
+ - 根因已明确、开始正式实现修复:回到 `incremental-implementation`
44
+ - 修复完成,需要确认是否真的恢复:交给 `verification-before-completion`
45
+ - 如果问题暴露了需求或方案错误:回到 `spec-driven-development` 或 `planning-and-task-breakdown`
43
46
  - 当问题涉及架构性缺陷时,可转给 `architect`
@@ -11,7 +11,8 @@ suggests:
11
11
  platforms:
12
12
  - qwen
13
13
  - codex
14
- - qoder
14
+ - claude
15
+ - opencode
15
16
  source:
16
17
  upstream: agent-skills
17
18
  strategy: adapted
@@ -11,7 +11,8 @@ suggests:
11
11
  platforms:
12
12
  - qwen
13
13
  - codex
14
- - qoder
14
+ - claude
15
+ - opencode
15
16
  source:
16
17
  upstream: agent-skills
17
18
  strategy: adapted
@@ -10,7 +10,8 @@ suggests:
10
10
  platforms:
11
11
  - qwen
12
12
  - codex
13
- - qoder
13
+ - claude
14
+ - opencode
14
15
  source:
15
16
  upstream: gstack
16
17
  strategy: inspired