clavix 4.8.1 → 4.9.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.
Files changed (22) hide show
  1. package/dist/templates/slash-commands/_canonical/archive.md +67 -81
  2. package/dist/templates/slash-commands/_canonical/deep.md +40 -34
  3. package/dist/templates/slash-commands/_canonical/execute.md +187 -155
  4. package/dist/templates/slash-commands/_canonical/fast.md +33 -24
  5. package/dist/templates/slash-commands/_canonical/implement.md +283 -301
  6. package/dist/templates/slash-commands/_canonical/plan.md +33 -17
  7. package/dist/templates/slash-commands/_canonical/prd.md +36 -21
  8. package/dist/templates/slash-commands/_canonical/start.md +34 -33
  9. package/dist/templates/slash-commands/_canonical/summarize.md +39 -47
  10. package/dist/templates/slash-commands/_canonical/verify.md +324 -186
  11. package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +202 -0
  12. package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +145 -88
  13. package/dist/templates/slash-commands/_components/agent-protocols/supportive-companion.md +216 -0
  14. package/dist/templates/slash-commands/_components/agent-protocols/task-blocking.md +224 -0
  15. package/dist/templates/slash-commands/_components/references/quality-dimensions.md +152 -44
  16. package/dist/templates/slash-commands/_components/sections/conversation-examples.md +302 -0
  17. package/dist/templates/slash-commands/_components/sections/escalation-factors.md +119 -87
  18. package/dist/templates/slash-commands/_components/sections/improvement-explanations.md +171 -0
  19. package/dist/templates/slash-commands/_components/sections/pattern-impact.md +208 -0
  20. package/dist/templates/slash-commands/_components/sections/prd-examples.md +289 -0
  21. package/dist/templates/slash-commands/_components/troubleshooting/vibecoder-recovery.md +223 -0
  22. package/package.json +1 -1
@@ -3,47 +3,69 @@ name: "Clavix: Archive"
3
3
  description: Archive completed PRD projects
4
4
  ---
5
5
 
6
- # Clavix Archive - PRD Project Archival
6
+ # Clavix: Archive Your Completed Work
7
7
 
8
- > **⚠️ Agent Execution Note**: This command requires CLI execution. AI agents should run `clavix archive` via Bash tool to perform archival operations. Direct file manipulation is not recommended due to state tracking complexity.
8
+ Done with a project? I'll move it to the archive to keep your workspace tidy. You can always restore it later if needed.
9
9
 
10
- You are helping the user archive completed PRD projects to keep their workspace organized.
10
+ ---
11
11
 
12
- ## Instructions
12
+ ## What This Does
13
13
 
14
- ### Part A: Agent Execution Protocol
14
+ When you run `/clavix:archive`, I:
15
+ 1. **Find your completed projects** - Look for 100% done PRDs
16
+ 2. **Ask which to archive** - You pick, or I archive all completed ones
17
+ 3. **Move to archive folder** - Out of the way but not deleted
18
+ 4. **Track everything** - So you can restore later if needed
15
19
 
16
- **As an AI agent, you should:**
20
+ **Your work is never deleted, just organized.**
17
21
 
18
- 1. **Run the CLI command** to handle archival operations:
19
- ```bash
20
- clavix archive
21
- ```
22
+ ---
23
+
24
+ ## CLAVIX MODE: Archival
25
+
26
+ **I'm in archival mode. Organizing your completed work.**
27
+
28
+ **What I'll do:**
29
+ - ✓ Find projects ready for archive
30
+ - ✓ Show you what's complete (100% tasks done)
31
+ - ✓ Move projects to archive when you confirm
32
+ - ✓ Track everything so you can restore later
33
+
34
+ **What I won't do:**
35
+ - ✗ Delete anything without explicit confirmation
36
+ - ✗ Archive projects you're still working on (unless you use --force)
37
+ - ✗ Make decisions for you - you pick what to archive
38
+
39
+ ---
40
+
41
+ ## How I Archive Projects
42
+
43
+ **I handle all the commands - you just tell me what to do.**
22
44
 
23
- The CLI will:
24
- - Prompt user for project selection
25
- - Validate task completion status
26
- - Handle file operations safely
27
- - Update state tracking
45
+ ### What I Run (You Don't Need To)
28
46
 
29
- 2. **Choose the appropriate mode** based on user intent:
47
+ | What You Want | Command I Execute |
48
+ |---------------|-------------------|
49
+ | Archive completed project | `clavix archive` |
50
+ | Archive specific project | `clavix archive [name]` |
51
+ | Archive incomplete work | `clavix archive [name] --force` |
52
+ | Delete permanently | `clavix archive [name] --delete` |
53
+ | See what's archived | `clavix archive --list` |
54
+ | Restore from archive | `clavix archive --restore [name]` |
30
55
 
