clavix 4.12.0 → 5.0.1

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 (163) hide show
  1. package/README.md +69 -61
  2. package/dist/cli/commands/init.js +54 -153
  3. package/dist/cli/commands/update.js +19 -21
  4. package/dist/templates/agents/agents.md +28 -26
  5. package/dist/templates/agents/copilot-instructions.md +42 -36
  6. package/dist/templates/agents/octo.md +41 -36
  7. package/dist/templates/agents/warp.md +24 -24
  8. package/dist/templates/instructions/README.md +8 -5
  9. package/dist/templates/slash-commands/_canonical/archive.md +83 -121
  10. package/dist/templates/slash-commands/_canonical/execute.md +32 -42
  11. package/dist/templates/slash-commands/_canonical/implement.md +32 -44
  12. package/dist/templates/slash-commands/_canonical/improve.md +13 -52
  13. package/dist/templates/slash-commands/_canonical/plan.md +8 -20
  14. package/dist/templates/slash-commands/_canonical/verify.md +9 -9
  15. package/dist/templates/slash-commands/_components/agent-protocols/assertion-checkpoints.md +1 -1
  16. package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +84 -180
  17. package/dist/templates/slash-commands/_components/agent-protocols/decision-rules.md +5 -6
  18. package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +2 -2
  19. package/dist/templates/slash-commands/_components/agent-protocols/file-formats.md +41 -59
  20. package/dist/templates/slash-commands/_components/agent-protocols/state-awareness.md +5 -7
  21. package/dist/templates/slash-commands/_components/sections/file-saving-protocol.md +20 -27
  22. package/dist/templates/slash-commands/_components/troubleshooting/file-not-saved.md +4 -5
  23. package/dist/templates/slash-commands/_components/troubleshooting/vibecoder-recovery.md +2 -2
  24. package/dist/utils/agent-error-messages.js +13 -12
  25. package/package.json +2 -2
  26. package/dist/cli/commands/analyze.d.ts +0 -17
  27. package/dist/cli/commands/analyze.js +0 -133
  28. package/dist/cli/commands/archive.d.ts +0 -36
  29. package/dist/cli/commands/archive.js +0 -266
  30. package/dist/cli/commands/deep.d.ts +0 -17
  31. package/dist/cli/commands/deep.js +0 -170
  32. package/dist/cli/commands/execute.d.ts +0 -15
  33. package/dist/cli/commands/execute.js +0 -168
  34. package/dist/cli/commands/fast.d.ts +0 -18
  35. package/dist/cli/commands/fast.js +0 -219
  36. package/dist/cli/commands/implement.d.ts +0 -24
  37. package/dist/cli/commands/implement.js +0 -289
  38. package/dist/cli/commands/improve.d.ts +0 -32
  39. package/dist/cli/commands/improve.js +0 -250
  40. package/dist/cli/commands/list.d.ts +0 -17
  41. package/dist/cli/commands/list.js +0 -217
  42. package/dist/cli/commands/plan.d.ts +0 -21
  43. package/dist/cli/commands/plan.js +0 -297
  44. package/dist/cli/commands/prd.d.ts +0 -24
  45. package/dist/cli/commands/prd.js +0 -321
  46. package/dist/cli/commands/prompts/clear.d.ts +0 -16
  47. package/dist/cli/commands/prompts/clear.js +0 -222
  48. package/dist/cli/commands/prompts/list.d.ts +0 -8
  49. package/dist/cli/commands/prompts/list.js +0 -88
  50. package/dist/cli/commands/show.d.ts +0 -21
  51. package/dist/cli/commands/show.js +0 -191
  52. package/dist/cli/commands/start.d.ts +0 -40
  53. package/dist/cli/commands/start.js +0 -210
  54. package/dist/cli/commands/summarize.d.ts +0 -17
  55. package/dist/cli/commands/summarize.js +0 -196
  56. package/dist/cli/commands/task-complete.d.ts +0 -27
  57. package/dist/cli/commands/task-complete.js +0 -269
  58. package/dist/cli/commands/verify.d.ts +0 -28
  59. package/dist/cli/commands/verify.js +0 -349
  60. package/dist/core/archive-manager.d.ts +0 -100
  61. package/dist/core/archive-manager.js +0 -302
  62. package/dist/core/basic-checklist-generator.d.ts +0 -35
  63. package/dist/core/basic-checklist-generator.js +0 -344
  64. package/dist/core/checklist-parser.d.ts +0 -48
  65. package/dist/core/checklist-parser.js +0 -238
  66. package/dist/core/config-manager.d.ts +0 -149
  67. package/dist/core/config-manager.js +0 -230
  68. package/dist/core/conversation-analyzer.d.ts +0 -86
  69. package/dist/core/conversation-analyzer.js +0 -387
  70. package/dist/core/conversation-quality-tracker.d.ts +0 -81
  71. package/dist/core/conversation-quality-tracker.js +0 -195
  72. package/dist/core/git-manager.d.ts +0 -126
  73. package/dist/core/git-manager.js +0 -282
  74. package/dist/core/intelligence/confidence-calculator.d.ts +0 -93
  75. package/dist/core/intelligence/confidence-calculator.js +0 -124
  76. package/dist/core/intelligence/index.d.ts +0 -11
  77. package/dist/core/intelligence/index.js +0 -15
  78. package/dist/core/intelligence/intent-detector.d.ts +0 -54
  79. package/dist/core/intelligence/intent-detector.js +0 -723
  80. package/dist/core/intelligence/pattern-library.d.ts +0 -104
  81. package/dist/core/intelligence/pattern-library.js +0 -330
  82. package/dist/core/intelligence/patterns/actionability-enhancer.d.ts +0 -27
  83. package/dist/core/intelligence/patterns/actionability-enhancer.js +0 -192
  84. package/dist/core/intelligence/patterns/alternative-phrasing-generator.d.ts +0 -29
  85. package/dist/core/intelligence/patterns/alternative-phrasing-generator.js +0 -239
  86. package/dist/core/intelligence/patterns/ambiguity-detector.d.ts +0 -22
  87. package/dist/core/intelligence/patterns/ambiguity-detector.js +0 -196
  88. package/dist/core/intelligence/patterns/assumption-explicitizer.d.ts +0 -30
  89. package/dist/core/intelligence/patterns/assumption-explicitizer.js +0 -296
  90. package/dist/core/intelligence/patterns/base-pattern.d.ts +0 -192
  91. package/dist/core/intelligence/patterns/base-pattern.js +0 -103
  92. package/dist/core/intelligence/patterns/completeness-validator.d.ts +0 -27
  93. package/dist/core/intelligence/patterns/completeness-validator.js +0 -221
  94. package/dist/core/intelligence/patterns/conciseness-filter.d.ts +0 -20
  95. package/dist/core/intelligence/patterns/conciseness-filter.js +0 -92
  96. package/dist/core/intelligence/patterns/context-precision.d.ts +0 -32
  97. package/dist/core/intelligence/patterns/context-precision.js +0 -389
  98. package/dist/core/intelligence/patterns/conversation-summarizer.d.ts +0 -30
  99. package/dist/core/intelligence/patterns/conversation-summarizer.js +0 -277
  100. package/dist/core/intelligence/patterns/dependency-identifier.d.ts +0 -23
  101. package/dist/core/intelligence/patterns/dependency-identifier.js +0 -166
  102. package/dist/core/intelligence/patterns/domain-context-enricher.d.ts +0 -21
  103. package/dist/core/intelligence/patterns/domain-context-enricher.js +0 -198
  104. package/dist/core/intelligence/patterns/edge-case-identifier.d.ts +0 -30
  105. package/dist/core/intelligence/patterns/edge-case-identifier.js +0 -269
  106. package/dist/core/intelligence/patterns/error-tolerance-enhancer.d.ts +0 -22
  107. package/dist/core/intelligence/patterns/error-tolerance-enhancer.js +0 -179
  108. package/dist/core/intelligence/patterns/implicit-requirement-extractor.d.ts +0 -24
  109. package/dist/core/intelligence/patterns/implicit-requirement-extractor.js +0 -259
  110. package/dist/core/intelligence/patterns/objective-clarifier.d.ts +0 -22
  111. package/dist/core/intelligence/patterns/objective-clarifier.js +0 -126
  112. package/dist/core/intelligence/patterns/output-format-enforcer.d.ts +0 -22
  113. package/dist/core/intelligence/patterns/output-format-enforcer.js +0 -151
  114. package/dist/core/intelligence/patterns/prd-structure-enforcer.d.ts +0 -23
  115. package/dist/core/intelligence/patterns/prd-structure-enforcer.js +0 -183
  116. package/dist/core/intelligence/patterns/prerequisite-identifier.d.ts +0 -23
  117. package/dist/core/intelligence/patterns/prerequisite-identifier.js +0 -221
  118. package/dist/core/intelligence/patterns/requirement-prioritizer.d.ts +0 -24
  119. package/dist/core/intelligence/patterns/requirement-prioritizer.js +0 -134
  120. package/dist/core/intelligence/patterns/scope-definer.d.ts +0 -26
  121. package/dist/core/intelligence/patterns/scope-definer.js +0 -236
  122. package/dist/core/intelligence/patterns/step-decomposer.d.ts +0 -31
  123. package/dist/core/intelligence/patterns/step-decomposer.js +0 -242
  124. package/dist/core/intelligence/patterns/structure-organizer.d.ts +0 -31
  125. package/dist/core/intelligence/patterns/structure-organizer.js +0 -218
  126. package/dist/core/intelligence/patterns/success-criteria-enforcer.d.ts +0 -22
  127. package/dist/core/intelligence/patterns/success-criteria-enforcer.js +0 -165
  128. package/dist/core/intelligence/patterns/success-metrics-enforcer.d.ts +0 -24
  129. package/dist/core/intelligence/patterns/success-metrics-enforcer.js +0 -165
  130. package/dist/core/intelligence/patterns/technical-context-enricher.d.ts +0 -25
  131. package/dist/core/intelligence/patterns/technical-context-enricher.js +0 -165
  132. package/dist/core/intelligence/patterns/topic-coherence-analyzer.d.ts +0 -26
  133. package/dist/core/intelligence/patterns/topic-coherence-analyzer.js +0 -300
  134. package/dist/core/intelligence/patterns/user-persona-enricher.d.ts +0 -24
  135. package/dist/core/intelligence/patterns/user-persona-enricher.js +0 -141
  136. package/dist/core/intelligence/patterns/validation-checklist-creator.d.ts +0 -31
  137. package/dist/core/intelligence/patterns/validation-checklist-creator.js +0 -242
  138. package/dist/core/intelligence/quality-assessor.d.ts +0 -71
  139. package/dist/core/intelligence/quality-assessor.js +0 -525
  140. package/dist/core/intelligence/types.d.ts +0 -111
  141. package/dist/core/intelligence/types.js +0 -3
  142. package/dist/core/intelligence/universal-optimizer.d.ts +0 -91
  143. package/dist/core/intelligence/universal-optimizer.js +0 -399
  144. package/dist/core/prd-generator.d.ts +0 -76
  145. package/dist/core/prd-generator.js +0 -173
  146. package/dist/core/prompt-manager.d.ts +0 -110
  147. package/dist/core/prompt-manager.js +0 -274
  148. package/dist/core/prompt-optimizer.d.ts +0 -268
  149. package/dist/core/prompt-optimizer.js +0 -959
  150. package/dist/core/question-engine.d.ts +0 -167
  151. package/dist/core/question-engine.js +0 -356
  152. package/dist/core/session-manager.d.ts +0 -139
  153. package/dist/core/session-manager.js +0 -365
  154. package/dist/core/task-manager.d.ts +0 -211
  155. package/dist/core/task-manager.js +0 -981
  156. package/dist/core/verification-hooks.d.ts +0 -67
  157. package/dist/core/verification-hooks.js +0 -309
  158. package/dist/core/verification-manager.d.ts +0 -107
  159. package/dist/core/verification-manager.js +0 -415
  160. package/dist/types/session.d.ts +0 -78
  161. package/dist/types/session.js +0 -8
  162. package/dist/types/verification.d.ts +0 -205
  163. package/dist/types/verification.js +0 -9
