clavix 4.5.0 → 4.6.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.
- package/dist/templates/slash-commands/_canonical/archive.md +1 -1
- package/dist/templates/slash-commands/_canonical/deep.md +5 -2
- package/dist/templates/slash-commands/_canonical/fast.md +10 -2
- package/dist/templates/slash-commands/_canonical/prd.md +4 -1
- package/dist/templates/slash-commands/_components/agent-protocols/assertion-checkpoints.md +122 -0
- package/dist/templates/slash-commands/_components/agent-protocols/decision-rules.md +29 -0
- package/dist/templates/slash-commands/_components/sections/pattern-visibility.md +6 -4
- package/package.json +1 -1
|
@@ -152,7 +152,7 @@ You are helping the user archive completed PRD projects to keep their workspace
|
|
|
152
152
|
- They're still accessible in archive directory
|
|
153
153
|
- Can be restored at any time
|
|
154
154
|
|
|
155
|
-
## Prompts Are Separate
|
|
155
|
+
## Prompts Are Separate
|
|
156
156
|
|
|
157
157
|
Fast/deep prompts from `/clavix:fast` and `/clavix:deep` are stored separately in `.clavix/outputs/prompts/`.
|
|
158
158
|
|
|
@@ -179,7 +179,7 @@ Deep mode provides **Clavix Intelligence™** with comprehensive analysis that g
|
|
|
179
179
|
|
|
180
180
|
---
|
|
181
181
|
|
|
182
|
-
## Agent Transparency (v4.
|
|
182
|
+
## Agent Transparency (v4.6)
|
|
183
183
|
|
|
184
184
|
### Quality Output Format
|
|
185
185
|
{{INCLUDE:agent-protocols/quality-output.md}}
|
|
@@ -187,6 +187,9 @@ Deep mode provides **Clavix Intelligence™** with comprehensive analysis that g
|
|
|
187
187
|
### Agent Decision Rules
|
|
188
188
|
{{INCLUDE:agent-protocols/decision-rules.md}}
|
|
189
189
|
|
|
190
|
+
### Assertion Checkpoints
|
|
191
|
+
{{INCLUDE:agent-protocols/assertion-checkpoints.md}}
|
|
192
|
+
|
|
190
193
|
### Patterns Applied
|
|
191
194
|
{{INCLUDE:sections/pattern-visibility.md}}
|
|
192
195
|
|
|
@@ -345,7 +348,7 @@ Consider using `/clavix:prd` if this login page is part of a larger authenticati
|
|
|
345
348
|
- **Deep mode** (`/clavix:deep`): Comprehensive analysis - best for complex prompts needing exploration
|
|
346
349
|
- **PRD mode** (`/clavix:prd`): Strategic planning - best for features requiring architecture/business decisions
|
|
347
350
|
|
|
348
|
-
## Next Steps
|
|
351
|
+
## Next Steps
|
|
349
352
|
|
|
350
353
|
### Saving the Prompt (REQUIRED)
|
|
351
354
|
|
|
@@ -158,7 +158,7 @@ Clavix provides **Clavix Intelligence™** that automatically detects intent and
|
|
|
158
158
|
|
|
159
159
|
---
|
|
160
160
|
|
|
161
|
-
## Agent Transparency (v4.
|
|
161
|
+
## Agent Transparency (v4.6)
|
|
162
162
|
|
|
163
163
|
### Quality Output Format
|
|
164
164
|
{{INCLUDE:agent-protocols/quality-output.md}}
|
|
@@ -166,6 +166,9 @@ Clavix provides **Clavix Intelligence™** that automatically detects intent and
|
|
|
166
166
|
### Agent Decision Rules
|
|
167
167
|
{{INCLUDE:agent-protocols/decision-rules.md}}
|
|
168
168
|
|
|
169
|
+
### Assertion Checkpoints
|
|
170
|
+
{{INCLUDE:agent-protocols/assertion-checkpoints.md}}
|
|
171
|
+
|
|
169
172
|
### Escalation Factors (Smart Triage)
|
|
170
173
|
{{INCLUDE:sections/escalation-factors.md}}
|
|
171
174
|
|
|
@@ -208,6 +211,11 @@ Actionability: 30%
|
|
|
208
211
|
• Too vague to start implementation
|
|
209
212
|
• Missing technical specifications
|
|
210
213
|
|
|
214
|
+
Specificity: 25%
|
|
215
|
+
• No file paths or identifiers
|
|
216
|
+
• Missing version numbers
|
|
217
|
+
• Uses vague term "login page" without scope
|
|
218
|
+
|
|
211
219
|
Overall Quality: 42% (needs-improvement)
|
|
212
220
|
|
|
213
221
|
Recommendation:
|
|
@@ -248,7 +256,7 @@ Success Criteria:
|
|
|
248
256
|
[Actionability] Converted vague "create" into specific implementation requirements with measurable success criteria
|
|
249
257
|
```
|
|
250
258
|
|
|
251
|
-
## Next Steps
|
|
259
|
+
## Next Steps
|
|
252
260
|
|
|
253
261
|
### Saving the Prompt (REQUIRED)
|
|
254
262
|
|
|
@@ -316,7 +316,7 @@ The validation ensures generated PRDs are immediately usable for AI consumption
|
|
|
316
316
|
|
|
317
317
|
---
|
|
318
318
|
|
|
319
|
-
## Agent Transparency (v4.
|
|
319
|
+
## Agent Transparency (v4.6)
|
|
320
320
|
|
|
321
321
|
### Quality Output Format
|
|
322
322
|
{{INCLUDE:agent-protocols/quality-output.md}}
|
|
@@ -330,6 +330,9 @@ The validation ensures generated PRDs are immediately usable for AI consumption
|
|
|
330
330
|
### Agent Decision Rules
|
|
331
331
|
{{INCLUDE:agent-protocols/decision-rules.md}}
|
|
332
332
|
|
|
333
|
+
### Assertion Checkpoints
|
|
334
|
+
{{INCLUDE:agent-protocols/assertion-checkpoints.md}}
|
|
335
|
+
|
|
333
336
|
---
|
|
334
337
|
|
|
335
338
|
## Troubleshooting
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
## Assertion Checkpoints (v4.6)
|
|
2
|
+
|
|
3
|
+
At key workflow stages, verify your execution matches expected state. These checkpoints help ensure correct template execution.
|
|
4
|
+
|
|
5
|
+
### Fast/Deep Mode Checkpoints
|
|
6
|
+
|
|
7
|
+
**CHECKPOINT 1: After Intent Detection**
|
|
8
|
+
```
|
|
9
|
+
✓ Intent type identified (one of 11 types)
|
|
10
|
+
✓ Confidence percentage calculated
|
|
11
|
+
✓ If confidence < 70%: Secondary intent noted
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
**CHECKPOINT 2: After Quality Assessment**
|
|
15
|
+
```
|
|
16
|
+
✓ All 6 dimensions scored:
|
|
17
|
+
- Clarity (0-100%)
|
|
18
|
+
- Efficiency (0-100%)
|
|
19
|
+
- Structure (0-100%)
|
|
20
|
+
- Completeness (0-100%)
|
|
21
|
+
- Actionability (0-100%)
|
|
22
|
+
- Specificity (0-100%)
|
|
23
|
+
✓ Overall quality calculated
|
|
24
|
+
✓ Strengths identified (any dimension >= 85%)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**CHECKPOINT 3: After Optimization**
|
|
28
|
+
```
|
|
29
|
+
✓ Enhanced prompt generated
|
|
30
|
+
✓ Improvements listed with dimension labels
|
|
31
|
+
✓ Patterns applied documented
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**CHECKPOINT 4: After Saving**
|
|
35
|
+
```
|
|
36
|
+
✓ Prompt saved to .clavix/outputs/prompts/{mode}/
|
|
37
|
+
✓ Index file updated
|
|
38
|
+
✓ Success message displayed
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### PRD Mode Checkpoints
|
|
42
|
+
|
|
43
|
+
**CHECKPOINT 1: Before Questions**
|
|
44
|
+
```
|
|
45
|
+
✓ State assertion displayed
|
|
46
|
+
✓ Implementation blocked message shown
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**CHECKPOINT 2: After Each Question**
|
|
50
|
+
```
|
|
51
|
+
✓ Answer validated for completeness
|
|
52
|
+
✓ Follow-up asked if answer is vague
|
|
53
|
+
✓ Minimum requirements met before proceeding
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**CHECKPOINT 3: After Document Generation**
|
|
57
|
+
```
|
|
58
|
+
✓ Full PRD generated with all sections
|
|
59
|
+
✓ Quick PRD generated (2-3 paragraphs)
|
|
60
|
+
✓ Quality validation scores displayed
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**CHECKPOINT 4: After Saving**
|
|
64
|
+
```
|
|
65
|
+
✓ Files saved to .clavix/outputs/{project-name}/
|
|
66
|
+
✓ full-prd.md exists
|
|
67
|
+
✓ quick-prd.md exists
|
|
68
|
+
✓ Next steps displayed
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Implementation Mode Checkpoints
|
|
72
|
+
|
|
73
|
+
**CHECKPOINT 1: Before Starting**
|
|
74
|
+
```
|
|
75
|
+
✓ Config file checked (.clavix-implement-config.json)
|
|
76
|
+
✓ Resume state detected if exists
|
|
77
|
+
✓ Tasks loaded from tasks.md
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**CHECKPOINT 2: After Each Task**
|
|
81
|
+
```
|
|
82
|
+
✓ Task completed successfully
|
|
83
|
+
✓ clavix task-complete {task-id} called
|
|
84
|
+
✓ Next task displayed automatically
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**CHECKPOINT 3: After All Tasks**
|
|
88
|
+
```
|
|
89
|
+
✓ All tasks marked complete
|
|
90
|
+
✓ Archive suggestion displayed
|
|
91
|
+
✓ Git commit created if configured
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Verification Block Format
|
|
95
|
+
|
|
96
|
+
At the end of your response, include this verification block:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
## Clavix Execution Verification
|
|
100
|
+
- [x] Intent detected: {type} ({confidence}%)
|
|
101
|
+
- [x] Quality assessed: {overall}%
|
|
102
|
+
- [x] {N} patterns applied
|
|
103
|
+
- [x] Prompt saved: {filename}
|
|
104
|
+
- [x] Mode: {fast|deep|prd|plan}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
This allows users and developers to verify correct template execution and helps identify any deviations from expected behavior.
|
|
108
|
+
|
|
109
|
+
### Self-Verification Protocol
|
|
110
|
+
|
|
111
|
+
If a checkpoint fails:
|
|
112
|
+
1. **STOP**: Do not proceed past the failed checkpoint
|
|
113
|
+
2. **IDENTIFY**: Which checkpoint failed and why
|
|
114
|
+
3. **REPORT**: Inform user of the issue
|
|
115
|
+
4. **RECOVER**: Take corrective action or ask for guidance
|
|
116
|
+
|
|
117
|
+
Example recovery:
|
|
118
|
+
```
|
|
119
|
+
⚠️ Checkpoint 2 failed: Quality assessment incomplete
|
|
120
|
+
Issue: Specificity dimension not scored
|
|
121
|
+
Action: Rerunning quality assessment with all 6 dimensions
|
|
122
|
+
```
|
|
@@ -184,6 +184,34 @@ IF user prompt is empty/invalid:
|
|
|
184
184
|
→ NEVER: Proceed with assumption
|
|
185
185
|
```
|
|
186
186
|
|
|
187
|
+
### Rule 11: Execution Verification (v4.6)
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
BEFORE completing response:
|
|
191
|
+
→ INCLUDE verification block at end
|
|
192
|
+
→ VERIFY all checkpoints met for current mode
|
|
193
|
+
|
|
194
|
+
IF any checkpoint failed:
|
|
195
|
+
→ REPORT which checkpoint failed
|
|
196
|
+
→ EXPLAIN why it failed
|
|
197
|
+
→ SUGGEST recovery action
|
|
198
|
+
|
|
199
|
+
IF all checkpoints passed:
|
|
200
|
+
→ SHOW verification block with all items checked
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
**Verification Block Template:**
|
|
204
|
+
```
|
|
205
|
+
## Clavix Execution Verification
|
|
206
|
+
- [x] Intent detected: {type} ({confidence}%)
|
|
207
|
+
- [x] Quality assessed: {overall}%
|
|
208
|
+
- [x] {N} patterns applied
|
|
209
|
+
- [x] Prompt saved: {filename}
|
|
210
|
+
- [x] Mode: {fast|deep|prd|plan}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
187
215
|
### Rule Summary Table
|
|
188
216
|
|
|
189
217
|
| Condition | Action | User Communication |
|
|
@@ -202,3 +230,4 @@ IF user prompt is empty/invalid:
|
|
|
202
230
|
| 3+ strategic keywords | Suggest PRD | "Strategic scope detected" |
|
|
203
231
|
| pattern fails | Skip + report | "Pattern [X] skipped" |
|
|
204
232
|
| file write fails | Retry then report | "Error: [details]" |
|
|
233
|
+
| response complete | Include verification | Show checkpoint status |
|
|
@@ -137,7 +137,9 @@ v4.3.2 Conversational mode (deep):
|
|
|
137
137
|
|
|
138
138
|
| Mode | Patterns Available | Typical Applied |
|
|
139
139
|
|------|-------------------|-----------------|
|
|
140
|
-
| Fast | 12
|
|
141
|
-
| Deep | 27
|
|
142
|
-
| PRD |
|
|
143
|
-
| Conversational |
|
|
140
|
+
| Fast | 12 patterns | 4-7 patterns |
|
|
141
|
+
| Deep | 27 patterns | 8-14 patterns |
|
|
142
|
+
| PRD | 12 patterns | 8-12 patterns |
|
|
143
|
+
| Conversational | 3 patterns | 1-3 patterns |
|
|
144
|
+
|
|
145
|
+
**Note:** Deep mode has access to all 27 patterns. Pattern selection varies by intent - some patterns only apply to specific intents (e.g., PRDStructureEnforcer only for prd-generation), so typical applied count is 8-14.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavix",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "Clavix Intelligence™ for AI coding. Automatically optimizes prompts with intent detection, quality assessment, and adaptive patterns—no framework to learn. Works with Claude Code, Cursor, Windsurf, and 19+ other AI coding tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|