clavix 7.2.2 → 7.2.3

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.
@@ -156,28 +156,40 @@ All improvements must be labeled with quality dimension tags:
156
156
 
157
157
  ---
158
158
 
159
- ## File-Saving Protocol
159
+ ## File-Saving Protocol (REQUIRED - DO NOT SKIP)
160
160
 
161
- ### Step 1: Generate ID
161
+ DO NOT output any "saved" message until you have COMPLETED and VERIFIED all save steps.
162
162
 
163
- Format: `{depth}-YYYYMMDD-HHMMSS-{random4}`
164
- - `std-20240115-143022-a7x2` for standard depth
165
- - `comp-20240115-143022-b9k4` for comprehensive depth
163
+ This is a BLOCKING checkpoint. You cannot proceed to the final message until saving is verified.
166
164
 
167
- ### Step 2: Create Directory
165
+ ### What You MUST Do Before Final Output
168
166
 
169
- ```bash
170
- mkdir -p .clavix/outputs/prompts
171
- ```
167
+ | Step | Action | Tool to Use | Verification |
168
+ |------|--------|-------------|--------------|
169
+ | 1 | Create directory with prompt file | **Write tool** (creates parent dirs automatically) | Directory exists |
170
+ | 2 | Generate prompt ID | Format: `{std|comp}-YYYYMMDD-HHMMSS-<random>` | ID is unique |
171
+ | 3 | Write prompt file with frontmatter | **Write tool** | File created |
172
+ | 4 | **VERIFY: Read back file** | **Read tool** | File readable |
173
+
174
+ **⚠️ CRITICAL: You MUST invoke the Write tool to create the file. Showing the content in your response is NOT enough - the file must actually exist on disk.**
175
+
176
+ ---
177
+
178
+ ### Step 1: Generate Prompt ID
179
+
180
+ Create a unique identifier using this format:
181
+ - **Standard depth**: `std-YYYYMMDD-HHMMSS-<random>` (e.g., `std-20250117-143022-a3f2`)
182
+ - **Comprehensive depth**: `comp-YYYYMMDD-HHMMSS-<random>` (e.g., `comp-20250117-143022-a3f2`)
172
183
 
173
- ### Step 3: Save File
184
+ ### Step 2: Write Prompt File (Write Tool)
174
185
 
175
- Path: `.clavix/outputs/prompts/{id}.md`
186
+ **You MUST use the Write tool** to create the prompt file at:
187
+ - **Path**: `.clavix/outputs/prompts/{prompt-id}.md`
176
188
 
177
- Content structure:
178
- ```yaml
189
+ **File content format**:
190
+ ```markdown
179
191
  ---
180
- id: {generated-id}
192
+ id: {prompt-id}
181
193
  depthUsed: standard|comprehensive
182
194
  timestamp: {ISO-8601 timestamp}
183
195
  executed: false
@@ -185,10 +197,19 @@ originalPrompt: |
185
197
  {original user prompt text}
186
198
  ---
187
199
 
188
- # Optimized Prompt
200
+ # Improved Prompt
189
201
 
190
202
  {The improved prompt content}
191
203
 
204
+ ## Quality Scores
205
+ - **Clarity**: {percentage}%
206
+ - **Efficiency**: {percentage}%
207
+ - **Structure**: {percentage}%
208
+ - **Completeness**: {percentage}%
209
+ - **Actionability**: {percentage}%
210
+ - **Specificity**: {percentage}%
211
+ - **Overall**: {percentage}% ({rating})
212
+
192
213
  ## Analysis Summary
193
214
 
194
215
  Intent: {detected intent}
@@ -196,13 +217,24 @@ Quality: {before}% → {after}%
196
217
  Patterns Applied: {list of patterns}
