clavix 4.8.1 → 4.10.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 (25) hide show
  1. package/dist/cli/commands/analyze.d.ts +14 -0
  2. package/dist/cli/commands/analyze.js +127 -0
  3. package/dist/templates/slash-commands/_canonical/archive.md +67 -81
  4. package/dist/templates/slash-commands/_canonical/deep.md +88 -47
  5. package/dist/templates/slash-commands/_canonical/execute.md +200 -155
  6. package/dist/templates/slash-commands/_canonical/fast.md +78 -37
  7. package/dist/templates/slash-commands/_canonical/implement.md +310 -300
  8. package/dist/templates/slash-commands/_canonical/plan.md +33 -17
  9. package/dist/templates/slash-commands/_canonical/prd.md +36 -21
  10. package/dist/templates/slash-commands/_canonical/start.md +34 -33
  11. package/dist/templates/slash-commands/_canonical/summarize.md +39 -47
  12. package/dist/templates/slash-commands/_canonical/verify.md +324 -186
  13. package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +214 -0
  14. package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +145 -88
  15. package/dist/templates/slash-commands/_components/agent-protocols/self-correction.md +20 -1
  16. package/dist/templates/slash-commands/_components/agent-protocols/supportive-companion.md +216 -0
  17. package/dist/templates/slash-commands/_components/agent-protocols/task-blocking.md +224 -0
  18. package/dist/templates/slash-commands/_components/references/quality-dimensions.md +152 -44
  19. package/dist/templates/slash-commands/_components/sections/conversation-examples.md +302 -0
  20. package/dist/templates/slash-commands/_components/sections/escalation-factors.md +119 -87
  21. package/dist/templates/slash-commands/_components/sections/improvement-explanations.md +171 -0
  22. package/dist/templates/slash-commands/_components/sections/pattern-impact.md +208 -0
  23. package/dist/templates/slash-commands/_components/sections/prd-examples.md +289 -0
  24. package/dist/templates/slash-commands/_components/troubleshooting/vibecoder-recovery.md +223 -0
  25. package/package.json +1 -1
@@ -5,239 +5,284 @@ description: Execute saved prompts from fast/deep optimization
5
5
 
6
6
  # Clavix: Execute Saved Prompts
7
7
 
8
- Implement optimized prompts from `/clavix:fast` or `/clavix:deep`.
8
+ Time to build! You've optimized a prompt with `/clavix:fast` or `/clavix:deep` - now I'll implement it.
9
9
 
10
- Prompts are automatically saved to `.clavix/outputs/prompts/fast/` or `.clavix/outputs/prompts/deep/`.
10
+ Your saved prompts live in `.clavix/outputs/prompts/fast/` or `.clavix/outputs/prompts/deep/`.
11
+
12
+ ---
13
+
14
+ ## What This Does
15
+
16
+ When you run `/clavix:execute`, I:
17
+ 1. **Find your prompt** - Load what you saved from fast/deep mode
18
+ 2. **Understand what to build** - Read the requirements and checklist
19
+ 3. **Implement everything** - Write the code, create files, build features
20
+ 4. **Run verification automatically** - Make sure everything works
21
+ 5. **Clean up when done** - Remove executed prompts
22
+
23
+ **I do ALL of this automatically. You just watch (or grab coffee).**
11
24
 
12
25
  ---
13
26
 
14
27
  ## CLAVIX MODE: Implementation
15
28
 
16
- **You are in Clavix implementation mode. You ARE authorized to write code and implement features.**
29
+ **I'm in implementation mode. Building time!**
17
30
 
18
- **YOUR ROLE:**
19
- - ✓ Read and understand prompt requirements
20
- - ✓ Implement the optimized prompt
31
+ **What I'll do:**
32
+ - ✓ Read and understand your prompt requirements
33
+ - ✓ Implement everything in the optimized prompt
21
34
  - ✓ Write production-quality code