@@ -38,8 +38,7 @@ For complete step-by-step workflows, see `.clavix/instructions/`:
38
38
  |----------|-----------------|---------|
39
39
  | **Conversational Mode** | `workflows/start.md` | Natural requirements gathering through discussion |
40
40
  | **Extract Requirements** | `workflows/summarize.md` | Analyze conversation → mini-PRD + optimized prompts |
41
- | **Quick Optimization** | `workflows/fast.md` | Intent detection + quality assessment + smart triage |
42
- | **Deep Analysis** | `workflows/deep.md` | Comprehensive with alternatives, validation, edge cases |
41
+ | **Prompt Optimization** | `workflows/improve.md` | Intent detection + quality assessment + auto-depth selection |
43
42
  | **PRD Generation** | `workflows/prd.md` | Socratic questions → full PRD + quick PRD |
44
43
  | **Mode Boundaries** | `core/clavix-mode.md` | Planning vs implementation distinction |
45
44
 
@@ -54,33 +53,40 @@ For complete step-by-step workflows, see `.clavix/instructions/`:
54
53
 
55
54
  ---
56
55
 
57
- ## 📋 CLI Quick Reference
56
+ ## 📋 Clavix Commands (v5)
58
57
 
58
+ ### Setup Commands (CLI)
59
59
  | Command | Purpose |
