clavix 4.8.1 → 4.9.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 (22) hide show
  1. package/dist/templates/slash-commands/_canonical/archive.md +67 -81
  2. package/dist/templates/slash-commands/_canonical/deep.md +40 -34
  3. package/dist/templates/slash-commands/_canonical/execute.md +187 -155
  4. package/dist/templates/slash-commands/_canonical/fast.md +33 -24
  5. package/dist/templates/slash-commands/_canonical/implement.md +283 -301
  6. package/dist/templates/slash-commands/_canonical/plan.md +33 -17
  7. package/dist/templates/slash-commands/_canonical/prd.md +36 -21
  8. package/dist/templates/slash-commands/_canonical/start.md +34 -33
  9. package/dist/templates/slash-commands/_canonical/summarize.md +39 -47
  10. package/dist/templates/slash-commands/_canonical/verify.md +324 -186
  11. package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +202 -0
  12. package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +145 -88
  13. package/dist/templates/slash-commands/_components/agent-protocols/supportive-companion.md +216 -0
  14. package/dist/templates/slash-commands/_components/agent-protocols/task-blocking.md +224 -0
  15. package/dist/templates/slash-commands/_components/references/quality-dimensions.md +152 -44
  16. package/dist/templates/slash-commands/_components/sections/conversation-examples.md +302 -0
  17. package/dist/templates/slash-commands/_components/sections/escalation-factors.md +119 -87
  18. package/dist/templates/slash-commands/_components/sections/improvement-explanations.md +171 -0
  19. package/dist/templates/slash-commands/_components/sections/pattern-impact.md +208 -0
  20. package/dist/templates/slash-commands/_components/sections/prd-examples.md +289 -0
  21. package/dist/templates/slash-commands/_components/troubleshooting/vibecoder-recovery.md +223 -0
  22. package/package.json +1 -1
@@ -5,239 +5,271 @@ 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
134
+ Verification Results:
135
+ ✅ 8 items passed
136
+ ❌ 1 item needs attention: [specific issue]
135
137
 