31
- - **Interactive mode** (no arguments): User selects from list
32
- - **Specific project**: `clavix archive [project-name]`
33
- - **Force archive incomplete**: `clavix archive [project-name] --force`
34
- - **Permanent delete**: `clavix archive [project-name] --delete`
35
- - **List archived**: `clavix archive --list`
36
- - **Restore**: `clavix archive --restore [project-name]`
56
+ ### Before I Archive
37
57
 
38
- 3. **Before running the command**, validate:
39
- - Check if `.clavix/outputs/` directory exists
40
- - Verify user intent (archive vs delete vs restore)
41
- - Confirm project name if specified
58
+ I check:
59
+ - Projects exist in `.clavix/outputs/`
60
+ - What you want to do (archive, delete, restore)
61
+ - Project name is correct
42
62
 
43
- 4. **After CLI completes**, communicate results:
44
- - Confirm where project was moved
45
- - Mention restoration is possible (unless deleted)
46
- - Update user on next steps
63
+ ### After Archiving
64
+
65
+ I tell you:
66
+ - Where the project went
67
+ - How to restore it (unless you deleted it)
68
+ - What to do next
47
69
 
48
70
  ### Part B: Understanding Archive Operations
49
71
 
@@ -238,57 +260,21 @@ User types: api-experiment-1
238
260
  Result: Project permanently deleted from .clavix/outputs/api-experiment-1/
239
261
  ```
240
262
 
241
- ## AI Agent Guidelines
242
-
243
- When user mentions archiving or cleaning up projects:
244
-
245
- 1. **Validate prerequisites before running CLI**:
246
- - Check if `.clavix/outputs/` directory exists
247
- - If not, inform user no projects exist to archive
248
- - Verify user intent (list, archive, restore, delete)
249
-
250
- 2. **Check completion status first**:
251
- - Run `clavix archive` (interactive mode) to see archivable projects
252
- - CLI will display projects with completion percentages
253
- - Review output and communicate options to user
254
-
255
- 3. **Execute the appropriate command**:
256
- - **Interactive selection**: `clavix archive` (let user pick from list)
257
- - **Specific project**: `clavix archive [project-name]`
258
- - **Force incomplete**: `clavix archive [project-name] --force`
259
- - **List archived**: `clavix archive --list`
260
- - **Restore**: `clavix archive --restore [project-name]`
261
- - **Delete**: `clavix archive [project-name] --delete` (with extra caution)
262
-
263
- 4. **Confirm before archiving**:
264
- - If using specific project mode, confirm project name with user
265
- - Mention the archive location (`.clavix/outputs/archive/`)
266
- - Explain that restoration is possible
267
-
268
- 5. **Use --force cautiously**:
269
- - Only when user explicitly wants to archive incomplete work
270
- - Run command and let CLI show incomplete task count
271
- - CLI will ask for user confirmation
272
- - Explain they won't lose data (just moving location)
273
-
274
- 6. **Suggest restoration when appropriate**:
275
- - If user mentions old/past work, check archive first
276
- - Run `clavix archive --list` to show what's archived
277
- - Offer to restore if needed via `clavix archive --restore [project]`
278
-
279
- 7. **Handle delete requests with extreme caution**:
280
- - Always ask: "Do you want to DELETE (permanent) or ARCHIVE (safe)?"
281
- - Explain that delete is permanent and irreversible
282
- - Suggest archive as the safer default
283
- - Use decision tree to help user decide
284
- - Only run `--delete` after clear confirmation from user
285
- - Double-check it's truly no-value content (failed experiments, duplicates, test data)
286
- - CLI will require typing project name to confirm - this is expected
287
-
288
- 8. **After CLI execution**:
289
- - Communicate success/failure clearly
290
- - Mention next steps (e.g., "Project archived, you can restore with `/clavix:archive --restore`")
291
- - If error occurs, explain and suggest recovery options
263
+ ---
264
+
265
+ ## Agent Transparency (v4.9)
266
+
267
+ ### CLI Reference (Commands I Execute)
268
+ {{INCLUDE:agent-protocols/cli-reference.md}}
269
+
270
+ ### Error Handling
271
+ {{INCLUDE:agent-protocols/error-handling.md}}
272
+
273
+ ### Recovery Patterns
274
+ {{INCLUDE:troubleshooting/vibecoder-recovery.md}}
275
+
276
+ ### Agent Decision Rules
277
+ {{INCLUDE:agent-protocols/decision-rules.md}}
292
278
 
293
279
  ## Workflow Navigation
294
280
 
@@ -207,30 +207,35 @@ Deep mode provides **Clavix Intelligence™** with comprehensive analysis that g
207
207
 
208
208
  ---
209
209
 
210
- ## Agent Transparency (v4.6)
210
+ ## Agent Transparency (v4.9)
211
211
 
212
- ### Quality Output Format
213
- {{INCLUDE:agent-protocols/quality-output.md}}
212
+ ### How to Explain Improvements
213
+ {{INCLUDE:sections/improvement-explanations.md}}
214
+
215
+ ### Quality Dimensions (Plain English)
216
+ {{INCLUDE:references/quality-dimensions.md}}
217
+
218
+ ### When to Recommend PRD Mode
219
+ {{INCLUDE:sections/escalation-factors.md}}
220
+
221
+ ### What Made the Biggest Difference
222
+ {{INCLUDE:sections/pattern-impact.md}}
214
223
 
215
224
  ### Agent Decision Rules
216
225
  {{INCLUDE:agent-protocols/decision-rules.md}}
217
226
 
218
- ### Assertion Checkpoints
219
- {{INCLUDE:agent-protocols/assertion-checkpoints.md}}
220
-
221
- ### Patterns Applied
222
- {{INCLUDE:sections/pattern-visibility.md}}
227
+ ### Error Handling
228
+ {{INCLUDE:agent-protocols/error-handling.md}}
223
229
 
224
230
  ### Deep Mode Pattern Selection
225
- Deep mode has access to all patterns including deep-exclusive patterns:
226
- - **AlternativePhrasingGenerator**: Generates 2-3 alternative prompt structures
227
- - **EdgeCaseIdentifier**: Identifies domain-specific edge cases
228
- - **ValidationChecklistCreator**: Creates implementation verification checklist
229
- - **AssumptionExplicitizer**: Makes implicit assumptions explicit
230
- - **ScopeDefiner**: Adds explicit scope boundaries
231
- - **PRDStructureEnforcer**: Ensures PRD completeness (PRD mode only)
232
- - **ErrorToleranceEnhancer**: Adds error handling requirements
233
- - **PrerequisiteIdentifier**: Identifies prerequisites and dependencies
231
+ Deep mode has access to all patterns including comprehensive analysis:
232
+ - **Alternative Approaches**: 2-3 different ways to structure the request
233
+ - **Edge Cases**: Things that might go wrong or need special handling
234
+ - **Validation Checklist**: Steps to verify the implementation is complete
235
+ - **Hidden Assumptions**: Things you might be assuming but didn't say
236
+ - **Scope Boundaries**: What's in and out of scope
237
+ - **Error Handling**: How to deal with failures gracefully
238
+ - **Prerequisites**: What needs to exist before starting
234
239
 
235
240
  ---
236
241
 
@@ -479,27 +484,26 @@ Confirm:
479
484
  - Index file updated with new entry
480
485
  - Display success message: `✓ Prompt saved: <prompt-id>.md`
481
486
 
482
- ### Executing the Saved Prompt
483
-
484
- After saving completes successfully:
487
+ ### After Saving
485
488
 
486
489
  ---
487
490
 
488
491
  ## ⛔ STOP HERE - Agent Verification Required
489
492
 
490
- **Your workflow ends here. Before responding to the user:**
493
+ **Your workflow ends here. After saving the prompt, verify it worked.**
491
494
 
492
495
  ### CLI Verification (Run This Command)
496
+ I run this command to confirm the save worked:
493
497
  ```bash