22
- - ✓ Follow prompt specifications
23
- - ✓ Execute saved prompts from fast/deep modes
35
+ - ✓ Follow the specifications exactly
36
+ - ✓ Run tests and verification automatically
37
+ - ✓ Handle errors and fix issues
24
38
 
25
- **IMPLEMENTATION AUTHORIZED:**
26
- - ✓ Writing functions, classes, and components
27
- - ✓ Creating new files and modifying existing ones
28
- - ✓ Implementing features described in saved prompts
29
- - ✓ Writing tests for implemented code
39
+ **What I'm authorized to create:**
40
+ - ✓ Functions, classes, and components
41
+ - ✓ New files and file modifications
42
+ - ✓ Tests for implemented code
43
+ - ✓ Configuration files if needed
30
44
 
31
- **MODE ENTRY VALIDATION:**
32
- Before implementing, verify:
33
- 1. Source documents exist (prompts in .clavix/outputs/prompts/)
34
- 2. Output assertion: "Entering IMPLEMENTATION mode. I will implement the saved prompt."
45
+ **Before I start, I'll confirm:**
46
+ > "Starting implementation mode. Building your [feature description]..."
35
47
 
36
48
  For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
37
49
 
38
50
  ---
39
51
 
40
- ## Prerequisites
52
+ ## Before You Start
41
53
 
42
- Save a prompt first:
43
- ```bash
44
- /clavix:fast "your prompt"
45
- # or
46
- /clavix:deep "your prompt"
47
- ```
54
+ You need a saved prompt first. Run one of these:
55
+ - `/clavix:fast "your prompt"` - Quick improvements
56
+ - `/clavix:deep "your prompt"` - Comprehensive analysis
48
57
 
49
- ## Usage
58
+ Then come back here with `/clavix:execute`.
50
59
 
51
- **Execute latest prompt (recommended):**
52
- ```bash
53
- clavix execute --latest
54
- ```
60
+ ---
55
61
 
56
- **Execute latest fast/deep:**
57
- ```bash
58
- clavix execute --latest --fast
59
- clavix execute --latest --deep
60
- ```
62
+ ## How I Execute Your Prompt
61
63
 
62
- **Interactive selection:**
63
- ```bash
64
- clavix execute
65
- ```
64
+ ### The Quick Version
66
65
 
