@zmice/zc 0.2.8 → 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 (84) hide show
  1. package/README.md +430 -430
  2. package/dist/cli/__tests__/platform.test.js +89 -112
  3. package/dist/cli/__tests__/platform.test.js.map +1 -1
  4. package/dist/cli/__tests__/surface.test.js +1 -1
  5. package/dist/cli/__tests__/surface.test.js.map +1 -1
  6. package/dist/cli/platform.d.ts.map +1 -1
  7. package/dist/cli/platform.js +5 -62
  8. package/dist/cli/platform.js.map +1 -1
  9. package/dist/node_modules/@zmice/platform-core/dist/index.test.js +3 -5
  10. package/dist/node_modules/@zmice/platform-core/dist/index.test.js.map +1 -1
  11. package/dist/runtime/worktree-manager.js +2 -2
  12. package/dist/runtime/worktree-manager.js.map +1 -1
  13. package/dist/utils/install-target.test.js +2 -3
  14. package/dist/utils/install-target.test.js.map +1 -1
  15. package/dist/utils/qwen-extension-cli.d.ts.map +1 -1
  16. package/dist/utils/qwen-extension-cli.js +4 -4
  17. package/dist/utils/qwen-extension-cli.js.map +1 -1
  18. package/dist/utils/qwen-extension-cli.test.js +6 -9
  19. package/dist/utils/qwen-extension-cli.test.js.map +1 -1
  20. package/dist/utils/workspace.js +1 -1
  21. package/dist/utils/workspace.js.map +1 -1
  22. package/dist/utils/workspace.test.js +0 -14
  23. package/dist/utils/workspace.test.js.map +1 -1
  24. package/package.json +5 -5
  25. package/vendor/node_modules/@zmice/platform-core/dist/index.test.js +3 -5
  26. package/vendor/node_modules/@zmice/platform-core/dist/index.test.js.map +1 -1
  27. package/vendor/packages/platform-claude/dist/index.js +75 -75
  28. package/vendor/packages/platform-claude/dist/index.test.js +8 -11
  29. package/vendor/packages/platform-claude/dist/index.test.js.map +1 -1
  30. package/vendor/packages/platform-codex/dist/index.js +194 -194
  31. package/vendor/packages/platform-codex/dist/index.test.js +13 -16
  32. package/vendor/packages/platform-codex/dist/index.test.js.map +1 -1
  33. package/vendor/packages/platform-opencode/dist/index.js +75 -75
  34. package/vendor/packages/platform-opencode/dist/index.test.js +15 -19
  35. package/vendor/packages/platform-opencode/dist/index.test.js.map +1 -1
  36. package/vendor/packages/platform-qwen/dist/index.js +75 -75
  37. package/vendor/packages/platform-qwen/dist/index.test.js +7 -9
  38. package/vendor/packages/platform-qwen/dist/index.test.js.map +1 -1
  39. package/vendor/packages/toolkit/dist/content-lint.test.js +161 -1
  40. package/vendor/packages/toolkit/dist/content-lint.test.js.map +1 -1
  41. package/vendor/packages/toolkit/dist/lint/content-lint.d.ts.map +1 -1
  42. package/vendor/packages/toolkit/dist/lint/content-lint.js +183 -2
  43. package/vendor/packages/toolkit/dist/lint/content-lint.js.map +1 -1
  44. package/vendor/packages/toolkit/dist/manifests.test.js +9 -0
  45. package/vendor/packages/toolkit/dist/manifests.test.js.map +1 -1
  46. package/vendor/packages/toolkit/src/content/agents/architect/body.md +42 -42
  47. package/vendor/packages/toolkit/src/content/agents/code-reviewer/body.md +41 -41
  48. package/vendor/packages/toolkit/src/content/agents/product-owner/body.md +40 -40
  49. package/vendor/packages/toolkit/src/content/commands/plan-review/body.md +42 -31
  50. package/vendor/packages/toolkit/src/content/commands/start/body.md +236 -197
  51. package/vendor/packages/toolkit/src/content/commands/start/meta.yaml +55 -55
  52. package/vendor/packages/toolkit/src/content/skills/branch-finish-and-cleanup/body.md +172 -172
  53. package/vendor/packages/toolkit/src/content/skills/browser-qa-testing/body.md +111 -111
  54. package/vendor/packages/toolkit/src/content/skills/ci-cd-and-automation/body.md +86 -86
  55. package/vendor/packages/toolkit/src/content/skills/code-review-and-quality/body.md +140 -140
  56. package/vendor/packages/toolkit/src/content/skills/code-simplification/body.md +80 -80
  57. package/vendor/packages/toolkit/src/content/skills/context-engineering/body.md +67 -67
  58. package/vendor/packages/toolkit/src/content/skills/continuous-learning/body.md +102 -102
  59. package/vendor/packages/toolkit/src/content/skills/documentation-and-adrs/body.md +8 -6
  60. package/vendor/packages/toolkit/src/content/skills/engineering-principles/body.md +10 -5
  61. package/vendor/packages/toolkit/src/content/skills/git-workflow-and-versioning/body.md +9 -9
  62. package/vendor/packages/toolkit/src/content/skills/multi-perspective-review/body.md +129 -81
  63. package/vendor/packages/toolkit/src/content/skills/parallel-agent-dispatch/body.md +143 -113
  64. package/vendor/packages/toolkit/src/content/skills/performance-optimization/body.md +75 -75
  65. package/vendor/packages/toolkit/src/content/skills/planning-and-task-breakdown/body.md +162 -83
  66. package/vendor/packages/toolkit/src/content/skills/sdd-tdd-workflow/body.md +130 -95
  67. package/vendor/packages/toolkit/src/content/skills/sprint-retrospective/body.md +99 -99
  68. package/vendor/packages/toolkit/src/content/skills/subagent-driven-development/body.md +49 -7
  69. package/vendor/packages/toolkit/src/content/skills/team-orchestration/body.md +133 -126
  70. package/vendor/packages/toolkit/src/content/skills/test-driven-development/body.md +78 -78
  71. package/vendor/packages/toolkit/src/content/skills/using-agent-skills/body.md +193 -193
  72. package/vendor/references/upstreams.yaml +94 -94
  73. package/dist/cli/setup.d.ts +0 -3
  74. package/dist/cli/setup.d.ts.map +0 -1
  75. package/dist/cli/setup.js +0 -41
  76. package/dist/cli/setup.js.map +0 -1
  77. package/dist/utils/codex-config-merge.d.ts +0 -3
  78. package/dist/utils/codex-config-merge.d.ts.map +0 -1
  79. package/dist/utils/codex-config-merge.js +0 -43
  80. package/dist/utils/codex-config-merge.js.map +0 -1
  81. package/dist/utils/codex-config-merge.test.d.ts +0 -2
  82. package/dist/utils/codex-config-merge.test.d.ts.map +0 -1
  83. package/dist/utils/codex-config-merge.test.js +0 -64
  84. package/dist/utils/codex-config-merge.test.js.map +0 -1