60
60
  |---------|---------|
61
- | `clavix fast "<prompt>"` | Quick optimization (CLI auto-saves; slash commands require manual saving per template instructions) |
62
- | `clavix deep "<prompt>"` | Deep analysis (CLI auto-saves; slash commands require manual saving per template instructions) |
63
- | `clavix execute [--latest]` | Execute saved prompts (--latest, --fast, --deep, --id supported) |
64
- | `clavix prompts list` | View saved prompts with status (NEW, EXECUTED, OLD, STALE) |
65
- | `clavix prompts clear` | Manage cleanup (--executed, --stale, --fast, --deep, --all, --force) |
66
- | `clavix prd` | Guided PRD generation |
67
- | `clavix plan` | Transform PRD → tasks |
68
- | `clavix implement [--commit-strategy]` | Execute tasks |
69
- | `clavix start` | Begin conversational session |
70
- | `clavix summarize [session-id]` | Extract PRD from session |
71
- | `clavix list` | List sessions/outputs |
72
- | `clavix archive [project]` | Archive/restore projects |
73
- | `clavix update` | Refresh documentation |
61
+ | `clavix init` | Initialize Clavix in a project |
62
+ | `clavix update` | Update templates after package update |
63
+ | `clavix config` | Manage configuration |
64
+ | `clavix version` | Show version |
65
+
66
+ ### Workflow Commands (Slash Commands)
67
+ All workflows are executed via slash commands:
68
+
69
+ | Slash Command | Purpose |
70
+ |---------------|---------|
71
+ | `/clavix:improve` | Optimize prompts (auto-selects depth) |
72
+ | `/clavix:prd` | Generate PRD through guided questions |
73
+ | `/clavix:plan` | Create task breakdown from PRD |
74
+ | `/clavix:implement` | Execute tasks with progress tracking |
75
+ | `/clavix:start` | Begin conversational session |
76
+ | `/clavix:summarize` | Extract requirements from conversation |
77
+ | `/clavix:execute` | Run saved prompts |
78
+ | `/clavix:verify` | Verify implementation |
79
+ | `/clavix:archive` | Archive completed projects |
74
80
 