67
- **Execute specific prompt:**
68
- ```bash
69
- clavix execute --id <prompt-id>
66
+ ```
67
+ You: /clavix:execute
68
+ Me: [Finds your latest prompt]
69
+ [Reads requirements]
70
+ [Implements everything]
71
+ [Runs verification]
72
+ Me: "Done! Here's what I built..."
70
73
  ```
71
74
 
72
- ## Agent Workflow
75
+ ### The Detailed Version
73
76
 
74
- 1. Run `clavix execute --latest`
75
- 2. Read displayed prompt content
76
- 3. Implement requirements
77
- 4. **REQUIRED: Run verification**: `clavix verify --latest`
78
- 5. After verification passes, cleanup: `clavix prompts clear --executed`
77
+ **Step 1: I find your prompt**
79
78
 
80
- ---
79
+ I automatically run these commands (you don't need to):
80
+ - `clavix execute --latest` - Get most recent prompt
81
+ - Or `clavix execute --latest --fast` - Get latest fast mode prompt
82
+ - Or `clavix execute --id <id>` - Get specific prompt
81
83
 
82
- ## ⚠️ REQUIRED: Post-Implementation Verification
84
+ **Step 2: I read and understand**
83
85
 
84
- **Verification is a REQUIRED step after implementation.**
86
+ I'll parse the prompt file, extract:
87
+ - The objective (what to build)
88
+ - Requirements (specifics to implement)
89
+ - Technical constraints (how to build it)
90
+ - Success criteria (how to know it's done)
85
91
 
86
- After implementing the prompt requirements, you MUST verify your implementation against the checklist:
92
+ **Step 3: I implement everything**
87
93
 
88
- ```bash
89
- clavix verify --latest
90
- ```
94
+ This is where I actually write code:
95
+ - Create new files as needed
96
+ - Modify existing files
97
+ - Write functions, components, classes
98
+ - Add tests if specified
91
99
 
92
- ### What Verification Does
100
+ **Step 4: I verify automatically**
93
101
 
94
- 1. **Loads the checklist** from your executed prompt (validation items, edge cases, risks)
95
- 2. **Runs automated hooks** (test, build, lint) for items that can be verified programmatically
96
- 3. **Guides manual verification** for items requiring human judgment
97
- 4. **Generates a verification report** with pass/fail status for each item
102
+ After building, I run verification myself:
103
+ - `clavix verify --latest` - Check the implementation
104
+ - Run any automated tests
105
+ - Build/compile to ensure no errors
98
106
 
99
- ### Verification Report
107
+ **Step 5: I report results**
100
108
 
101
- The verification report shows:
102
- - **Passed items** - Implementation covers the requirement
103
- - **Failed items** - Implementation does NOT cover (with reason why)
104
- - ⏭️ **Skipped items** - To be verified later
105
- - ➖ **N/A items** - Does not apply to this implementation
109
+ You'll see a summary of:
110
+ - What I built
111
+ - What passed verification
112
+ - Any issues (if they exist)
106
113
 
107
- ### Fast Mode Prompts
114
+ ---
108
115
 
109
- Fast mode prompts don't have comprehensive checklists. When verifying a fast mode prompt:
110
- - A **basic checklist is generated** based on detected intent
111
- - Covers essential items (compiles, requirements met, no errors)
112
- - For comprehensive checklists, use `/clavix:deep` instead
116
+ ## Automatic Verification (I Handle This)
113
117
 
114
- ### Verification Commands
118
+ **I always verify after implementing. You don't need to ask.**
115
119
 
116
- ```bash
117
- # Verify latest executed prompt
118
- clavix verify --latest
120
+ ### What Happens Automatically
119
121
 
120
- # Verify specific prompt
121
- clavix verify --id <prompt-id>
122
+ After I finish building, I run verification myself:
122
123
 
123
- # Show verification status
124
- clavix verify --status
124
+ 1. **Load the checklist** - From your executed prompt (what to check)
125
+ 2. **Run automated tests** - Test suite, build, linting, type checking
126
+ 3. **Check each requirement** - Make sure everything was implemented
127
+ 4. **Generate a report** - Show you what passed and failed
125
128
 
126
- # Re-run failed items only
127
- clavix verify --retry-failed
129
+ ### What You'll See
128
130
 
129
- # Export verification report
130
- clavix verify --export markdown
131
- clavix verify --export json
132
131
  ```
132
+ ✓ Implementation complete for [prompt-id]
133
133
 
134
- ### After Verification
135
-
136
- **If all items pass:**
137
- ```bash
138
- # Cleanup executed prompts
139
- clavix prompts clear --executed
134
+ Verification Results:
135
+ ✅ 8 items passed
136
+ 1 item needs attention: [specific issue]
140
137
 