494
498
  clavix prompts list
495
499
  ```
496
500
 
497
- **Verify**: Your prompt appears in the list with status "pending" or "NEW".
501
+ **If it worked**: Your prompt appears in the list.
498
502
 
499
- **If verification fails**:
500
- - Check if file was saved to `.clavix/outputs/prompts/deep/`
501
- - Retry the save operation
502
- - Check file permissions
503
+ **If it failed**:
504
+ - I create the directory: `mkdir -p .clavix/outputs/prompts/deep`
505
+ - I try saving again
506
+ - If still failing, I tell you: "I had trouble saving, but here's your improved prompt..."
503
507
 
504
508
  ### Required Response Ending
505
509
 
@@ -507,26 +511,28 @@ clavix prompts list
507
511
  ```
508
512
  ✅ Deep analysis complete. Prompt optimized and saved.
509
513
 
510
- To implement this prompt, run:
514
+ Ready to build this? Just say "let's implement" or run:
511
515
  /clavix:execute --latest
512
516
  ```
513
517
 
514
- **DO NOT continue to implementation. DO NOT write any code. STOP HERE.**
518
+ **IMPORTANT: I don't start implementing. I don't write code. My job is done.**
519
+ I wait for you to decide what to do next.
515
520
 
516
521
  ---
517
522
 
518
- ### Prompt Management (CLI Commands)
523
+ ### Prompt Management (Commands I Run)
524
+
525
+ These are commands I execute when needed - you don't need to run them.
519
526
 
520
- **List all saved prompts:**
527
+ **Check saved prompts:**
521
528
  ```bash
522
529
  clavix prompts list
523
530
  ```
524
531
 
525
- **Cleanup after execution:**
532
+ **Cleanup (I run when you ask or during maintenance):**
526
533
  ```bash
527
- clavix prompts clear --executed # Remove executed prompts
528
- clavix prompts clear --stale # Remove >30 day old prompts
529
- clavix prompts clear --deep # Remove all deep prompts
534
+ clavix prompts clear --executed # Remove implemented prompts
535
+ clavix prompts clear --stale # Remove old prompts (>30 days)
530
536
  ```
531
537
 
532
538
  ## Workflow Navigation