clavix 4.12.0 → 5.0.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 (151) hide show
  1. package/README.md +69 -61
  2. package/dist/templates/slash-commands/_canonical/archive.md +83 -121
  3. package/dist/templates/slash-commands/_canonical/execute.md +32 -42
  4. package/dist/templates/slash-commands/_canonical/implement.md +32 -44
  5. package/dist/templates/slash-commands/_canonical/improve.md +13 -52
  6. package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +84 -180
  7. package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +2 -2
  8. package/dist/templates/slash-commands/_components/agent-protocols/file-formats.md +41 -59
  9. package/dist/templates/slash-commands/_components/sections/file-saving-protocol.md +20 -27
  10. package/dist/templates/slash-commands/_components/troubleshooting/file-not-saved.md +4 -5
  11. package/package.json +2 -2
  12. package/dist/cli/commands/analyze.d.ts +0 -17
  13. package/dist/cli/commands/analyze.js +0 -133
  14. package/dist/cli/commands/archive.d.ts +0 -36
  15. package/dist/cli/commands/archive.js +0 -266
  16. package/dist/cli/commands/deep.d.ts +0 -17
  17. package/dist/cli/commands/deep.js +0 -170
  18. package/dist/cli/commands/execute.d.ts +0 -15
  19. package/dist/cli/commands/execute.js +0 -168
  20. package/dist/cli/commands/fast.d.ts +0 -18
  21. package/dist/cli/commands/fast.js +0 -219
  22. package/dist/cli/commands/implement.d.ts +0 -24
  23. package/dist/cli/commands/implement.js +0 -289
  24. package/dist/cli/commands/improve.d.ts +0 -32
  25. package/dist/cli/commands/improve.js +0 -250
  26. package/dist/cli/commands/list.d.ts +0 -17
  27. package/dist/cli/commands/list.js +0 -217
  28. package/dist/cli/commands/plan.d.ts +0 -21
  29. package/dist/cli/commands/plan.js +0 -297
  30. package/dist/cli/commands/prd.d.ts +0 -24
  31. package/dist/cli/commands/prd.js +0 -321
  32. package/dist/cli/commands/prompts/clear.d.ts +0 -16
  33. package/dist/cli/commands/prompts/clear.js +0 -222
  34. package/dist/cli/commands/prompts/list.d.ts +0 -8
  35. package/dist/cli/commands/prompts/list.js +0 -88
  36. package/dist/cli/commands/show.d.ts +0 -21
  37. package/dist/cli/commands/show.js +0 -191
  38. package/dist/cli/commands/start.d.ts +0 -40
  39. package/dist/cli/commands/start.js +0 -210
  40. package/dist/cli/commands/summarize.d.ts +0 -17
  41. package/dist/cli/commands/summarize.js +0 -196
  42. package/dist/cli/commands/task-complete.d.ts +0 -27
  43. package/dist/cli/commands/task-complete.js +0 -269
  44. package/dist/cli/commands/verify.d.ts +0 -28
  45. package/dist/cli/commands/verify.js +0 -349
  46. package/dist/core/archive-manager.d.ts +0 -100
  47. package/dist/core/archive-manager.js +0 -302
  48. package/dist/core/basic-checklist-generator.d.ts +0 -35
  49. package/dist/core/basic-checklist-generator.js +0 -344
  50. package/dist/core/checklist-parser.d.ts +0 -48
  51. package/dist/core/checklist-parser.js +0 -238
  52. package/dist/core/config-manager.d.ts +0 -149
  53. package/dist/core/config-manager.js +0 -230
  54. package/dist/core/conversation-analyzer.d.ts +0 -86
  55. package/dist/core/conversation-analyzer.js +0 -387
  56. package/dist/core/conversation-quality-tracker.d.ts +0 -81
  57. package/dist/core/conversation-quality-tracker.js +0 -195
  58. package/dist/core/git-manager.d.ts +0 -126
  59. package/dist/core/git-manager.js +0 -282
  60. package/dist/core/intelligence/confidence-calculator.d.ts +0 -93
  61. package/dist/core/intelligence/confidence-calculator.js +0 -124
  62. package/dist/core/intelligence/index.d.ts +0 -11
  63. package/dist/core/intelligence/index.js +0 -15
  64. package/dist/core/intelligence/intent-detector.d.ts +0 -54
  65. package/dist/core/intelligence/intent-detector.js +0 -723
  66. package/dist/core/intelligence/pattern-library.d.ts +0 -104
  67. package/dist/core/intelligence/pattern-library.js +0 -330
  68. package/dist/core/intelligence/patterns/actionability-enhancer.d.ts +0 -27
  69. package/dist/core/intelligence/patterns/actionability-enhancer.js +0 -192
  70. package/dist/core/intelligence/patterns/alternative-phrasing-generator.d.ts +0 -29
  71. package/dist/core/intelligence/patterns/alternative-phrasing-generator.js +0 -239
  72. package/dist/core/intelligence/patterns/ambiguity-detector.d.ts +0 -22
  73. package/dist/core/intelligence/patterns/ambiguity-detector.js +0 -196
  74. package/dist/core/intelligence/patterns/assumption-explicitizer.d.ts +0 -30
  75. package/dist/core/intelligence/patterns/assumption-explicitizer.js +0 -296
  76. package/dist/core/intelligence/patterns/base-pattern.d.ts +0 -192
  77. package/dist/core/intelligence/patterns/base-pattern.js +0 -103
  78. package/dist/core/intelligence/patterns/completeness-validator.d.ts +0 -27
  79. package/dist/core/intelligence/patterns/completeness-validator.js +0 -221
  80. package/dist/core/intelligence/patterns/conciseness-filter.d.ts +0 -20
  81. package/dist/core/intelligence/patterns/conciseness-filter.js +0 -92
  82. package/dist/core/intelligence/patterns/context-precision.d.ts +0 -32
  83. package/dist/core/intelligence/patterns/context-precision.js +0 -389
  84. package/dist/core/intelligence/patterns/conversation-summarizer.d.ts +0 -30
  85. package/dist/core/intelligence/patterns/conversation-summarizer.js +0 -277
  86. package/dist/core/intelligence/patterns/dependency-identifier.d.ts +0 -23
  87. package/dist/core/intelligence/patterns/dependency-identifier.js +0 -166
  88. package/dist/core/intelligence/patterns/domain-context-enricher.d.ts +0 -21
  89. package/dist/core/intelligence/patterns/domain-context-enricher.js +0 -198
  90. package/dist/core/intelligence/patterns/edge-case-identifier.d.ts +0 -30
  91. package/dist/core/intelligence/patterns/edge-case-identifier.js +0 -269
  92. package/dist/core/intelligence/patterns/error-tolerance-enhancer.d.ts +0 -22
  93. package/dist/core/intelligence/patterns/error-tolerance-enhancer.js +0 -179
  94. package/dist/core/intelligence/patterns/implicit-requirement-extractor.d.ts +0 -24
  95. package/dist/core/intelligence/patterns/implicit-requirement-extractor.js +0 -259
  96. package/dist/core/intelligence/patterns/objective-clarifier.d.ts +0 -22
  97. package/dist/core/intelligence/patterns/objective-clarifier.js +0 -126
  98. package/dist/core/intelligence/patterns/output-format-enforcer.d.ts +0 -22
  99. package/dist/core/intelligence/patterns/output-format-enforcer.js +0 -151
  100. package/dist/core/intelligence/patterns/prd-structure-enforcer.d.ts +0 -23
  101. package/dist/core/intelligence/patterns/prd-structure-enforcer.js +0 -183
  102. package/dist/core/intelligence/patterns/prerequisite-identifier.d.ts +0 -23
  103. package/dist/core/intelligence/patterns/prerequisite-identifier.js +0 -221
  104. package/dist/core/intelligence/patterns/requirement-prioritizer.d.ts +0 -24
  105. package/dist/core/intelligence/patterns/requirement-prioritizer.js +0 -134
  106. package/dist/core/intelligence/patterns/scope-definer.d.ts +0 -26
  107. package/dist/core/intelligence/patterns/scope-definer.js +0 -236
  108. package/dist/core/intelligence/patterns/step-decomposer.d.ts +0 -31
  109. package/dist/core/intelligence/patterns/step-decomposer.js +0 -242
  110. package/dist/core/intelligence/patterns/structure-organizer.d.ts +0 -31
  111. package/dist/core/intelligence/patterns/structure-organizer.js +0 -218
  112. package/dist/core/intelligence/patterns/success-criteria-enforcer.d.ts +0 -22
  113. package/dist/core/intelligence/patterns/success-criteria-enforcer.js +0 -165
  114. package/dist/core/intelligence/patterns/success-metrics-enforcer.d.ts +0 -24
  115. package/dist/core/intelligence/patterns/success-metrics-enforcer.js +0 -165
  116. package/dist/core/intelligence/patterns/technical-context-enricher.d.ts +0 -25
  117. package/dist/core/intelligence/patterns/technical-context-enricher.js +0 -165
  118. package/dist/core/intelligence/patterns/topic-coherence-analyzer.d.ts +0 -26
  119. package/dist/core/intelligence/patterns/topic-coherence-analyzer.js +0 -300
  120. package/dist/core/intelligence/patterns/user-persona-enricher.d.ts +0 -24
  121. package/dist/core/intelligence/patterns/user-persona-enricher.js +0 -141
  122. package/dist/core/intelligence/patterns/validation-checklist-creator.d.ts +0 -31
  123. package/dist/core/intelligence/patterns/validation-checklist-creator.js +0 -242
  124. package/dist/core/intelligence/quality-assessor.d.ts +0 -71
  125. package/dist/core/intelligence/quality-assessor.js +0 -525
  126. package/dist/core/intelligence/types.d.ts +0 -111
  127. package/dist/core/intelligence/types.js +0 -3
  128. package/dist/core/intelligence/universal-optimizer.d.ts +0 -91
  129. package/dist/core/intelligence/universal-optimizer.js +0 -399
  130. package/dist/core/prd-generator.d.ts +0 -76
  131. package/dist/core/prd-generator.js +0 -173
  132. package/dist/core/prompt-manager.d.ts +0 -110
  133. package/dist/core/prompt-manager.js +0 -274
  134. package/dist/core/prompt-optimizer.d.ts +0 -268
  135. package/dist/core/prompt-optimizer.js +0 -959
  136. package/dist/core/question-engine.d.ts +0 -167
  137. package/dist/core/question-engine.js +0 -356
  138. package/dist/core/session-manager.d.ts +0 -139
  139. package/dist/core/session-manager.js +0 -365
  140. package/dist/core/task-manager.d.ts +0 -211
  141. package/dist/core/task-manager.js +0 -981
  142. package/dist/core/verification-hooks.d.ts +0 -67
  143. package/dist/core/verification-hooks.js +0 -309
  144. package/dist/core/verification-manager.d.ts +0 -107
  145. package/dist/core/verification-manager.js +0 -415
  146. package/dist/index 2.js +0 -13
  147. package/dist/index.d 2.ts +0 -4
  148. package/dist/types/session.d.ts +0 -78
  149. package/dist/types/session.js +0 -8
  150. package/dist/types/verification.d.ts +0 -205
  151. package/dist/types/verification.js +0 -9