197
218
  ```
198
219
 
199
- ### Step 4: Verify After Write
220
+ ### Step 3: Verify File Exists (Read Tool)
221
+
222
+ After using Write tool to create the file, use the Read tool to verify:
223
+ - Path: `.clavix/outputs/prompts/{prompt-id}.md`
224
+
225
+ **If Read fails**: ⛔ STOP - Saving failed. Retry Write tool with proper content.
226
+
227
+ ### Step 4: Final Response
200
228
 
201
- **CRITICAL**: Use Read to confirm file exists and has valid content.
229
+ ONLY after verification passes, output:
230
+
231
+ ```
232
+ ✅ Prompt saved to: `.clavix/outputs/prompts/{actual-prompt-id}.md`
233
+
234
+ Ready to implement? Run: /clavix:implement --latest
235
+ ```
202
236
 
203
- If verification fails:
204
- - Retry save once
205
- - If still fails, display prompt content for manual copy
237
+ **⚠️ DO NOT output the saved message until you have verified the file exists.**
206
238
 
207
239
  ---
208
240
 
@@ -274,7 +274,7 @@ Result: Project permanently deleted
274
274
 
275
275
  ---
276
276
 
277
- ## Agent Transparency (v7.2.2)
277
+ ## Agent Transparency (v7.2.3)
278
278
 
279
279
  ### Agent Manual (Universal Protocols)
280
280
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -615,7 +615,7 @@ I'll explain what's wrong and what you might need to do:
615
615
 
616
616
  ---
617
617
 
618
- ## Agent Transparency (v7.2.2)
618
+ ## Agent Transparency (v7.2.3)
619
619
 
620
620
  ### Agent Manual (Universal Protocols)
621
621
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -524,7 +524,7 @@ Wait for the user to decide what to do next.
524
524
 
525
525
  ---
526
526
 
527
- ## Agent Transparency (v7.2.2)
527
+ ## Agent Transparency (v7.2.3)
528
528
 
529
529
  ### Agent Manual (Universal Protocols)
530
530
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -229,7 +229,7 @@ Present the plan and ask:
229
229
 
230
230
  ---
231
231
 
232
- ## Agent Transparency (v7.2.2)
232
+ ## Agent Transparency (v7.2.3)
233
233
 
234
234
  ### Agent Manual (Universal Protocols)
235
235
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -354,7 +354,7 @@ The validation ensures generated PRDs are immediately usable for AI consumption
354
354
 
355
355
  ---
356
356
 
357
- ## Agent Transparency (v7.2.2)
357
+ ## Agent Transparency (v7.2.3)
358
358
 
359
359
  ### Agent Manual (Universal Protocols)
360
360
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -415,7 +415,7 @@ I'll update the PRD and add this to the refinement history. Confirm?
415
415
 
416
416
  ---
417
417
 
418
- ## Agent Transparency (v7.2.2)
418
+ ## Agent Transparency (v7.2.3)
419
419
 
420
420
  ### Agent Manual (Universal Protocols)
421
421
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -447,7 +447,7 @@ consistent with the project's conventions.
447
447
 
448
448
  ---
449
449
 
450
- ## Agent Transparency (v7.2.2)
450
+ ## Agent Transparency (v7.2.3)
451
451
 
452
452
  ### Agent Manual (Universal Protocols)
453
453
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -230,7 +230,7 @@ The goal is natural exploration of requirements, not a rigid questionnaire. Foll
230
230
 
231
231
  ---
232
232
 
233
- ## Agent Transparency (v7.2.2)
233
+ ## Agent Transparency (v7.2.3)
234
234
 
235
235
  ### Agent Manual (Universal Protocols)
236
236
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -409,7 +409,7 @@ The `/clavix:summarize` command extracts requirements from exploratory conversat
409
409
 
410
410
  ---
411
411
 
412
- ## Agent Transparency (v7.2.2)
412
+ ## Agent Transparency (v7.2.3)
413
413
 
414
414
  ### Agent Manual (Universal Protocols)
415
415
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -123,7 +123,7 @@ Implementation: BLOCKED - I'll analyze and report, not modify or fix
123
123
 
124
124
  ----
125
125
 
126
- ## Agent Transparency (v7.2.2)
126
+ ## Agent Transparency (v7.2.3)
127
127
 
128
128
  ### Agent Manual (Universal Protocols)
129
129
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavix",
3
- "version": "7.2.2",
3
+ "version": "7.2.3",
4
4
  "description": "Agentic-first prompt workflows. Markdown templates that teach AI agents how to optimize prompts, create PRDs, and manage implementation.\n\nSLASH COMMANDS (in your AI assistant):\n /clavix:improve Optimize prompts with auto-depth\n /clavix:prd Generate PRD through questions\n /clavix:plan Create task breakdown from PRD\n /clavix:implement Execute tasks with progress tracking\n /clavix:start Begin conversational session\n /clavix:summarize Extract requirements from conversation\n /clavix:refine Refine existing PRD or prompt\n /clavix:verify Verify implementation against requirements\n /clavix:review Review teammate PRs with criteria\n /clavix:archive Archive completed projects\n\nWorks with Claude Code, Cursor, Windsurf, and 20 AI coding tools.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",