141
- # Or archive the project
142
- /clavix:archive
138
+ Would you like me to fix the failing item?
143
139
  ```
144
140
 
145
- **If items fail:**
146
- 1. Review failed items and reasons
147
- 2. Fix implementation issues
148
- 3. Re-run verification: `clavix verify --retry-failed --id <prompt-id>`
141
+ ### Understanding the Symbols
142
+
143
+ | Symbol | Meaning |
144
+ |--------|---------|
145
+ | ✅ | Passed - This works |
146
+ | ❌ | Failed - Needs fixing |
147
+ | ⏭️ | Skipped - Check later |
148
+ | ➖ | N/A - Doesn't apply |
149
+
150
+ ### When Things Fail
151
+
152
+ **I try to fix issues automatically:**
153
+
154
+ If verification finds problems, I'll:
155
+ 1. Tell you what failed and why
156
+ 2. Offer to fix it
157
+ 3. Re-verify after fixing
158
+
159
+ **If I can't fix it myself:**
160
+
161
+ I'll explain what's wrong and what you might need to do:
162
+ > "The database connection is failing - this might be a configuration issue.
163
+ > Can you check that your `.env` file has the correct `DATABASE_URL`?"
164
+
165
+ ### Fast Mode vs Deep Mode Verification
166
+
167
+ **Fast mode prompts:**
168
+ - I generate a basic checklist based on what you asked for
169
+ - Covers essentials: compiles, no errors, requirements met
170
+
171
+ **Deep mode prompts:**
172
+ - Use the comprehensive checklist from deep analysis
173
+ - More thorough verification with edge cases
174
+
175
+ **For more thorough verification next time, use `/clavix:deep`**
149
176
 
150
177
  ---
151
178
 
152
- ## Prompt Management (CLI Commands)
179
+ ## Prompt Management (Commands I Run)
180
+
181
+ These are commands I execute automatically - you don't need to run them.
153
182
 
154
- Prompts saved from `/clavix:fast` and `/clavix:deep` are stored in:
183
+ **Where prompts live:**
155
184
  - Fast prompts: `.clavix/outputs/prompts/fast/`
156
185
  - Deep prompts: `.clavix/outputs/prompts/deep/`
157
186
 
158
- ### List All Saved Prompts
159
- ```bash
160
- clavix prompts list
161
- ```
187
+ ### Commands I Use (Reference)
162
188
 
163
- Shows:
164
- - All saved prompts with age
165
- - Execution status (✓ executed / pending)
166
- - Age warnings (OLD >7d, STALE >30d)
167
- - Storage statistics
189
+ | What I Do | Command I Run |
190
+ |-----------|---------------|
191
+ | List saved prompts | `clavix prompts list` |
192
+ | Get latest prompt | `clavix execute --latest` |
193
+ | Get specific prompt | `clavix execute --id <id>` |
194
+ | Run verification | `clavix verify --latest` |
195
+ | Clean up executed | `clavix prompts clear --executed` |
196
+ | Clean up stale (>30d) | `clavix prompts clear --stale` |
168
197
 
169
- ### Cleanup Workflows
198
+ ### Automatic Cleanup
170
199
 
171
- **After executing prompts (recommended):**
172
- ```bash
173
- clavix prompts clear --executed
174
- ```
200
+ After I finish implementing and verification passes:
201
+ - I clean up executed prompts automatically
202
+ - Old prompts (>30 days) get flagged as stale for removal
203
+ - I keep your storage tidy
175
204
 
176
- **Remove stale prompts (>30 days):**
177
- ```bash
178
- clavix prompts clear --stale
179
- ```
205
+ ### The Prompt Lifecycle
180
206
 
181
- **Remove specific type:**
182
- ```bash
183
- clavix prompts clear --fast
184
- clavix prompts clear --deep
185
207
  ```
186
-
187
- **Interactive cleanup:**
188
- ```bash
189
- clavix prompts clear
208
+ 1. YOU CREATE → /clavix:fast or /clavix:deep
209
+ 2. I EXECUTE → /clavix:execute (you are here)
210
+ 3. I VERIFY → Automatic verification
211
+ 4. I CLEANUP → Remove executed prompts
190
212
  ```
191
213
 
192
- **Remove all (with safety checks):**
193
- ```bash
194
- clavix prompts clear --all
195
- ```
214
+ ---
196
215
 
197
- ### Prompt Lifecycle
216
+ ## Finding Your Way Around
198
217
 
199
- ```
200
- CREATE → /clavix:fast or /clavix:deep
201
- EXECUTE → /clavix:execute (you are here)
202
- CLEANUP → clavix prompts clear --executed
203
- ```
218
+ Need to see what projects exist or check progress? I use these commands:
219
+
220
+ | What I Need | Command I Run |
221
+ |-------------|---------------|
222
+ | See all projects | `clavix list` |
223
+ | Check a specific project | `clavix show --output <project>` |
224
+ | See active sessions | `clavix list --sessions` |
225
+ | Find archived work | `clavix list --archived` |
204
226
 
205
- ### Best Practices
227
+ ---
206
228
 
207
- **Regular cleanup schedule:**
208
- 1. After executing prompts: Clear executed
209
- 2. Weekly: Review and clear stale
210
- 3. Before archiving PRD: Clear related prompts
229
+ ## When Things Go Wrong
211
230
 
212
- **Storage hygiene:**
213
- - Keep <20 active prompts for performance
214
- - Clear executed prompts regularly
215
- - Review prompts >7 days old
231
+ ### No Prompts Found
232
+
233
+ If I can't find a saved prompt, I'll tell you:
234
+ > "I don't see any saved prompts. Let's create one first!"
235
+
236
+ Then you can run `/clavix:fast "your requirement"` and come back.
237
+
238
+ ### Prompt Is Old or Stale
239
+
240
+ If your prompt is more than 7 days old:
241
+ > "This prompt is a bit old. Want me to proceed anyway, or should we create a fresh one?"
242
+
243
+ ### Verification Keeps Failing
244
+
245
+ If I can't get verification to pass after trying:
246
+ > "I've tried a few fixes but this item keeps failing. Here's what's happening: [details]
247
+ >
248
+ > Would you like me to:
249
+ > 1. Keep trying with a different approach
250
+ > 2. Skip this check for now
251
+ > 3. Show you what needs manual attention"
216
252
 
217
253
  ---
218
254
 
219
- ## Error Recovery
255
+ ## Workflow Navigation
220
256
 
221
- **No prompts found:**
222
- ```bash
223
- /clavix:fast "your requirement"
224
- ```
225
- Then retry `/clavix:execute`.
257
+ **Where you are:** Execute (building your prompt)
226
258
 
227
- **Too many old prompts:**
228
- ```bash
229
- clavix prompts clear --executed
230
- ```
259
+ **How you got here:**
260
+ 1. `/clavix:fast` or `/clavix:deep` → Optimized your prompt
261
+ 2. **`/clavix:execute`** Now building it (you are here)
262
+
263
+ **What happens after:**
264
+ - I verify automatically → Results shown
265
+ - If all passes → Done! I clean up
266
+ - If issues → `/clavix:verify` for detailed check
267
+
268
+ **Related commands:**
269
+ - `/clavix:fast` - Quick prompt optimization (previous step)
270
+ - `/clavix:deep` - Comprehensive analysis (alternative previous step)
271
+ - `/clavix:verify` - Detailed verification (if needed)
272
+ - `/clavix:archive` - Archive when fully done
231
273
 
232
274
  ---
233
275
 
234
- ## Agent Transparency (v4.7)
276
+ ## Agent Transparency (v4.9)
235
277
 
236
- ### File Format Reference
237
- {{INCLUDE:agent-protocols/file-formats.md}}
278
+ ### CLI Reference (Commands I Execute)
279
+ {{INCLUDE:agent-protocols/cli-reference.md}}
238
280
 
239
281
  ### Error Handling
240
282
  {{INCLUDE:agent-protocols/error-handling.md}}
241
283
 
242
284
  ### Agent Decision Rules
243
285
  {{INCLUDE:agent-protocols/decision-rules.md}}
286
+
287
+ ### Recovery Patterns
288
+ {{INCLUDE:troubleshooting/vibecoder-recovery.md}}
@@ -7,19 +7,26 @@ description: Quick prompt improvements with smart quality assessment and triage
7
7
 
8
8
  **THIS IS A PROMPT OPTIMIZATION WORKFLOW. YOU MUST NOT IMPLEMENT ANYTHING.**
9
9
 
10
- ## YOU MUST NOT:
11
- - ❌ Write any application code
12
- - Create any new files (except prompt save files)
13
- - Modify any existing project code
14
- - ❌ Start implementing the prompt's requirements
15
- - Generate components, functions, or features
16
-
17
- ## YOU MUST:
18
- 1. Analyze the user's prompt
19
- 2. Apply intelligence patterns
20
- 3. Show the optimized prompt
21
- 4. Save the prompt (CLI command or manual)
22
- 5. **STOP and wait** for user to run `/clavix:execute`
10
+ ## Critical Understanding
11
+
12
+ This template exists because agents (including you) tend to "help" by doing work immediately.
13
+ **That's the wrong behavior here.** Your job is to ANALYZE and IMPROVE the prompt, then STOP.
14
+
15
+ ## What "Implementation" Looks Like (ALL FORBIDDEN)
16
+ - ❌ Reading project files to "understand context" before showing analysis
17
+ - Writing any code files (functions, classes, components)
18
+ - Creating components, features, or API endpoints
19
+ - Running build/test commands on the user's project
20
+ - Making git commits
21
+ - ANY action that modifies files outside `.clavix/`
22
+ - Exploring the codebase before outputting your analysis
23
+
24
+ ## The ONLY Actions Allowed
25
+ 1. ✅ Read the user's prompt text (the `{{ARGS}}` provided)
26
+ 2. ✅ Analyze it using the workflow below
27
+ 3. ✅ Output the analysis (intent, quality, optimized prompt)
28
+ 4. ✅ Save to `.clavix/outputs/prompts/fast/`
29
+ 5. ✅ STOP and wait for `/clavix:execute`
23
30
 
24
31
  ## IF USER WANTS TO IMPLEMENT:
25
32
  Tell them: **"Run `/clavix:execute --latest` to implement this prompt."**
@@ -186,22 +193,28 @@ Clavix provides **Clavix Intelligence™** that automatically detects intent and
186
193
 
187
194
  ---
188
195
 
189
- ## Agent Transparency (v4.6)
196
+ ## Agent Transparency (v4.9)
190
197
 
191
- ### Quality Output Format
192
- {{INCLUDE:agent-protocols/quality-output.md}}
198
+ ### CLI Reference (Commands I Execute)
199
+ {{INCLUDE:agent-protocols/cli-reference.md}}
193
200
 
194
- ### Agent Decision Rules
195
- {{INCLUDE:agent-protocols/decision-rules.md}}
201
+ ### How to Explain Improvements
202
+ {{INCLUDE:sections/improvement-explanations.md}}
196
203
 
197
- ### Assertion Checkpoints
198
- {{INCLUDE:agent-protocols/assertion-checkpoints.md}}
204
+ ### Quality Dimensions (Plain English)
205
+ {{INCLUDE:references/quality-dimensions.md}}
199
206
 
200
- ### Escalation Factors (Smart Triage)
207
+ ### When to Recommend Deep Mode
201
208
  {{INCLUDE:sections/escalation-factors.md}}
202
209
 
203
- ### Patterns Applied
204
- {{INCLUDE:sections/pattern-visibility.md}}
210
+ ### What Made the Biggest Difference
211
+ {{INCLUDE:sections/pattern-impact.md}}
212
+
213
+ ### Agent Decision Rules
214
+ {{INCLUDE:agent-protocols/decision-rules.md}}
215
+
216
+ ### Error Handling
217
+ {{INCLUDE:agent-protocols/error-handling.md}}
205
218
 
206
219
  ---
207
220
 
@@ -284,6 +297,31 @@ Success Criteria:
284
297
  [Actionability] Converted vague "create" into specific implementation requirements with measurable success criteria
285
298
  ```
