clavix 4.11.2 → 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 +72 -60
- package/dist/cli/commands/update.js +9 -10
- package/dist/templates/agents/agents.md +14 -8
- package/dist/templates/agents/copilot-instructions.md +1 -1
- package/dist/templates/instructions/core/verification.md +2 -2
- 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 +14 -53
- package/dist/templates/slash-commands/_canonical/start.md +1 -1
- package/dist/templates/slash-commands/_canonical/summarize.md +8 -8
- 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/agent-protocols/state-assertion.md +1 -1
- package/dist/templates/slash-commands/_components/references/intent-types.md +1 -1
- package/dist/templates/slash-commands/_components/sections/file-saving-protocol.md +20 -27
- package/dist/templates/slash-commands/_components/sections/pattern-visibility.md +29 -46
- package/dist/templates/slash-commands/_components/troubleshooting/file-not-saved.md +4 -5
- package/dist/types/config.d.ts +57 -0
- package/dist/utils/legacy-command-cleanup.js +31 -4
- package/package.json +5 -4
- 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 -339
- 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 -51
- package/dist/core/intelligence/quality-assessor.js +0 -505
- 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 -84
- package/dist/core/intelligence/universal-optimizer.js +0 -371
- 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
|
@@ -38,25 +38,25 @@ When you run `/clavix:archive`, I:
|
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
41
|
-
## How I Archive Projects
|
|
41
|
+
## How I Archive Projects (v5 Agentic-First)
|
|
42
42
|
|
|
43
|
-
**I
|
|
43
|
+
**I use my native tools directly - no CLI commands involved.**
|
|
44
44
|
|
|
45
|
-
### What I
|
|
45
|
+
### What I Do
|
|
46
46
|
|
|
47
|
-
| What You Want |
|
|
48
|
-
|
|
49
|
-
| Archive completed project |
|
|
50
|
-
| Archive
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
| Restore from archive | `clavix archive --restore [name]` |
|
|
47
|
+
| What You Want | How I Do It |
|
|
48
|
+
|---------------|-------------|
|
|
49
|
+
| Archive completed project | Move directory: `.clavix/outputs/<project>` → `.clavix/outputs/archive/<project>` |
|
|
50
|
+
| Archive incomplete work | Same, with your confirmation |
|
|
51
|
+
| Delete permanently | Remove directory: `rm -rf .clavix/outputs/<project>` |
|
|
52
|
+
| See what's archived | List files in `.clavix/outputs/archive/` |
|
|
53
|
+
| Restore from archive | Move back: `.clavix/outputs/archive/<project>` → `.clavix/outputs/<project>` |
|
|
55
54
|
|
|
56
55
|
### Before I Archive
|
|
57
56
|
|
|
58
57
|
I check:
|
|
59
58
|
- ✓ Projects exist in `.clavix/outputs/`
|
|
59
|
+
- ✓ Task completion status (read tasks.md)
|
|
60
60
|
- ✓ What you want to do (archive, delete, restore)
|
|
61
61
|
- ✓ Project name is correct
|
|
62
62
|
|
|
@@ -69,44 +69,27 @@ I tell you:
|
|
|
69
69
|
|
|
70
70
|
### Part B: Understanding Archive Operations
|
|
71
71
|
|
|
72
|
-
**Archive
|
|
72
|
+
**Archive Operations** (I perform these using my native tools):
|
|
73
73
|
|
|
74
|
-
1. **Interactive Archive
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
CLI behavior:
|
|
80
|
-
- Lists all PRD projects with 100% tasks completed
|
|
81
|
-
- Allows user to select which project to archive
|
|
82
|
-
- Confirms before archiving
|
|
83
|
-
- Moves the project to archive directory
|
|
74
|
+
1. **Interactive Archive**:
|
|
75
|
+
- I list all PRD projects in `.clavix/outputs/`
|
|
76
|
+
- I check which have 100% tasks completed
|
|
77
|
+
- You select which to archive
|
|
78
|
+
- I move the project to `.clavix/outputs/archive/`
|
|
84
79
|
|
|
85
80
|
2. **Archive Specific Project**:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
CLI behavior:
|
|
91
|
-
- Checks task completion status
|
|
92
|
-
- Warns if tasks are incomplete
|
|
93
|
-
- Asks for confirmation
|
|
94
|
-
- Archives the specific project
|
|
81
|
+
- I check task completion status in `tasks.md`
|
|
82
|
+
- I warn if tasks are incomplete
|
|
83
|
+
- You confirm
|
|
84
|
+
- I move the project directory
|
|
95
85
|
|
|
96
86
|
3. **Force Archive (Incomplete Tasks)**:
|
|
97
|
-
```bash
|
|
98
|
-
clavix archive [project-name] --force
|
|
99
|
-
```
|
|
100
|
-
|
|
101
87
|
Use when:
|
|
102
88
|
- Project scope changed and some tasks are no longer relevant
|
|
103
89
|
- User wants to archive work-in-progress
|
|
104
90
|
- Tasks are incomplete but project is done
|
|
105
91
|
|
|
106
92
|
4. **Delete Project (Permanent Removal)**: **DESTRUCTIVE ACTION**
|
|
107
|
-
```bash
|
|
108
|
-
clavix archive [project-name] --delete
|
|
109
|
-
```
|
|
110
93
|
|
|
111
94
|
**WARNING**: This PERMANENTLY deletes the project. Cannot be restored.
|
|
112
95
|
|
|
@@ -124,24 +107,16 @@ I tell you:
|
|
|
124
107
|
```
|
|
125
108
|
|
|
126
109
|
**Safety confirmation required:**
|
|
127
|
-
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
110
|
+
- I show project details and task status
|
|
111
|
+
- I ask you to type project name to confirm
|
|
112
|
+
- I warn about permanent deletion
|
|
113
|
+
- I list what will be permanently deleted
|
|
131
114
|
|
|
132
115
|
5. **List Archived Projects**:
|
|
133
|
-
|
|
134
|
-
clavix archive --list
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
Shows all projects currently in archive with their task completion status
|
|
116
|
+
I read the contents of `.clavix/outputs/archive/` and show you all archived projects.
|
|
138
117
|
|
|
139
118
|
6. **Restore from Archive**:
|
|
140
|
-
|
|
141
|
-
clavix archive --restore [project-name]
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
Moves a project back from archive to active outputs
|
|
119
|
+
I move a project back: `.clavix/outputs/archive/<project>` → `.clavix/outputs/<project>`
|
|
145
120
|
|
|
146
121
|
## When to Archive
|
|
147
122
|
|
|
@@ -180,61 +155,57 @@ Optimized prompts from `/clavix:improve` are stored separately in `.clavix/outpu
|
|
|
180
155
|
|
|
181
156
|
**Prompts are NOT archived with PRD projects.**
|
|
182
157
|
|
|
183
|
-
**
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
clavix prompts clear --stale # Remove >30 day old
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
**Before archiving, consider cleanup:**
|
|
192
|
-
```bash
|
|
193
|
-
clavix prompts clear --executed
|
|
194
|
-
```
|
|
158
|
+
**To manage prompts:**
|
|
159
|
+
- **View all prompts**: List `.clavix/outputs/prompts/*.md` files
|
|
160
|
+
- **View a prompt**: Read `.clavix/outputs/prompts/<id>.md`
|
|
161
|
+
- **Delete executed prompts**: Remove files where frontmatter has `executed: true`
|
|
162
|
+
- **Delete stale prompts**: Remove files older than 30 days (check timestamp in frontmatter)
|
|
195
163
|
|
|
196
164
|
**Prompts lifecycle:**
|
|
197
165
|
- Independent from PRD lifecycle
|
|
198
|
-
- Managed
|
|
199
|
-
-
|
|
166
|
+
- Managed by reading/writing files directly
|
|
167
|
+
- Clean up manually when project complete
|
|
200
168
|
|
|
201
169
|
## Example Workflows
|
|
202
170
|
|
|
203
171
|
### Workflow 1: Complete Project
|
|
204
172
|
```
|
|
205
173
|
User: "I've finished implementing the user authentication feature"
|
|
206
|
-
You: "Great! Let me help you archive it."
|
|
174
|
+
You: "Great! Let me check the task status and help you archive it."
|
|
207
175
|
|
|
208
|
-
|
|
176
|
+
I read: .clavix/outputs/user-authentication-system/tasks.md
|
|
177
|
+
Result: All 15 tasks completed (100%)
|
|
209
178
|
|
|
210
|
-
|
|
211
|
-
System shows: All 15 tasks completed (100%)
|
|
212
|
-
User confirms: Yes, archive it
|
|
179
|
+
You confirm: Yes, archive it
|
|
213
180
|
|
|
214
|
-
|
|
181
|
+
I execute: mv .clavix/outputs/user-authentication-system .clavix/outputs/archive/
|
|
182
|
+
|
|
183
|
+
Result: Project archived to .clavix/outputs/archive/user-authentication-system/
|
|
215
184
|
```
|
|
216
185
|
|
|
217
186
|
### Workflow 2: Force Archive WIP
|
|
218
187
|
```
|
|
219
188
|
User: "We're pivoting, I want to archive the old API design even though tasks aren't done"
|
|
220
|
-
You: "I'll archive it
|
|
189
|
+
You: "I'll check the status and archive it if you confirm."
|
|
221
190
|
|
|
222
|
-
|
|
191
|
+
I read: .clavix/outputs/old-api-design/tasks.md
|
|
192
|
+
Result: 8 incomplete tasks
|
|
223
193
|
|
|
224
|
-
System shows: 8 incomplete tasks
|
|
225
194
|
User confirms: Yes, archive anyway
|
|
226
195
|
|
|
196
|
+
I execute: mv .clavix/outputs/old-api-design .clavix/outputs/archive/
|
|
197
|
+
|
|
227
198
|
Result: Project archived despite incomplete tasks
|
|
228
199
|
```
|
|
229
200
|
|
|
230
201
|
### Workflow 3: Restore Archived Project
|
|
231
202
|
```
|
|
232
203
|
User: "Actually, we need to revisit that authentication feature"
|
|
233
|
-
You: "I'll restore it from the archive"
|
|
204
|
+
You: "I'll restore it from the archive."
|
|
234
205
|
|
|
235
|
-
|
|
206
|
+
I execute: mv .clavix/outputs/archive/user-authentication-system .clavix/outputs/
|
|
236
207
|
|
|
237
|
-
Result: Project
|
|
208
|
+
Result: Project restored to .clavix/outputs/user-authentication-system/
|
|
238
209
|
```
|
|
239
210
|
|
|
240
211
|
### Workflow 4: Delete Failed Experiment
|
|
@@ -243,26 +214,25 @@ User: "I have a test project 'api-experiment-1' that I don't need anymore"
|
|
|
243
214
|
You: "Is this something you might reference later, or can it be permanently deleted?"
|
|
244
215
|
|
|
245
216
|
User: "It was just a quick test, no value. Delete it."
|
|
246
|
-
You: "This will permanently delete the project.
|
|
217
|
+
You: "This will permanently delete the project. Please confirm by typing the project name."
|
|
247
218
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
System shows:
|
|
219
|
+
I show:
|
|
251
220
|
Project: api-experiment-1
|
|
252
221
|
Tasks: 3/5 completed
|
|
253
222
|
Files: full-prd.md, quick-prd.md, tasks.md
|
|
254
223
|
|
|
255
224
|
WARNING: This action is PERMANENT and CANNOT be undone.
|
|
256
|
-
Type the project name to confirm deletion: _
|
|
257
225
|
|
|
258
226
|
User types: api-experiment-1
|
|
259
227
|
|
|
260
|
-
|
|
228
|
+
I execute: rm -rf .clavix/outputs/api-experiment-1
|
|
229
|
+
|
|
230
|
+
Result: Project permanently deleted
|
|
261
231
|
```
|
|
262
232
|
|
|
263
233
|
---
|
|
264
234
|
|
|
265
|
-
## Agent Transparency (
|
|
235
|
+
## Agent Transparency (v5.0)
|
|
266
236
|
|
|
267
237
|
### CLI Reference (Commands I Execute)
|
|
268
238
|
{{INCLUDE:agent-protocols/cli-reference.md}}
|
|
@@ -295,37 +265,37 @@ Result: Project permanently deleted from .clavix/outputs/api-experiment-1/
|
|
|
295
265
|
- Archive keeps your active projects list clean and focused
|
|
296
266
|
- Archived projects maintain all their data (nothing is deleted)
|
|
297
267
|
- Archive is searchable - you can still `grep` or find files in archive/
|
|
298
|
-
- Regular archiving
|
|
299
|
-
-
|
|
268
|
+
- Regular archiving keeps `.clavix/outputs/` organized
|
|
269
|
+
- Check `.clavix/outputs/archive/` to see what's been archived
|
|
300
270
|
|
|
301
271
|
## Troubleshooting
|
|
302
272
|
|
|
303
273
|
### Issue: No projects available to archive
|
|
304
274
|
**Cause**: No projects in `.clavix/outputs/` OR all already archived
|
|
305
275
|
|
|
306
|
-
**
|
|
307
|
-
1.
|
|
276
|
+
**How I handle it**:
|
|
277
|
+
1. Read `.clavix/outputs/` directory
|
|
308
278
|
2. If directory doesn't exist: "No PRD projects found. Create one with `/clavix:prd`"
|
|
309
|
-
3. If empty:
|
|
279
|
+
3. If empty: Check `.clavix/outputs/archive/` for archived projects
|
|
310
280
|
4. Communicate: "All projects are already archived" or "No projects exist yet"
|
|
311
281
|
|
|
312
282
|
### Issue: Trying to archive project with incomplete tasks
|
|
313
283
|
**Cause**: User wants to archive but tasks aren't 100% done
|
|
314
284
|
|
|
315
|
-
**
|
|
316
|
-
1.
|
|
285
|
+
**How I handle it**:
|
|
286
|
+
1. I read tasks.md and count incomplete tasks
|
|
317
287
|
2. Ask user: "Project has X incomplete tasks. Do you want to:
|
|
318
288
|
- Complete tasks first with `/clavix:implement`
|
|
319
|
-
- Archive anyway
|
|
289
|
+
- Archive anyway (tasks remain incomplete but archived)
|
|
320
290
|
- Cancel archival"
|
|
321
|
-
3. If user confirms
|
|
322
|
-
4. If scope changed: Explain
|
|
291
|
+
3. If user confirms: I move the directory
|
|
292
|
+
4. If scope changed: Explain force archive is appropriate
|
|
323
293
|
|
|
324
294
|
### Issue: Cannot restore archived project (name conflict)
|
|
325
295
|
**Cause**: Project with same name already exists in active outputs
|
|
326
296
|
|
|
327
|
-
**
|
|
328
|
-
1.
|
|
297
|
+
**How I handle it**:
|
|
298
|
+
1. I detect the conflict when checking the target directory
|
|
329
299
|
2. Ask user which option:
|
|
330
300
|
- Archive the active project first, then restore old one
|
|
331
301
|
- Keep both (manual rename required)
|
|
@@ -335,62 +305,54 @@ Result: Project permanently deleted from .clavix/outputs/api-experiment-1/
|
|
|
335
305
|
### Issue: Unsure whether to delete or archive
|
|
336
306
|
**Cause**: User wants to clean up but uncertain about permanence
|
|
337
307
|
|
|
338
|
-
**
|
|
308
|
+
**How I handle it**:
|
|
339
309
|
1. Use decision tree to guide user:
|
|
340
|
-
```
|
|
341
|
-
Ask user questions:
|
|
342
310
|
- "Is this a failed experiment with no learning value?"
|
|
343
311
|
- "Might you need to reference this code later?"
|
|
344
312
|
- "Are you unsure if it's valuable?"
|
|
345
|
-
```
|
|
346
313
|
2. Default recommendation: **ARCHIVE** (safer, reversible)
|
|
347
314
|
3. Only suggest DELETE for: duplicates, failed experiments, test data with zero value
|
|
348
315
|
4. Remind: "Archive is free, disk space is cheap, regret is expensive"
|
|
349
316
|
|
|
350
|
-
### Issue:
|
|
317
|
+
### Issue: File operation fails
|
|
351
318
|
**Cause**: File system permissions, missing directory, or process error
|
|
352
319
|
|
|
353
|
-
**
|
|
354
|
-
1. Check error output
|
|
320
|
+
**How I handle it**:
|
|
321
|
+
1. Check error output
|
|
355
322
|
2. Common fixes:
|
|
356
323
|
- Check `.clavix/outputs/` exists and is writable
|
|
357
324
|
- Verify project name is correct (no typos)
|
|
358
325
|
- Check if another process is accessing the files
|
|
359
|
-
3.
|
|
360
|
-
4. If persistent: Inform user to check file permissions
|
|
326
|
+
3. Retry the operation or inform user about permissions
|
|
361
327
|
|
|
362
|
-
### Issue: Accidentally deleted project
|
|
363
|
-
**Cause**: User error
|
|
328
|
+
### Issue: Accidentally deleted project
|
|
329
|
+
**Cause**: User error
|
|
364
330
|
|
|
365
|
-
**
|
|
366
|
-
1. Acknowledge: "Project was permanently deleted
|
|
331
|
+
**How I handle it**:
|
|
332
|
+
1. Acknowledge: "Project was permanently deleted"
|
|
367
333
|
2. Check recovery options:
|
|
368
334
|
- "If code was committed to git, we can recover from git history"
|
|
369
335
|
- "Check if you have local backups"
|
|
370
336
|
- "Check if IDE has local history (VS Code, JetBrains)"
|
|
371
337
|
3. Prevention: "Going forward, use ARCHIVE by default. Only DELETE when absolutely certain."
|
|
372
|
-
4. No recovery possible from Clavix itself
|
|
373
338
|
|
|
374
339
|
### Issue: Archive directory getting too large
|
|
375
340
|
**Cause**: Many archived projects accumulating
|
|
376
341
|
|
|
377
|
-
**
|
|
342
|
+
**How I handle it**:
|
|
378
343
|
1. Explain: "Archive is designed to grow - this is normal behavior"
|
|
379
|
-
2. Archived projects don't affect
|
|
380
|
-
3. If user
|
|
381
|
-
-
|
|
344
|
+
2. Archived projects don't affect workflow performance
|
|
345
|
+
3. If user concerned:
|
|
346
|
+
- List archive contents
|
|
382
347
|
- Identify ancient/irrelevant projects
|
|
383
|
-
- Delete only truly obsolete ones
|
|
348
|
+
- Delete only truly obsolete ones
|
|
384
349
|
- Or suggest external backup for very old projects
|
|
385
350
|
|
|
386
351
|
### Issue: Archived project but forgot what it was about
|
|
387
352
|
**Cause**: No naming convention or time passed
|
|
388
353
|
|
|
389
|
-
**
|
|
390
|
-
1. Read the PRD
|
|
391
|
-
```bash
|
|
392
|
-
cat .clavix/outputs/archive/[project-name]/full-prd.md
|
|
393
|
-
```
|
|
354
|
+
**How I handle it**:
|
|
355
|
+
1. Read the PRD: `.clavix/outputs/archive/[project-name]/full-prd.md`
|
|
394
356
|
2. Summarize: Problem, Goal, Features from PRD
|
|
395
357
|
3. Suggest: Better naming conventions going forward
|
|
396
358
|
- Example: `2024-01-user-auth` (date-feature format)
|
|
@@ -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
|
|