clavix 2.1.2 → 2.2.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 (130) hide show
  1. package/README.md +1 -1
  2. package/dist/templates/slash-commands/amp/archive.md +130 -3
  3. package/dist/templates/slash-commands/amp/deep.md +70 -10
  4. package/dist/templates/slash-commands/amp/fast.md +62 -15
  5. package/dist/templates/slash-commands/amp/implement.md +147 -2
  6. package/dist/templates/slash-commands/amp/plan.md +103 -7
  7. package/dist/templates/slash-commands/amp/prd.md +111 -13
  8. package/dist/templates/slash-commands/amp/start.md +77 -1
  9. package/dist/templates/slash-commands/amp/summarize.md +101 -21
  10. package/dist/templates/slash-commands/augment/archive.md +131 -4
  11. package/dist/templates/slash-commands/augment/deep.md +71 -11
  12. package/dist/templates/slash-commands/augment/fast.md +63 -16
  13. package/dist/templates/slash-commands/augment/implement.md +148 -3
  14. package/dist/templates/slash-commands/augment/plan.md +104 -8
  15. package/dist/templates/slash-commands/augment/prd.md +106 -8
  16. package/dist/templates/slash-commands/augment/start.md +78 -2
  17. package/dist/templates/slash-commands/augment/summarize.md +101 -21
  18. package/dist/templates/slash-commands/claude-code/archive.md +130 -3
  19. package/dist/templates/slash-commands/claude-code/deep.md +70 -10
  20. package/dist/templates/slash-commands/claude-code/fast.md +62 -15
  21. package/dist/templates/slash-commands/claude-code/implement.md +147 -2
  22. package/dist/templates/slash-commands/claude-code/plan.md +103 -7
  23. package/dist/templates/slash-commands/claude-code/prd.md +111 -13
  24. package/dist/templates/slash-commands/claude-code/start.md +77 -1
  25. package/dist/templates/slash-commands/claude-code/summarize.md +101 -21
  26. package/dist/templates/slash-commands/cline/archive.md +130 -3
  27. package/dist/templates/slash-commands/cline/deep.md +70 -10
  28. package/dist/templates/slash-commands/cline/fast.md +62 -15
  29. package/dist/templates/slash-commands/cline/implement.md +147 -2
  30. package/dist/templates/slash-commands/cline/plan.md +103 -7
  31. package/dist/templates/slash-commands/cline/prd.md +111 -13
  32. package/dist/templates/slash-commands/cline/start.md +77 -1
  33. package/dist/templates/slash-commands/cline/summarize.md +101 -21
  34. package/dist/templates/slash-commands/codebuddy/archive.md +130 -3
  35. package/dist/templates/slash-commands/codebuddy/deep.md +70 -10
  36. package/dist/templates/slash-commands/codebuddy/fast.md +62 -15
  37. package/dist/templates/slash-commands/codebuddy/implement.md +147 -2
  38. package/dist/templates/slash-commands/codebuddy/plan.md +103 -7
  39. package/dist/templates/slash-commands/codebuddy/prd.md +111 -13
  40. package/dist/templates/slash-commands/codebuddy/start.md +77 -1
  41. package/dist/templates/slash-commands/codebuddy/summarize.md +101 -21
  42. package/dist/templates/slash-commands/codex/archive.md +130 -3
  43. package/dist/templates/slash-commands/codex/deep.md +70 -10
  44. package/dist/templates/slash-commands/codex/fast.md +62 -15
  45. package/dist/templates/slash-commands/codex/implement.md +147 -2
  46. package/dist/templates/slash-commands/codex/plan.md +103 -7
  47. package/dist/templates/slash-commands/codex/prd.md +111 -13
  48. package/dist/templates/slash-commands/codex/start.md +77 -1
  49. package/dist/templates/slash-commands/codex/summarize.md +101 -21
  50. package/dist/templates/slash-commands/copilot/archive.agent.md +130 -3
  51. package/dist/templates/slash-commands/copilot/deep.agent.md +70 -10
  52. package/dist/templates/slash-commands/copilot/fast.agent.md +62 -15
  53. package/dist/templates/slash-commands/copilot/implement.agent.md +147 -2
  54. package/dist/templates/slash-commands/copilot/plan.agent.md +114 -10
  55. package/dist/templates/slash-commands/copilot/prd.agent.md +111 -13
  56. package/dist/templates/slash-commands/copilot/start.agent.md +77 -1
  57. package/dist/templates/slash-commands/copilot/summarize.agent.md +101 -21
  58. package/dist/templates/slash-commands/crush/archive.md +130 -3
  59. package/dist/templates/slash-commands/crush/deep.md +70 -10
  60. package/dist/templates/slash-commands/crush/fast.md +62 -15
  61. package/dist/templates/slash-commands/crush/implement.md +147 -2
  62. package/dist/templates/slash-commands/crush/plan.md +103 -7
  63. package/dist/templates/slash-commands/crush/prd.md +111 -13
  64. package/dist/templates/slash-commands/crush/start.md +77 -1
  65. package/dist/templates/slash-commands/crush/summarize.md +101 -21
  66. package/dist/templates/slash-commands/cursor/archive.md +130 -3
  67. package/dist/templates/slash-commands/cursor/deep.md +70 -10
  68. package/dist/templates/slash-commands/cursor/fast.md +62 -15
  69. package/dist/templates/slash-commands/cursor/implement.md +147 -2
  70. package/dist/templates/slash-commands/cursor/plan.md +103 -7
  71. package/dist/templates/slash-commands/cursor/prd.md +111 -13
  72. package/dist/templates/slash-commands/cursor/start.md +77 -1
  73. package/dist/templates/slash-commands/cursor/summarize.md +101 -21
  74. package/dist/templates/slash-commands/droid/archive.md +130 -3
  75. package/dist/templates/slash-commands/droid/deep.md +70 -10
  76. package/dist/templates/slash-commands/droid/fast.md +62 -15
  77. package/dist/templates/slash-commands/droid/implement.md +147 -2
  78. package/dist/templates/slash-commands/droid/plan.md +103 -7
  79. package/dist/templates/slash-commands/droid/prd.md +111 -13
  80. package/dist/templates/slash-commands/droid/start.md +77 -1
  81. package/dist/templates/slash-commands/droid/summarize.md +101 -21
  82. package/dist/templates/slash-commands/gemini/archive.toml +132 -4
  83. package/dist/templates/slash-commands/gemini/deep.toml +72 -11
  84. package/dist/templates/slash-commands/gemini/fast.toml +64 -16
  85. package/dist/templates/slash-commands/gemini/implement.toml +149 -3
  86. package/dist/templates/slash-commands/gemini/plan.toml +116 -13
  87. package/dist/templates/slash-commands/gemini/prd.toml +107 -8
  88. package/dist/templates/slash-commands/gemini/start.toml +79 -2
  89. package/dist/templates/slash-commands/gemini/summarize.toml +102 -21
  90. package/dist/templates/slash-commands/kilocode/archive.md +130 -3
  91. package/dist/templates/slash-commands/kilocode/deep.md +70 -10
  92. package/dist/templates/slash-commands/kilocode/fast.md +62 -15
  93. package/dist/templates/slash-commands/kilocode/implement.md +147 -2
  94. package/dist/templates/slash-commands/kilocode/plan.md +103 -7
  95. package/dist/templates/slash-commands/kilocode/prd.md +111 -13
  96. package/dist/templates/slash-commands/kilocode/start.md +77 -1
  97. package/dist/templates/slash-commands/kilocode/summarize.md +101 -21
  98. package/dist/templates/slash-commands/opencode/archive.md +130 -3
  99. package/dist/templates/slash-commands/opencode/deep.md +70 -10
  100. package/dist/templates/slash-commands/opencode/fast.md +62 -15
  101. package/dist/templates/slash-commands/opencode/implement.md +147 -2
  102. package/dist/templates/slash-commands/opencode/plan.md +103 -7
  103. package/dist/templates/slash-commands/opencode/prd.md +111 -13
  104. package/dist/templates/slash-commands/opencode/start.md +77 -1
  105. package/dist/templates/slash-commands/opencode/summarize.md +101 -21
  106. package/dist/templates/slash-commands/qwen/archive.toml +132 -4
  107. package/dist/templates/slash-commands/qwen/deep.toml +72 -11
  108. package/dist/templates/slash-commands/qwen/fast.toml +64 -16
  109. package/dist/templates/slash-commands/qwen/implement.toml +149 -3
  110. package/dist/templates/slash-commands/qwen/plan.toml +116 -13
  111. package/dist/templates/slash-commands/qwen/prd.toml +107 -8
  112. package/dist/templates/slash-commands/qwen/start.toml +79 -2
  113. package/dist/templates/slash-commands/qwen/summarize.toml +102 -21
  114. package/dist/templates/slash-commands/roocode/archive.md +130 -3
  115. package/dist/templates/slash-commands/roocode/deep.md +70 -10
  116. package/dist/templates/slash-commands/roocode/fast.md +62 -15
  117. package/dist/templates/slash-commands/roocode/implement.md +147 -2
  118. package/dist/templates/slash-commands/roocode/plan.md +103 -7
  119. package/dist/templates/slash-commands/roocode/prd.md +111 -13
  120. package/dist/templates/slash-commands/roocode/start.md +77 -1
  121. package/dist/templates/slash-commands/roocode/summarize.md +101 -21
  122. package/dist/templates/slash-commands/windsurf/archive.md +130 -3
  123. package/dist/templates/slash-commands/windsurf/deep.md +70 -10
  124. package/dist/templates/slash-commands/windsurf/fast.md +62 -15
  125. package/dist/templates/slash-commands/windsurf/implement.md +147 -2
  126. package/dist/templates/slash-commands/windsurf/plan.md +103 -7
  127. package/dist/templates/slash-commands/windsurf/prd.md +111 -13
  128. package/dist/templates/slash-commands/windsurf/start.md +77 -1
  129. package/dist/templates/slash-commands/windsurf/summarize.md +101 -21
  130. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