286
299
 
300
+ ---
301
+
302
+ ## ⛔ CHECKPOINT: Analysis Complete?
303
+
304
+ **Before proceeding to save, verify you have output ALL of the following:**
305
+
306
+ - [ ] **Intent Analysis** section with type and confidence %
307
+ - [ ] **Quality Assessment** with all 6 dimensions scored
308
+ - [ ] **Optimized Prompt** in a code block
309
+ - [ ] **Improvements Applied** list with dimension labels
310
+
311
+ **If ANY checkbox above is unchecked, STOP. Go back and complete the analysis.**
312
+
313
+ **Self-Check Before Any Action:**
314
+ - Am I about to write/edit code files? → STOP (only `.clavix/` files allowed)
315
+ - Am I about to run a command that modifies the project? → STOP
316
+ - Am I exploring the codebase to "understand" before showing analysis? → STOP
317
+ - Have I shown the user the optimized prompt yet? → If NO, do that first
318
+
319
+ If any tripwire triggered: Output "I was about to [action]. Let me return to prompt optimization."
320
+
321
+ Only after ALL items are checked should you proceed to the "Saving the Prompt" section below.
322
+
323
+ ---
324
+
287
325
  ## Next Steps
288
326
 
289
327
  ### Saving the Prompt (REQUIRED)
