clavix 5.7.0 → 5.8.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/implement.md +1 -1
- package/dist/templates/slash-commands/_canonical/improve.md +19 -1
- package/dist/templates/slash-commands/_canonical/plan.md +130 -341
- package/dist/templates/slash-commands/_canonical/prd.md +1 -1
- package/dist/templates/slash-commands/_canonical/refine.md +206 -350
- package/dist/templates/slash-commands/_canonical/start.md +1 -1
- package/dist/templates/slash-commands/_canonical/summarize.md +1 -1
- package/dist/templates/slash-commands/_canonical/verify.md +87 -401
- package/package.json +3 -2
|
@@ -3,46 +3,44 @@ name: "Clavix: Refine"
|
|
|
3
3
|
description: Refine existing PRD or prompt through continued discussion
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Clavix:
|
|
6
|
+
# Clavix: Update Your Work
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Want to tweak your PRD or improve a saved prompt? Let's update what you already have without starting from scratch.
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
## What This Does
|
|
13
13
|
|
|
14
14
|
When you run `/clavix:refine`, I:
|
|
15
|
-
1. **
|
|
16
|
-
2. **Ask what to
|
|
17
|
-
3. **Load
|
|
18
|
-
4. **
|
|
19
|
-
5. **
|
|
15
|
+
1. **Find what you've got** - Look for your PRDs and saved prompts
|
|
16
|
+
2. **Ask what to update** - Which one do you want to refine?
|
|
17
|
+
3. **Load it up** - Read what's there now
|
|
18
|
+
4. **Talk through changes** - What do you want to add, change, or remove?
|
|
19
|
+
5. **Save the update** - Keep track of what changed
|
|
20
20
|
|
|
21
|
-
**
|
|
21
|
+
**We're improving what exists, not starting over.**
|
|
22
22
|
|
|
23
23
|
---
|
|
24
24
|
|
|
25
25
|
## CLAVIX MODE: Refinement
|
|
26
26
|
|
|
27
|
-
**I'm in refinement mode. Updating existing
|
|
27
|
+
**I'm in refinement mode. Updating existing stuff, not building new things.**
|
|
28
28
|
|
|
29
29
|
**What I'll do:**
|
|
30
|
-
-
|
|
31
|
-
- Ask
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
30
|
+
- Find your existing PRDs and prompts
|
|
31
|
+
- Ask which one to update
|
|
32
|
+
- Show you what's there now
|
|
33
|
+
- Talk through what you want to change
|
|
34
|
+
- Save the updated version
|
|
35
|
+
- Track what changed and what stayed the same
|
|
36
36
|
|
|
37
37
|
**What I won't do:**
|
|
38
|
-
- Write
|
|
39
|
-
- Create new PRDs
|
|
40
|
-
- Create new prompts
|
|
41
|
-
-
|
|
38
|
+
- Write code
|
|
39
|
+
- Create brand new PRDs (use `/clavix:prd` for that)
|
|
40
|
+
- Create brand new prompts (use `/clavix:improve` for that)
|
|
41
|
+
- Change things without asking you first
|
|
42
42
|
|
|
43
|
-
**
|
|
44
|
-
|
|
45
|
-
For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
|
|
43
|
+
**We're tweaking what exists, not starting fresh.**
|
|
46
44
|
|
|
47
45
|
---
|
|
48
46
|
|
|
@@ -62,9 +60,9 @@ For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
|
|
|
62
60
|
**STOP**: Immediately halt the incorrect action
|
|
63
61
|
|
|
64
62
|
**CORRECT**: Output:
|
|
65
|
-
"I apologize - I was [describe mistake]. Let me
|
|
63
|
+
"I apologize - I was [describe mistake]. Let me get back to refining your existing work."
|
|
66
64
|
|
|
67
|
-
**RESUME**: Return to
|
|
65
|
+
**RESUME**: Return to refinement mode - load content and discuss changes.
|
|
68
66
|
|
|
69
67
|
---
|
|
70
68
|
|
|
@@ -74,359 +72,223 @@ For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
|
|
|
74
72
|
```
|
|
75
73
|
**CLAVIX MODE: Refinement**
|
|
76
74
|
Mode: planning
|
|
77
|
-
Purpose:
|
|
78
|
-
Implementation: BLOCKED - I
|
|
75
|
+
Purpose: Updating existing PRD or prompt
|
|
76
|
+
Implementation: BLOCKED - I'll update requirements, not build them
|
|
79
77
|
```
|
|
80
78
|
|
|
81
79
|
---
|
|
82
80
|
|
|
83
81
|
## Instructions
|
|
84
82
|
|
|
85
|
-
### Step
|
|
83
|
+
### Step 1: Find What You Have
|
|
86
84
|
|
|
87
|
-
|
|
85
|
+
I'll check what's available to refine:
|
|
88
86
|
|
|
89
|
-
|
|
87
|
+
**Looking for PRDs:**
|
|
88
|
+
- Check `.clavix/outputs/*/mini-prd.md`
|
|
89
|
+
- Check `.clavix/outputs/*/quick-prd.md`
|
|
90
|
+
- Check `.clavix/outputs/*/full-prd.md`
|
|
90
91
|
|
|
91
|
-
**
|
|
92
|
-
|
|
93
|
-
# Look for PRD files
|
|
94
|
-
ls .clavix/outputs/*/mini-prd.md 2>/dev/null
|
|
95
|
-
ls .clavix/outputs/*/quick-prd.md 2>/dev/null
|
|
96
|
-
ls .clavix/outputs/*/full-prd.md 2>/dev/null
|
|
97
|
-
```
|
|
92
|
+
**Looking for saved prompts:**
|
|
93
|
+
- Check `.clavix/outputs/prompts/*.md`
|
|
98
94
|
|
|
99
|
-
**
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
**What you'll see:**
|
|
96
|
+
```
|
|
97
|
+
Found 2 PRD projects and 3 saved prompts.
|
|
98
|
+
Which would you like to refine?
|
|
103
99
|
```
|
|
104
|
-
|
|
105
|
-
**Record what was found:**
|
|
106
|
-
- PRD projects found: [list project names]
|
|
107
|
-
- Saved prompts found: [list prompt files]
|
|
108
|
-
|
|
109
|
-
**CHECKPOINT:** Detection complete - found [N] PRD projects, [M] saved prompts
|
|
110
100
|
|
|
111
101
|
---
|
|
112
102
|
|
|
113
|
-
### Step
|
|
114
|
-
|
|
115
|
-
Based on what was found, ask the user:
|
|
103
|
+
### Step 2: Ask What to Update
|
|
116
104
|
|
|
117
|
-
**If both PRDs and prompts
|
|
118
|
-
```markdown
|
|
119
|
-
## What Would You Like to Refine?
|
|
105
|
+
**If you have both PRDs and prompts:**
|
|
120
106
|
|
|
121
|
-
I found
|
|
107
|
+
"I found some things you can refine:
|
|
122
108
|
|
|
123
109
|
**PRD Projects:**
|
|
124
|
-
-
|
|
125
|
-
-
|
|
110
|
+
- user-auth (has PRD and tasks)
|
|
111
|
+
- dashboard (has PRD)
|
|
126
112
|
|
|
127
113
|
**Saved Prompts:**
|
|
128
|
-
-
|
|
129
|
-
-
|
|
114
|
+
- api-integration.md
|
|
115
|
+
- payment-flow.md
|
|
130
116
|
|
|
131
|
-
|
|
132
|
-
1. **A PRD project** - Modify requirements, features, constraints
|
|
133
|
-
2. **A saved prompt** - Improve and optimize a prompt
|
|
117
|
+
Which one do you want to update?"
|
|
134
118
|
|
|
135
|
-
|
|
136
|
-
```
|
|
119
|
+
**If you only have PRDs:**
|
|
137
120
|
|
|
138
|
-
|
|
139
|
-
```markdown
|
|
140
|
-
## What Would You Like to Refine?
|
|
121
|
+
"Found your user-auth PRD. Want to update it?
|
|
141
122
|
|
|
142
|
-
I
|
|
143
|
-
- [project-name] (has mini-prd.md, tasks.md)
|
|
144
|
-
|
|
145
|
-
Would you like to refine this PRD? I can help you:
|
|
123
|
+
I can help you:
|
|
146
124
|
- Add new features
|
|
147
|
-
-
|
|
148
|
-
- Adjust
|
|
149
|
-
- Update
|
|
150
|
-
```
|
|
125
|
+
- Change existing requirements
|
|
126
|
+
- Adjust scope or constraints
|
|
127
|
+
- Update tech requirements"
|
|
151
128
|
|
|
152
|
-
**If only prompts
|
|
153
|
-
```markdown
|
|
154
|
-
## What Would You Like to Refine?
|
|
129
|
+
**If you only have prompts:**
|
|
155
130
|
|
|
156
|
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
|
|
160
|
-
Would you like to refine one of these prompts? I can help you:
|
|
161
|
-
- Make it more specific
|
|
162
|
-
- Add constraints or context
|
|
163
|
-
- Clarify the objective
|
|
164
|
-
- Improve overall quality
|
|
165
|
-
```
|
|
131
|
+
"Found 2 saved prompts:
|
|
132
|
+
- api-integration.md
|
|
133
|
+
- payment-flow.md
|
|
166
134
|
|
|
167
|
-
|
|
168
|
-
```markdown
|
|
169
|
-
## No Refinement Targets Found
|
|
135
|
+
Which one should we improve?"
|
|
170
136
|
|
|
171
|
-
|
|
137
|
+
**If nothing exists:**
|
|
172
138
|
|
|
173
|
-
|
|
174
|
-
- `/clavix:prd` - Create a new PRD through guided questions
|
|
175
|
-
- `/clavix:improve [prompt]` - Optimize and save a prompt
|
|
176
|
-
- `/clavix:start` → `/clavix:summarize` - Extract requirements from conversation
|
|
139
|
+
"I don't see any PRDs or saved prompts to refine yet.
|
|
177
140
|
|
|
178
|
-
|
|
179
|
-
|
|
141
|
+
To create something first:
|
|
142
|
+
- `/clavix:prd` - Create a new PRD
|
|
143
|
+
- `/clavix:improve [prompt]` - Save an optimized prompt
|
|
144
|
+
- `/clavix:start` then `/clavix:summarize` - Extract from chat
|
|
180
145
|
|
|
181
|
-
|
|
146
|
+
Once you've got something, come back and we can refine it!"
|
|
182
147
|
|
|
183
148
|
---
|
|
184
149
|
|
|
185
|
-
##
|
|
150
|
+
## Refining a PRD
|
|
186
151
|
|
|
187
|
-
|
|
152
|
+
### Step 3: Show What's There
|
|
188
153
|
|
|
189
|
-
|
|
154
|
+
I'll read and show you the current PRD:
|
|
190
155
|
|
|
191
|
-
|
|
192
|
-
```bash
|
|
193
|
-
# Read the mini-prd or quick-prd
|
|
194
|
-
cat .clavix/outputs/[project-name]/mini-prd.md
|
|
195
|
-
```
|
|
156
|
+
"Here's your user-auth PRD:
|
|
196
157
|
|
|
197
|
-
**
|
|
158
|
+
**Goal:** Build secure user authentication system
|
|
198
159
|
|
|
199
|
-
|
|
160
|
+
**Features:**
|
|
161
|
+
- User registration
|
|
162
|
+
- Login/logout
|
|
163
|
+
- Session management
|
|
200
164
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
```markdown
|
|
204
|
-
## Current Requirements for [Project Name]
|
|
165
|
+
**Tech:** Node.js, JWT tokens, PostgreSQL
|
|
205
166
|
|
|
206
|
-
|
|
207
|
-
[Current objective from PRD]
|
|
208
|
-
|
|
209
|
-
### Core Features
|
|
210
|
-
- [Feature 1]
|
|
211
|
-
- [Feature 2]
|
|
212
|
-
- [Feature 3]
|
|
213
|
-
|
|
214
|
-
### Technical Constraints
|
|
215
|
-
- [Constraint 1]
|
|
216
|
-
- [Constraint 2]
|
|
217
|
-
|
|
218
|
-
### Scope
|
|
219
|
-
**In Scope:** [What's included]
|
|
220
|
-
**Out of Scope:** [What's excluded]
|
|
167
|
+
**Out of Scope:** Social login, 2FA
|
|
221
168
|
|
|
222
169
|
---
|
|
223
170
|
|
|
224
|
-
|
|
225
|
-
1. Add new features
|
|
226
|
-
2. Modify existing features
|
|
227
|
-
3. Change technical constraints
|
|
228
|
-
4. Adjust scope (add/remove items)
|
|
229
|
-
5. Update success criteria
|
|
230
|
-
6. Something else
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
### Step 4a: Refine Through Discussion
|
|
171
|
+
What do you want to change?"
|
|
234
172
|
|
|
235
|
-
|
|
173
|
+
### Step 4: Talk Through Changes
|
|
236
174
|
|
|
237
|
-
|
|
238
|
-
-
|
|
239
|
-
-
|
|
240
|
-
-
|
|
175
|
+
Let's discuss what you want to update:
|
|
176
|
+
- Add new features?
|
|
177
|
+
- Change existing stuff?
|
|
178
|
+
- Update tech requirements?
|
|
179
|
+
- Adjust scope?
|
|
241
180
|
|
|
242
|
-
|
|
243
|
-
- `[ADDED]` - New
|
|
244
|
-
- `[MODIFIED]` - Changed
|
|
245
|
-
- `[REMOVED]` -
|
|
181
|
+
I'll track what changes:
|
|
182
|
+
- `[ADDED]` - New stuff
|
|
183
|
+
- `[MODIFIED]` - Changed stuff
|
|
184
|
+
- `[REMOVED]` - Removed stuff
|
|
246
185
|
- `[UNCHANGED]` - Kept as-is
|
|
247
186
|
|
|
248
|
-
### Step
|
|
187
|
+
### Step 5: Save the Update
|
|
249
188
|
|
|
250
|
-
After
|
|
251
|
-
|
|
252
|
-
**Use the Write tool to update** `.clavix/outputs/[project-name]/mini-prd.md`
|
|
253
|
-
|
|
254
|
-
Add a "Refinement History" section at the bottom:
|
|
189
|
+
After we agree on changes, I'll update the PRD file and add a history section:
|
|
255
190
|
|
|
256
191
|
```markdown
|
|
257
|
-
---
|
|
258
|
-
|
|
259
192
|
## Refinement History
|
|
260
193
|
|
|
261
|
-
###
|
|
262
|
-
|
|
263
|
-
**Changes Made:**
|
|
264
|
-
- [ADDED] [Description of what was added]
|
|
265
|
-
- [MODIFIED] [What changed and how]
|
|
266
|
-
- [REMOVED] [What was removed and why]
|
|
194
|
+
### Dec 1, 2024
|
|
267
195
|
|
|
268
|
-
**
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
### Step 6a: Notify About Tasks
|
|
274
|
-
|
|
275
|
-
If tasks.md exists for this project:
|
|
276
|
-
|
|
277
|
-
```markdown
|
|
278
|
-
## Note: Tasks May Need Regeneration
|
|
279
|
-
|
|
280
|
-
This project has a `tasks.md` file that was generated from the previous PRD version.
|
|
281
|
-
|
|
282
|
-
After refining the PRD, you may want to regenerate tasks:
|
|
283
|
-
- Run `/clavix:plan` to create an updated task breakdown
|
|
284
|
-
- Or manually update tasks.md to reflect the changes
|
|
196
|
+
**Changes:**
|
|
197
|
+
- [ADDED] Password reset via email
|
|
198
|
+
- [MODIFIED] Now using bcrypt instead of plain JWT
|
|
199
|
+
- [REMOVED] Session management (moved to separate feature)
|
|
285
200
|
|
|
286
|
-
**
|
|
287
|
-
- [List significant changes that impact implementation]
|
|
201
|
+
**Why:** User feedback needed password reset, security upgrade
|
|
288
202
|
```
|
|
289
203
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
## Prompt Refinement Workflow
|
|
204
|
+
### Step 6: About Tasks
|
|
293
205
|
|
|
294
|
-
|
|
206
|
+
If you have a tasks.md file, heads up:
|
|
295
207
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
```markdown
|
|
300
|
-
## Available Prompts
|
|
301
|
-
|
|
302
|
-
| # | File | Created | Size |
|
|
303
|
-
|---|------|---------|------|
|
|
304
|
-
| 1 | [filename].md | [date] | [lines] |
|
|
305
|
-
| 2 | [filename].md | [date] | [lines] |
|
|
306
|
-
|
|
307
|
-
**Which prompt would you like to refine?**
|
|
308
|
-
Enter the number, or type `latest` to refine the most recent.
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
### Step 3b: Load Selected Prompt
|
|
312
|
-
|
|
313
|
-
Read the prompt file:
|
|
314
|
-
```bash
|
|
315
|
-
cat .clavix/outputs/prompts/[selected-file].md
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
**CHECKPOINT:** Loaded prompt: [filename]
|
|
319
|
-
|
|
320
|
-
### Step 4b: Display Current Prompt and Quality
|
|
321
|
-
|
|
322
|
-
Present the current prompt to the user:
|
|
323
|
-
|
|
324
|
-
```markdown
|
|
325
|
-
## Current Prompt: [filename]
|
|
208
|
+
"Your tasks.md was made from the old PRD. After these changes, you might want to:
|
|
209
|
+
- Run `/clavix:plan` to regenerate tasks
|
|
210
|
+
- Or manually update tasks.md
|
|
326
211
|
|
|
327
|
-
|
|
212
|
+
Biggest changes that affect tasks:
|
|
213
|
+
- New password reset feature
|
|
214
|
+
- Different auth approach"
|
|
328
215
|
|
|
329
216
|
---
|
|
330
217
|
|
|
331
|
-
|
|
332
|
-
- Clarity: [Score]
|
|
333
|
-
- Efficiency: [Score]
|
|
334
|
-
- Structure: [Score]
|
|
335
|
-
- Completeness: [Score]
|
|
336
|
-
- Actionability: [Score]
|
|
337
|
-
- Specificity: [Score]
|
|
338
|
-
|
|
339
|
-
**What would you like to change?**
|
|
340
|
-
1. Clarify the objective
|
|
341
|
-
2. Add more context or constraints
|
|
342
|
-
3. Make it more specific
|
|
343
|
-
4. Change the approach
|
|
344
|
-
5. Other (describe what you want)
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
### Step 5b: Refine Through Discussion
|
|
218
|
+
## Refining a Prompt
|
|
348
219
|
|
|
349
|
-
|
|
350
|
-
- Understand what the user wants to improve
|
|
351
|
-
- Suggest specific enhancements
|
|
352
|
-
- Re-assess quality as changes are made
|
|
220
|
+
### Step 3: Pick Which Prompt
|
|
353
221
|
|
|
354
|
-
|
|
222
|
+
If you have multiple saved prompts:
|
|
355
223
|
|
|
356
|
-
|
|
357
|
-
-
|
|
358
|
-
-
|
|
359
|
-
- Structure
|
|
360
|
-
- Completeness
|
|
361
|
-
- Actionability
|
|
362
|
-
- Specificity
|
|
224
|
+
"Which prompt do you want to refine?
|
|
225
|
+
1. api-integration.md (Dec 1)
|
|
226
|
+
2. payment-flow.md (Nov 28)
|
|
363
227
|
|
|
364
|
-
|
|
228
|
+
Pick a number or say 'latest' for the most recent."
|
|
365
229
|
|
|
366
|
-
|
|
230
|
+
### Step 4: Show Current Quality
|
|
367
231
|
|
|
368
|
-
|
|
232
|
+
I'll show you the prompt and assess its quality:
|
|
369
233
|
|
|
370
|
-
|
|
371
|
-
---
|
|
372
|
-
refined: [date]
|
|
373
|
-
original_created: [original date]
|
|
374
|
-
refinements: 1
|
|
375
|
-
---
|
|
234
|
+
"Here's your current prompt:
|
|
376
235
|
|
|
377
|
-
|
|
236
|
+
'Build an API integration for our system.'
|
|
378
237
|
|
|
379
|
-
|
|
238
|
+
**Quality scores:**
|
|
239
|
+
- Clarity: 40/100 (too vague)
|
|
240
|
+
- Specificity: 30/100 (no details)
|
|
241
|
+
- Completeness: 20/100 (missing info)
|
|
380
242
|
|
|
381
|
-
|
|
243
|
+
What do you want to improve?
|
|
244
|
+
- Make it more specific?
|
|
245
|
+
- Add context or constraints?
|
|
246
|
+
- Clarify the goal?
|
|
247
|
+
- Something else?"
|
|
382
248
|
|
|
383
|
-
|
|
384
|
-
**After:** [Brief description of refined version]
|
|
249
|
+
### Step 5: Improve Together
|
|
385
250
|
|
|
386
|
-
|
|
387
|
-
-
|
|
388
|
-
-
|
|
251
|
+
We'll talk through what to change:
|
|
252
|
+
- What's missing?
|
|
253
|
+
- What's unclear?
|
|
254
|
+
- What needs more detail?
|
|
389
255
|
|
|
390
|
-
|
|
391
|
-
- [What was changed and why]
|
|
392
|
-
```
|
|
256
|
+
I'll suggest improvements and we'll refine together.
|
|
393
257
|
|
|
394
|
-
|
|
258
|
+
### Step 6: Save the Better Version
|
|
395
259
|
|
|
396
|
-
|
|
260
|
+
I'll save the improved prompt with before/after scores:
|
|
397
261
|
|
|
398
|
-
|
|
399
|
-
## Prompt Refinement Complete
|
|
262
|
+
"Done! Your refined prompt:
|
|
400
263
|
|
|
401
|
-
**Quality
|
|
264
|
+
**Quality improvement:** 30% → 85%
|
|
402
265
|
|
|
403
|
-
**
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
| ... | ... | ... |
|
|
266
|
+
**What changed:**
|
|
267
|
+
- Made objective specific (Stripe API for payments)
|
|
268
|
+
- Added technical requirements
|
|
269
|
+
- Specified error handling
|
|
270
|
+
- Listed all needed operations
|
|
409
271
|
|
|
410
|
-
|
|
411
|
-
- Run `/clavix:implement --latest` to
|
|
412
|
-
-
|
|
413
|
-
|
|
272
|
+
Want to:
|
|
273
|
+
- Run `/clavix:implement --latest` to build this?
|
|
274
|
+
- Refine it more?
|
|
275
|
+
- Leave it for later?"
|
|
414
276
|
|
|
415
277
|
---
|
|
416
278
|
|
|
417
|
-
##
|
|
279
|
+
## What's Next
|
|
418
280
|
|
|
419
281
|
**After refining a PRD:**
|
|
420
|
-
- Run `/clavix:plan` to regenerate
|
|
421
|
-
-
|
|
282
|
+
- Run `/clavix:plan` to regenerate your task list
|
|
283
|
+
- Your old tasks.md might be outdated
|
|
422
284
|
|
|
423
285
|
**After refining a prompt:**
|
|
424
|
-
- Run `/clavix:implement --latest` to
|
|
286
|
+
- Run `/clavix:implement --latest` to build it
|
|
425
287
|
|
|
426
|
-
**
|
|
427
|
-
- You can run `/clavix:refine`
|
|
428
|
-
- Each
|
|
429
|
-
- Changes
|
|
288
|
+
**Multiple refinements:**
|
|
289
|
+
- You can run `/clavix:refine` as many times as you want
|
|
290
|
+
- Each update adds to the history
|
|
291
|
+
- Changes build on each other
|
|
430
292
|
|
|
431
293
|
---
|
|
432
294
|
|
|
@@ -553,7 +415,7 @@ I'll update the PRD and add this to the refinement history. Confirm?
|
|
|
553
415
|
|
|
554
416
|
---
|
|
555
417
|
|
|
556
|
-
## Agent Transparency (v5.
|
|
418
|
+
## Agent Transparency (v5.8.0)
|
|
557
419
|
|
|
558
420
|
### Agent Manual (Universal Protocols)
|
|
559
421
|
{{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
|
|
@@ -571,78 +433,72 @@ I'll update the PRD and add this to the refinement history. Confirm?
|
|
|
571
433
|
|
|
572
434
|
## Workflow Navigation
|
|
573
435
|
|
|
574
|
-
**You are here:** Refine (
|
|
436
|
+
**You are here:** Refine (tweaking existing work)
|
|
575
437
|
|
|
576
|
-
**Common
|
|
577
|
-
-
|
|
578
|
-
-
|
|
579
|
-
-
|
|
438
|
+
**Common flows:**
|
|
439
|
+
- Update PRD → `/clavix:refine` → `/clavix:plan` → regenerate tasks
|
|
440
|
+
- Improve prompt → `/clavix:refine` → `/clavix:implement --latest`
|
|
441
|
+
- Keep polishing → `/clavix:refine` → `/clavix:refine` again
|
|
580
442
|
|
|
581
443
|
**Related commands:**
|
|
582
|
-
- `/clavix:prd` - Create new PRD
|
|
583
|
-
- `/clavix:improve` - Create new
|
|
584
|
-
- `/clavix:plan` -
|
|
585
|
-
- `/clavix:implement` -
|
|
444
|
+
- `/clavix:prd` - Create new PRD (not refinement)
|
|
445
|
+
- `/clavix:improve` - Create new prompt (not refinement)
|
|
446
|
+
- `/clavix:plan` - Make tasks from PRD
|
|
447
|
+
- `/clavix:implement` - Build stuff
|
|
586
448
|
|
|
587
449
|
---
|
|
588
450
|
|
|
589
|
-
##
|
|
451
|
+
## When Things Go Wrong
|
|
452
|
+
|
|
453
|
+
### "Can't find anything to refine"
|
|
454
|
+
|
|
455
|
+
You haven't created a PRD or saved prompt yet.
|
|
456
|
+
|
|
457
|
+
**Create something first:**
|
|
458
|
+
- `/clavix:prd` - Make a new PRD
|
|
459
|
+
- `/clavix:improve [prompt]` - Save an optimized prompt
|
|
460
|
+
- `/clavix:start` then `/clavix:summarize` - Extract from chat
|
|
461
|
+
|
|
462
|
+
### "Can't find that project"
|
|
590
463
|
|
|
591
|
-
|
|
592
|
-
**Cause**: No PRDs or prompts have been created yet
|
|
593
|
-
**Solution**:
|
|
594
|
-
- Use `/clavix:prd` to create a PRD
|
|
595
|
-
- Use `/clavix:improve [prompt]` to create and save a prompt
|
|
596
|
-
- Use `/clavix:start` → `/clavix:summarize` to extract from conversation
|
|
464
|
+
The project name might not match or files got moved.
|
|
597
465
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
- Check `.clavix/outputs/` directory structure
|
|
602
|
-
- Ensure mini-prd.md or quick-prd.md exists in project folder
|
|
466
|
+
**Check:**
|
|
467
|
+
- Is it in `.clavix/outputs/`?
|
|
468
|
+
- Does the project folder have a PRD file?
|
|
603
469
|
- Project names are case-sensitive
|
|
604
470
|
|
|
605
|
-
###
|
|
606
|
-
**Cause**: Overwrote without tracking changes
|
|
607
|
-
**Solution**:
|
|
608
|
-
- Always use change markers: [ADDED], [MODIFIED], [REMOVED], [UNCHANGED]
|
|
609
|
-
- Include Refinement History section
|
|
610
|
-
- Review changes with user before saving
|
|
471
|
+
### "My changes disappeared"
|
|
611
472
|
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
**
|
|
615
|
-
-
|
|
616
|
-
-
|
|
617
|
-
-
|
|
618
|
-
|
|
619
|
-
###
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
3. **When to recommend splitting**:
|
|
645
|
-
- Changes span 4+ distinct features
|
|
646
|
-
- Changes affect different system components
|
|
647
|
-
- Risk of losing track of individual changes
|
|
648
|
-
- User seems overwhelmed by scope
|
|
473
|
+
You might have skipped the tracking step.
|
|
474
|
+
|
|
475
|
+
**Make sure to:**
|
|
476
|
+
- Use change markers ([ADDED], [MODIFIED], etc.)
|
|
477
|
+
- Add to Refinement History
|
|
478
|
+
- Review with user before saving
|
|
479
|
+
|
|
480
|
+
### "Tasks don't match the updated PRD"
|
|
481
|
+
|
|
482
|
+
That's normal - tasks were from the old version.
|
|
483
|
+
|
|
484
|
+
**Fix it:**
|
|
485
|
+
- Run `/clavix:plan` to remake tasks
|
|
486
|
+
- Or edit tasks.md manually
|
|
487
|
+
|
|
488
|
+
### "Want to change multiple things at once"
|
|
489
|
+
|
|
490
|
+
**Best approach:** Do one thing at a time
|
|
491
|
+
- Change feature A
|
|
492
|
+
- Save it
|
|
493
|
+
- Then change feature B
|
|
494
|
+
- Save that
|
|
495
|
+
|
|
496
|
+
**If you really want to batch:**
|
|
497
|
+
- Talk through all changes first
|
|
498
|
+
- Group them clearly
|
|
499
|
+
- Track each one separately
|
|
500
|
+
|
|
501
|
+
**Stop and split if:**
|
|
502
|
+
- You're changing 4+ different features
|
|
503
|
+
- Changes affect different parts of the system
|
|
504
|
+
- You're losing track of what changed
|