1
  description = "Archive completed PRD projects"
2
2
  prompt = """
3
+
3
4
  # Clavix Archive - PRD Project Archival
4
5
 
5
6
  You are helping the user archive completed PRD projects to keep their workspace organized.
@@ -44,7 +45,33 @@ You are helping the user archive completed PRD projects to keep their workspace
44
45
  - User wants to archive work-in-progress
45
46
  - Tasks are incomplete but project is done
46
47
 
47
- 5. **List Archived Projects**:
48
+ 5. **Delete Project (Permanent Removal)**: **DESTRUCTIVE ACTION**
49
+ ```bash
50
+ clavix archive [project-name] --delete
51
+ ```
52
+
53
+ **WARNING**: This PERMANENTLY deletes the project. Cannot be restored.
54
+
55
+ **When to delete vs archive:**
56
+ - **DELETE**: Failed experiments, duplicate projects, test/demo data, abandoned prototypes with no value
57
+ - **ARCHIVE**: Completed work, incomplete but potentially useful work, anything you might reference later
58
+
59
+ **Delete decision tree:**
60
+ ```
61
+ Is this a failed experiment with no learning value? → DELETE
62
+ Is this a duplicate/test project with no unique info? → DELETE
63
+ Might you need to reference this code later? → ARCHIVE
64
+ Could this be useful for learning/reference? → ARCHIVE
65
+ Are you unsure? → ARCHIVE (safe default)
66
+ ```
67
+
68
+ **Safety confirmation required:**
69
+ - Shows project details and task status
70
+ - Requires typing project name to confirm
71
+ - Warns about permanent deletion
72
+ - Lists what will be permanently deleted
73
+
74
+ 6. **List Archived Projects**:
48
75
  ```bash
49
76
  clavix archive --list
50
77
  ```
@@ -60,14 +87,14 @@ You are helping the user archive completed PRD projects to keep their workspace
60
87
 
61
88
  ## When to Archive
62
89
 
63
- **Good times to archive**:
90
+ **Good times to archive:**
64
91
  - All implementation tasks are completed (`tasks.md` shows 100%)
65
92
  - Project has been deployed/shipped to production
66
93
  - Feature is complete and no more work planned
67
94
  - User explicitly requests archival
68
95
  - Old/abandoned projects that won't be continued
69
96
 
70
- **Don't archive when**:
97
+ **Don't archive when:**
71
98
  - Tasks are still in progress (unless using --force)
72
99
  - Project is actively being worked on
73
100
  - Future enhancements are planned in current tasks
@@ -128,6 +155,29 @@ You: "I'll restore it from the archive"
128
155
  Result: Project moved back to .clavix/outputs/user-authentication-system/
129
156
  ```
130
157
 
158
+ ### Workflow 4: Delete Failed Experiment
159
+ ```
160
+ User: "I have a test project 'api-experiment-1' that I don't need anymore"
161
+ You: "Is this something you might reference later, or can it be permanently deleted?"
162
+
163
+ User: "It was just a quick test, no value. Delete it."
164
+ You: "This will permanently delete the project. I'll run the delete command."
165
+
166
+ Run: clavix archive api-experiment-1 --delete
167
+
168
+ System shows:
169
+ Project: api-experiment-1
170
+ Tasks: 3/5 completed
171
+ Files: full-prd.md, quick-prd.md, tasks.md
172
+
173
+ WARNING: This action is PERMANENT and CANNOT be undone.
174
+ Type the project name to confirm deletion: _
175
+
176
+ User types: api-experiment-1
177
+
178
+ Result: Project permanently deleted from .clavix/outputs/api-experiment-1/
179
+ ```
180
+
131
181
  ## AI Agent Guidelines
132
182
 
133
183
  When user mentions archiving or cleaning up projects:
@@ -152,6 +202,28 @@ When user mentions archiving or cleaning up projects:
152
202
  - Use `clavix archive --list` to show what's archived
153
203
  - Offer to restore if needed
154
204
 
205
+ 5. **Handle delete requests carefully**:
206
+ - Always ask if they want to delete or archive
207
+ - Explain that delete is permanent and irreversible
208
+ - Suggest archive as the safer default
209
+ - Use decision tree to help user decide
210
+ - Only proceed with `--delete` after clear confirmation
211
+ - Double-check it's truly no-value content (failed experiments, duplicates)
212
+
213
+ ## Workflow Navigation
214
+
215
+ **You are here:** Archive (Project Cleanup)
216
+
217
+ **Common workflows:**
218
+ - **Complete workflow**: `/clavix:implement` → [all tasks done] → `/clavix:archive` → Clean workspace
219
+ - **Review and archive**: `/clavix:archive` → [select completed project] → Archive
220
+ - **Restore old work**: `/clavix:archive --list` → `/clavix:archive --restore [project]` → Resume
221
+
222
+ **Related commands:**
223
+ - `/clavix:implement` - Complete remaining tasks before archiving
224
+ - `/clavix:plan` - Review task completion status
225
+ - `/clavix:prd` - Start new project after archiving old one
226
+
155
227
  ## Tips
156
228
 
157
229
  - Archive keeps your active projects list clean and focused
@@ -159,4 +231,60 @@ When user mentions archiving or cleaning up projects:
159
231
  - Archive is searchable - you can still `grep` or find files in archive/
160
232
  - Regular archiving improves `/clavix:plan` and `/clavix:implement` performance
161
233
  - Use `--list` regularly to know what's been archived
162
- """
234
+
235
+ ## Troubleshooting
236
+
237
+ ### Issue: No projects available to archive
238
+ **Cause**: No projects in `.clavix/outputs/` OR all already archived
239
+ **Solution**:
240
+ - Run `clavix archive --list` to see archived projects
241
+ - Check `.clavix/outputs/` for active projects
242
+ - If none exist, no action needed
243
+
244
+ ### Issue: Trying to archive project with incomplete tasks
245
+ **Cause**: User wants to archive but tasks aren't 100% done
246
+ **Solution** (inline):
247
+ - Warn: "Project has X incomplete tasks. Archive anyway?"
248
+ - Show which tasks are incomplete
249
+ - Suggest `--force` flag if user confirms
250
+ - Recommend completing tasks first if they're actually unfinished (not scope-changed)
251
+
252
+ ### Issue: Cannot restore archived project (name conflict)
253
+ **Cause**: Project with same name already exists in active outputs
254
+ **Solution**:
255
+ - Error: "Project '[name]' already exists in active outputs"
256
+ - Suggest renaming one of them
257
+ - Or archive the active one first, then restore
258
+ - Or restore to different name (if CLI supports it)
259
+
260
+ ### Issue: Unsure whether to delete or archive
261
+ **Cause**: User wants to clean up but uncertain about permanence
262
+ **Solution**:
263
+ - Use the decision tree in template
264
+ - Default recommendation: ARCHIVE (safer)
265
+ - Only suggest delete for: duplicates, failed experiments, test data
266
+ - Remind: Archive is free, disk space is cheap, regret is expensive
267
+
268
+ ### Issue: Accidentally deleted project (used --delete instead of archive)
269
+ **Cause**: User error or misunderstanding of --delete flag
270
+ **Solution**:
271
+ - Cannot be recovered from Clavix
272
+ - Check if git history exists (if code was committed)
273
+ - Check if user has backups
274
+ - Learn: Use archive by default, delete only when absolutely certain
275
+
276
+ ### Issue: Archive directory getting too large
277
+ **Cause**: Many archived projects accumulating
278
+ **Solution**:
279
+ - Archive is meant to grow - this is normal
280
+ - Projects in archive don't affect performance
281
+ - If truly concerned: Review archive, delete ancient/irrelevant projects
282
+ - Or move very old archives to external backup storage
283
+
284
+ ### Issue: Archived project but forgot what it was about
285
+ **Cause**: No naming convention or time passed
286
+ **Solution**:
287
+ - Read PRD in archived project: `.clavix/outputs/archive/[project]/full-prd.md`
288
+ - PRD contains problem, goal, and features
289
+ - Consider better naming conventions: date-feature format (e.g., "2024-01-user-auth")
290
+ """
@@ -1,5 +1,6 @@
1
1
  description = "Full CLEAR framework analysis (C, L, E, A, R components)"
2
2
  prompt = """