@@ -71,19 +71,18 @@ Me: [Finds your latest prompt]
71
71
  Me: "Done! Here's what I built..."
72
72
  ```
73
73
 
74
- ### The Detailed Version
74
+ ### The Detailed Version (v5 Agentic-First)
75
75
 
76
76
  **Step 1: I find your prompt**
77
77
 
78
- I automatically run these commands (you don't need to):
79
- - `clavix execute --latest` - Get most recent prompt
80
- - Or `clavix execute --latest --standard` - Get latest standard depth prompt
81
- - Or `clavix execute --latest --comprehensive` - Get latest comprehensive depth prompt
82
- - Or `clavix execute --id <id>` - Get specific prompt
78
+ I read directly from the file system:
79
+ - List `.clavix/outputs/prompts/*.md` to find saved prompts
80
+ - Get the most recent one (by timestamp in filename or frontmatter)
81
+ - Read the prompt file: `.clavix/outputs/prompts/<id>.md`
83
82
 
84
83
  **Step 2: I read and understand**
85
84
 
86
- I'll parse the prompt file, extract:
85
+ I parse the prompt file and extract:
87
86
  - The objective (what to build)
88
87
  - Requirements (specifics to implement)
89
88
  - Technical constraints (how to build it)
@@ -91,7 +90,7 @@ I'll parse the prompt file, extract:
91
90
 
92
91
  **Step 3: I implement everything**
93
92
 
94
- This is where I actually write code:
93
+ This is where I actually write code using my native tools:
95
94
  - Create new files as needed
96
95
  - Modify existing files
97
96
  - Write functions, components, classes
@@ -99,10 +98,10 @@ This is where I actually write code:
99
98
 
100
99
  **Step 4: I verify automatically**
101
100
 
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
101
+ After building, I verify by:
102
+ - Running tests (if test suite exists)
103
+ - Building/compiling to ensure no errors
104
+ - Checking requirements from the checklist
106
105
 
107
106
  **Step 5: I report results**
108
107
 
@@ -176,52 +175,43 @@ I'll explain what's wrong and what you might need to do:
176
175
 
177
176
  ---
178
177
 
179
- ## Prompt Management (Commands I Run)
180
-
181
- These are commands I execute automatically - you don't need to run them.
178
+ ## Prompt Management (v5 Agentic-First)
182
179
 
183
180
  **Where prompts live:**
184
- - All prompts: `.clavix/outputs/prompts/`
185
-
186
- ### Commands I Use (Reference)
187
-
188
- | What I Do | Command I Run |
189
- |-----------|---------------|
190
- | List saved prompts | `clavix prompts list` |
191
- | Get latest prompt | `clavix execute --latest` |
192
- | Get specific prompt | `clavix execute --id <id>` |
193
- | Run verification | `clavix verify --latest` |
194
- | Clean up executed | `clavix prompts clear --executed` |
195
- | Clean up stale (>30d) | `clavix prompts clear --stale` |
181
+ - All prompts: `.clavix/outputs/prompts/*.md`
182
+ - Metadata: In frontmatter of each `.md` file
196
183
 
197
- ### Automatic Cleanup
184
+ ### How I Access Prompts (Native Tools)
198
185
 
199
- After I finish implementing and verification passes:
200
- - I clean up executed prompts automatically
201
- - Old prompts (>30 days) get flagged as stale for removal
202
- - I keep your storage tidy
186
+ | What I Do | How I Do It |
187
+ |-----------|-------------|
188
+ | List saved prompts | List `.clavix/outputs/prompts/*.md` files |
189
+ | Get latest prompt | Find newest file by timestamp in filename |
190
+ | Get specific prompt | Read `.clavix/outputs/prompts/<id>.md` |
191
+ | Mark as executed | Edit frontmatter: `executed: true` |
192
+ | Clean up executed | Delete files where frontmatter has `executed: true` |
203
193
 
204
194
  ### The Prompt Lifecycle
205
195
 
206
196
  ```
207
- 1. YOU CREATE → /clavix:improve
208
- 2. I EXECUTE → /clavix:execute (you are here)
197
+ 1. YOU CREATE → /clavix:improve (saves to .clavix/outputs/prompts/<id>.md)
198
+ 2. I EXECUTE → /clavix:execute (you are here) - I read and implement
209
199
  3. I VERIFY → Automatic verification
210
- 4. I CLEANUPRemove executed prompts
200
+ 4. MARK DONEI update frontmatter with executed: true
211
201
  ```
212
202
 
213
203
  ---
214
204
 
215
205
  ## Finding Your Way Around
216
206
 
217
- Need to see what projects exist or check progress? I use these commands:
207
+ Need to see what projects exist or check progress? I read the file system:
218
208
 
219
- | What I Need | Command I Run |
209
+ | What I Need | How I Find It |
220
210
  |-------------|---------------|
221
- | See all projects | `clavix list` |
222
- | Check a specific project | `clavix show --output <project>` |
223
- | See active sessions | `clavix list --sessions` |
224
- | Find archived work | `clavix list --archived` |
211
+ | See all projects | List directories in `.clavix/outputs/` |
212
+ | Check a specific project | Read `.clavix/outputs/<project>/` files |
213
+ | See saved prompts | List `.clavix/outputs/prompts/*.md` files |
214
+ | Find archived work | List `.clavix/outputs/archive/` |
225
215
 
226
216
  ---
227
217
 
@@ -271,7 +261,7 @@ If I can't get verification to pass after trying:
271
261
 
272
262
  ---
273
263
 
274
- ## Agent Transparency (v4.11)
264
+ ## Agent Transparency (v5.0)
275
265
 
276
266
  ### CLI Reference (Commands I Execute)
277
267
  {{INCLUDE:agent-protocols/cli-reference.md}}
@@ -65,9 +65,9 @@ Me: "All tasks complete! Your project is built."
65
65
 
66
66
  ### The Detailed Version
67
67
 
68
- **First time I run:**
68
+ **First time I run (v5 Agentic-First):**
69
69
 
70
- 1. **I check for your task list** - Load tasks.md from your PRD folder
70
+ 1. **I find your task list** - Read `tasks.md` from your PRD folder (`.clavix/outputs/<project>/tasks.md`)
71
71
  2. **I ask about git commits** (only if you have lots of tasks):
72
72
  > "You've got 12 tasks. Want me to create git commits as I go?
73
73
  >
@@ -78,36 +78,32 @@ Me: "All tasks complete! Your project is built."
78
78
  >
79
79
  > Which do you prefer? (I'll default to 'none' if you don't care)"
80
80
 
81
- 3. **I initialize tracking** - Run `clavix implement` to set up progress tracking
82
- 4. **I start building** - First incomplete task
81
+ 3. **I start building** - First incomplete task
83
82
 
84
83
  **Each task I work on:**
85
84
 
86
85
  1. **Read the task** - Understand what needs to be built
87
86
  2. **Check the PRD** - Make sure I understand the requirements
88
- 3. **Implement it** - Write code, create files, build features
89
- 4. **Mark it complete** - Run `clavix task-complete {task-id}` automatically
90
- 5. **Move to next** - The command shows me what's next
87
+ 3. **Implement it** - Write code, create files, build features using my native tools
88
+ 4. **Mark it complete** - Use Edit tool to change `- [ ]` to `- [x]` in tasks.md
89
+ 5. **Move to next** - Find the next incomplete task
91
90
 
92
91
  **If we get interrupted:**
93
92
 
94
93
  No problem! Just run `/clavix:implement` again and I pick up where we left off.
95
94
  The checkboxes in tasks.md track exactly what's done.
96
95
 
97
- ## ⚠️ Critical Command: task-complete
96
+ ## ⚠️ How I Mark Tasks Complete (v5 Agentic-First)
98
97
 
99
- **After finishing EACH task, I MUST run:**
100
- ```bash
101
- clavix task-complete <task-id>
102
- ```
98
+ **After finishing EACH task, I use my Edit tool to update tasks.md:**
103
99
 
104
- **Why this matters:**
105
- - Updates tasks.md automatically (checkboxes)
106
- - Tracks progress correctly in config
107
- - Triggers git commits (if enabled)
108
- - Shows me the next task
100
+ Change: `- [ ] Task description` → `- [x] Task description`
109
101
 
110
- **NEVER manually edit tasks.md checkboxes** - always use this command.
102
+ **Why this matters:**
103
+ - Updates tasks.md directly (checkboxes)
104
+ - Progress is tracked by counting checkboxes
105
+ - Git commits (if enabled) are created with my Bash tool
106
+ - I read tasks.md to find the next incomplete task
111
107
 
112
108
  ---
113
109
 
@@ -115,27 +111,19 @@ clavix task-complete <task-id>
115
111
 
116
112
  **I handle this automatically - you don't need to do anything.**
117
113
 
118
- ### What Happens Behind the Scenes
119
-
120
- After I finish implementing a task, I run:
121
- ```bash
122
- clavix task-complete {task-id}
123
- ```
124
-
125
- This does several things:
126
- - Updates the checkbox in tasks.md ([ ] → [x])
127
- - Tracks progress in the config file
128
- - Creates a git commit (if you enabled that)
129
- - Shows me the next task
114
+ ### What Happens (v5 Agentic-First)
130
115
 
131
- ### Why I Don't Edit Checkboxes Manually
116
+ After I finish implementing a task:
132
117
 
133
- The command keeps everything in sync. If I edited the file directly, the progress tracking could get confused. Trust the system!
118
+ 1. **I use Edit tool** to change `- [ ]` to `- [x]` in tasks.md
119
+ 2. **I count progress** by reading tasks.md and counting checkboxes
120
+ 3. **I commit** (if you enabled that) using git commands
121
+ 4. **I find next task** by scanning for the next `- [ ]` in tasks.md
134
122
 
135
123
  ### What You'll See
136
124
 
137
125
  ```
138
- ✓ Task complete: "Set up project structure" (phase-1-setup-1)
126
+ ✓ Task complete: "Set up project structure"
139
127
 
140
128
  Progress: 2/8 tasks (25%)
141
129
 
@@ -160,14 +148,14 @@ Starting now...
160
148
 
161
149
  ## Finding Your Way Around
162
150
 
163
- Need to see what projects exist or check progress? I use these commands:
151
+ Need to see what projects exist or check progress? I read the file system:
164
152
 
165
- | What I Need | Command I Run |
153
+ | What I Need | How I Find It |
166
154
  |-------------|---------------|
167
- | See all projects | `clavix list` |
168
- | Check a specific project | `clavix show --output <project>` |
169
- | See active sessions | `clavix list --sessions` |
170
- | Find archived work | `clavix list --archived` |
155
+ | See all projects | List directories in `.clavix/outputs/` |
156
+ | Check a specific project | Read `.clavix/outputs/<project>/` files |
157
+ | See task progress | Read `.clavix/outputs/<project>/tasks.md` |
158
+ | Find archived work | List `.clavix/outputs/archive/` |
171
159
 
172
160
  ## When I Can't Continue (Blocked Tasks)
173
161
 
@@ -314,7 +302,7 @@ You don't need to remember these - I handle all the tracking.
314
302
 
315
303
  ---
316
304
 
317
- ## Agent Transparency (v4.9)
305
+ ## Agent Transparency (v5.0)
318
306
 
319
307
  ### Workflow State Detection
320
308
  {{INCLUDE:agent-protocols/state-awareness.md}}
@@ -348,14 +336,14 @@ You don't need to remember these - I handle all the tracking.
348
336
  > - Did you run `/clavix:plan` first?
349
337
  > - Is there a PRD folder in .clavix/outputs/?"
350
338
 
351
- ### "Task command not working"
339
+ ### "Can't update tasks.md"
352
340
 
353
- **What happened:** The `clavix task-complete` command isn't recognized.
341
+ **What happened:** I couldn't edit the tasks.md file to mark tasks complete.
354
342
 
355
343
  **What I'll do:**
356
- > "Having trouble with the task command. Let me check your Clavix version..."
344
+ > "Having trouble updating tasks.md. Let me check permissions..."
357
345
  >
358
- > If it's outdated, I'll suggest: "Try `npm install -g clavix@latest` to update"
346
+ > Common fixes: Check file permissions, ensure .clavix/outputs/ is writable
359
347
 
360
348
  ### "Can't find that task ID"
361
349
 
@@ -373,9 +373,8 @@ This is a BLOCKING checkpoint. You cannot proceed to the final message until sav
373
373
  |------|--------|-------------|--------------|
374
374
  | 1 | Create directory | Write tool (create parent dirs) | Directory exists |
375
375
  | 2 | Generate prompt ID | Format: `{std\|comp}-YYYYMMDD-HHMMSS-<random>` | ID is unique |
376
- | 3 | Write prompt file | **Write tool** | File created |
377
- | 4 | Update .index.json | **Write tool** | Entry added |
378
- | 5 | **VERIFY: Read back files** | **Read tool** | Both files readable |
376
+ | 3 | Write prompt file with frontmatter | **Write tool** | File created |
377
+ | 4 | **VERIFY: Read back file** | **Read tool** | File readable |
379
378
 
380
379
  **⚠️ WARNING:** If you output "saved" without completing verification, you are LYING to the user.
381
380
 
@@ -436,63 +435,26 @@ originalPrompt: <user's original prompt text>
436
435
  <Insert edge cases>
437
436
  ```
438
437
 
439
- ### Step 4: Update Index File (Write Tool)
440
-
441
- **Use the Write tool** to update the index at `.clavix/outputs/prompts/.index.json`:
442
-
443
- **If index file doesn't exist**, create it with:
444
- ```json
445
- {
446
- "version": "2.0",
447
- "prompts": []
448
- }
449
- ```
450
-
451
- **Then add a new metadata entry** to the `prompts` array:
452
- ```json
453
- {
454
- "id": "<prompt-id>",
455
- "filename": "<prompt-id>.md",
456
- "depthUsed": "standard|comprehensive",
457
- "timestamp": "<ISO-8601 timestamp>",
458
- "createdAt": "<ISO-8601 timestamp>",
459
- "path": ".clavix/outputs/prompts/<prompt-id>.md",
460
- "originalPrompt": "<user's original prompt text>",
461
- "executed": false,
462
- "executedAt": null
463
- }
464
- ```
465
-
466
438
  ---
467
439
 
468
440
  ## ✅ VERIFICATION (REQUIRED - Must Pass Before Final Output)
469
441
 
470
- **After completing Steps 1-4, you MUST verify the save succeeded.**
442
+ **After completing Steps 1-3, you MUST verify the save succeeded.**
471
443
 
472
- ### Verification Step A: Read the Prompt File
444
+ ### Verification: Read the Prompt File
473
445
 
474
446
  Use the **Read tool** to read the file you just created:
475
447
  - Path: `.clavix/outputs/prompts/<your-prompt-id>.md`
476
448
 
477
- **If Read fails:** ⛔ STOP - Saving failed. Retry Steps 3-4.
478
-
479
- ### Verification Step B: Read the Index File
480
-
481
- Use the **Read tool** to read the index:
482
- - Path: `.clavix/outputs/prompts/.index.json`
483
-
484
- **Confirm:** Your prompt ID appears in the `prompts` array.
485
-
486
- **If not found:** ⛔ STOP - Index update failed. Retry Step 4.
449
+ **If Read fails:** ⛔ STOP - Saving failed. Retry Step 3.
487
450
 
488
451
  ### Verification Checklist
489
452
 
490
453
  Before outputting final message, confirm ALL of these:
491
454
 
492
455
  - [ ] I used the **Write tool** to create `.clavix/outputs/prompts/<id>.md`
493
- - [ ] I used the **Write tool** to update `.clavix/outputs/prompts/.index.json`
494
456
  - [ ] I used the **Read tool** to verify the prompt file exists and has content
495
- - [ ] I used the **Read tool** to verify my prompt ID is in .index.json
457
+ - [ ] The file has valid frontmatter with id, timestamp, and executed: false
496
458
  - [ ] I know the **exact file path** I created (not a placeholder)
497
459
 
498
460
  **If ANY checkbox is unchecked: ⛔ STOP and complete the missing step.**
@@ -538,13 +500,13 @@ Wait for the user to decide what to do next.
538
500
  - `/clavix:start` - Conversational exploration before prompting
539
501
  - `/clavix:verify` - Verify implementation against checklist
540
502
 
541
- **CLI commands:**
542
- - `clavix prompts list` - View saved prompts
543
- - `clavix prompts clear --executed` - Clean up executed prompts
503
+ **Managing saved prompts:**
504
+ - List prompts: `ls .clavix/outputs/prompts/*.md`
505
+ - Prompt files: `.clavix/outputs/prompts/<id>.md` (metadata in frontmatter)
544
506
 
545
507
  ---
546
508
 
547
- ## Agent Transparency (v4.11)
509
+ ## Agent Transparency (v5.0)
548
510
 
549
511
  ### CLI Reference (Commands I Execute)
550
512
  {{INCLUDE:agent-protocols/cli-reference.md}}
@@ -586,10 +548,9 @@ Wait for the user to decide what to do next.
586
548
  mkdir -p .clavix/outputs/prompts
587
549
  ```
588
550
 
589
- **Error: Index file corrupted or invalid JSON**
590
- ```bash
591
- echo '{"version":"2.0","prompts":[]}' > .clavix/outputs/prompts/.index.json
592
- ```
551
+ **Error: Prompt file has invalid frontmatter**
552
+ - Re-save the prompt file with valid YAML frontmatter
553
+ - Ensure id, timestamp, and executed fields are present
593
554
 
594
555
  ### Issue: Wrong depth auto-selected
595
556
  **Cause**: Borderline quality score