clavix 4.2.0 → 4.3.2

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 (51) hide show
  1. package/LICENSE +201 -21
  2. package/README.md +1 -1
  3. package/dist/cli/commands/deep.js +4 -58
  4. package/dist/cli/commands/init.js +13 -16
  5. package/dist/cli/commands/plan.js +2 -2
  6. package/dist/core/conversation-quality-tracker.d.ts +81 -0
  7. package/dist/core/conversation-quality-tracker.js +195 -0
  8. package/dist/core/intelligence/intent-detector.js +3 -0
  9. package/dist/core/intelligence/pattern-library.d.ts +18 -1
  10. package/dist/core/intelligence/pattern-library.js +131 -0
  11. package/dist/core/intelligence/patterns/conversation-summarizer.d.ts +25 -0
  12. package/dist/core/intelligence/patterns/conversation-summarizer.js +197 -0
  13. package/dist/core/intelligence/patterns/dependency-identifier.d.ts +21 -0
  14. package/dist/core/intelligence/patterns/dependency-identifier.js +149 -0
  15. package/dist/core/intelligence/patterns/implicit-requirement-extractor.d.ts +20 -0
  16. package/dist/core/intelligence/patterns/implicit-requirement-extractor.js +129 -0
  17. package/dist/core/intelligence/patterns/requirement-prioritizer.d.ts +22 -0
  18. package/dist/core/intelligence/patterns/requirement-prioritizer.js +117 -0
  19. package/dist/core/intelligence/patterns/success-metrics-enforcer.d.ts +22 -0
  20. package/dist/core/intelligence/patterns/success-metrics-enforcer.js +142 -0
  21. package/dist/core/intelligence/patterns/topic-coherence-analyzer.d.ts +22 -0
  22. package/dist/core/intelligence/patterns/topic-coherence-analyzer.js +140 -0
  23. package/dist/core/intelligence/patterns/user-persona-enricher.d.ts +22 -0
  24. package/dist/core/intelligence/patterns/user-persona-enricher.js +124 -0
  25. package/dist/core/intelligence/quality-assessor.js +2 -0
  26. package/dist/core/intelligence/types.d.ts +7 -2
  27. package/dist/core/intelligence/universal-optimizer.d.ts +27 -2
  28. package/dist/core/intelligence/universal-optimizer.js +65 -5
  29. package/dist/core/task-manager.d.ts +1 -2
  30. package/dist/core/task-manager.js +21 -26
  31. package/dist/templates/slash-commands/_canonical/deep.md +37 -69
  32. package/dist/templates/slash-commands/_canonical/fast.md +1 -0
  33. package/dist/templates/slash-commands/_components/sections/pattern-visibility.md +26 -2
  34. package/package.json +3 -3
  35. package/dist/templates/instructions/README 2.md +0 -311
  36. package/dist/templates/instructions/core 2/clavix-mode.md +0 -275
  37. package/dist/templates/instructions/core 2/file-operations.md +0 -330
  38. package/dist/templates/instructions/core 2/verification.md +0 -377
  39. package/dist/templates/instructions/troubleshooting 2/jumped-to-implementation.md +0 -234
  40. package/dist/templates/instructions/troubleshooting 2/mode-confusion.md +0 -402
  41. package/dist/templates/instructions/troubleshooting 2/skipped-file-creation.md +0 -385
  42. package/dist/templates/slash-commands/_canonical 2/archive.md +0 -410
  43. package/dist/templates/slash-commands/_canonical 2/deep.md +0 -512
  44. package/dist/templates/slash-commands/_canonical 2/execute.md +0 -80
  45. package/dist/templates/slash-commands/_canonical 2/fast.md +0 -370
  46. package/dist/templates/slash-commands/_canonical 2/implement.md +0 -364
  47. package/dist/templates/slash-commands/_canonical 2/plan.md +0 -329
  48. package/dist/templates/slash-commands/_canonical 2/prd.md +0 -320
  49. package/dist/templates/slash-commands/_canonical 2/prompts.md +0 -97
  50. package/dist/templates/slash-commands/_canonical 2/start.md +0 -204
  51. package/dist/templates/slash-commands/_canonical 2/summarize.md +0 -395