@@ -1,197 +1,236 @@
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
- ## 输出契约
12
-
13
- `start` 每次都要给出一个可执行分诊结果,而不是泛泛建议:
14
-
15
- - `workflow`:六条固定 workflow 之一
16
- - `entry`:下一步应该调用的 command / skill,必须是实际可执行入口
17
- - `agent`:可选协作角色;只有平台支持且用户授权时才建议,不作为默认入口
18
- - `reason`:用 1-3 条证据说明为什么这样判型
19
- - `assumption`:如果有未确认前提,明确写出
20
- - `question`:只有无法安全推进时才问,最多 1-3 个关键问题
21
- - `verification`:说明完成前需要什么证据
22
-
23
- 如果信息足够,直接选择保守 workflow 并继续推进;不要为了形式完整而反复提问。
24
-
25
- ## 固定 workflow
26
-
27
- ### 1. `product-analysis`
28
-
29
- 适用:
30
-
31
- - 需求还模糊
32
- - 目标用户、价值、范围或验收标准不稳定
33
- - 需要先把想法压成可执行方案
34
-
35
- 默认入口:
36
-
37
- - `product-analysis`
38
-
39
- ### 2. `full-delivery`
40
-
41
- 适用:
42
-
43
- - 已确认要做
44
- - 准备进入完整交付门控
45
- - 需要走定义、计划、实现、审查、验证的主线
46
-
47
- 默认入口:
48
-
49
- - `sdd-tdd`
50
-
51
- 说明:
52
-
53
- - `sdd-tdd` 是 `full-delivery` 的 workflow-entry
54
- - 它不是统一分诊入口
55
-
56
- ### 3. `bugfix`
57
-
58
- 适用:
59
-
60
- - Bug
61
- - 失败测试
62
- - 构建失败
63
- - 异常行为
64
-
65
- 默认入口:
66
-
67
- - `debug`
68
-
69
- ### 4. `review-closure`
70
-
71
- 适用:
72
-
73
- - 已有改动
74
- - 当前重点是审查、反馈处理、分支收尾
75
-
76
- 默认入口:
77
-
78
- - `quality-review`
79
-
80
- ### 5. `docs-release`
81
-
82
- 适用:
83
-
84
- - 文档、ADR、发布说明
85
- - 上线准备与发布后同步
86
-
87
- 默认入口:
88
-
89
- - `doc`
90
-
91
- ### 6. `investigation`
92
-
93
- 适用:
94
-
95
- - 陌生代码库
96
- - 上下文失焦
97
- - 需要先做项目理解或技术摸底
98
-
99
- 默认入口:
100
-
101
- - `onboard`
102
-
103
- ## 路由原则
104
-
105
- - 需求模糊、价值与范围未收敛:优先进入 `product-analysis`
106
- - 已明确要做且需要完整交付:进入 `full-delivery`
107
- - Bug、异常行为、失败测试:进入 `bugfix`
108
- - 已完成实现待审查或待响应 review:进入 `review-closure`
109
- - 重点是文档、ADR、发布与同步:进入 `docs-release`
110
- - 当前先要理解项目、修复上下文、摸清约束:进入 `investigation`
111
-
112
- ### 判型优先级
113
-
114
- 当一个请求同时命中多个 workflow,按下面顺序消歧:
115
-
116
- 1. **显式 review findings**:进入 `review-closure`。如果用户要求修复,入口是 `review-response-and-resolution`;如果要求审查所有变更,入口是 `quality-review`。
117
- 2. **CI 失败 / 报错日志 / 可复现异常**:进入 `bugfix`。
118
- 3. **上游更新、依赖升级、陌生能力吸收**:先 `investigation` 拿证据,再按范围进入 `docs-release` `full-delivery`。不能先凭记忆同步。
119
- 4. **文档误导、安装说明 drift、发布后同步**:如果只改文档,进入 `docs-release`;如果文档暴露实现不一致,先 `bugfix`。
120
- 5. **新功能或跨模块优化**:目标和验收明确时进入 `full-delivery`;目标不稳定时先 `product-analysis`。
121
- 6. **生产、数据、破坏性命令、凭据、跨会话记忆或项目路由写入**:主 workflow 不变,但必须加 `guard` / `careful` / `freeze` 这类防护建议。
122
-
123
- ### 提问纪律
124
-
125
- - 能从仓库、日志、diff、配置或用户原话判断的,不问。
126
- - 只有架构方向、数据安全、破坏性操作、缺失关键上下文、或用户目标互相冲突时才问。
127
- - 问题要以结果和风险表述:这个选择会避免什么风险、解锁什么能力、改变什么体验。
128
- - 如果用户已经给出偏好,按偏好执行;偏好不能变成自动写入长期配置或跨会话记忆的授权。
129
-
130
- ## 在 workflow 内部的切入点
131
-
132
- - `product-analysis`
133
- - 主入口:`product-analysis`
134
- - 需要先发散想法:`idea`
135
- - 需要产品判断:继续 `product-analysis`;必要时建议 `product-owner` 作为可选 agent
136
- - 需要方案探索:`brainstorming-and-design`
137
- - 需要沉淀规格:`spec`
138
- - 需要做方案评审:`plan-review`
139
- - `full-delivery`
140
- - 主入口:`sdd-tdd`
141
- - 已有 spec:`task-plan`
142
- - 已有 plan:`build`
143
- - 待审查:`quality-review`
144
- - 待验证:`verify`
145
- - `bugfix`
146
- - 主入口:`debug`
147
- - `review-closure`
148
- - 主入口:`quality-review`
149
- - 已有 review findings 且需要修复:`review-response-and-resolution`
150
- - `docs-release`
151
- - 文档优先:`doc`
152
- - 发布优先:`ship`
153
- - `investigation`
154
- - 陌生项目:`onboard`
155
- - 上下文漂移:`ctx-health`
156
- - 需要重新收敛问题:`idea`
157
-
158
- ## 并行与 agent 判断
159
-
160
- `start` 可以评估是否适合并行,但不能把并行当默认:
161
-
162
- - 任务能按文件、模块或证据问题拆开,且没有强依赖:可以建议 `parallel-agent-dispatch` 或 `zc team plan`
163
- - 无法证明独立、存在同文件冲突、存在依赖链:默认串行或先计划
164
- - 用户没有明确授权时,不自动启动子代理或 `zc team start`
165
- - 如果进入 `zc team`,先 dry-run:`zc team plan ... --json`
166
-
167
- ## 上下文与持久化边界
168
-
169
- - skill 和 workflow 应按需加载;不要把所有 skill 都常驻上下文
170
- - `AGENTS.md`、`GEMINI.md`、平台规则文件只放长期项目约定和稳定路由
171
- - 写入用户级配置、跨项目路由、跨会话记忆或跨机器同步前,必须明确说明影响并取得用户授权
172
- - 平台不支持的能力不能通过文案暗示支持;例如某个平台没有 native plugin,就走 install / filesystem 适配路线
173
-
174
- ## 平台说明
175
-
176
- - `start` canonical command,不等于所有平台都有原生同名命令
177
- - 在 Codex 上,它更适合作为“统一任务开始方式”的自然语言入口
178
- - 在 Qwen / Claude / OpenCode 上,可以呈现为更接近命令式的入口文案
179
- - 当前阶段没有 `zc start` CLI
180
-
181
- ## 使用方式
182
-
183
- 直接描述任务即可;如果你已经知道当前阶段,也可以一起说明。`start` 的职责是帮你先选固定 workflow,再给出下一条入口。
184
-
185
- ### 示例
186
-
187
- ```text
188
- 开始一个新需求:实现用户登录和刷新 token,先判断该直接进 full-delivery 还是先做 product-analysis
189
-
190
- 修复一个问题:批量导入时偶发重复数据,先帮我判型并选择流程
191
-
192
- 我这里需求还比较散,先帮我做 product-analysis,整理成可落地方案
193
-
194
- 我这里已经有 spec,帮我判断下一步应该进 task-plan 还是 build
195
-
196
- 审查最近的改动,并告诉我是否还需要 verify ship
197
- ```
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
+ ## 输出契约
12
+
13
+ `start` 每次都要给出一个可执行分诊结果,而不是泛泛建议:
14
+
15
+ - `workflow`:六条固定 workflow 之一
16
+ - `entry`:下一步应该调用的 command / skill,必须是实际可执行入口
17
+ - `agent`:可选协作角色;只有平台支持且用户授权时才建议,不作为默认入口
18
+ - `agent_opportunity`:`standard` / `high-risk` 或命中复杂度信号时必须输出,说明是否需要只读协助、串行子代理、上下文级并行或 `zc team`
19
+ - `reason`:用 1-3 条证据说明为什么这样判型
20
+ - `assumption`:如果有未确认前提,明确写出
21
+ - `question`:只有无法安全推进时才问,最多 1-3 个关键问题
22
+ - `verification`:说明完成前需要什么证据
23
+
24
+ 如果信息足够,直接选择保守 workflow 并继续推进;不要为了形式完整而反复提问。
25
+
26
+ ## 固定 workflow
27
+
28
+ ### 1. `product-analysis`
29
+
30
+ 适用:
31
+
32
+ - 需求还模糊
33
+ - 目标用户、价值、范围或验收标准不稳定
34
+ - 需要先把想法压成可执行方案
35
+
36
+ 默认入口:
37
+
38
+ - `product-analysis`
39
+
40
+ ### 2. `full-delivery`
41
+
42
+ 适用:
43
+
44
+ - 已确认要做
45
+ - 准备进入完整交付门控
46
+ - 需要走定义、计划、实现、审查、验证的主线
47
+
48
+ 默认入口:
49
+
50
+ - `sdd-tdd`
51
+
52
+ 说明:
53
+
54
+ - `sdd-tdd` 是 `full-delivery` 的 workflow-entry
55
+ - 它不是统一分诊入口
56
+
57
+ ### 3. `bugfix`
58
+
59
+ 适用:
60
+
61
+ - Bug
62
+ - 失败测试
63
+ - 构建失败
64
+ - 异常行为
65
+
66
+ 默认入口:
67
+
68
+ - `debug`
69
+
70
+ ### 4. `review-closure`
71
+
72
+ 适用:
73
+
74
+ - 已有改动
75
+ - 当前重点是审查、反馈处理、分支收尾
76
+
77
+ 默认入口:
78
+
79
+ - `quality-review`
80
+
81
+ ### 5. `docs-release`
82
+
83
+ 适用:
84
+
85
+ - 文档、ADR、发布说明
86
+ - 上线准备与发布后同步
87
+
88
+ 默认入口:
89
+
90
+ - `doc`
91
+
92
+ ### 6. `investigation`
93
+
94
+ 适用:
95
+
96
+ - 陌生代码库
97
+ - 上下文失焦
98
+ - 需要先做项目理解或技术摸底
99
+
100
+ 默认入口:
101
+
102
+ - `onboard`
103
+
104
+ ## 路由原则
105
+
106
+ - 需求模糊、价值与范围未收敛:优先进入 `product-analysis`
107
+ - 已明确要做且需要完整交付:进入 `full-delivery`
108
+ - Bug、异常行为、失败测试:进入 `bugfix`
109
+ - 已完成实现待审查或待响应 review:进入 `review-closure`
110
+ - 重点是文档、ADR、发布与同步:进入 `docs-release`
111
+ - 当前先要理解项目、修复上下文、摸清约束:进入 `investigation`
112
+
113
+ ### 判型优先级
114
+
115
+ 当一个请求同时命中多个 workflow,按下面顺序消歧:
116
+
117
+ 1. **显式 review findings**:进入 `review-closure`。如果用户要求修复,入口是 `review-response-and-resolution`;如果要求审查所有变更,入口是 `quality-review`。
118
+ 2. **CI 失败 / 报错日志 / 可复现异常**:进入 `bugfix`。
119
+ 3. **上游更新、依赖升级、陌生能力吸收**:先 `investigation` 拿证据,再按范围进入 `docs-release` `full-delivery`。不能先凭记忆同步。
120
+ 4. **文档误导、安装说明 drift、发布后同步**:如果只改文档,进入 `docs-release`;如果文档暴露实现不一致,先 `bugfix`。
121
+ 5. **新功能或跨模块优化**:目标和验收明确时进入 `full-delivery`;目标不稳定时先 `product-analysis`。
122
+ 6. **生产、数据、破坏性命令、凭据、跨会话记忆或项目路由写入**:主 workflow 不变,但必须加 `guard` / `careful` / `freeze` 这类防护建议。
123
+
124
+ ### 提问纪律
125
+
126
+ - 能从仓库、日志、diff、配置或用户原话判断的,不问。
127
+ - 只有架构方向、数据安全、破坏性操作、缺失关键上下文、或用户目标互相冲突时才问。
128
+ - 问题要以结果和风险表述:这个选择会避免什么风险、解锁什么能力、改变什么体验。
129
+ - 如果用户已经给出偏好,按偏好执行;偏好不能变成自动写入长期配置或跨会话记忆的授权。
130
+
131
+ ## 在 workflow 内部的切入点
132
+
133
+ - `product-analysis`
134
+ - 主入口:`product-analysis`
135
+ - 需要先发散想法:`idea`
136
+ - 需要产品判断:继续 `product-analysis`;必要时建议 `product-owner` 作为可选 agent
137
+ - 需要方案探索:`brainstorming-and-design`
138
+ - 需要沉淀规格:`spec`
139
+ - 需要做方案评审:`plan-review`
140
+ - `full-delivery`
141
+ - 主入口:`sdd-tdd`
142
+ - 已有 spec:`task-plan`
143
+ - 已有 plan:`build`
144
+ - 待审查:`quality-review`
145
+ - 待验证:`verify`
146
+ - `bugfix`
147
+ - 主入口:`debug`
148
+ - `review-closure`
149
+ - 主入口:`quality-review`
150
+ - 已有 review findings 且需要修复:`review-response-and-resolution`
151
+ - `docs-release`
152
+ - 文档优先:`doc`
153
+ - 发布优先:`ship`
154
+ - `investigation`
155
+ - 陌生项目:`onboard`
156
+ - 上下文漂移:`ctx-health`
157
+ - 需要重新收敛问题:`idea`
158
+
159
+ ## 并行与 agent 判断
160
+
161
+ `start` 采用 Agent Opportunity First:复杂任务默认评估多 agent 机会,但启动方式受风险边界控制。
162
+
163
+ 必须输出 `agent_opportunity` 的信号:
164
+
165
+ - 涉及 3 个以上文件或 2 个以上模块。
166
+ - 同时包含方案、实现和验证。
167
+ - 用户使用“深入、整体、优化、审查、排查、对齐、联动”等词。
168
+ - 涉及安全、性能、数据恢复、生产配置或敏感配置。
169
+ - 需要前后端、后端与部署、文档与实现同步。
170
+ - 当前上下文不足,需要并行摸底。
171
+
172
+ `agent_opportunity` 格式:
173
+
174
+ ```text
175
+ agent_opportunity:
176
+ - mode: none | readonly-consult | serial-subagent | context-fanout | zc-team
177
+ - reason:
178
+ - agents:
179
+ - ownership:
180
+ - fan-in:
181
+ - needs_confirmation:
182
+ ```
183
+
184
+ 模式规则:
185
+
186
+ - `none`:简单任务或无法证明 agent 有收益。
187
+ - `readonly-consult`:架构、审查、测试、安全、性能、产品等只读协助;只有用户已授权本会话或项目默认启用只读 agent 时,才可通知式启动,不改文件。
188
+ - `serial-subagent`:已有任务计划、任务彼此独立,但不需要并行执行。
189
+ - `context-fanout`:多个独立问题或互不重叠文件可以并行处理;写入型 fan-out 必须先确认文件所有权和 fan-in 验证。
190
+ - `zc-team`:需要 tmux + git worktree 或 Codex / Qwen 多 CLI worker 时才建议;必须用户明确要求或确认。
191
+
192
+ 数量上限:
193
+
194
+ - 普通复杂任务最多 1 个只读 agent。
195
+ - 跨模块或高风险任务最多 2 个只读 agent。
196
+ - 写入型并行默认最多 2 个 worker,超过 2 个必须说明收益和 fan-in 成本。
197
+ - `zc team` 不能因“可能更快”自动启动,必须用户明确。
198
+
199
+ 确认边界:
200
+
201
+ - 只读 agent:用户已授权时通知式启用,必须说明 agent、目标和“不改文件”;未授权时只输出 `agent_opportunity` 和 `Agent assist` 预告,等待确认。
202
+ - 写入型 agent:确认式启用,必须说明文件所有权、验证命令和 fan-in gate。
203
+ - 无法证明独立、存在同文件冲突、存在依赖链:默认先 `task-plan`,不直接并行。
204
+ - 如果进入 `zc team`,先 dry-run:`zc team plan ... --json`。
205
+
206
+ ## 上下文与持久化边界
207
+
208
+ - skill 和 workflow 应按需加载;不要把所有 skill 都常驻上下文
209
+ - `AGENTS.md`、`GEMINI.md`、平台规则文件只放长期项目约定和稳定路由
210
+ - 写入用户级配置、跨项目路由、跨会话记忆或跨机器同步前,必须明确说明影响并取得用户授权
211
+ - 平台不支持的能力不能通过文案暗示支持;例如某个平台没有 native plugin,就走 install / filesystem 适配路线
212
+
213
+ ## 平台说明
214
+
215
+ - `start` 是 canonical command,不等于所有平台都有原生同名命令
216
+ - 在 Codex 上,它更适合作为“统一任务开始方式”的自然语言入口
217
+ - 在 Qwen / Claude / OpenCode 上,可以呈现为更接近命令式的入口文案
218
+ - 当前阶段没有 `zc start` CLI
219
+
220
+ ## 使用方式
221
+
222
+ 直接描述任务即可;如果你已经知道当前阶段,也可以一起说明。`start` 的职责是帮你先选固定 workflow,再给出下一条入口。
223
+
224
+ ### 示例
225
+
226
+ ```text
227
+ 开始一个新需求:实现用户登录和刷新 token,先判断该直接进 full-delivery 还是先做 product-analysis
228
+
229
+ 修复一个问题:批量导入时偶发重复数据,先帮我判型并选择流程
230
+
231
+ 我这里需求还比较散,先帮我做 product-analysis,整理成可落地方案
232
+
233
+ 我这里已经有 spec,帮我判断下一步应该进 task-plan 还是 build
234
+
235
+ 审查最近的改动,并告诉我是否还需要 verify 或 ship
236
+ ```
@@ -1,55 +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 承接。2026-04-29 根据 agent-skills 的 trigger/description 经验和 gstack 的 outcome-framed question / stop-gate 经验补强路由纪律。
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 承接。2026-04-29 根据 agent-skills 的 trigger/description 经验和 gstack 的 outcome-framed question / stop-gate 经验补强路由纪律。