@@ -129,51 +129,45 @@ Wait for response. Store as `mode`.
129129- If Quick: "Got it! Quick mode."
130130- If Expert: "Great! Expert mode."
131131
132- ** 3. Ask which workflow (call to action) :**
132+ ** 3. Show journey based on selected conditions :**
133133
134- " ** Which workflow do you want to modify? **
134+ Calculate step count from ` {selected_conditions} ` (same logic as create-workflow):
135135
136- Enter the workflow name (e.g., ` docs-generator ` ):"
136+ | Condition | Maps To |
137+ | -----------| ---------|
138+ | ` full-workflow ` | All steps (01-05) |
139+ | ` workflow-definition ` | Step 02 |
140+ | ` agents ` | Step 03 |
141+ | ` prompts ` | Step 04 |
142+ | ` workflow-generation ` | Step 05 |
137143
138- Wait for response. Store as ` existing_workflow_name ` .
144+ " ** Your journey for modifying ({total_steps} steps): **
139145
140- ** 4. Load existing plan:**
146+ | Step | Focus |
147+ | ------| -------|
148+ | 00 | Setup (done) |
149+ | 01 | Load & Review |
150+ {dynamically_generated_rows based on selected_conditions}"
141151
142- Load ` .codemachine/ workflow-plans/{existing_workflow_name}-plan.md ` .
152+ ** 4. Ask which workflow (call to action): **
143153
144- - If not found: "Couldn't find ** {existing_workflow_name}** . Check the name and try again." (ask again)
145- - If found: Show current workflow summary from plan file.
154+ "** Which workflow do you want to modify?**
146155
147- ** 5. Ask what to modify (call to action): **
156+ Enter the workflow name (e.g., ` docs-generator ` ):"
148157
149- " ** What do you want to modify? **
158+ Wait for response. Store as ` existing_workflow_name ` .
150159
151- 1 . Workflow Definition (name, tracks, conditions, mode)
152- 2 . Agents (add, edit, remove)
153- 3 . Prompts (edit prompt files)
154- 4 . Full review (everything)
160+ ** 5. Ask what to modify (call to action):**
155161
156- Enter ** 1-4 ** : "
162+ " ** What do you want to modify in {selected_conditions}? ** "
157163
158164Wait for response. Store as ` modify_focus ` .
159165
160- ** 6. Show journey based on modify_focus and proceed:**
166+ ** 6. Push to proceed:**
161167
162- Map ` modify_focus ` to steps:
163- - 1 (Workflow Definition) → Step 02
164- - 2 (Agents) → Step 03
165- - 3 (Prompts) → Step 04
166- - 4 (Full review) → Steps 02-05
168+ "Ready to start modifying ** {existing_workflow_name}** .
167169
168- "** Your journey for modifying {existing_workflow_name}:**
169-
170- | Step | Focus |
171- | ------| -------|
172- | 00 | Setup (done) |
173- | 01 | Load & Review |
174- {steps based on modify_focus}
175-
176- Press ** Enter** to proceed."
170+ Press ** Enter** to proceed to Step 01."
177171
178172---
179173
@@ -199,19 +193,36 @@ Wait for response. Store as `mode`.
199193- If Quick: "Got it! Quick mode."
200194- If Expert: "Great! I'll explain thoroughly."
201195
202- ** 3. Ask what they need (call to action):**
196+ ** 3. Show journey based on selected conditions:**
197+
198+ Calculate step count from ` {selected_conditions} ` (same logic as create-workflow):
199+
200+ | Condition | Maps To |
201+ | -----------| ---------|
202+ | ` full-workflow ` | All steps (01-05) |
203+ | ` workflow-definition ` | Step 02 |
204+ | ` agents ` | Step 03 |
205+ | ` prompts ` | Step 04 |
206+ | ` workflow-generation ` | Step 05 |
207+
208+ "** Your Q&A journey ({total_steps} steps):**
209+
210+ | Step | Focus |
211+ | ------| -------|
212+ | 00 | Setup (done) |
213+ {dynamically_generated_rows based on selected_conditions}"
214+
215+ ** 4. Ask what they need (call to action):**
216+
217+ "** What would you like to know about in {selected_conditions}?** "
203218
204- " ** What would you like to know about? **
219+ Wait for response. Store as ` question_topic ` .
205220
206- 1 . CodeMachine concepts (workflows, agents, tracks, conditions)
207- 2 . Creating workflows
208- 3 . Modifying workflows
209- 4 . Troubleshooting
210- 5 . Something else
221+ ** 5. Push to proceed:**
211222
212- Enter ** 1-5 ** or describe your question:"
223+ "Ready to answer your questions about ** {question_topic} ** .
213224
214- Wait for response. Store as ` question_topic ` . Route to relevant help.
225+ Press ** Enter ** to proceed to Step 01."
215226
216227---
217228
@@ -233,18 +244,20 @@ Wait for response. Store as `question_topic`. Route to relevant help.
233244## SUCCESS METRICS
234245
235246- Mode selected (quick/expert)
236- - Journey preview shown
247+ - Journey preview shown with step count
237248- Track-specific questions answered with clear call to action
238249- ` create-workflow ` : workflow_concept captured
239- - ` modify-workflow ` : existing workflow loaded, modify_focus selected
240- - ` have-questions ` : question topic identified
241- - User knows what's next (proceed message)
250+ - ` modify-workflow ` : existing_workflow_name and modify_focus captured
251+ - ` have-questions ` : question_topic captured
252+ - User pushed to press Enter to proceed
242253
243254## FAILURE METRICS
244255
245256- Skipping mode selection
246- - Not showing journey preview
257+ - Not showing journey preview with step count
247258- Ending on informational content instead of call to action
248259- Not asking for workflow concept (create-workflow)
249- - Not loading existing plan (modify-workflow)
260+ - Not asking for workflow name (modify-workflow)
250261- Proceeding without clear "Press Enter" instruction
262+ - Using Write tool (FORBIDDEN in Step 0)
263+ - Loading or modifying files (FORBIDDEN in Step 0)
0 commit comments