75
81
  ---
76
82
 
77
- ## 🔄 Prompt Lifecycle Management (v2.7+)
83
+ ## 🔄 Prompt Lifecycle Workflow
78
84
 
79
- **Prompt Lifecycle Workflow:**
80
- 1. **Optimize**: `clavix fast/deep "<prompt>"` → CLI auto-saves; slash commands require manual saving per template instructions
81
- 2. **Review**: `clavix prompts list` View all saved prompts with status
82
- 3. **Execute**: `clavix execute --latest` → Implement when ready
83
- 4. **Cleanup**: `clavix prompts clear --executed` Remove completed prompts
85
+ **Prompt Lifecycle:**
86
+ 1. **Optimize**: `/clavix:improve` → Analyzes and improves your prompt
87
+ 2. **Review**: Agent reads `.clavix/outputs/prompts/*.md` to list saved prompts
88
+ 3. **Execute**: `/clavix:execute` → Implement when ready
89
+ 4. **Cleanup**: Agent deletes old prompt files from `.clavix/outputs/prompts/`
84
90
 
85
91
  ---
86
92
 
@@ -94,10 +100,10 @@ PRD Creation → Task Planning → Implementation → Archive
94
100
 
95
101
  **Detailed steps:**
96
102
 
97
- 1. **Planning Phase** - User creates PRD (conversational or direct)
98
- 2. **Task Preparation** - `clavix plan` transforms PRD into tasks.md
99
- 3. **Implementation Phase** - `clavix implement` executes tasks systematically
100
- 4. **Completion** - `clavix archive` archives completed work
103
+ 1. **Planning Phase** - `/clavix:prd` or `/clavix:start` `/clavix:summarize`
104
+ 2. **Task Preparation** - `/clavix:plan` transforms PRD into tasks.md
105
+ 3. **Implementation Phase** - `/clavix:implement` executes tasks systematically
106
+ 4. **Completion** - `/clavix:archive` archives completed work
101
107
 
102
108
  **Key principle:** Planning workflows create documents. Implementation workflows write code.
103
109
 
@@ -113,17 +119,17 @@ When analyzing prompts, consider these 5 dimensions:
113
119
  - **Completeness**: All specs provided (persona, format, tone, success criteria)?
114
120
  - **Actionability**: Can AI take immediate action?
115
121
 