136
- **If all items pass:**
137
- ```bash
138
- # Cleanup executed prompts
139
- clavix prompts clear --executed
140
-
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
+ ## When Things Go Wrong
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
+ ### No Prompts Found
219
+
220
+ If I can't find a saved prompt, I'll tell you:
221
+ > "I don't see any saved prompts. Let's create one first!"
222
+
223
+ Then you can run `/clavix:fast "your requirement"` and come back.
224
+
225
+ ### Prompt Is Old or Stale
204
226
 
205
- ### Best Practices
227
+ If your prompt is more than 7 days old:
228
+ > "This prompt is a bit old. Want me to proceed anyway, or should we create a fresh one?"
206
229
 
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
230
+ ### Verification Keeps Failing
211
231
 
212
- **Storage hygiene:**
213
- - Keep <20 active prompts for performance
214
- - Clear executed prompts regularly
215
- - Review prompts >7 days old
232
+ If I can't get verification to pass after trying:
233
+ > "I've tried a few fixes but this item keeps failing. Here's what's happening: [details]
234
+ >
235
+ > Would you like me to:
236
+ > 1. Keep trying with a different approach
237
+ > 2. Skip this check for now
238
+ > 3. Show you what needs manual attention"
216
239
 
217
240
  ---
218
241
 
219
- ## Error Recovery
242
+ ## Workflow Navigation
220
243
 
221
- **No prompts found:**
222
- ```bash
223
- /clavix:fast "your requirement"
224
- ```
225
- Then retry `/clavix:execute`.
244
+ **Where you are:** Execute (building your prompt)
226
245
 
227
- **Too many old prompts:**
228
- ```bash
229
- clavix prompts clear --executed
230
- ```
246
+ **How you got here:**
247
+ 1. `/clavix:fast` or `/clavix:deep` → Optimized your prompt
248
+ 2. **`/clavix:execute`** Now building it (you are here)
249
+
250
+ **What happens after:**
251
+ - I verify automatically → Results shown
252
+ - If all passes → Done! I clean up
253
+ - If issues → `/clavix:verify` for detailed check
254
+
255
+ **Related commands:**
256
+ - `/clavix:fast` - Quick prompt optimization (previous step)
257
+ - `/clavix:deep` - Comprehensive analysis (alternative previous step)
258
+ - `/clavix:verify` - Detailed verification (if needed)
259
+ - `/clavix:archive` - Archive when fully done
231
260
 
232
261
  ---
233
262
 
234
- ## Agent Transparency (v4.7)
263
+ ## Agent Transparency (v4.9)
235
264
 
236
- ### File Format Reference
237
- {{INCLUDE:agent-protocols/file-formats.md}}
265
+ ### CLI Reference (Commands I Execute)
266
+ {{INCLUDE:agent-protocols/cli-reference.md}}
238
267
 
239
268
  ### Error Handling
240
269
  {{INCLUDE:agent-protocols/error-handling.md}}
241
270
 
242
271
  ### Agent Decision Rules
243
272
  {{INCLUDE:agent-protocols/decision-rules.md}}
273
+
274
+ ### Recovery Patterns
275
+ {{INCLUDE:troubleshooting/vibecoder-recovery.md}}
@@ -186,22 +186,28 @@ Clavix provides **Clavix Intelligence™** that automatically detects intent and
186
186
 
187
187
  ---
188
188
 
189
- ## Agent Transparency (v4.6)
189
+ ## Agent Transparency (v4.9)
190
190
 
191
- ### Quality Output Format
192
- {{INCLUDE:agent-protocols/quality-output.md}}
191
+ ### CLI Reference (Commands I Execute)
192
+ {{INCLUDE:agent-protocols/cli-reference.md}}
193
193
 
194
- ### Agent Decision Rules
195
- {{INCLUDE:agent-protocols/decision-rules.md}}
194
+ ### How to Explain Improvements
195
+ {{INCLUDE:sections/improvement-explanations.md}}
196
196
 
197
- ### Assertion Checkpoints
198
- {{INCLUDE:agent-protocols/assertion-checkpoints.md}}
197
+ ### Quality Dimensions (Plain English)
198
+ {{INCLUDE:references/quality-dimensions.md}}
199
199
 
200
- ### Escalation Factors (Smart Triage)
200
+ ### When to Recommend Deep Mode
201
201
  {{INCLUDE:sections/escalation-factors.md}}
202
202
 
203
- ### Patterns Applied
204
- {{INCLUDE:sections/pattern-visibility.md}}
203
+ ### What Made the Biggest Difference
204
+ {{INCLUDE:sections/pattern-impact.md}}
205
+
206
+ ### Agent Decision Rules
207
+ {{INCLUDE:agent-protocols/decision-rules.md}}
208
+
209
+ ### Error Handling
210
+ {{INCLUDE:agent-protocols/error-handling.md}}
205
211
 
206
212
  ---
207
213
 
@@ -379,19 +385,20 @@ Confirm:
379
385
 
380
386
  ## ⛔ STOP HERE - Agent Verification Required
381
387
 
382
- **Your workflow ends here. Before responding to the user:**
388
+ **Your workflow ends here. After saving the prompt, verify it worked.**
383
389
 
384
390
  ### CLI Verification (Run This Command)
391
+ Run this command yourself to confirm the save worked:
385
392
  ```bash
386
393
  clavix prompts list
387
394
  ```
388
395
 
389
- **Verify**: Your prompt appears in the list with status "pending" or "NEW".
396
+ **If it worked**: Your prompt appears in the list. Great!
390
397
 
391
- **If verification fails**:
392
- - Check if file was saved to `.clavix/outputs/prompts/fast/`
393
- - Retry the save operation
394
- - Check file permissions
398
+ **If it failed**:
399
+ - Create the directory: `mkdir -p .clavix/outputs/prompts/fast`
400
+ - Try saving again
401
+ - If still failing, tell the user: "I had trouble saving, but here's your improved prompt..."
395
402
 
396
403
  ### Required Response Ending
397
404
 
@@ -399,26 +406,28 @@ clavix prompts list
399
406
  ```
400
407
  ✅ Prompt optimized and saved.
401
408
 
402
- To implement this prompt, run:
409
+ Ready to build this? Just say "let's implement" or run:
403
410
  /clavix:execute --latest
404
411
  ```
405
412
 
406
- **DO NOT continue to implementation. DO NOT write any code. STOP HERE.**
413
+ **IMPORTANT: Don't start implementing. Don't write code. Your job is done.**
414
+ Wait for the user to decide what to do next.
407
415
 
408
416
  ---
409
417
 
410
- ### Prompt Management (CLI Commands)
418
+ ### Prompt Management (Commands You Run)
419
+
420
+ These are commands you execute when needed - don't ask the user to run them.
411
421
 
412
- **List all saved prompts:**
422
+ **Check saved prompts:**
413
423
  ```bash
414
424
  clavix prompts list
415
425
  ```
416
426
 
417
- **Cleanup after execution:**
427
+ **Cleanup (run when user asks or during maintenance):**
418
428
  ```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
429
+ clavix prompts clear --executed # Remove implemented prompts
430
+ clavix prompts clear --stale # Remove old prompts (>30 days)
422
431
  ```
423
432
 
424
433
  ## Workflow Navigation