3
+
3
4
  # Clavix Deep Mode - Full CLEAR Framework Analysis
4
5
 
5
6
  You are helping the user perform a comprehensive deep analysis using the full CLEAR Framework (all 5 components: Concise, Logical, Explicit, Adaptive, Reflective).
@@ -28,21 +29,37 @@ An academically-validated prompt engineering framework by Dr. Leo Lo (University
28
29
  - **Adaptiveness [A]**: Multiple variations and approaches
29
30
  - **Reflectiveness [R]**: Full validation and edge case analysis
30
31
 
31
- 3. **Generate Comprehensive Output**:
32
+ 3. **Strategic Scope Detection** (before detailed analysis):
33
+
34
+ **Check for strategic concerns** by identifying keywords/themes:
35
+ - **Architecture**: system design, microservices, monolith, architecture patterns, scalability patterns
36
+ - **Security**: authentication, authorization, encryption, security, OWASP, vulnerabilities, threat model
37
+ - **Scalability**: load balancing, caching, database scaling, performance optimization, high availability
38
+ - **Infrastructure**: deployment, CI/CD, DevOps, cloud infrastructure, containers, orchestration
39
+ - **Business Impact**: ROI, business metrics, KPIs, stakeholder impact, market analysis
40
+
41
+ **If 3+ strategic keywords detected**:
42
+ Ask the user: "I notice this involves strategic decisions around [detected themes]. These topics benefit from PRD-style planning with business context and architectural considerations. Would you like to:
43
+ - Switch to `/clavix:prd` for comprehensive strategic planning (recommended)
44
+ - Continue with deep mode for prompt-level analysis only"
45
+
46
+ **If user chooses to continue**, proceed with deep analysis but remind them at the end that `/clavix:prd` is available for strategic planning.
47
+
48
+ 4. **Generate Comprehensive Output**:
32
49
 
33
- a. **📊 CLEAR Assessment** (all 5 components with scores)
50
+ a. **CLEAR Assessment** (all 5 components with scores)
34
51
 
35
- b. **✨ CLEAR-Optimized Prompt** (applying all components)
52
+ b. **CLEAR-Optimized Prompt** (applying all components)
36
53
 
37
- c. **📝 CLEAR Changes Made** (labeled with [C], [L], [E], [A], [R])
54
+ c. **CLEAR Changes Made** (labeled with [C], [L], [E], [A], [R])
38
55
 
39
- d. **🔄 Adaptive Variations [A]**:
56
+ d. **Adaptive Variations [A]**:
40
57
  - 2-3 alternative phrasings
41
58
  - Alternative structures (user story, job story, structured)
42
59
  - Temperature recommendations
43
60
  - Explain when each approach is most appropriate
44
61
 
45
- e. **🤔 Reflection Checklist [R]**:
62
+ e. **Reflection Checklist [R]**:
46
63
  - Validation steps for accuracy
47
64
  - Edge cases to consider
48
65
  - "What could go wrong" analysis
@@ -59,14 +76,14 @@ An academically-validated prompt engineering framework by Dr. Leo Lo (University
59
76
 
60
77
  ## Deep Mode Features
61
78
 
62
- Include (Full CLEAR Framework):
79
+ **Include (Full CLEAR Framework):**
63
80
  - **[C, L, E]**: All fast mode analysis (conciseness, logic, explicitness)
64
81
  - **[A] Adaptive**: Alternative phrasings, structures, flexibility, temperature
65
82
  - **[R] Reflective**: Validation checklist, edge cases, quality criteria, fact-checking
66
83
  - **CLEAR Assessment**: All 5 component scores
67
84
  - **CLEAR-labeled Changes**: Educational feedback showing which component improved what
68
85
 
69
- Do NOT include (these belong in `/clavix:prd`):
86
+ **Do NOT include (these belong in `/clavix:prd`):**
70
87
  - System architecture recommendations
71
88
  - Security best practices
72
89
  - Scalability strategy
@@ -98,12 +115,12 @@ Output:
98
115
  - How to handle session expiration during active use?
99
116
 
100
117
  ## Implementation Examples
101
- Good:
118
+ **Good:**
102
119
  - Prompt specifies authentication method, error handling, and accessibility requirements
103
120
  - Includes context about existing auth system and integration points
104
121
  - Defines measurable success criteria (load time, accessibility score)
105
122
 
106
- Bad:
123
+ **Bad:**
107
124
  - "Make a login page" - no context, constraints, or success criteria
108
125
  - Missing technical stack and integration requirements
109
126
  - No consideration of security or user experience
@@ -134,6 +151,20 @@ Output:
134
151
  - **Deep mode** (`/clavix:deep`): Full CLEAR (C, L, E, A, R) - comprehensive analysis with alternatives and validation
135
152
  - **PRD mode** (`/clavix:prd`): CLEAR-validated PRD generation - strategic planning with architecture decisions
136
153
 
154
+ ## Workflow Navigation
155
+
156
+ **You are here:** Deep Mode (Comprehensive CLEAR Analysis)
157
+
158
+ **Common workflows:**
159
+ - **Thorough analysis**: `/clavix:deep` → Use optimized prompt + alternatives
160
+ - **Escalate to strategic**: `/clavix:deep` → (detects strategic scope) → `/clavix:prd` → Plan → Implement → Archive
161
+ - **From fast mode**: `/clavix:fast` → (suggests) `/clavix:deep` → Full analysis with A & R components
162
+
163
+ **Related commands:**
164
+ - `/clavix:fast` - Quick CLEAR improvements (C, L, E only)
165
+ - `/clavix:prd` - Strategic PRD generation for architecture/business decisions
166
+ - `/clavix:start` - Conversational mode for exploring unclear requirements
167
+
137
168
  ## Tips
138
169
 
139
170
  - **Apply full CLEAR framework** systematically: all 5 components
@@ -142,4 +173,34 @@ Output:
142
173
  - Use **[A] Adaptive** to explore alternative approaches
143
174
  - Use **[R] Reflective** to identify edge cases and validation needs
144
175
  - For architecture, security, and scalability, recommend `/clavix:prd`
145
- """
176
+
177
+ ## Troubleshooting
178
+
179
+ ### Issue: Strategic scope detected but user wants to continue with deep mode
180
+ **Cause**: User prefers deep analysis over PRD generation
181
+ **Solution**:
182
+ - Proceed with deep mode as requested
183
+ - Remind at end that `/clavix:prd` is available for strategic planning
184
+ - Focus on prompt-level CLEAR analysis, exclude architecture recommendations
185
+
186
+ ### Issue: Too many alternative variations making output overwhelming
187
+ **Cause**: Adaptive component generating many options
188
+ **Solution**:
189
+ - Limit to 2-3 most distinct alternatives
190
+ - Focus on meaningfully different approaches (not minor wording changes)
191
+ - Group similar variations together
192
+
193
+ ### Issue: Reflective validation finding too many edge cases
194
+ **Cause**: Complex prompt with many potential failure modes
195
+ **Solution**:
196
+ - Prioritize most likely or highest-impact edge cases
197
+ - Group related edge cases
198
+ - Suggest documenting all edge cases in PRD for complex projects
199
+
200
+ ### Issue: Deep analysis still feels insufficient for complex project
201
+ **Cause**: Project needs strategic planning, not just prompt analysis
202
+ **Solution**:
203
+ - Switch to `/clavix:prd` for comprehensive planning
204
+ - Deep mode is for prompts, PRD mode is for projects
205
+ - Use PRD workflow: PRD → Plan → Implement
206
+ """
@@ -1,5 +1,6 @@
1
1
  description = "CLEAR-guided quick improvements (C, L, E components)"
2
2
  prompt = """
3
+
3
4
  # Clavix Fast Mode - CLEAR Framework Quick Improvement
4
5
 
5
6
  You are helping the user improve their prompt using Clavix's fast mode, which applies the CLEAR Framework (Concise, Logical, Explicit components) with smart triage.
@@ -26,15 +27,25 @@ An academically-validated prompt engineering framework by Dr. Leo Lo (University
26
27
  - **Logic [L]**: Check sequencing and flow - is information presented coherently?
27
28
  - **Explicitness [E]**: Verify specifications - persona, output format, tone, success criteria
28
29
 
29
- 3. **CLEAR-Aware Smart Triage**: Check if the prompt needs deep analysis:
30
- - Is it less than 20 characters?
31
- - Missing 3+ critical elements (context, tech stack, success criteria, user needs, expected output)?
32
- - Contains vague scope words ("app", "system", "project") without context?
33
- - **Low CLEAR scores** (Conciseness < 60%, Logic < 60%, Explicitness < 50%)
30
+ 3. **CLEAR-Aware Smart Triage**: Use multi-factor content-quality assessment to determine if deep analysis is needed:
31
+
32
+ **Primary Indicators** (CLEAR scores - most important):
33
+ - **Low CLEAR scores**: Conciseness < 60%, Logic < 60%, or Explicitness < 50%
34
+
35
+ **Secondary Indicators** (content quality):
36
+ - **Missing critical elements**: 3+ missing from (context, tech stack, success criteria, user needs, expected output)
37
+ - **Scope clarity**: Contains vague words ("app", "system", "project", "feature") without defining what/who/why
38
+ - **Requirement completeness**: Lacks actionable requirements or measurable outcomes
39
+ - **Context depth**: Extremely brief (<15 words) OR overly verbose (>100 words without structure)
34
40
 
35
- If YES to any: **Recommend `/clavix:deep` instead** and explain which CLEAR component needs deeper analysis. Ask the user if they want to:
36
- - Switch to deep mode (recommended)
37
- - Continue with fast mode (at their own risk)
41
+ **Escalation Decision**:
42
+ - If **Low CLEAR scores** + **2+ Secondary Indicators**: **Strongly recommend `/clavix:deep`**
43
+ - If **Low CLEAR scores** only: **Suggest `/clavix:deep`** but can proceed with fast mode
44
+ - Explain which CLEAR component needs deeper analysis and why
45
+
46
+ Ask the user:
47
+ - Switch to deep mode (recommended when strongly recommended)
48
+ - Continue with fast mode (acceptable for suggestion-level, but at their own risk for strong recommendation)
38
49
 
39
50
  4. Generate a **CLEAR-optimized** structured prompt with these sections:
40
51
  **Objective**: Clear, specific goal
@@ -52,13 +63,13 @@ An academically-validated prompt engineering framework by Dr. Leo Lo (University
52
63
 
53
64
  ## Fast Mode Features
54
65
 
55
- Include (CLEAR C, L, E):
66
+ **Include (CLEAR C, L, E):**
56
67
  - **CLEAR Assessment** (Conciseness, Logic, Explicitness scores with issues)
57
68
  - Single CLEAR-optimized improved prompt
58
69
  - **CLEAR Changes Made** (labeled with [C], [L], [E] components)
59
70
  - Recommendation to use deep mode for Adaptive & Reflective components
60
71
 
61
- Skip (use `/clavix:deep` instead):
72
+ **Skip (use `/clavix:deep` instead):**
62
73
  - **[A] Adaptive**: Alternative phrasings, structures, flexibility
63
74
  - **[R] Reflective**: Validation checklists, edge cases, quality criteria
64
75
  - Strategic analysis (architecture, security - that's for `/clavix:prd`)
@@ -69,9 +80,9 @@ If user provides: "Please could you maybe help me create a login page?"
69
80
 
70
81
  Output:
71
82
  ```
72
- ## 🎯 CLEAR Analysis (Fast Mode)
83
+ ## CLEAR Analysis (Fast Mode)
73
84
 
74
- ### 📊 CLEAR Framework Assessment:
85
+ ### CLEAR Framework Assessment:
75
86
 
76
87
  [C] Conciseness: 45%
77
88
  • 4 unnecessary pleasantries detected ("Please", "could you", "maybe", "help me")
@@ -87,11 +98,11 @@ Output:
87
98
 
88
99
  Overall CLEAR Score: 51% (needs-improvement)
89
100
 
90
- 💡 Recommendation:
101
+ Recommendation:
91
102
  For Adaptive variations (A) and Reflective validation (R), use:
92
103
  clavix deep "<your prompt>"
93
104
 
94
- ### CLEAR-Optimized Prompt:
105
+ ### CLEAR-Optimized Prompt:
95
106
 
96
107
  Objective: Build a secure user authentication login page
97
108
 
@@ -116,13 +127,27 @@ Success Criteria:
116
127
  - Invalid credentials show appropriate errors
117
128
  - Page is accessible via keyboard navigation
118
129
 
119
- ### 📝 CLEAR Changes Made:
130
+ ### CLEAR Changes Made:
120
131
 
121
132
  [C] Removed 4 pleasantries ("Please", "could you", "maybe", "help me"), reduced from 11 words to core intent
122
133
  [L] Structured logical flow: Objective → Requirements → Technical Constraints → Expected Output → Success Criteria
123
134
  [E] Added explicit specifications: React TypeScript persona, component output format, production-ready tone, accessibility criteria
124
135
  ```
125
136
 
137
+ ## Workflow Navigation
138
+
139
+ **You are here:** Fast Mode (Quick CLEAR Improvement)
140
+
141
+ **Common workflows:**
142
+ - **Quick cleanup**: `/clavix:fast` → Use improved prompt
143
+ - **Need more depth**: `/clavix:fast` → (suggests) `/clavix:deep` → Comprehensive analysis
144
+ - **Strategic planning**: `/clavix:fast` → (suggests) `/clavix:prd` → Plan → Implement → Archive
145
+
146
+ **Related commands:**
147
+ - `/clavix:deep` - Full CLEAR analysis (all 5 components: C, L, E, A, R)
148
+ - `/clavix:prd` - Generate PRD for strategic planning
149
+ - `/clavix:start` - Conversational exploration before prompting
150
+
126
151
  ## Tips
127
152
 
128
153
  - **Apply CLEAR framework** systematically: C, L, E components
@@ -131,4 +156,27 @@ Success Criteria:
131
156
  - For comprehensive analysis with [A] and [R], recommend `/clavix:deep`
132
157
  - For strategic planning, recommend `/clavix:prd`
133
158
  - Focus on making prompts **CLEAR** quickly
134
- """
159
+
160
+ ## Troubleshooting
161
+
162
+ ### Issue: Triage keeps recommending deep mode
163
+ **Cause**: Prompt has low CLEAR scores + multiple secondary indicators
164
+ **Solution**:
165
+ - Accept the recommendation - deep mode will provide better analysis
166
+ - OR improve prompt manually before running fast mode again
167
+ - Check which CLEAR component is scoring low and address it
168
+
169
+ ### Issue: Can't determine if prompt is complex enough for deep mode
170
+ **Cause**: Borderline CLEAR scores or unclear content quality
171
+ **Solution**:
172
+ - Err on side of fast mode first
173
+ - If output feels insufficient, escalate to `/clavix:deep`
174
+ - Use triage as guidance, not absolute rule
175
+
176
+ ### Issue: Improved prompt still feels incomplete
177
+ **Cause**: Fast mode only applies C, L, E components
178
+ **Solution**:
179
+ - Use `/clavix:deep` for Adaptive variations and Reflective validation
180
+ - OR use `/clavix:prd` if strategic planning is needed
181
+ - Fast mode is for quick cleanup, not comprehensive analysis
182
+ """
@@ -1,5 +1,6 @@
1
1
  description = "Execute tasks from the implementation plan"
2
2
  prompt = """
3
+
3
4
  # Clavix Implement - AI-Assisted Task Execution
4
5
 
5
6
  You are helping the user implement tasks from their task plan with AI assistance.
@@ -80,7 +81,7 @@ Generated by Clavix /clavix:implement
80
81
 
81
82
  ## Important Rules
82
83
 
83
- **DO**:
84
+ **DO**:
84
85
  - Read tasks.md to find the current task
85
86
  - Implement ONE task at a time
86
87
  - Mark tasks complete by changing `[ ]` to `[x]`
@@ -88,13 +89,88 @@ Generated by Clavix /clavix:implement
88
89
  - Reference the PRD for detailed requirements
89
90
  - Ask for clarification when tasks are ambiguous
90
91
 
91
- **DON'T**:
92
+ **DON'T**:
92
93
  - Skip tasks or implement out of order
93
94
  - Mark tasks complete before actually implementing them
94
95
  - Modify multiple tasks' checkboxes at once (only current task)
95
96
  - Create commits if strategy is 'none'
96
97
  - Assume what code to write - use PRD as source of truth
97
98
 
99
+ ## Task Blocking Protocol
100
+
101
+ **When a task is blocked** (cannot be completed), follow this protocol:
102
+
103
+ ### Step 1: Detect Blocking Issues
104
+
105
+ Common blocking scenarios:
106
+ - **Missing dependencies**: API keys, credentials, external services not available
107
+ - **Unclear requirements**: Task description too vague or conflicts with PRD
108
+ - **External blockers**: Need design assets, content, or third-party integration not ready
109
+ - **Technical blockers**: Required library incompatible, environment issue, access problem
110
+ - **Resource blockers**: Need database, server, or infrastructure not yet set up
111
+
112
+ ### Step 2: Immediate User Communication
113
+
114
+ **Stop implementation and ask user immediately:**
115
+ ```
116
+ "Task blocked: [Task description]
117
+
118
+ Blocking issue: [Specific blocker, e.g., 'Missing Stripe API key for payment integration']
119
+
120
+ Options to proceed:
121
+ 1. **Provide missing resource** - [What user needs to provide]
122
+ 2. **Break into sub-tasks** - I can implement [unblocked parts] now and defer [blocked part]
123
+ 3. **Skip for now** - Mark as [BLOCKED], continue with next task, return later
124
+
125
+ Which option would you like?"
126
+ ```
127
+
128
+ ### Step 3: Resolution Strategies
129
+
130
+ **Option A: User Provides Resource**
131
+ - Wait for user to provide (API key, design, clarification)
132
+ - Once provided, continue with task implementation
133
+
134
+ **Option B: Create Sub-Tasks** (preferred when possible)
135
+ - Identify what CAN be done without the blocker
136
+ - Break task into unblocked sub-tasks
137
+ - Example: "Implement payment integration" →
138
+ - [x] Create payment service interface (can do now)
139
+ - [ ] [BLOCKED: Need Stripe API key] Integrate Stripe SDK
140
+ - [ ] Add payment UI components (can do now)
141
+ - Implement unblocked sub-tasks, mark blocked ones with [BLOCKED] tag
142
+
143
+ **Option C: Skip and Mark Blocked**
144
+ - Add [BLOCKED] tag to task in tasks.md: `- [ ] [BLOCKED: Missing API key] Task description`
145
+ - Note the blocker reason
146
+ - Move to next task
147
+ - Return to blocked tasks when unblocked
148
+
149
+ ### Step 4: Track Blocked Tasks
150
+
151
+ **In tasks.md, use [BLOCKED] notation:**
152
+ ```markdown
153
+ ## Phase 2: Integration
154
+ - [x] Create API client structure
155
+ - [ ] [BLOCKED: Waiting for API endpoint spec] Implement data sync
156
+ - [ ] Add error handling for API calls
157
+ ```
158
+
159
+ **At end of implement session:**
160
+ - List all blocked tasks
161
+ - Remind user what's needed to unblock each one
162
+ - Suggest next steps
163
+
164
+ ### Common Blocking Scenarios & Resolutions
165
+
166
+ | Blocker Type | Detection | Resolution |
167
+ |--------------|-----------|------------|
168
+ | Missing API key/credentials | Code requires authentication | Ask user for credentials OR stub with mock for now |
169
+ | Vague requirements | Unclear what to implement | Ask specific questions OR propose implementation for approval |
170
+ | External dependency | Service/API not available | Create interface/mock OR skip and defer |
171
+ | Environment issue | Can't run/test code | Ask user to fix environment OR implement without testing (note risk) |
172
+ | Design/content missing | Need specific assets | Create placeholder OR wait for actual assets |
173
+
98
174
  ## Example Workflow
99
175
 
100
176
  ```
@@ -110,6 +186,20 @@ Generated by Clavix /clavix:implement
110
186
  - Continue or wait for user
111
187
  ```
112
188
 
189
+ ## Workflow Navigation
190
+
191
+ **You are here:** Implement (Task Execution)
192
+
193
+ **Common workflows:**
194
+ - **Full workflow**: `/clavix:plan` → `/clavix:implement` → [execute all tasks] → `/clavix:archive`
195
+ - **Resume work**: `/clavix:implement` → Continue from last incomplete task
196
+ - **Iterative**: `/clavix:implement` → [complete task] → [pause] → `/clavix:implement` → [continue]
197
+
198
+ **Related commands:**
199
+ - `/clavix:plan` - Generate/regenerate task breakdown (previous step)
200
+ - `/clavix:archive` - Archive completed project (final step)
201
+ - `/clavix:prd` - Review PRD for context during implementation
202
+
113
203
  ## Tips
114
204
 
115
205
  - The implementation is meant to be iterative and collaborative
@@ -117,4 +207,60 @@ Generated by Clavix /clavix:implement
117
207
  - Tasks are designed to be atomic and independently implementable
118
208
  - Use the PRD as the authoritative source for "what to build"
119
209
  - Use tasks.md as the guide for "in what order"
120
- """
210
+
211
+ ## Troubleshooting
212
+
213
+ ### Issue: `.clavix-implement-config.json` not found
214
+ **Cause**: User hasn't run `clavix implement` CLI command first
215
+ **Solution** (inline):
216
+ - Error: "Config file not found. Run `clavix implement` first to initialize"
217
+ - CLI creates config and shows first task
218
+ - AI agent should wait for config before proceeding
219
+
220
+ ### Issue: Cannot find next incomplete task in tasks.md
221
+ **Cause**: All tasks completed OR tasks.md corrupted
222
+ **Solution**:
223
+ - Check if all tasks are `[x]` - if yes, congratulate completion!
224
+ - Suggest `/clavix:archive` for completed project
225
+ - If tasks.md corrupted, ask user to review/regenerate
226
+
227
+ ### Issue: Task description unclear or conflicts with PRD
228
+ **Cause**: Task breakdown was too vague or PRD changed
229
+ **Solution** (inline - covered by Task Blocking Protocol):
230
+ - Stop and ask user for clarification
231
+ - Reference PRD section if mentioned
232
+ - Propose interpretation for user approval
233
+ - Update task description in tasks.md after clarification
234
+
235
+ ### Issue: Git commit fails (wrong strategy, hook error, etc.)
236
+ **Cause**: Git configuration issue or commit hook failure
237
+ **Solution**:
238
+ - Show error to user
239
+ - Suggest checking git status manually
240
+ - Ask if should continue without commit or fix issue first
241
+ - Note: Commits are convenience, not blocker - can proceed without
242
+
243
+ ### Issue: Multiple [BLOCKED] tasks accumulating
244
+ **Cause**: Dependencies or blockers not being resolved
245
+ **Solution**:
246
+ - After 3+ blocked tasks, pause and report to user
247
+ - List all blockers and what's needed to resolve
248
+ - Ask user to prioritize: unblock tasks OR continue with unblocked ones
249
+ - Consider if project should be paused until blockers cleared
250
+
251
+ ### Issue: Task completed but tests failing
252
+ **Cause**: Implementation doesn't meet requirements
253
+ **Solution**:
254
+ - Do NOT mark task as complete if tests fail
255
+ - Fix failing tests before marking [x]
256
+ - If tests are incorrectly written, fix tests first
257
+ - Task isn't done until tests pass
258
+
259
+ ### Issue: Implementing in wrong order (skipped dependencies)
260
+ **Cause**: AI agent or user jumped ahead
261
+ **Solution**:
262
+ - Stop and review tasks.md order
263
+ - Check if skipped task was a dependency
264
+ - Implement missed dependency first
265
+ - Follow sequential order unless explicitly instructed otherwise
266
+ """