116
- **Reference:** See `workflows/fast.md` for complete quality assessment patterns
122
+ **Reference:** See `workflows/improve.md` for complete quality assessment patterns
117
123
 
118
124
  ---
119
125
 
120
126
  ## 💡 Best Practices for GitHub Copilot
121
127
 
122
- 1. **Suggest appropriate workflow** - Fast for simple prompts, deep for complex, PRD for strategic
128
+ 1. **Suggest appropriate workflow** - `/clavix:improve` for prompts, `/clavix:prd` for strategic planning
123
129
  2. **Reference instruction files** - Point to `.clavix/instructions/workflows/*.md` instead of recreating steps
124
130
  3. **Respect mode boundaries** - Planning mode = no code, Implementation mode = write code
125
131
  4. **Use quality dimensions** - Apply 5-dimension assessment principles in responses
126
- 5. **Guide users to CLI** - Recommend appropriate `clavix` commands for their needs
132
+ 5. **Guide users to slash commands** - Recommend appropriate `/clavix:*` commands for their needs
127
133
 
128
134
  ---
129
135
 
@@ -132,17 +138,17 @@ When analyzing prompts, consider these 5 dimensions:
132
138
  ### ❌ Jumping to implementation during planning
133
139
  **Wrong:** User discusses feature → Copilot generates code immediately
134
140
 
135
- **Right:** User discusses feature → Suggest `clavix prd` or `clavix start` → Create planning docs first
141
+ **Right:** User discusses feature → Suggest `/clavix:prd` or `/clavix:start` → Create planning docs first
136
142
 
137
143
  ### ❌ Not suggesting Clavix workflows
138
144
  **Wrong:** User asks "How should I phrase this?" → Copilot provides generic advice
139
145
 
140
- **Right:** User asks "How should I phrase this?" → Suggest `clavix fast "<prompt>"` for quality assessment
146
+ **Right:** User asks "How should I phrase this?" → Suggest `/clavix:improve` for quality assessment
141
147
 
142
148
  ### ❌ Recreating workflow steps inline
143
149
  **Wrong:** Copilot explains entire PRD generation process in chat
144
150
 
145
- **Right:** Copilot references `.clavix/instructions/workflows/prd.md` and suggests running `clavix prd`
151
+ **Right:** Copilot references `.clavix/instructions/workflows/prd.md` and suggests running `/clavix:prd`
146
152
 
147
153
  ---
148
154
 
@@ -151,7 +157,7 @@ When analyzing prompts, consider these 5 dimensions:
151
157
  When users ask for help with prompts or requirements:
152
158
 
153
159
  1. **Detect need** - Identify if user needs planning, optimization, or implementation
154
- 2. **Suggest command** - Recommend appropriate `clavix` command
160
+ 2. **Suggest slash command** - Recommend appropriate `/clavix:*` command
155
161
  3. **Explain benefit** - Describe expected output and value
156
162
  4. **Help interpret** - Assist with understanding Clavix-generated outputs
157
163
  5. **Apply principles** - Use quality dimensions in your responses
@@ -159,10 +165,10 @@ When users ask for help with prompts or requirements:
159
165
  **Example flow:**
160
166
  ```
161
167
  User: "I want to build a dashboard but I'm not sure how to phrase the requirements"
162
- Copilot: "I suggest running `clavix start` to begin conversational requirements gathering.
168
+ Copilot: "I suggest running `/clavix:start` to begin conversational requirements gathering.
163
169
  This will help us explore your needs naturally, then we can extract structured requirements
164
- with `clavix summarize`. Alternatively, if you have a rough idea, try:
165
- clavix fast 'Build a dashboard for...' for quick optimization."
170
+ with `/clavix:summarize`. Alternatively, if you have a rough idea, try:
171
+ `/clavix:improve 'Build a dashboard for...'` for quick optimization."
166
172
  ```
167
173
 
168
174
  ---
@@ -20,9 +20,10 @@ Clavix workflows optimized for Octofriend's capabilities: model switching, multi
20
20
  - ❌ DO NOT implement features during these workflows
21
21
 
22
22
  **IMPLEMENTATION workflows** (CODE ALLOWED):
23
- - `/clavix:implement`, `/clavix:execute`, `clavix task-complete`
23
+ - `/clavix:implement`, `/clavix:execute`
24
24
  - Your role: Write code, execute tasks, implement features
25
25
  - ✅ DO implement code during these workflows
26
+ - Mark task completion by editing tasks.md directly (`- [ ]` → `- [x]`)
26
27
 
27
28
  See `.clavix/instructions/core/clavix-mode.md` for complete mode documentation.
28
29
 
