@ias-ai/zhima-spec 1.3.5 → 1.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.
Files changed (61) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +206 -206
  3. package/bin/zhima.js +2 -2
  4. package/dist/commands/feedback.js +6 -6
  5. package/dist/commands/schema.js +60 -60
  6. package/dist/core/command-generation/adapters/amazon-q.js +5 -5
  7. package/dist/core/command-generation/adapters/antigravity.js +5 -5
  8. package/dist/core/command-generation/adapters/auggie.js +6 -6
  9. package/dist/core/command-generation/adapters/bob.js +6 -6
  10. package/dist/core/command-generation/adapters/claude.js +8 -8
  11. package/dist/core/command-generation/adapters/cline.js +5 -5
  12. package/dist/core/command-generation/adapters/codebuddy.js +7 -7
  13. package/dist/core/command-generation/adapters/codex.js +6 -6
  14. package/dist/core/command-generation/adapters/continue.js +7 -7
  15. package/dist/core/command-generation/adapters/costrict.js +6 -6
  16. package/dist/core/command-generation/adapters/crush.js +8 -8
  17. package/dist/core/command-generation/adapters/cursor.js +8 -8
  18. package/dist/core/command-generation/adapters/factory.js +6 -6
  19. package/dist/core/command-generation/adapters/gemini.js +5 -5
  20. package/dist/core/command-generation/adapters/github-copilot.js +5 -5
  21. package/dist/core/command-generation/adapters/iflow.js +8 -8
  22. package/dist/core/command-generation/adapters/junie.js +5 -5
  23. package/dist/core/command-generation/adapters/kilocode.js +1 -1
  24. package/dist/core/command-generation/adapters/kiro.js +5 -5
  25. package/dist/core/command-generation/adapters/lingma.js +8 -8
  26. package/dist/core/command-generation/adapters/opencode.js +5 -5
  27. package/dist/core/command-generation/adapters/pi.js +5 -5
  28. package/dist/core/command-generation/adapters/qoder.js +8 -8
  29. package/dist/core/command-generation/adapters/qwen.js +5 -5
  30. package/dist/core/command-generation/adapters/roocode.js +5 -5
  31. package/dist/core/command-generation/adapters/vjsp.d.ts +1 -1
  32. package/dist/core/command-generation/adapters/vjsp.js +8 -8
  33. package/dist/core/command-generation/adapters/windsurf.js +8 -8
  34. package/dist/core/command-generation/registry.js +2 -0
  35. package/dist/core/completions/generators/bash-generator.js +41 -41
  36. package/dist/core/completions/generators/fish-generator.js +7 -7
  37. package/dist/core/completions/generators/powershell-generator.js +29 -29
  38. package/dist/core/completions/generators/zsh-generator.js +33 -33
  39. package/dist/core/completions/templates/bash-templates.js +24 -24
  40. package/dist/core/completions/templates/fish-templates.js +38 -38
  41. package/dist/core/completions/templates/powershell-templates.js +28 -28
  42. package/dist/core/completions/templates/zsh-templates.js +39 -39
  43. package/dist/core/init.js +2 -2
  44. package/dist/core/shared/skill-generation.js +12 -12
  45. package/dist/core/templates/workflows/apply-change.js +294 -294
  46. package/dist/core/templates/workflows/archive-change.js +257 -257
  47. package/dist/core/templates/workflows/bulk-archive-change.js +472 -472
  48. package/dist/core/templates/workflows/continue-change.js +214 -214
  49. package/dist/core/templates/workflows/explore.js +439 -439
  50. package/dist/core/templates/workflows/feedback.js +97 -97
  51. package/dist/core/templates/workflows/ff-change.js +180 -180
  52. package/dist/core/templates/workflows/new-change.js +123 -123
  53. package/dist/core/templates/workflows/onboard.js +540 -540
  54. package/dist/core/templates/workflows/propose.js +198 -198
  55. package/dist/core/templates/workflows/sync-specs.js +270 -270
  56. package/dist/core/templates/workflows/verify-change.js +318 -318
  57. package/dist/core/update.js +1 -1
  58. package/dist/core/workspace/open-surface.js +11 -11
  59. package/package.json +18 -20
  60. package/schemas/spec-driven/schema.yaml +153 -153
  61. package/schemas/spec-driven/templates/proposal.md +23 -23