@@ -1,512 +0,0 @@
1
- ---
2
- name: "Clavix: Deep"
3
- description: Comprehensive analysis with alternatives, edge cases, and validation
4
- ---
5
-
6
- # Clavix Deep Mode - Clavix Intelligence™
7
-
8
- You are helping the user perform comprehensive deep analysis using Clavix Intelligence™ with full exploration features (alternatives, edge cases, validation checklists).
9
-
10
- ---
11
-
12
- ## CLAVIX MODE: Requirements & Planning Only
13
-
14
- **You are in Clavix prompt/PRD development mode. You help analyze and optimize PROMPTS, NOT implement features.**
15
-
16
- **YOUR ROLE:**
17
- - ✓ Perform deep analysis of prompts
18
- - ✓ Generate alternative phrasings
19
- - ✓ Identify edge cases and issues
20
- - ✓ Create comprehensive optimization
21
-
22
- **DO NOT IMPLEMENT. DO NOT IMPLEMENT. DO NOT IMPLEMENT.**
23
- - ✗ DO NOT write application code for the feature in the prompt
24
- - ✗ DO NOT implement what the prompt describes
25
- - ✗ DO NOT generate the actual feature/component
26
-
27
- **You are analyzing and optimizing the PROMPT, not building what it describes.**
28
-
29
- For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
30
-
31
- ---
32
-
33
- ## What is Deep Mode?
34
-
35
- Deep mode provides **Clavix Intelligence™** with comprehensive analysis that goes beyond quick optimization:
36
-
37
- **Deep Mode Features:**
38
- - **Intent Detection**: Identifies what you're trying to achieve
39
- - **Quality Assessment**: 5-dimension deep analysis (Clarity, Efficiency, Structure, Completeness, Actionability)
40
- - **Advanced Optimization**: Applies all available patterns
41
- - **Alternative Approaches**: Multiple ways to phrase and structure your prompt
42
- - **Edge Case Analysis**: Identifies potential issues and failure modes
43
- - **Validation Checklists**: Steps to verify successful completion
44
- - **Risk Assessment**: "What could go wrong" analysis
45
-
46
- ## Instructions
47
-
48
- 1. Take the user's prompt: `{{ARGS}}`
49
-
50
- 2. **Intent Detection** - Analyze what the user is trying to achieve:
51
- - **code-generation**: Writing new code or functions
52
- - **planning**: Designing architecture or breaking down tasks
53
- - **refinement**: Improving existing code or prompts
54
- - **debugging**: Finding and fixing issues
55
- - **documentation**: Creating docs or explanations
56
- - **prd-generation**: Creating requirements documents
57
-
58
- 3. **Strategic Scope Detection** (before detailed analysis):
59
-
60
- **Check for strategic concerns** by identifying keywords/themes:
61
- - **Architecture**: system design, microservices, monolith, architecture patterns, scalability patterns
62
- - **Security**: authentication, authorization, encryption, security, OWASP, vulnerabilities, threat model
63
- - **Scalability**: load balancing, caching, database scaling, performance optimization, high availability
64
- - **Infrastructure**: deployment, CI/CD, DevOps, cloud infrastructure, containers, orchestration
65
- - **Business Impact**: ROI, business metrics, KPIs, stakeholder impact, market analysis
66
-
67
- **If 3+ strategic keywords detected**:
68
- Ask the user: "I notice this involves strategic decisions around [detected themes]. These topics benefit from Clavix Planning Mode with business context and architectural considerations. Would you like to:
69
- - Switch to `/clavix:prd` for comprehensive strategic planning (recommended)
70
- - Continue with deep mode for prompt-level analysis only"
71
-
72
- **If user chooses to continue**, proceed with deep analysis but remind them at the end that `/clavix:prd` is available for strategic planning.
73
-
74
- 4. **Comprehensive Quality Assessment** - Evaluate across 5 dimensions:
75
-
76
- - **Clarity**: Is the objective clear and unambiguous?
77
- - **Efficiency**: Is the prompt concise without losing critical information?
78
- - **Structure**: Is information organized logically?
79
- - **Completeness**: Are all necessary details provided?
80
- - **Actionability**: Can AI take immediate action on this prompt?
81
-
82
- Score each dimension 0-100%, calculate weighted overall score.
83
-
84
- 5. **Generate Comprehensive Output**:
85
-
86
- a. **Intent Analysis** (type, confidence, characteristics)
87
-
88
- b. **Quality Assessment** (5 dimensions with detailed feedback)
89
-
90
- c. **Optimized Prompt** (applying all patterns)
91
-
92
- d. **Improvements Applied** (labeled with quality dimensions)
93
-
94
- e. **Alternative Approaches**:
95
- - 2-3 different ways to phrase the request
96
- - Alternative structures (user story, job story, structured sections)
97
- - When each approach is most appropriate
98
- - Temperature/model recommendations
99
-
100
- f. **Alternative Structures**:
101
- - **Step-by-step**: Break into sequential steps
102
- - **Template-based**: Provide code/document template to fill
103
- - **Example-driven**: Show concrete examples of desired output
104
-
105
- g. **Validation Checklist**:
106
- - Steps to verify accuracy
107
- - Requirements match checks
108
- - Edge case handling verification
109
- - Error handling appropriateness
110
- - Output format validation
111
- - Performance considerations
112
-
113
- h. **Edge Cases to Consider**:
114
- - Intent-specific edge cases
115
- - Error conditions and recovery
116
- - Unexpected inputs or behavior
117
- - Resource limitations
118
- - Compatibility concerns
119
-
120
- 6. **Quality-labeled educational feedback**:
121
- - Label all improvements with quality dimension tags
122
- - Example: "[Efficiency] Removed 15 unnecessary phrases"
123
- - Example: "[Structure] Reorganized into logical sections"
124
- - Example: "[Completeness] Added missing technical constraints"
125
-
126
- 7. Present everything in comprehensive, well-organized format.
127
-
128
- ## Deep Mode Features
129
-
130
- **Include:**
131
- - **Intent Detection**: Automatic classification with confidence
132
- - **Quality Assessment**: All 5 dimensions with detailed analysis
133
- - **Advanced Optimization**: All applicable patterns
134
- - **Alternative Approaches**: Multiple phrasings and perspectives
135
- - **Alternative Structures**: Different organization approaches
136
- - **Validation Checklist**: Steps to verify completion
137
- - **Edge Case Analysis**: Potential issues and failure modes
138
- - **Risk Assessment**: "What could go wrong" analysis
139
-
140
- **Do NOT include (these belong in `/clavix:prd`):**
141
- - System architecture recommendations
142
- - Security best practices
143
- - Scalability strategy
144
- - Business impact analysis
145
-
146
- ## Example
147
-
148
- If user provides: "Create a login page"
149
-
150
- Output:
151
- ```
152
- ## Clavix Deep Mode Analysis
153
-
154
- ### Intent Detection:
155
- Type: code-generation
156
- Confidence: 85%
157
- Characteristics:
158
- • Has code context: No
159
- • Technical terms: Minimal
160
- • Open-ended: Yes
161
- • Needs structure: Yes
162
-
163
- ### Quality Assessment:
164
-
165
- Clarity: 35%
166
- • "Create" is ambiguous - design mockup? implement? both?
167
- • No authentication method specified
168
- • Missing user experience requirements
169
-
170
- Efficiency: 60%
171
- • Brief but too minimal
172
- • Missing context that would prevent back-and-forth
173
-
174
- Structure: 40%
175
- • Single sentence, no organization
176
- • Suggested flow: Objective → Requirements → Constraints → Output
177
-
178
- Completeness: 15%
179
- • Missing: tech stack, authentication context, success criteria
180
- • No user flows or error handling specified
181
- • Missing integration requirements
182
-
183
- Actionability: 25%
184
- • Too vague to start implementation
185
- • Needs specific technical requirements
186
- • Unclear acceptance criteria
187
-
188
- Overall Quality: 35% (needs-significant-improvement)
189
-
190
- ### Optimized Prompt:
191
-
192
- Objective: Build a secure user authentication login page
193
-
194
- Requirements:
195
- - Email and password input fields with validation
196
- - "Remember me" checkbox for session persistence
197
- - "Forgot password" link
198
- - Clear error messages for invalid credentials
199
- - Responsive design for mobile and desktop
200
- - Loading states during authentication
201
-
202
- Technical Constraints:
203
- - Use React with TypeScript
204
- - Integrate with existing JWT authentication API at /api/auth/login
205
- - Follow WCAG 2.1 AA accessibility standards
206
- - Support keyboard navigation
207
-
208
- Expected Output:
209
- - Fully functional login component
210
- - Unit tests with >80% coverage
211
- - Storybook stories for different states
212
-
213
- Success Criteria:
214
- - Users can log in successfully with valid credentials
215
- - Invalid credentials show appropriate error messages
216
- - Page is accessible via keyboard navigation
217
- - Component passes automated accessibility audit
218
-
219
- ### Improvements Applied:
220
-
221
- [Clarity] Defined "create" as full implementation with specific features
222
- [Efficiency] Focused on essential authentication features without over-engineering
223
- [Structure] Organized into Objective → Requirements → Constraints → Output → Success Criteria
224
- [Completeness] Added tech stack (React/TypeScript), API endpoint, accessibility standards, testing requirements
225
- [Actionability] Converted vague request into specific, measurable implementation requirements
226
-
227
- ### Alternative Approaches:
228
-
229
- 1. **Functional Decomposition**: "Build a React login component that: (1) validates email/password inputs, (2) calls JWT auth API, (3) handles errors gracefully, (4) manages session persistence"
230
- → Best for: Step-by-step implementation, clarity on sequence
231
-
232
- 2. **User-Centric**: "As a user, I need to log into my account securely using email/password, with clear feedback if credentials are invalid"
233
- → Best for: Emphasizing user experience and value
234
-
235
- 3. **Example-Driven**: "Create a login page similar to [reference], with email/password fields, validation, and integration with our JWT API"
236
- → Best for: When you have a reference implementation
237
-
238
- ### Alternative Structures:
239
-
240
- **Step-by-step approach:**
241
- 1. Create form with email/password inputs and validation
242
- 2. Implement API integration with JWT endpoint
243
- 3. Add error handling and user feedback
244
- 4. Implement "remember me" and "forgot password" features
245
- 5. Add accessibility and responsive design
246
- 6. Write tests and documentation
247
-
248
- **Template-based approach:**
249
- Provide a component template with:
250
- - Form structure with input fields
251
- - Validation logic placeholders
252
- - API call hooks
253
- - Error state management
254
- - Accessibility attributes
255
-
256
- **Example-driven approach:**
257
- Show concrete examples of:
258
- - Login form HTML structure
259
- - Validation error messages
260
- - Success/failure API responses
261
- - Loading and error states
262
-
263
- ### Validation Checklist:
264
-
265
- Before considering this task complete, verify:
266
- ☐ Email and password fields validate input correctly
267
- ☐ Invalid credentials show appropriate, user-friendly error messages
268
- ☐ Successful login redirects to correct page or updates auth state
269
- ☐ "Remember me" persists session across browser sessions
270
- ☐ "Forgot password" link navigates to password reset flow
271
- ☐ Form is keyboard accessible (tab navigation, enter to submit)
272
- ☐ Screen readers announce errors and state changes
273
- ☐ Loading state prevents duplicate submissions
274
- ☐ Component renders correctly on mobile and desktop
275
- ☐ Unit tests cover success, failure, and edge cases (>80% coverage)
276
-
277
- ### Edge Cases to Consider:
278
-
279
- • **Empty or invalid inputs**: How to handle blank email, malformed email, empty password?
280
- • **API failures**: What happens if auth API is down or times out?
281
- • **Slow network**: How to indicate loading state and prevent double-submission?
282
- • **Expired sessions**: How to handle JWT expiration during login attempt?
283
- • **Account locked**: What if user account is temporarily locked after failed attempts?
284
- • **Password reset in progress**: How to handle user who requested reset but tries to login?
285
- • **Browser autofill**: Does component work correctly with password managers?
286
- • **Concurrent logins**: What happens if user logs in on multiple devices?
287
-
288
- ### What Could Go Wrong:
289
-
290
- • **Missing security requirements**: Implementation might miss OWASP best practices, leading to vulnerabilities
291
- • **Vague authentication method**: "Login" could mean OAuth, email/password, social login, or magic links
292
- • **No error handling specification**: Poor UX with cryptic error messages or silent failures
293
- • **Missing accessibility requirements**: Excluding users with disabilities, potential legal issues
294
- • **No performance criteria**: Slow authentication could frustrate users
295
- • **Undefined session management**: Security issues with improper session handling
296
-
297
- ### Patterns Applied:
298
-
299
- • ConcisenessFilter: Removed unnecessary phrases while preserving intent
300
- • ObjectiveClarifier: Extracted clear goal statement
301
- • TechnicalContextEnricher: Added React/TypeScript stack and JWT API details
302
-
303
- ### Recommendation:
304
-
305
- Consider using `/clavix:prd` if this login page is part of a larger authentication system requiring architectural decisions about session management, token refresh, multi-factor authentication, or integration with identity providers.
306
- ```
307
-
308
- ## When to Use Deep vs Fast vs PRD
309
-
310
- - **Fast mode** (`/clavix:fast`): Quick optimization - best for simple, clear requests
311
- - **Deep mode** (`/clavix:deep`): Comprehensive analysis - best for complex prompts needing exploration
312
- - **PRD mode** (`/clavix:prd`): Strategic planning - best for features requiring architecture/business decisions
313
-
314
- ## Next Steps (v2.7+)
315
-
316
- ### Saving the Prompt (REQUIRED)
317
-
318
- After displaying the optimized prompt, you MUST save it to ensure it's available for the prompt lifecycle workflow.
319
-
320
- **If user ran CLI command** (`clavix deep "prompt"`):
321
- - Prompt is automatically saved ✓
322
- - Skip to "Executing the Saved Prompt" section below
323
-
324
- **If you are executing this slash command** (`/clavix:deep`):
325
- - You MUST save the prompt manually
326
- - Follow these steps:
327
-
328
- #### Step 1: Create Directory Structure
329
- ```bash
330
- mkdir -p .clavix/outputs/prompts/deep
331
- ```
332
-
333
- #### Step 2: Generate Unique Prompt ID
334
- Create a unique identifier using this format:
335
- - **Format**: `deep-YYYYMMDD-HHMMSS-<random>`
336
- - **Example**: `deep-20250117-143022-a3f2`
337
- - Use current timestamp + random 4-character suffix
338
-
339
- #### Step 3: Save Prompt File
340
- Use the Write tool to create the prompt file at:
341
- - **Path**: `.clavix/outputs/prompts/deep/<prompt-id>.md`
342
-
343
- **File content format**:
344
- ```markdown
345
- ---
346
- id: <prompt-id>
347
- source: deep
348
- timestamp: <ISO-8601 timestamp>
349
- executed: false
350
- originalPrompt: <user's original prompt text>
351
- ---
352
-
353
- # Improved Prompt
354
-
355
- <Insert the optimized prompt content from your analysis above>
356
-
357
- ## Quality Scores
358
- - **Clarity**: <percentage>%
359
- - **Efficiency**: <percentage>%
360
- - **Structure**: <percentage>%
361
- - **Completeness**: <percentage>%
362
- - **Actionability**: <percentage>%
363
- - **Overall**: <percentage>% (<rating>)
364
-
365
- ## Alternative Variations
366
-
367
- <Insert alternative approaches from your analysis>
368
-
369
- ## Validation Checklist
370
-
371
- <Insert validation checklist from your analysis>
372
-
373
- ## Edge Cases
374
-
375
- <Insert edge cases from your analysis>
376
-
377
- ## Original Prompt
378
- ```
379
- <user's original prompt text>
380
- ```
381
- ```
382
-
383
- #### Step 4: Update Index File
384
- Use the Write tool to update the index at `.clavix/outputs/prompts/deep/.index.json`:
385
-
386
- **If index file doesn't exist**, create it with:
387
- ```json
388
- {
389
- "version": "1.0",
390
- "prompts": []
391
- }
392
- ```
393
-
394
- **Then add a new metadata entry** to the `prompts` array:
395
- ```json
396
- {
397
- "id": "<prompt-id>",
398
- "filename": "<prompt-id>.md",
399
- "source": "deep",
400
- "timestamp": "<ISO-8601 timestamp>",
401
- "createdAt": "<ISO-8601 timestamp>",
402
- "path": ".clavix/outputs/prompts/deep/<prompt-id>.md",
403
- "originalPrompt": "<user's original prompt text>",
404
- "executed": false,
405
- "executedAt": null
406
- }
407
- ```
408
-
409
- **Important**: Read the existing index first, append the new entry to the `prompts` array, then write the updated index back.
410
-
411
- #### Step 5: Verify Saving Succeeded
412
- Confirm:
413
- - File exists at `.clavix/outputs/prompts/deep/<prompt-id>.md`
414
- - Index file updated with new entry
415
- - Display success message: `✓ Prompt saved: <prompt-id>.md`
416
-
417
- ### Executing the Saved Prompt
418
-
419
- After saving completes successfully:
420
-
421
- **Execute immediately:**
422
- ```bash
423
- /clavix:execute --latest
424
- ```
425
-
426
- **Review saved prompts first:**
427
- ```bash
428
- /clavix:prompts
429
- ```
430
-
431
- **Cleanup old prompts:**
432
- ```bash
433
- clavix prompts clear --deep
434
- ```
435
-
436
- ## Workflow Navigation
437
-
438
- **You are here:** Deep Mode (Comprehensive Prompt Intelligence)
439
-
440
- **Common workflows:**
441
- - **Quick execute**: `/clavix:deep` → `/clavix:execute` → Implement
442
- - **Review first**: `/clavix:deep` → `/clavix:prompts` → `/clavix:execute`
443
- - **Thorough analysis**: `/clavix:deep` → Use optimized prompt + alternatives + validation
444
- - **Escalate to strategic**: `/clavix:deep` → (detects strategic scope) → `/clavix:prd` → Plan → Implement → Archive
445
- - **From fast mode**: `/clavix:fast` → (suggests) `/clavix:deep` → Full analysis with alternatives & validation
446
-
447
- **Related commands:**
448
- - `/clavix:execute` - Execute saved prompt
449
- - `/clavix:prompts` - Manage saved prompts
450
- - `/clavix:fast` - Quick improvements (basic optimization only)
451
- - `/clavix:prd` - Strategic PRD generation (Clavix Planning Mode) for architecture/business decisions
452
- - `/clavix:start` - Conversational mode for exploring unclear requirements
453
-
454
- ## Tips
455
-
456
- - **Intent-aware optimization**: Clavix automatically detects what you're trying to achieve
457
- - Deep mode provides comprehensive exploration with alternatives and validation
458
- - Label all changes with quality dimensions for education
459
- - Use **alternative approaches** to explore different perspectives
460
- - Use **validation checklist** to ensure complete implementation
461
- - For architecture, security, and scalability, recommend `/clavix:prd`
462
-
463
- ## Troubleshooting
464
-
465
- ### Issue: Prompt Not Saved
466
-
467
- **Error: Cannot create directory**
468
- ```bash
469
- mkdir -p .clavix/outputs/prompts/deep
470
- ```
471
-
472
- **Error: Index file corrupted or invalid JSON**
473
- ```bash
474
- echo '{"version":"1.0","prompts":[]}' > .clavix/outputs/prompts/deep/.index.json
475
- ```
476
-
477
- **Error: Duplicate prompt ID**
478
- - Generate a new ID with a different timestamp or random suffix
479
- - Retry the save operation with the new ID
480
-
481
- **Error: File write permission denied**
482
- - Check directory permissions
483
- - Ensure `.clavix/` directory is writable
484
- - Try creating the directory structure again
485
-
486
- ### Issue: Strategic scope detected but user wants to continue with deep mode
487
- **Cause**: User prefers deep analysis over PRD generation
488
- **Solution**:
489
- - Proceed with deep mode as requested
490
- - Remind at end that `/clavix:prd` is available for strategic planning
491
- - Focus on prompt-level analysis, exclude architecture recommendations
492
-
493
- ### Issue: Too many alternative variations making output overwhelming
494
- **Cause**: Generating too many options
495
- **Solution**:
496
- - Limit to 2-3 most distinct alternatives
497
- - Focus on meaningfully different approaches (not minor wording changes)
498
- - Group similar variations together
499
-
500
- ### Issue: Validation checklist finding too many edge cases
501
- **Cause**: Complex prompt with many potential failure modes
502
- **Solution**:
503
- - Prioritize most likely or highest-impact edge cases
504
- - Group related edge cases
505
- - Suggest documenting all edge cases in PRD for complex projects
506
-
507
- ### Issue: Deep analysis still feels insufficient for complex project
508
- **Cause**: Project needs strategic planning, not just prompt analysis
509
- **Solution**:
510
- - Switch to `/clavix:prd` for comprehensive planning
511
- - Deep mode is for prompts, PRD mode is for projects
512
- - Use PRD workflow: PRD → Plan → Implement
@@ -1,80 +0,0 @@
1
- ---
2
- name: "Clavix: Execute"
3
- description: Execute saved prompts from fast/deep optimization
4
- ---
5
-
6
- # Clavix: Execute Saved Prompts
7
-
8
- Implement optimized prompts from `/clavix:fast` or `/clavix:deep`.
9
-
10
- Prompts are automatically saved to `.clavix/outputs/prompts/fast/` or `.clavix/outputs/prompts/deep/`.
11
-
12
- ## Prerequisites
13
-
14
- Save a prompt first:
15
- ```bash
16
- /clavix:fast "your prompt"
17
- # or
18
- /clavix:deep "your prompt"
19
- ```
20
-
21
- ## Usage
22
-
23
- **Execute latest prompt (recommended):**
24
- ```bash
25
- clavix execute --latest
26
- ```
27
-
28
- **Execute latest fast/deep:**
29
- ```bash
30
- clavix execute --latest --fast
31
- clavix execute --latest --deep
32
- ```
33
-
34
- **Interactive selection:**
35
- ```bash
36
- clavix execute
37
- ```
38
-
39
- **Execute specific prompt:**
40
- ```bash
41
- clavix execute --id <prompt-id>
42
- ```
43
-
44
- ## Agent Workflow
45
-
46
- 1. Run `clavix execute --latest`
47
- 2. Read displayed prompt content
48
- 3. Implement requirements
49
- 4. Cleanup: `/clavix:prompts clear`
50
-
51
- ## Prompt Management
52
-
53
- **List all saved prompts:**
54
- ```bash
55
- clavix prompts list
56
- ```
57
-
58
- **Clear executed prompts:**
59
- ```bash
60
- clavix prompts clear --executed
61
- ```
62
-
63
- **Clear all fast/deep prompts:**
64
- ```bash
65
- clavix prompts clear --fast
66
- clavix prompts clear --deep
67
- ```
68
-
69
- ## Error Recovery
70
-
71
- **No prompts found:**
72
- ```bash
73
- /clavix:fast "your requirement"
74
- ```
75
- Then retry `/clavix:execute`.
76
-
77
- **Too many old prompts:**
78
- ```bash
79
- clavix prompts clear --executed
80
- ```