@@ -115,35 +116,40 @@ Autofix handles edge cases gracefully - let it work.
115
116
 
116
117
  ---
117
118
 
118
- ## 📋 CLI Quick Reference
119
-
120
- | Command | Purpose | Output |
121
- |---------|---------|--------|
122
- | `clavix init` | Setup Clavix in project | `.clavix/config.json` |
123
- | `clavix prd` | Generate PRD through questions | `full-prd.md` + `quick-prd.md` |
124
- | `clavix fast "<prompt>"` | Quick prompt improvement (CLI auto-saves prompts; Slash commands require manual saving per template instructions) | Saved to `.clavix/outputs/prompts/fast/` |
125
- | `clavix deep "<prompt>"` | Comprehensive analysis (CLI auto-saves prompts; Slash commands require manual saving per template instructions) | Saved to `.clavix/outputs/prompts/deep/` |
126
- | `clavix execute [--latest]` | Execute prompt (interactive or --latest for most recent) | Implementation |
127
- | `clavix prompts list` | View all saved prompts with status | NEW, EXECUTED, OLD, STALE |
128
- | `clavix prompts clear` | Manage cleanup (--executed, --stale, --fast, --deep, --all) | Cleanup report |
129
- | `clavix start` | Conversational requirements | Session captured |
130
- | `clavix summarize` | Extract from conversation | `mini-prd.md` + prompts |
131
- | `clavix plan` | Generate tasks from PRD | `tasks.md` |
132
- | `clavix implement` | Execute tasks | Implementation + commits |
133
- | `clavix list` | Show sessions/outputs | List view |
134
- | `clavix update` | Refresh documentation | Updates managed files |
119
+ ## 📋 Clavix Commands (v5)
120
+
121
+ ### Setup Commands (CLI)
122
+ | Command | Purpose |
123
+ |---------|---------|
124
+ | `clavix init` | Initialize Clavix in a project |
125
+ | `clavix update` | Update templates after package update |
126
+ | `clavix config` | Manage configuration |
127
+ | `clavix version` | Show version |
128
+
129
+ ### Workflow Commands (Slash Commands)
130
+ | Slash Command | Purpose |
131
+ |---------------|---------|
132
+ | `/clavix:improve` | Optimize prompts (auto-selects depth) |
133
+ | `/clavix:prd` | Generate PRD through questions |
134
+ | `/clavix:plan` | Create task breakdown from PRD |
135
+ | `/clavix:implement` | Execute tasks with progress tracking |
136
+ | `/clavix:start` | Begin conversational session |
137
+ | `/clavix:summarize` | Extract requirements from conversation |
138
+ | `/clavix:execute` | Run saved prompts |
139
+ | `/clavix:verify` | Verify implementation |
140
+ | `/clavix:archive` | Archive completed projects |
135
141
 
136
142
  ---
137
143
 
138
144
  ## 🔄 Prompt Execution Workflow
139
145
 
140
- **When you have a saved prompt to execute prompt:**
146
+ **When you have a saved prompt to execute:**
141
147
 
142
- 1. **List available prompts**: `clavix prompts list` - See all saved prompts with status
143
- 2. **execute prompt**: `clavix execute --latest` - implement saved prompt interactively
144
- 3. **implement saved prompt**: Agent executes the optimized prompt and implements the feature
148
+ 1. **List available prompts**: List files in `.clavix/outputs/prompts/*.md`
149
+ 2. **Execute prompt**: `/clavix:execute` - implement saved prompt
150
+ 3. **Implement**: Agent reads the optimized prompt and implements the feature
145
151
 
146
- **Note:** CLI auto-saves prompts from fast/deep commands. Slash commands require manual saving per template instructions.
152
+ **Note:** Slash commands save prompts as `.md` files with frontmatter metadata.
147
153
 
148
154
  ---
149
155
 
@@ -151,26 +157,25 @@ Autofix handles edge cases gracefully - let it work.
151
157
 
152
158
  **Complete project flow:**
153
159
 
154
- 1. **Planning** (`clavix prd`)
160
+ 1. **Planning** (`/clavix:prd`)
155
161
  - Creates PRD (full + quick versions)
156
162
  - Saves to `.clavix/outputs/{project}/`
157
163
 
158
- 2. **Task Preparation** (`clavix plan`)
164
+ 2. **Task Preparation** (`/clavix:plan`)
159
165
  - Transforms PRD → curated tasks.md
160
166
  - Phase-based organization
161
167
 
162
- 3. **Implementation** (`clavix implement`)
168
+ 3. **Implementation** (`/clavix:implement`)
163
169
  - Agent executes tasks systematically