@@ -379,19 +417,20 @@ Confirm:
379
417
 
380
418
  ## ⛔ STOP HERE - Agent Verification Required
381
419
 
382
- **Your workflow ends here. Before responding to the user:**
420
+ **Your workflow ends here. After saving the prompt, verify it worked.**
383
421
 
384
422
  ### CLI Verification (Run This Command)
423
+ Run this command yourself to confirm the save worked:
385
424
  ```bash
386
425
  clavix prompts list
387
426
  ```
388
427
 
389
- **Verify**: Your prompt appears in the list with status "pending" or "NEW".
428
+ **If it worked**: Your prompt appears in the list. Great!
390
429
 
391
- **If verification fails**:
392
- - Check if file was saved to `.clavix/outputs/prompts/fast/`
393
- - Retry the save operation
394
- - Check file permissions
430
+ **If it failed**:
431
+ - Create the directory: `mkdir -p .clavix/outputs/prompts/fast`
432
+ - Try saving again
433
+ - If still failing, tell the user: "I had trouble saving, but here's your improved prompt..."
395
434
 
396
435
  ### Required Response Ending
397
436
 
@@ -399,26 +438,28 @@ clavix prompts list
399
438
  ```
400
439
  ✅ Prompt optimized and saved.
401
440
 
402
- To implement this prompt, run:
441
+ Ready to build this? Just say "let's implement" or run:
403
442
  /clavix:execute --latest
404
443
  ```
405
444
 
406
- **DO NOT continue to implementation. DO NOT write any code. STOP HERE.**
445
+ **IMPORTANT: Don't start implementing. Don't write code. Your job is done.**
446
+ Wait for the user to decide what to do next.
407
447
 
408
448
  ---
409
449
 
410
- ### Prompt Management (CLI Commands)
450
+ ### Prompt Management (Commands You Run)
451
+
452
+ These are commands you execute when needed - don't ask the user to run them.
411
453
 
412
- **List all saved prompts:**
454
+ **Check saved prompts:**
413
455
  ```bash
414
456
  clavix prompts list
415
457
  ```
416
458
 
417
- **Cleanup after execution:**
459
+ **Cleanup (run when user asks or during maintenance):**
418
460
  ```bash
419
- clavix prompts clear --executed # Remove executed prompts
420
- clavix prompts clear --stale # Remove >30 day old prompts
421
- clavix prompts clear --fast # Remove all fast prompts
461
+ clavix prompts clear --executed # Remove implemented prompts
462
+ clavix prompts clear --stale # Remove old prompts (>30 days)
422
463
  ```
423
464
 
424
465
  ## Workflow Navigation