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.
- package/README.md +69 -61
- package/dist/templates/slash-commands/_canonical/archive.md +83 -121
- package/dist/templates/slash-commands/_canonical/execute.md +32 -42
- package/dist/templates/slash-commands/_canonical/implement.md +32 -44
- package/dist/templates/slash-commands/_canonical/improve.md +13 -52
- package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +84 -180
- package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +2 -2
- package/dist/templates/slash-commands/_components/agent-protocols/file-formats.md +41 -59
- package/dist/templates/slash-commands/_components/sections/file-saving-protocol.md +20 -27
- package/dist/templates/slash-commands/_components/troubleshooting/file-not-saved.md +4 -5
- package/package.json +2 -2
- package/dist/cli/commands/analyze.d.ts +0 -17
- package/dist/cli/commands/analyze.js +0 -133
- package/dist/cli/commands/archive.d.ts +0 -36
- package/dist/cli/commands/archive.js +0 -266
- package/dist/cli/commands/deep.d.ts +0 -17
- package/dist/cli/commands/deep.js +0 -170
- package/dist/cli/commands/execute.d.ts +0 -15
- package/dist/cli/commands/execute.js +0 -168
- package/dist/cli/commands/fast.d.ts +0 -18
- package/dist/cli/commands/fast.js +0 -219
- package/dist/cli/commands/implement.d.ts +0 -24
- package/dist/cli/commands/implement.js +0 -289
- package/dist/cli/commands/improve.d.ts +0 -32
- package/dist/cli/commands/improve.js +0 -250
- package/dist/cli/commands/list.d.ts +0 -17
- package/dist/cli/commands/list.js +0 -217
- package/dist/cli/commands/plan.d.ts +0 -21
- package/dist/cli/commands/plan.js +0 -297
- package/dist/cli/commands/prd.d.ts +0 -24
- package/dist/cli/commands/prd.js +0 -321
- package/dist/cli/commands/prompts/clear.d.ts +0 -16
- package/dist/cli/commands/prompts/clear.js +0 -222
- package/dist/cli/commands/prompts/list.d.ts +0 -8
- package/dist/cli/commands/prompts/list.js +0 -88
- package/dist/cli/commands/show.d.ts +0 -21
- package/dist/cli/commands/show.js +0 -191
- package/dist/cli/commands/start.d.ts +0 -40
- package/dist/cli/commands/start.js +0 -210
- package/dist/cli/commands/summarize.d.ts +0 -17
- package/dist/cli/commands/summarize.js +0 -196
- package/dist/cli/commands/task-complete.d.ts +0 -27
- package/dist/cli/commands/task-complete.js +0 -269
- package/dist/cli/commands/verify.d.ts +0 -28
- package/dist/cli/commands/verify.js +0 -349
- package/dist/core/archive-manager.d.ts +0 -100
- package/dist/core/archive-manager.js +0 -302
- package/dist/core/basic-checklist-generator.d.ts +0 -35
- package/dist/core/basic-checklist-generator.js +0 -344
- package/dist/core/checklist-parser.d.ts +0 -48
- package/dist/core/checklist-parser.js +0 -238
- package/dist/core/config-manager.d.ts +0 -149
- package/dist/core/config-manager.js +0 -230
- package/dist/core/conversation-analyzer.d.ts +0 -86
- package/dist/core/conversation-analyzer.js +0 -387
- package/dist/core/conversation-quality-tracker.d.ts +0 -81
- package/dist/core/conversation-quality-tracker.js +0 -195
- package/dist/core/git-manager.d.ts +0 -126
- package/dist/core/git-manager.js +0 -282
- package/dist/core/intelligence/confidence-calculator.d.ts +0 -93
- package/dist/core/intelligence/confidence-calculator.js +0 -124
- package/dist/core/intelligence/index.d.ts +0 -11
- package/dist/core/intelligence/index.js +0 -15
- package/dist/core/intelligence/intent-detector.d.ts +0 -54
- package/dist/core/intelligence/intent-detector.js +0 -723
- package/dist/core/intelligence/pattern-library.d.ts +0 -104
- package/dist/core/intelligence/pattern-library.js +0 -330
- package/dist/core/intelligence/patterns/actionability-enhancer.d.ts +0 -27
- package/dist/core/intelligence/patterns/actionability-enhancer.js +0 -192
- package/dist/core/intelligence/patterns/alternative-phrasing-generator.d.ts +0 -29
- package/dist/core/intelligence/patterns/alternative-phrasing-generator.js +0 -239
- package/dist/core/intelligence/patterns/ambiguity-detector.d.ts +0 -22
- package/dist/core/intelligence/patterns/ambiguity-detector.js +0 -196
- package/dist/core/intelligence/patterns/assumption-explicitizer.d.ts +0 -30
- package/dist/core/intelligence/patterns/assumption-explicitizer.js +0 -296
- package/dist/core/intelligence/patterns/base-pattern.d.ts +0 -192
- package/dist/core/intelligence/patterns/base-pattern.js +0 -103
- package/dist/core/intelligence/patterns/completeness-validator.d.ts +0 -27
- package/dist/core/intelligence/patterns/completeness-validator.js +0 -221
- package/dist/core/intelligence/patterns/conciseness-filter.d.ts +0 -20
- package/dist/core/intelligence/patterns/conciseness-filter.js +0 -92
- package/dist/core/intelligence/patterns/context-precision.d.ts +0 -32
- package/dist/core/intelligence/patterns/context-precision.js +0 -389
- package/dist/core/intelligence/patterns/conversation-summarizer.d.ts +0 -30
- package/dist/core/intelligence/patterns/conversation-summarizer.js +0 -277
- package/dist/core/intelligence/patterns/dependency-identifier.d.ts +0 -23
- package/dist/core/intelligence/patterns/dependency-identifier.js +0 -166
- package/dist/core/intelligence/patterns/domain-context-enricher.d.ts +0 -21
- package/dist/core/intelligence/patterns/domain-context-enricher.js +0 -198
- package/dist/core/intelligence/patterns/edge-case-identifier.d.ts +0 -30
- package/dist/core/intelligence/patterns/edge-case-identifier.js +0 -269
- package/dist/core/intelligence/patterns/error-tolerance-enhancer.d.ts +0 -22
- package/dist/core/intelligence/patterns/error-tolerance-enhancer.js +0 -179
- package/dist/core/intelligence/patterns/implicit-requirement-extractor.d.ts +0 -24
- package/dist/core/intelligence/patterns/implicit-requirement-extractor.js +0 -259
- package/dist/core/intelligence/patterns/objective-clarifier.d.ts +0 -22
- package/dist/core/intelligence/patterns/objective-clarifier.js +0 -126
- package/dist/core/intelligence/patterns/output-format-enforcer.d.ts +0 -22
- package/dist/core/intelligence/patterns/output-format-enforcer.js +0 -151
- package/dist/core/intelligence/patterns/prd-structure-enforcer.d.ts +0 -23
- package/dist/core/intelligence/patterns/prd-structure-enforcer.js +0 -183
- package/dist/core/intelligence/patterns/prerequisite-identifier.d.ts +0 -23
- package/dist/core/intelligence/patterns/prerequisite-identifier.js +0 -221
- package/dist/core/intelligence/patterns/requirement-prioritizer.d.ts +0 -24
- package/dist/core/intelligence/patterns/requirement-prioritizer.js +0 -134
- package/dist/core/intelligence/patterns/scope-definer.d.ts +0 -26
- package/dist/core/intelligence/patterns/scope-definer.js +0 -236
- package/dist/core/intelligence/patterns/step-decomposer.d.ts +0 -31
- package/dist/core/intelligence/patterns/step-decomposer.js +0 -242
- package/dist/core/intelligence/patterns/structure-organizer.d.ts +0 -31
- package/dist/core/intelligence/patterns/structure-organizer.js +0 -218
- package/dist/core/intelligence/patterns/success-criteria-enforcer.d.ts +0 -22
- package/dist/core/intelligence/patterns/success-criteria-enforcer.js +0 -165
- package/dist/core/intelligence/patterns/success-metrics-enforcer.d.ts +0 -24
- package/dist/core/intelligence/patterns/success-metrics-enforcer.js +0 -165
- package/dist/core/intelligence/patterns/technical-context-enricher.d.ts +0 -25
- package/dist/core/intelligence/patterns/technical-context-enricher.js +0 -165
- package/dist/core/intelligence/patterns/topic-coherence-analyzer.d.ts +0 -26
- package/dist/core/intelligence/patterns/topic-coherence-analyzer.js +0 -300
- package/dist/core/intelligence/patterns/user-persona-enricher.d.ts +0 -24
- package/dist/core/intelligence/patterns/user-persona-enricher.js +0 -141
- package/dist/core/intelligence/patterns/validation-checklist-creator.d.ts +0 -31
- package/dist/core/intelligence/patterns/validation-checklist-creator.js +0 -242
- package/dist/core/intelligence/quality-assessor.d.ts +0 -71
- package/dist/core/intelligence/quality-assessor.js +0 -525
- package/dist/core/intelligence/types.d.ts +0 -111
- package/dist/core/intelligence/types.js +0 -3
- package/dist/core/intelligence/universal-optimizer.d.ts +0 -91
- package/dist/core/intelligence/universal-optimizer.js +0 -399
- package/dist/core/prd-generator.d.ts +0 -76
- package/dist/core/prd-generator.js +0 -173
- package/dist/core/prompt-manager.d.ts +0 -110
- package/dist/core/prompt-manager.js +0 -274
- package/dist/core/prompt-optimizer.d.ts +0 -268
- package/dist/core/prompt-optimizer.js +0 -959
- package/dist/core/question-engine.d.ts +0 -167
- package/dist/core/question-engine.js +0 -356
- package/dist/core/session-manager.d.ts +0 -139
- package/dist/core/session-manager.js +0 -365
- package/dist/core/task-manager.d.ts +0 -211
- package/dist/core/task-manager.js +0 -981
- package/dist/core/verification-hooks.d.ts +0 -67
- package/dist/core/verification-hooks.js +0 -309
- package/dist/core/verification-manager.d.ts +0 -107
- package/dist/core/verification-manager.js +0 -415
- package/dist/index 2.js +0 -13
- package/dist/index.d 2.ts +0 -4
- package/dist/types/session.d.ts +0 -78
- package/dist/types/session.js +0 -8
- package/dist/types/verification.d.ts +0 -205
- 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
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
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
|
|
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
|
|
103
|
-
-
|
|
104
|
-
-
|
|
105
|
-
-
|
|
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 (
|
|
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
|
-
###
|
|
184
|
+
### How I Access Prompts (Native Tools)
|
|
198
185
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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.
|
|
200
|
+
4. MARK DONE → I 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
|
|
207
|
+
Need to see what projects exist or check progress? I read the file system:
|
|
218
208
|
|
|
219
|
-
| What I Need |
|
|
209
|
+
| What I Need | How I Find It |
|
|
220
210
|
|-------------|---------------|
|
|
221
|
-
| See all projects |
|
|
222
|
-
| Check a specific project |
|
|
223
|
-
| See
|
|
224
|
-
| Find archived work |
|
|
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 (
|
|
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
|
|
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
|
|
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** -
|
|
90
|
-
5. **Move to 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
|
-
## ⚠️
|
|
96
|
+
## ⚠️ How I Mark Tasks Complete (v5 Agentic-First)
|
|
98
97
|
|
|
99
|
-
**After finishing EACH task, I
|
|
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
|
-
|
|
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
|
-
**
|
|
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
|
|
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
|
-
|
|
116
|
+
After I finish implementing a task:
|
|
132
117
|
|
|
133
|
-
|
|
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"
|
|
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
|
|
151
|
+
Need to see what projects exist or check progress? I read the file system:
|
|
164
152
|
|
|
165
|
-
| What I Need |
|
|
153
|
+
| What I Need | How I Find It |
|
|
166
154
|
|-------------|---------------|
|
|
167
|
-
| See all projects |
|
|
168
|
-
| Check a specific project |
|
|
169
|
-
| See
|
|
170
|
-
| Find archived work |
|
|
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 (
|
|
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
|
-
### "
|
|
339
|
+
### "Can't update tasks.md"
|
|
352
340
|
|
|
353
|
-
**What happened:**
|
|
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
|
|
344
|
+
> "Having trouble updating tasks.md. Let me check permissions..."
|
|
357
345
|
>
|
|
358
|
-
>
|
|
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 |
|
|
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-
|
|
442
|
+
**After completing Steps 1-3, you MUST verify the save succeeded.**
|
|
471
443
|
|
|
472
|
-
### Verification
|
|
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
|
|
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
|
-
- [ ]
|
|
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
|
-
**
|
|
542
|
-
-
|
|
543
|
-
-
|
|
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 (
|
|
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:
|
|
590
|
-
|
|
591
|
-
|
|
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
|