164
- - Uses `clavix task-complete` for progress
170
+ - Marks progress by editing tasks.md (`- [ ]` `- [x]`)
165
171
  - Optional git commit strategies
166
172
 
167
- 4. **Completion** (`clavix archive`)
173
+ 4. **Completion** (`/clavix:archive`)
168
174
  - Archives completed project
169
175
 
170
176
  **Alternative quick paths:**
171
- - **Quick improvement**: `clavix fast` → `clavix execute` → Done
172
- - **Deep analysis**: `clavix deep` → `clavix execute` → Done
173
- - **Conversational**: `clavix start` → `clavix summarize` → `clavix execute` → Done
177
+ - **Quick improvement**: `/clavix:improve` → `/clavix:execute` → Done
178
+ - **Conversational**: `/clavix:start` → `/clavix:summarize` → `/clavix:execute` → Done
174
179
 
175
180
  ---
176
181
 
@@ -189,9 +194,9 @@ Autofix handles edge cases gracefully - let it work.
189
194
  ## ⚠️ Common Mistakes
190
195
 
191
196
  ### ❌ Implementing during planning workflows
192
- **Wrong:** User runs `clavix prd`, you generate PRD then start building features
197
+ **Wrong:** User runs `/clavix:prd`, you generate PRD then start building features
193
198
 
194
- **Right:** User runs `clavix prd`, you generate PRD, save files, suggest `clavix plan` as next step
199
+ **Right:** User runs `/clavix:prd`, you generate PRD, save files, suggest `/clavix:plan` as next step
195
200
 
196
201
  ### ❌ Skipping file creation
197
202
  **Wrong:** Display optimized prompt, stop there
@@ -201,7 +206,7 @@ Autofix handles edge cases gracefully - let it work.
201
206
  ### ❌ Not referencing instruction files
202
207
  **Wrong:** Trying to remember workflow details from this file
203
208
 
204
- **Right:** "See `.clavix/instructions/workflows/fast.md` for complete workflow"
209
+ **Right:** "See `.clavix/instructions/workflows/improve.md` for complete workflow"
205
210
 
206
211
  ### ❌ Using wrong model for task
207
212
  **Wrong:** Using fast model for complex architectural planning
@@ -212,9 +217,9 @@ Autofix handles edge cases gracefully - let it work.
212
217
 
213
218
  ## 🆘 When in Doubt
214
219
 
215
- 1. **Check which command was run** - Determines your mode (planning vs implementation)
220
+ 1. **Check which slash command was run** - Determines your mode (planning vs implementation)
216
221
  2. **Reference instruction files** - They have complete step-by-step guidance
217
- 3. **Ask the user** - "Should I implement this (run `clavix implement`), or continue planning?"
222
+ 3. **Ask the user** - "Should I implement this (run `/clavix:implement`), or continue planning?"
218
223
  4. **Switch models** - Use thinking models for complex planning tasks
219
224
 
220
225
  ---
@@ -33,8 +33,7 @@ See `.clavix/instructions/core/clavix-mode.md` for complete mode documentation.
33
33
  For complete step-by-step workflows, see `.clavix/instructions/`:
34
34
  - `.clavix/instructions/workflows/start.md` - Conversational mode
35
35
  - `.clavix/instructions/workflows/summarize.md` - Extract requirements
36
- - `.clavix/instructions/workflows/fast.md` - Quick prompt optimization
37
- - `.clavix/instructions/workflows/deep.md` - Comprehensive analysis
36
+ - `.clavix/instructions/workflows/improve.md` - Prompt optimization (auto-depth)
38
37
  - `.clavix/instructions/workflows/prd.md` - PRD generation
39
38
  - `.clavix/instructions/troubleshooting/` - Common issues
40
39
 
@@ -47,25 +46,26 @@ For complete step-by-step workflows, see `.clavix/instructions/`:
47
46
  - Or run ad hoc: `npx clavix@latest init`
48
47
  - Verify setup: `clavix version`
49
48
 