@@ -2,153 +2,153 @@ export function getApplyChangeSkillTemplate() {
2
2
  return {
3
3
  name: 'zhima-apply-change',
4
4
  description: 'Implement tasks from an ZhiMa change. Use when the user wants to start implementing, continue implementation, or work through tasks.',
5
- instructions: `Implement tasks from an ZhiMa change.
6
-
7
- **Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
8
-
9
- **Steps**
10
-
11
- 1. **Select the change**
12
-
13
- If a name is provided, use it. Otherwise:
14
- - Infer from conversation context if the user mentioned a change
15
- - Auto-select if only one active change exists
16
- - If ambiguous, run \`zhima list --json\` to get available changes and use the **AskUserQuestion tool** to let the user select
17
-
18
- Always announce: "Using change: <name>" and how to override (e.g., \`/zm:apply <other>\`).
19
-
20
- 2. **Check status to understand the schema**
21
- \`\`\`bash
22
- zhima status --change "<name>" --json
23
- \`\`\`
24
- Parse the JSON to understand:
25
- - \`schemaName\`: The workflow being used (e.g., "spec-driven")
26
- - \`planningHome\`, \`changeRoot\`, and \`actionContext\`: planning scope and edit constraints
27
- - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
28
-
29
- 3. **Get apply instructions**
30
-
31
- \`\`\`bash
32
- zhima instructions apply --change "<name>" --json
33
- \`\`\`
34
-
35
- This returns:
36
- - \`contextFiles\`: artifact ID -> array of concrete file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
37
- - Progress (total, complete, remaining)
38
- - Task list with status
39
- - Dynamic instruction based on current state
40
-
41
- **Handle states:**
42
- - If \`state: "blocked"\` (missing artifacts): show message, suggest using zhima-continue-change
43
- - If \`state: "all_done"\`: congratulate, suggest archive
44
- - Otherwise: proceed to implementation
45
-
46
- **Workspace guard:** If status JSON reports \`actionContext.mode: "workspace-planning"\` and \`allowedEditRoots\` is empty, explain that full workspace apply is not supported in this slice. Treat linked repos and folders as read-only context, ask the user to select an affected area through an explicit implementation workflow, and STOP before editing files.
47
-
48
- 4. **Read context files**
49
-
50
- Read every file path listed under \`contextFiles\` from the apply instructions output.
51
- The files depend on the schema being used:
52
- - **spec-driven**: proposal, specs, design, tasks
53
- - Other schemas: follow the contextFiles from CLI output
54
-
55
- 5. **Show current progress**
56
-
57
- Display:
58
- - Schema being used
59
- - Progress: "N/M tasks complete"
60
- - Remaining tasks overview
61
- - Dynamic instruction from CLI
62
-
63
- 6. **Implement tasks (loop until done or blocked)**
64
-
65
- For each pending task:
66
- - Show which task is being worked on
67
- - Make the code changes required
68
- - Keep changes minimal and focused
69
- - Mark task complete in the tasks file: \`- [ ]\` → \`- [x]\`
70
- - Continue to next task
71
-
72
- **Pause if:**
73
- - Task is unclear → ask for clarification
74
- - Implementation reveals a design issue → suggest updating artifacts
75
- - Error or blocker encountered → report and wait for guidance
76
- - User interrupts
77
-
78
- 7. **On completion or pause, show status**
79
-
80
- Display:
81
- - Tasks completed this session
82
- - Overall progress: "N/M tasks complete"
83
- - If all done: suggest archive
84
- - If paused: explain why and wait for guidance
85
-
86
- **Output During Implementation**
87
-
88
- \`\`\`
89
- ## Implementing: <change-name> (schema: <schema-name>)
90
-
91
- Working on task 3/7: <task description>
92
- [...implementation happening...]
93
- ✓ Task complete
94
-
95
- Working on task 4/7: <task description>
96
- [...implementation happening...]
97
- ✓ Task complete
98
- \`\`\`
99
-
100
- **Output On Completion**
101
-
102
- \`\`\`
103
- ## Implementation Complete
104
-
105
- **Change:** <change-name>
106
- **Schema:** <schema-name>
107
- **Progress:** 7/7 tasks complete ✓
108
-
109
- ### Completed This Session
110
- - [x] Task 1
111
- - [x] Task 2
112
- ...
113
-
114
- All tasks complete! Ready to archive this change.
115
- \`\`\`
116
-
117
- **Output On Pause (Issue Encountered)**
118
-
119
- \`\`\`
120
- ## Implementation Paused
121
-
122
- **Change:** <change-name>
123
- **Schema:** <schema-name>
124
- **Progress:** 4/7 tasks complete
125
-
126
- ### Issue Encountered
127
- <description of the issue>
128
-
129
- **Options:**
130
- 1. <option 1>
131
- 2. <option 2>
132
- 3. Other approach
133
-
134
- What would you like to do?
135
- \`\`\`
136
-
137
- **Guardrails**
138
- - Keep going through tasks until done or blocked
139
- - Always read context files before starting (from the apply instructions output)
140
- - If task is ambiguous, pause and ask before implementing
141
- - If implementation reveals issues, pause and suggest artifact updates
142
- - Keep code changes minimal and scoped to each task
143
- - Update task checkbox immediately after completing each task
144
- - Pause on errors, blockers, or unclear requirements - don't guess
145
- - Use contextFiles from CLI output, don't assume specific file names
146
-
147
- **Fluid Workflow Integration**
148
-
149
- This skill supports the "actions on a change" model:
150
-
151
- - **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
5
+ instructions: `Implement tasks from an ZhiMa change.
6
+
7
+ **Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
8
+
9
+ **Steps**
10
+
11
+ 1. **Select the change**
12
+
13
+ If a name is provided, use it. Otherwise:
14
+ - Infer from conversation context if the user mentioned a change
15
+ - Auto-select if only one active change exists
16
+ - If ambiguous, run \`zhima list --json\` to get available changes and use the **AskUserQuestion tool** to let the user select
17
+
18
+ Always announce: "Using change: <name>" and how to override (e.g., \`/zm:apply <other>\`).
19
+
20
+ 2. **Check status to understand the schema**
21
+ \`\`\`bash
22
+ zhima status --change "<name>" --json
23
+ \`\`\`
24
+ Parse the JSON to understand:
25
+ - \`schemaName\`: The workflow being used (e.g., "spec-driven")
26
+ - \`planningHome\`, \`changeRoot\`, and \`actionContext\`: planning scope and edit constraints
27
+ - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
28
+
29
+ 3. **Get apply instructions**
30
+
31
+ \`\`\`bash
32
+ zhima instructions apply --change "<name>" --json
33
+ \`\`\`
34
+
35
+ This returns:
36
+ - \`contextFiles\`: artifact ID -> array of concrete file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
37
+ - Progress (total, complete, remaining)
38
+ - Task list with status
39
+ - Dynamic instruction based on current state
40
+
41
+ **Handle states:**
42
+ - If \`state: "blocked"\` (missing artifacts): show message, suggest using zhima-continue-change
43
+ - If \`state: "all_done"\`: congratulate, suggest archive
44
+ - Otherwise: proceed to implementation
45
+
46
+ **Workspace guard:** If status JSON reports \`actionContext.mode: "workspace-planning"\` and \`allowedEditRoots\` is empty, explain that full workspace apply is not supported in this slice. Treat linked repos and folders as read-only context, ask the user to select an affected area through an explicit implementation workflow, and STOP before editing files.
47
+
48
+ 4. **Read context files**
49
+
50
+ Read every file path listed under \`contextFiles\` from the apply instructions output.
51
+ The files depend on the schema being used:
52
+ - **spec-driven**: proposal, specs, design, tasks
53
+ - Other schemas: follow the contextFiles from CLI output
54
+
55
+ 5. **Show current progress**
56
+
57
+ Display:
58
+ - Schema being used
59
+ - Progress: "N/M tasks complete"
60
+ - Remaining tasks overview
61
+ - Dynamic instruction from CLI
62
+
63
+ 6. **Implement tasks (loop until done or blocked)**
64
+
65
+ For each pending task:
66
+ - Show which task is being worked on
67
+ - Make the code changes required
68
+ - Keep changes minimal and focused
69
+ - Mark task complete in the tasks file: \`- [ ]\` → \`- [x]\`
70
+ - Continue to next task
71
+
72
+ **Pause if:**
73
+ - Task is unclear → ask for clarification
74
+ - Implementation reveals a design issue → suggest updating artifacts
75
+ - Error or blocker encountered → report and wait for guidance
76
+ - User interrupts
77
+
78
+ 7. **On completion or pause, show status**
79
+
80
+ Display:
81
+ - Tasks completed this session
82
+ - Overall progress: "N/M tasks complete"
83
+ - If all done: suggest archive
84
+ - If paused: explain why and wait for guidance
85
+
86
+ **Output During Implementation**
87
+
88
+ \`\`\`
89
+ ## Implementing: <change-name> (schema: <schema-name>)
90
+
91
+ Working on task 3/7: <task description>
92
+ [...implementation happening...]
93
+ ✓ Task complete
94
+
95
+ Working on task 4/7: <task description>
96
+ [...implementation happening...]
97
+ ✓ Task complete
98
+ \`\`\`
99
+
100
+ **Output On Completion**
101
+
102
+ \`\`\`
103
+ ## Implementation Complete
104
+
105
+ **Change:** <change-name>
106
+ **Schema:** <schema-name>
107
+ **Progress:** 7/7 tasks complete ✓
108
+
109
+ ### Completed This Session
110
+ - [x] Task 1
111
+ - [x] Task 2
112
+ ...
113
+
114
+ All tasks complete! Ready to archive this change.
115
+ \`\`\`
116
+
117
+ **Output On Pause (Issue Encountered)**
118
+
119
+ \`\`\`
120
+ ## Implementation Paused
121
+
122
+ **Change:** <change-name>
123
+ **Schema:** <schema-name>
124
+ **Progress:** 4/7 tasks complete
125
+
126
+ ### Issue Encountered
127
+ <description of the issue>
128
+
129
+ **Options:**
130
+ 1. <option 1>
131
+ 2. <option 2>
132
+ 3. Other approach
133
+
134
+ What would you like to do?
135
+ \`\`\`
136
+
137
+ **Guardrails**
138
+ - Keep going through tasks until done or blocked
139
+ - Always read context files before starting (from the apply instructions output)
140
+ - If task is ambiguous, pause and ask before implementing
141
+ - If implementation reveals issues, pause and suggest artifact updates
142
+ - Keep code changes minimal and scoped to each task
143
+ - Update task checkbox immediately after completing each task
144
+ - Pause on errors, blockers, or unclear requirements - don't guess
145
+ - Use contextFiles from CLI output, don't assume specific file names
146
+
147
+ **Fluid Workflow Integration**
148
+
149
+ This skill supports the "actions on a change" model:
150
+
151
+ - **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
152
152
  - **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly`,
153
153
  license: 'MIT',
154
154
  compatibility: 'Requires zhima CLI.',
@@ -161,153 +161,153 @@ export function getZmApplyCommandTemplate() {
161
161
  description: 'Implement tasks from an ZhiMa change (Experimental)',
162
162
  category: 'Workflow',
163
163
  tags: ['workflow', 'artifacts', 'experimental'],
164
- content: `Implement tasks from an ZhiMa change.
165
-
166
- **Input**: Optionally specify a change name (e.g., \`/zm:apply add-auth\`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
167
-
168
- **Steps**
169
-
170
- 1. **Select the change**
171
-
172
- If a name is provided, use it. Otherwise:
173
- - Infer from conversation context if the user mentioned a change
174
- - Auto-select if only one active change exists
175
- - If ambiguous, run \`zhima list --json\` to get available changes and use the **AskUserQuestion tool** to let the user select
176
-
177
- Always announce: "Using change: <name>" and how to override (e.g., \`/zm:apply <other>\`).
178
-
179
- 2. **Check status to understand the schema**
180
- \`\`\`bash
181
- zhima status --change "<name>" --json
182
- \`\`\`
183
- Parse the JSON to understand:
184
- - \`schemaName\`: The workflow being used (e.g., "spec-driven")
185
- - \`planningHome\`, \`changeRoot\`, and \`actionContext\`: planning scope and edit constraints
186
- - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
187
-
188
- 3. **Get apply instructions**
189
-
190
- \`\`\`bash
191
- zhima instructions apply --change "<name>" --json
192
- \`\`\`
193
-
194
- This returns:
195
- - \`contextFiles\`: artifact ID -> array of concrete file paths (varies by schema)
196
- - Progress (total, complete, remaining)
197
- - Task list with status
198
- - Dynamic instruction based on current state
199
-
200
- **Handle states:**
201
- - If \`state: "blocked"\` (missing artifacts): show message, suggest using \`/zm:continue\`
202
- - If \`state: "all_done"\`: congratulate, suggest archive
203
- - Otherwise: proceed to implementation
204
-
205
- **Workspace guard:** If status JSON reports \`actionContext.mode: "workspace-planning"\` and \`allowedEditRoots\` is empty, explain that full workspace apply is not supported in this slice. Treat linked repos and folders as read-only context, ask the user to select an affected area through an explicit implementation workflow, and STOP before editing files.
206
-
207
- 4. **Read context files**
208
-
209
- Read every file path listed under \`contextFiles\` from the apply instructions output.
210
- The files depend on the schema being used:
211
- - **spec-driven**: proposal, specs, design, tasks
212
- - Other schemas: follow the contextFiles from CLI output
213
-
214
- 5. **Show current progress**
215
-
216
- Display:
217
- - Schema being used
218
- - Progress: "N/M tasks complete"
219
- - Remaining tasks overview
220
- - Dynamic instruction from CLI
221
-
222
- 6. **Implement tasks (loop until done or blocked)**
223
-
224
- For each pending task:
225
- - Show which task is being worked on
226
- - Make the code changes required
227
- - Keep changes minimal and focused
228
- - Mark task complete in the tasks file: \`- [ ]\` → \`- [x]\`
229
- - Continue to next task
230
-
231
- **Pause if:**
232
- - Task is unclear → ask for clarification
233
- - Implementation reveals a design issue → suggest updating artifacts
234
- - Error or blocker encountered → report and wait for guidance
235
- - User interrupts
236
-
237
- 7. **On completion or pause, show status**
238
-
239
- Display:
240
- - Tasks completed this session
241
- - Overall progress: "N/M tasks complete"
242
- - If all done: suggest archive
243
- - If paused: explain why and wait for guidance
244
-
245
- **Output During Implementation**
246
-
247
- \`\`\`
248
- ## Implementing: <change-name> (schema: <schema-name>)
249
-
250
- Working on task 3/7: <task description>
251
- [...implementation happening...]
252
- ✓ Task complete
253
-
254
- Working on task 4/7: <task description>
255
- [...implementation happening...]
256
- ✓ Task complete
257
- \`\`\`
258
-
259
- **Output On Completion**
260
-
261
- \`\`\`
262
- ## Implementation Complete
263
-
264
- **Change:** <change-name>
265
- **Schema:** <schema-name>
266
- **Progress:** 7/7 tasks complete ✓
267
-
268
- ### Completed This Session
269
- - [x] Task 1
270
- - [x] Task 2
271
- ...
272
-
273
- All tasks complete! You can archive this change with \`/zm:archive\`.
274
- \`\`\`
275
-
276
- **Output On Pause (Issue Encountered)**
277
-
278
- \`\`\`
279
- ## Implementation Paused
280
-
281
- **Change:** <change-name>
282
- **Schema:** <schema-name>
283
- **Progress:** 4/7 tasks complete
284
-
285
- ### Issue Encountered
286
- <description of the issue>
287
-
288
- **Options:**
289
- 1. <option 1>
290
- 2. <option 2>
291
- 3. Other approach
292
-
293
- What would you like to do?
294
- \`\`\`
295
-
296
- **Guardrails**
297
- - Keep going through tasks until done or blocked
298
- - Always read context files before starting (from the apply instructions output)
299
- - If task is ambiguous, pause and ask before implementing
300
- - If implementation reveals issues, pause and suggest artifact updates
301
- - Keep code changes minimal and scoped to each task
302
- - Update task checkbox immediately after completing each task
303
- - Pause on errors, blockers, or unclear requirements - don't guess
304
- - Use contextFiles from CLI output, don't assume specific file names
305
-
306
- **Fluid Workflow Integration**
307
-
308
- This skill supports the "actions on a change" model:
309
-
310
- - **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
164
+ content: `Implement tasks from an ZhiMa change.
165
+
166
+ **Input**: Optionally specify a change name (e.g., \`/zm:apply add-auth\`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
167
+
168
+ **Steps**
169
+
170
+ 1. **Select the change**
171
+
172
+ If a name is provided, use it. Otherwise:
173
+ - Infer from conversation context if the user mentioned a change
174
+ - Auto-select if only one active change exists
175
+ - If ambiguous, run \`zhima list --json\` to get available changes and use the **AskUserQuestion tool** to let the user select
176
+
177
+ Always announce: "Using change: <name>" and how to override (e.g., \`/zm:apply <other>\`).
178
+
179
+ 2. **Check status to understand the schema**
180
+ \`\`\`bash
181
+ zhima status --change "<name>" --json
182
+ \`\`\`
183
+ Parse the JSON to understand:
184
+ - \`schemaName\`: The workflow being used (e.g., "spec-driven")
185
+ - \`planningHome\`, \`changeRoot\`, and \`actionContext\`: planning scope and edit constraints
186
+ - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
187
+
188
+ 3. **Get apply instructions**
189
+
190
+ \`\`\`bash
191
+ zhima instructions apply --change "<name>" --json
192
+ \`\`\`
193
+
194
+ This returns:
195
+ - \`contextFiles\`: artifact ID -> array of concrete file paths (varies by schema)
196
+ - Progress (total, complete, remaining)
197
+ - Task list with status
198
+ - Dynamic instruction based on current state
199
+
200
+ **Handle states:**
201
+ - If \`state: "blocked"\` (missing artifacts): show message, suggest using \`/zm:continue\`
202
+ - If \`state: "all_done"\`: congratulate, suggest archive
203
+ - Otherwise: proceed to implementation
204
+
205
+ **Workspace guard:** If status JSON reports \`actionContext.mode: "workspace-planning"\` and \`allowedEditRoots\` is empty, explain that full workspace apply is not supported in this slice. Treat linked repos and folders as read-only context, ask the user to select an affected area through an explicit implementation workflow, and STOP before editing files.
206
+
207
+ 4. **Read context files**
208
+
209
+ Read every file path listed under \`contextFiles\` from the apply instructions output.
210
+ The files depend on the schema being used:
211
+ - **spec-driven**: proposal, specs, design, tasks
212
+ - Other schemas: follow the contextFiles from CLI output
213
+
214
+ 5. **Show current progress**
215
+
216
+ Display:
217
+ - Schema being used
218
+ - Progress: "N/M tasks complete"
219
+ - Remaining tasks overview
220
+ - Dynamic instruction from CLI
221
+
222
+ 6. **Implement tasks (loop until done or blocked)**
223
+
224
+ For each pending task:
225
+ - Show which task is being worked on
226
+ - Make the code changes required
227
+ - Keep changes minimal and focused
228
+ - Mark task complete in the tasks file: \`- [ ]\` → \`- [x]\`
229
+ - Continue to next task
230
+
231
+ **Pause if:**
232
+ - Task is unclear → ask for clarification
233
+ - Implementation reveals a design issue → suggest updating artifacts
234
+ - Error or blocker encountered → report and wait for guidance
235
+ - User interrupts
236
+
237
+ 7. **On completion or pause, show status**
238
+
239
+ Display:
240
+ - Tasks completed this session
241
+ - Overall progress: "N/M tasks complete"
242
+ - If all done: suggest archive
243
+ - If paused: explain why and wait for guidance
244
+
245
+ **Output During Implementation**
246
+
247
+ \`\`\`
248
+ ## Implementing: <change-name> (schema: <schema-name>)
249
+
250
+ Working on task 3/7: <task description>
251
+ [...implementation happening...]
252
+ ✓ Task complete
253
+
254
+ Working on task 4/7: <task description>
255
+ [...implementation happening...]
256
+ ✓ Task complete
257
+ \`\`\`
258
+
259
+ **Output On Completion**
260
+
261
+ \`\`\`
262
+ ## Implementation Complete
263
+
264
+ **Change:** <change-name>
265
+ **Schema:** <schema-name>
266
+ **Progress:** 7/7 tasks complete ✓
267
+
268
+ ### Completed This Session
269
+ - [x] Task 1
270
+ - [x] Task 2
271
+ ...
272
+
273
+ All tasks complete! You can archive this change with \`/zm:archive\`.
274
+ \`\`\`
275
+
276
+ **Output On Pause (Issue Encountered)**
277
+
278
+ \`\`\`
279
+ ## Implementation Paused
280
+
281
+ **Change:** <change-name>
282
+ **Schema:** <schema-name>
283
+ **Progress:** 4/7 tasks complete
284
+
285
+ ### Issue Encountered
286
+ <description of the issue>
287
+
288
+ **Options:**
289
+ 1. <option 1>
290
+ 2. <option 2>
291
+ 3. Other approach
292
+
293
+ What would you like to do?
294
+ \`\`\`
295
+
296
+ **Guardrails**
297
+ - Keep going through tasks until done or blocked
298
+ - Always read context files before starting (from the apply instructions output)
299
+ - If task is ambiguous, pause and ask before implementing
300
+ - If implementation reveals issues, pause and suggest artifact updates
301
+ - Keep code changes minimal and scoped to each task
302
+ - Update task checkbox immediately after completing each task
303
+ - Pause on errors, blockers, or unclear requirements - don't guess
304
+ - Use contextFiles from CLI output, don't assume specific file names
305
+
306
+ **Fluid Workflow Integration**
307
+
308
+ This skill supports the "actions on a change" model:
309
+
310
+ - **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
311
311
  - **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly`
312
312
  };
313
313
  }