50
- ### Common commands
51
- - `clavix init` interactive integration setup (regenerates docs & commands)
52
- - `clavix fast "<prompt>"` – quick quality assessment (5 dimensions) and improved prompt. CLI auto-saves; slash commands need manual saving per template instructions.
53
- - `clavix deep "<prompt>"` comprehensive analysis with alternatives, edge cases, and validation checklists. CLI auto-saves; slash commands need manual saving per template instructions.
54
- - `clavix execute [--latest]` execute saved prompts from fast/deep. Interactive selection or `--latest` for most recent.
55
- - `clavix prompts list` view all saved prompts with age/status (NEW, EXECUTED, OLD, STALE)
56
- - `clavix prompts clear [--executed|--stale|--fast|--deep]` cleanup executed or old prompts
57
- - `clavix prd` – answer focused questions to create full/quick PRDs
58
- - `clavix plan` – transform PRDs or sessions into task lists
59
- - `clavix implement [--commit-strategy=<type>]` execute tasks (git: per-task, per-5-tasks, per-phase, none [default])
60
- - `clavix task-complete <taskId>` – mark task completed with validation and optional git commit
61
- - `clavix start` capture requirement conversations in Warp
62
- - `clavix summarize [session-id]` extract mini PRDs and optimized prompts
63
- - `clavix list` list sessions/outputs (`--sessions`, `--outputs`, `--archived`)
64
- - `clavix show [session-id]` inspect sessions or use `--output <project>`
65
- - `clavix archive [project]` archive projects (or `--restore` to bring them back)
66
- - `clavix config get|set|edit|reset` manage `.clavix/config.json`
67
- - `clavix update` refresh documentation/commands (`--docs-only`, `--commands-only`)
68
- - `clavix version` print installed CLI version
49
+ ### CLI Commands (v5)
50
+ | Command | Purpose |
51
+ |---------|---------|
52
+ | `clavix init` | Initialize Clavix in a project |
53
+ | `clavix update` | Update templates after package update |
54
+ | `clavix config` | Manage configuration |
55
+ | `clavix version` | Show version |
56
+
57
+ ### Slash Commands (Workflows)
58
+ | Slash Command | Purpose |
59
+ |---------------|---------|
60
+ | `/clavix:improve` | Optimize prompts (auto-selects depth) |
61
+ | `/clavix:prd` | Generate PRD through guided questions |
62
+ | `/clavix:plan` | Create task breakdown from PRD |
63
+ | `/clavix:implement` | Execute tasks with progress tracking |
64
+ | `/clavix:start` | Begin conversational session |
65
+ | `/clavix:summarize` | Extract requirements from conversation |
66
+ | `/clavix:execute` | Run saved prompts |
67
+ | `/clavix:verify` | Verify implementation |
68
+ | `/clavix:archive` | Archive completed projects |
69
69
 
70
70
  ### Outputs
71
71
  - Project artifacts live under `.clavix/outputs/<project>/`
@@ -86,14 +86,14 @@ For complete step-by-step workflows, see `.clavix/instructions/`:
86
86
  ### ⚠️ Common Mistakes
87
87
 
88
88
  #### ❌ Jumping to implementation during planning
89
- **Wrong:** User runs `clavix prd`, you generate PRD then start building features
89
+ **Wrong:** User runs `/clavix:prd`, you generate PRD then start building features
90
90
 
91
- **Right:** User runs `clavix prd`, you generate PRD, save files, suggest `clavix plan` as next step
91
+ **Right:** User runs `/clavix:prd`, you generate PRD, save files, suggest `/clavix:plan` as next step
92
92
 
93
93
  #### ❌ Not referencing instruction files
94
94
  **Wrong:** Trying to remember workflow details from this file
95
95
 
96
- **Right:** "See `.clavix/instructions/workflows/fast.md` for complete workflow"
96
+ **Right:** "See `.clavix/instructions/workflows/improve.md` for complete workflow"
97
97
 
98
98
  ---
99
99
 
@@ -137,12 +137,15 @@ PRD Creation → Task Planning → Implementation → Verification → Archive
137
137
  | `/clavix:verify` | Verification | Context-dependent |
138
138
  | `/clavix:archive` | Management | ✗ NO |
139
139
 
140
- ### Agent-Only Commands (No Slash Command)
140
+ ### Agent Operations (v5 Agentic-First)
141
141
 
142
- | CLI Command | Purpose | Invoked By |
143
- |-------------|---------|------------|
144
- | `clavix analyze` | Internal prompt analysis | `improve` workflow |
145
- | `clavix task-complete` | Mark task done | `implement` workflow |
142
+ In v5, agents use native tools (Write, Edit, Bash) instead of CLI commands:
143
+
144
+ | Operation | How Agent Performs It |
145
+ |-----------|----------------------|
146
+ | Save prompt | Use Write tool to create `.clavix/outputs/prompts/<id>.md` |
147
+ | Mark task done | Use Edit tool to change `- [ ]` to `- [x]` in tasks.md |
148
+ | Archive project | Use Bash tool to move directory to archive/ |
146
149
 
147
150
  ---
148
151