clavix 2.8.2 → 3.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 (55) hide show
  1. package/README.md +26 -6
  2. package/dist/cli/commands/deep.d.ts +3 -4
  3. package/dist/cli/commands/deep.js +162 -261
  4. package/dist/cli/commands/fast.d.ts +3 -4
  5. package/dist/cli/commands/fast.js +126 -303
  6. package/dist/cli/commands/init.js +184 -22
  7. package/dist/cli/commands/prd.d.ts +7 -6
  8. package/dist/cli/commands/prd.js +113 -132
  9. package/dist/cli/commands/summarize.d.ts +1 -12
  10. package/dist/cli/commands/summarize.js +63 -131
  11. package/dist/core/intelligence/index.d.ts +10 -0
  12. package/dist/core/intelligence/index.js +13 -0
  13. package/dist/core/intelligence/intent-detector.d.ts +33 -0
  14. package/dist/core/intelligence/intent-detector.js +311 -0
  15. package/dist/core/intelligence/pattern-library.d.ts +44 -0
  16. package/dist/core/intelligence/pattern-library.js +103 -0
  17. package/dist/core/intelligence/patterns/actionability-enhancer.d.ts +27 -0
  18. package/dist/core/intelligence/patterns/actionability-enhancer.js +162 -0
  19. package/dist/core/intelligence/patterns/base-pattern.d.ts +31 -0
  20. package/dist/core/intelligence/patterns/base-pattern.js +39 -0
  21. package/dist/core/intelligence/patterns/completeness-validator.d.ts +27 -0
  22. package/dist/core/intelligence/patterns/completeness-validator.js +135 -0
  23. package/dist/core/intelligence/patterns/conciseness-filter.d.ts +12 -0
  24. package/dist/core/intelligence/patterns/conciseness-filter.js +61 -0
  25. package/dist/core/intelligence/patterns/objective-clarifier.d.ts +14 -0
  26. package/dist/core/intelligence/patterns/objective-clarifier.js +97 -0
  27. package/dist/core/intelligence/patterns/structure-organizer.d.ts +31 -0
  28. package/dist/core/intelligence/patterns/structure-organizer.js +185 -0
  29. package/dist/core/intelligence/patterns/technical-context-enricher.d.ts +16 -0
  30. package/dist/core/intelligence/patterns/technical-context-enricher.js +132 -0
  31. package/dist/core/intelligence/quality-assessor.d.ts +42 -0
  32. package/dist/core/intelligence/quality-assessor.js +296 -0
  33. package/dist/core/intelligence/types.d.ts +81 -0
  34. package/dist/core/intelligence/types.js +3 -0
  35. package/dist/core/intelligence/universal-optimizer.d.ts +31 -0
  36. package/dist/core/intelligence/universal-optimizer.js +118 -0
  37. package/dist/core/prd-generator.d.ts +2 -2
  38. package/dist/core/task-manager.js +18 -5
  39. package/dist/templates/agents/agents.md +2 -2
  40. package/dist/templates/agents/copilot-instructions.md +15 -15
  41. package/dist/templates/agents/octo.md +35 -30
  42. package/dist/templates/agents/warp.md +3 -3
  43. package/dist/templates/full-prd-template.hbs +1 -1
  44. package/dist/templates/prd-questions.md +1 -1
  45. package/dist/templates/quick-prd-template.hbs +1 -1
  46. package/dist/templates/slash-commands/_canonical/deep.md +261 -122
  47. package/dist/templates/slash-commands/_canonical/fast.md +101 -69
  48. package/dist/templates/slash-commands/_canonical/implement.md +1 -1
  49. package/dist/templates/slash-commands/_canonical/plan.md +12 -12
  50. package/dist/templates/slash-commands/_canonical/prd.md +34 -24
  51. package/dist/templates/slash-commands/_canonical/start.md +13 -12
  52. package/dist/templates/slash-commands/_canonical/summarize.md +42 -25
  53. package/dist/utils/error-utils.d.ts +7 -0
  54. package/dist/utils/error-utils.js +17 -0
  55. package/package.json +21 -12
@@ -1,35 +1,36 @@
1
1
  ---
2
2
  name: "Clavix: Deep"
3
- description: Full CLEAR framework analysis (C, L, E, A, R components)
3
+ description: Comprehensive analysis with alternatives, edge cases, and validation
4
4
  ---
5
5
 
6
- # Clavix Deep Mode - Full CLEAR Framework Analysis
6
+ # Clavix Deep Mode - Comprehensive Prompt Intelligence
7
7
 
8
- You are helping the user perform a comprehensive deep analysis using the full CLEAR Framework (all 5 components: Concise, Logical, Explicit, Adaptive, Reflective).
8
+ You are helping the user perform comprehensive deep analysis using Clavix's universal prompt intelligence with full exploration features (alternatives, edge cases, validation checklists).
9
9
 
10
- ## CLEAR Framework (Deep Mode)
10
+ ## What is Deep Mode?
11
11
 
12
- **What is CLEAR?**
13
- An academically-validated prompt engineering framework by Dr. Leo Lo (University of New Mexico).
12
+ Deep mode provides **comprehensive prompt intelligence** that goes beyond quick optimization:
14
13
 
15
- **Deep Mode Uses ALL Components:**
16
- - **[C] Concise**: Remove verbosity, pleasantries, unnecessary words
17
- - **[L] Logical**: Ensure coherent sequencing (context requirements constraints → output)
18
- - **[E] Explicit**: Add persona, format, tone, success criteria
19
- - **[A] Adaptive**: Generate alternative phrasings, structures, flexibility
20
- - **[R] Reflective**: Create validation checklists, edge cases, quality criteria
14
+ **Deep Mode Features:**
15
+ - **Intent Detection**: Identifies what you're trying to achieve
16
+ - **Quality Assessment**: 5-dimension deep analysis (Clarity, Efficiency, Structure, Completeness, Actionability)
17
+ - **Advanced Optimization**: Applies all available patterns
18
+ - **Alternative Approaches**: Multiple ways to phrase and structure your prompt
19
+ - **Edge Case Analysis**: Identifies potential issues and failure modes
20
+ - **Validation Checklists**: Steps to verify successful completion
21
+ - **Risk Assessment**: "What could go wrong" analysis
21
22
 
22
23
  ## Instructions
23
24
 
24
25
  1. Take the user's prompt: `{{ARGS}}`
25
26
 
26
- 2. **Apply Full CLEAR Framework** (C, L, E, A, R):
27
-
28
- - **Conciseness [C]**: Detailed verbosity analysis
29
- - **Logic [L]**: Comprehensive flow analysis
30
- - **Explicitness [E]**: Complete specification check
31
- - **Adaptiveness [A]**: Multiple variations and approaches
32
- - **Reflectiveness [R]**: Full validation and edge case analysis
27
+ 2. **Intent Detection** - Analyze what the user is trying to achieve:
28
+ - **code-generation**: Writing new code or functions
29
+ - **planning**: Designing architecture or breaking down tasks
30
+ - **refinement**: Improving existing code or prompts
31
+ - **debugging**: Finding and fixing issues
32
+ - **documentation**: Creating docs or explanations
33
+ - **prd-generation**: Creating requirements documents
33
34
 
34
35
  3. **Strategic Scope Detection** (before detailed analysis):
35
36
 
@@ -41,49 +42,77 @@ An academically-validated prompt engineering framework by Dr. Leo Lo (University
41
42
  - **Business Impact**: ROI, business metrics, KPIs, stakeholder impact, market analysis
42
43
 
43
44
  **If 3+ strategic keywords detected**:
44
- 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:
45
+ 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:
45
46
  - Switch to `/clavix:prd` for comprehensive strategic planning (recommended)
46
47
  - Continue with deep mode for prompt-level analysis only"
47
48
 
48
49
  **If user chooses to continue**, proceed with deep analysis but remind them at the end that `/clavix:prd` is available for strategic planning.
49
50
 
50
- 4. **Generate Comprehensive Output**:
51
+ 4. **Comprehensive Quality Assessment** - Evaluate across 5 dimensions:
52
+
53
+ - **Clarity**: Is the objective clear and unambiguous?
54
+ - **Efficiency**: Is the prompt concise without losing critical information?
55
+ - **Structure**: Is information organized logically?
56
+ - **Completeness**: Are all necessary details provided?
57
+ - **Actionability**: Can AI take immediate action on this prompt?
58
+
59
+ Score each dimension 0-100%, calculate weighted overall score.
60
+
61
+ 5. **Generate Comprehensive Output**:
62
+
63
+ a. **Intent Analysis** (type, confidence, characteristics)
51
64
 
52
- a. **CLEAR Assessment** (all 5 components with scores)
65
+ b. **Quality Assessment** (5 dimensions with detailed feedback)
53
66
 
54
- b. **CLEAR-Optimized Prompt** (applying all components)
67
+ c. **Optimized Prompt** (applying all patterns)
55
68
 
56
- c. **CLEAR Changes Made** (labeled with [C], [L], [E], [A], [R])
69
+ d. **Improvements Applied** (labeled with quality dimensions)
57
70
 
58
- d. **Adaptive Variations [A]**:
59
- - 2-3 alternative phrasings
60
- - Alternative structures (user story, job story, structured)
61
- - Temperature recommendations
62
- - Explain when each approach is most appropriate
71
+ e. **Alternative Approaches**:
72
+ - 2-3 different ways to phrase the request
73
+ - Alternative structures (user story, job story, structured sections)
74
+ - When each approach is most appropriate
75
+ - Temperature/model recommendations
63
76
 
64
- e. **Reflection Checklist [R]**:
65
- - Validation steps for accuracy
66
- - Edge cases to consider
67
- - "What could go wrong" analysis
68
- - Fact-checking steps
69
- - Quality criteria
77
+ f. **Alternative Structures**:
78
+ - **Step-by-step**: Break into sequential steps
79
+ - **Template-based**: Provide code/document template to fill
80
+ - **Example-driven**: Show concrete examples of desired output
70
81
 
71
- 4. **CLEAR-labeled educational feedback**:
72
- - Label all changes with CLEAR component tags
73
- - Example: "[C] Removed 15 unnecessary pleasantries"
74
- - Example: "[A] See Alternative Structures for 3 different approaches"
75
- - Example: "[R] See Reflection Checklist for 5 validation steps"
82
+ g. **Validation Checklist**:
83
+ - Steps to verify accuracy
84
+ - Requirements match checks
85
+ - Edge case handling verification
86
+ - Error handling appropriateness
87
+ - Output format validation
88
+ - Performance considerations
76
89
 
77
- 5. Present everything in comprehensive, CLEAR-organized format.
90
+ h. **Edge Cases to Consider**:
91
+ - Intent-specific edge cases
92
+ - Error conditions and recovery
93
+ - Unexpected inputs or behavior
94
+ - Resource limitations
95
+ - Compatibility concerns
96
+
97
+ 6. **Quality-labeled educational feedback**:
98
+ - Label all improvements with quality dimension tags
99
+ - Example: "[Efficiency] Removed 15 unnecessary phrases"
100
+ - Example: "[Structure] Reorganized into logical sections"
101
+ - Example: "[Completeness] Added missing technical constraints"
102
+
103
+ 7. Present everything in comprehensive, well-organized format.
78
104
 
79
105
  ## Deep Mode Features
80
106
 
81
- **Include (Full CLEAR Framework):**
82
- - **[C, L, E]**: All fast mode analysis (conciseness, logic, explicitness)
83
- - **[A] Adaptive**: Alternative phrasings, structures, flexibility, temperature
84
- - **[R] Reflective**: Validation checklist, edge cases, quality criteria, fact-checking
85
- - **CLEAR Assessment**: All 5 component scores
86
- - **CLEAR-labeled Changes**: Educational feedback showing which component improved what
107
+ **Include:**
108
+ - **Intent Detection**: Automatic classification with confidence
109
+ - **Quality Assessment**: All 5 dimensions with detailed analysis
110
+ - **Advanced Optimization**: All applicable patterns
111
+ - **Alternative Approaches**: Multiple phrasings and perspectives
112
+ - **Alternative Structures**: Different organization approaches
113
+ - **Validation Checklist**: Steps to verify completion
114
+ - **Edge Case Analysis**: Potential issues and failure modes
115
+ - **Risk Assessment**: "What could go wrong" analysis
87
116
 
88
117
  **Do NOT include (these belong in `/clavix:prd`):**
89
118
  - System architecture recommendations
@@ -97,67 +126,173 @@ If user provides: "Create a login page"
97
126
 
98
127
  Output:
99
128
  ```
100
- ## Analysis
101
- [All fast mode analysis: gaps, ambiguities, strengths, suggestions]
102
-
103
- ## Changes Made
104
- - Added authentication context and user needs
105
- - Specified technical stack and constraints
106
- - Defined success criteria and expected output
107
-
108
- ## Alternative Phrasings
109
- 1. "Implement a user authentication interface that enables secure access to the platform"
110
- 2. "Design and build a login system that validates user credentials and manages sessions"
111
- 3. "Create an authentication flow that allows registered users to access their accounts"
112
-
113
- ## Edge Cases to Consider
114
- - What happens when a user enters incorrect credentials 3+ times?
115
- - How to handle users who've forgotten both email and password?
116
- - What about users trying to log in from a new device?
117
- - How to handle session expiration during active use?
118
-
119
- ## Implementation Examples
120
- **Good:**
121
- - Prompt specifies authentication method, error handling, and accessibility requirements
122
- - Includes context about existing auth system and integration points
123
- - Defines measurable success criteria (load time, accessibility score)
124
-
125
- **Bad:**
126
- - "Make a login page" - no context, constraints, or success criteria
127
- - Missing technical stack and integration requirements
128
- - No consideration of security or user experience
129
-
130
- ## Alternative Prompt Structures
131
- 1. **User Story**: "As a registered user, I want to log into my account so that I can access my personalized dashboard"
132
- Focuses on user value and benefits
133
-
134
- 2. **Job Story**: "When I visit the app, I want to authenticate securely, so I can access my saved data"
135
- → Emphasizes context and motivation
136
-
137
- 3. **Structured Sections**: Objective, Requirements, Constraints, Success Criteria
138
- Provides comprehensive organization
139
-
140
- ## What Could Go Wrong
141
- - Without security requirements, implementation might miss OWASP best practices
142
- - Vague "login page" could be interpreted as OAuth, email/password, or social login
143
- - Missing error handling specification could lead to poor UX
144
- - No accessibility requirements might exclude users with disabilities
145
-
146
- ## Improved Prompt
147
- [Structured prompt with all sections]
129
+ ## Clavix Deep Mode Analysis
130
+
131
+ ### Intent Detection:
132
+ Type: code-generation
133
+ Confidence: 85%
134
+ Characteristics:
135
+ Has code context: No
136
+ • Technical terms: Minimal
137
+ Open-ended: Yes
138
+ Needs structure: Yes
139
+
140
+ ### Quality Assessment:
141
+
142
+ Clarity: 35%
143
+ "Create" is ambiguous - design mockup? implement? both?
144
+ No authentication method specified
145
+ Missing user experience requirements
146
+
147
+ Efficiency: 60%
148
+ Brief but too minimal
149
+ • Missing context that would prevent back-and-forth
150
+
151
+ Structure: 40%
152
+ Single sentence, no organization
153
+ • Suggested flow: Objective → Requirements → Constraints → Output
154
+
155
+ Completeness: 15%
156
+ Missing: tech stack, authentication context, success criteria
157
+ No user flows or error handling specified
158
+ • Missing integration requirements
159
+
160
+ Actionability: 25%
161
+ Too vague to start implementation
162
+ • Needs specific technical requirements
163
+ Unclear acceptance criteria
164
+
165
+ Overall Quality: 35% (needs-significant-improvement)
166
+
167
+ ### Optimized Prompt:
168
+
169
+ Objective: Build a secure user authentication login page
170
+
171
+ Requirements:
172
+ - Email and password input fields with validation
173
+ - "Remember me" checkbox for session persistence
174
+ - "Forgot password" link
175
+ - Clear error messages for invalid credentials
176
+ - Responsive design for mobile and desktop
177
+ - Loading states during authentication
178
+
179
+ Technical Constraints:
180
+ - Use React with TypeScript
181
+ - Integrate with existing JWT authentication API at /api/auth/login
182
+ - Follow WCAG 2.1 AA accessibility standards
183
+ - Support keyboard navigation
184
+
185
+ Expected Output:
186
+ - Fully functional login component
187
+ - Unit tests with >80% coverage
188
+ - Storybook stories for different states
189
+
190
+ Success Criteria:
191
+ - Users can log in successfully with valid credentials
192
+ - Invalid credentials show appropriate error messages
193
+ - Page is accessible via keyboard navigation
194
+ - Component passes automated accessibility audit
195
+
196
+ ### Improvements Applied:
197
+
198
+ [Clarity] Defined "create" as full implementation with specific features
199
+ [Efficiency] Focused on essential authentication features without over-engineering
200
+ [Structure] Organized into Objective → Requirements → Constraints → Output → Success Criteria
201
+ [Completeness] Added tech stack (React/TypeScript), API endpoint, accessibility standards, testing requirements
202
+ [Actionability] Converted vague request into specific, measurable implementation requirements
203
+
204
+ ### Alternative Approaches:
205
+
206
+ 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"
207
+ → Best for: Step-by-step implementation, clarity on sequence
208
+
209
+ 2. **User-Centric**: "As a user, I need to log into my account securely using email/password, with clear feedback if credentials are invalid"
210
+ → Best for: Emphasizing user experience and value
211
+
212
+ 3. **Example-Driven**: "Create a login page similar to [reference], with email/password fields, validation, and integration with our JWT API"
213
+ → Best for: When you have a reference implementation
214
+
215
+ ### Alternative Structures:
216
+
217
+ **Step-by-step approach:**
218
+ 1. Create form with email/password inputs and validation
219
+ 2. Implement API integration with JWT endpoint
220
+ 3. Add error handling and user feedback
221
+ 4. Implement "remember me" and "forgot password" features
222
+ 5. Add accessibility and responsive design
223
+ 6. Write tests and documentation
224
+
225
+ **Template-based approach:**
226
+ Provide a component template with:
227
+ - Form structure with input fields
228
+ - Validation logic placeholders
229
+ - API call hooks
230
+ - Error state management
231
+ - Accessibility attributes
232
+
233
+ **Example-driven approach:**
234
+ Show concrete examples of:
235
+ - Login form HTML structure
236
+ - Validation error messages
237
+ - Success/failure API responses
238
+ - Loading and error states
239
+
240
+ ### Validation Checklist:
241
+
242
+ Before considering this task complete, verify:
243
+ ☐ Email and password fields validate input correctly
244
+ ☐ Invalid credentials show appropriate, user-friendly error messages
245
+ ☐ Successful login redirects to correct page or updates auth state
246
+ ☐ "Remember me" persists session across browser sessions
247
+ ☐ "Forgot password" link navigates to password reset flow
248
+ ☐ Form is keyboard accessible (tab navigation, enter to submit)
249
+ ☐ Screen readers announce errors and state changes
250
+ ☐ Loading state prevents duplicate submissions
251
+ ☐ Component renders correctly on mobile and desktop
252
+ ☐ Unit tests cover success, failure, and edge cases (>80% coverage)
253
+
254
+ ### Edge Cases to Consider:
255
+
256
+ • **Empty or invalid inputs**: How to handle blank email, malformed email, empty password?
257
+ • **API failures**: What happens if auth API is down or times out?
258
+ • **Slow network**: How to indicate loading state and prevent double-submission?
259
+ • **Expired sessions**: How to handle JWT expiration during login attempt?
260
+ • **Account locked**: What if user account is temporarily locked after failed attempts?
261
+ • **Password reset in progress**: How to handle user who requested reset but tries to login?
262
+ • **Browser autofill**: Does component work correctly with password managers?
263
+ • **Concurrent logins**: What happens if user logs in on multiple devices?
264
+
265
+ ### What Could Go Wrong:
266
+
267
+ • **Missing security requirements**: Implementation might miss OWASP best practices, leading to vulnerabilities
268
+ • **Vague authentication method**: "Login" could mean OAuth, email/password, social login, or magic links
269
+ • **No error handling specification**: Poor UX with cryptic error messages or silent failures
270
+ • **Missing accessibility requirements**: Excluding users with disabilities, potential legal issues
271
+ • **No performance criteria**: Slow authentication could frustrate users
272
+ • **Undefined session management**: Security issues with improper session handling
273
+
274
+ ### Patterns Applied:
275
+
276
+ • ConcisenessFilter: Removed unnecessary phrases while preserving intent
277
+ • ObjectiveClarifier: Extracted clear goal statement
278
+ • TechnicalContextEnricher: Added React/TypeScript stack and JWT API details
279
+
280
+ ### Recommendation:
281
+
282
+ 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.
148
283
  ```
149
284
 
150
285
  ## When to Use Deep vs Fast vs PRD
151
286
 
152
- - **Fast mode** (`/clavix:fast`): C, L, E components - quick CLEAR cleanup
153
- - **Deep mode** (`/clavix:deep`): Full CLEAR (C, L, E, A, R) - comprehensive analysis with alternatives and validation
154
- - **PRD mode** (`/clavix:prd`): CLEAR-validated PRD generation - strategic planning with architecture decisions
287
+ - **Fast mode** (`/clavix:fast`): Quick optimization - best for simple, clear requests
288
+ - **Deep mode** (`/clavix:deep`): Comprehensive analysis - best for complex prompts needing exploration
289
+ - **PRD mode** (`/clavix:prd`): Strategic planning - best for features requiring architecture/business decisions
155
290
 
156
291
  ## Next Steps (v2.7+)
157
292
 
158
293
  ### Saving the Prompt (REQUIRED)
159
294
 
160
- After displaying the CLEAR-optimized prompt, you MUST save it to ensure it's available for the prompt lifecycle workflow.
295
+ After displaying the optimized prompt, you MUST save it to ensure it's available for the prompt lifecycle workflow.
161
296
 
162
297
  **If user ran CLI command** (`clavix deep "prompt"`):
163
298
  - Prompt is automatically saved ✓
@@ -194,23 +329,27 @@ originalPrompt: <user's original prompt text>
194
329
 
195
330
  # Improved Prompt
196
331
 
197
- <Insert the CLEAR-optimized prompt content from your analysis above>
332
+ <Insert the optimized prompt content from your analysis above>
198
333
 
199
- ## CLEAR Scores
200
- - **C** (Conciseness): <percentage>%
201
- - **L** (Logic): <percentage>%
202
- - **E** (Explicitness): <percentage>%
203
- - **A** (Adaptiveness): <percentage>%
204
- - **R** (Reflectiveness): <percentage>%
334
+ ## Quality Scores
335
+ - **Clarity**: <percentage>%
336
+ - **Efficiency**: <percentage>%
337
+ - **Structure**: <percentage>%
338
+ - **Completeness**: <percentage>%
339
+ - **Actionability**: <percentage>%
205
340
  - **Overall**: <percentage>% (<rating>)
206
341
 
207
342
  ## Alternative Variations
208
343
 
209
- <Insert adaptive variations from your analysis>
344
+ <Insert alternative approaches from your analysis>
345
+
346
+ ## Validation Checklist
347
+
348
+ <Insert validation checklist from your analysis>
210
349
 
211
- ## Reflection Checklist
350
+ ## Edge Cases
212
351
 
213
- <Insert reflective validation from your analysis>
352
+ <Insert edge cases from your analysis>
214
353
 
215
354
  ## Original Prompt
216
355
  ```
@@ -273,29 +412,29 @@ clavix prompts clear --deep
273
412
 
274
413
  ## Workflow Navigation
275
414
 
276
- **You are here:** Deep Mode (Comprehensive CLEAR Analysis)
415
+ **You are here:** Deep Mode (Comprehensive Prompt Intelligence)
277
416
 
278
417
  **Common workflows:**
279
418
  - **Quick execute**: `/clavix:deep` → `/clavix:execute` → Implement
280
419
  - **Review first**: `/clavix:deep` → `/clavix:prompts` → `/clavix:execute`
281
- - **Thorough analysis**: `/clavix:deep` → Use optimized prompt + alternatives
420
+ - **Thorough analysis**: `/clavix:deep` → Use optimized prompt + alternatives + validation
282
421
  - **Escalate to strategic**: `/clavix:deep` → (detects strategic scope) → `/clavix:prd` → Plan → Implement → Archive
283
- - **From fast mode**: `/clavix:fast` → (suggests) `/clavix:deep` → Full analysis with A & R components
422
+ - **From fast mode**: `/clavix:fast` → (suggests) `/clavix:deep` → Full analysis with alternatives & validation
284
423
 
285
424
  **Related commands:**
286
425
  - `/clavix:execute` - Execute saved prompt
287
426
  - `/clavix:prompts` - Manage saved prompts
288
- - `/clavix:fast` - Quick CLEAR improvements (C, L, E only)
289
- - `/clavix:prd` - Strategic PRD generation for architecture/business decisions
427
+ - `/clavix:fast` - Quick improvements (basic optimization only)
428
+ - `/clavix:prd` - Strategic PRD generation (Clavix Planning Mode) for architecture/business decisions
290
429
  - `/clavix:start` - Conversational mode for exploring unclear requirements
291
430
 
292
431
  ## Tips
293
432
 
294
- - **Apply full CLEAR framework** systematically: all 5 components
295
- - Label all changes with CLEAR components for education
296
- - Deep mode focuses on **prompt-level** CLEAR analysis, not strategic architecture
297
- - Use **[A] Adaptive** to explore alternative approaches
298
- - Use **[R] Reflective** to identify edge cases and validation needs
433
+ - **Intent-aware optimization**: Clavix automatically detects what you're trying to achieve
434
+ - Deep mode provides comprehensive exploration with alternatives and validation
435
+ - Label all changes with quality dimensions for education
436
+ - Use **alternative approaches** to explore different perspectives
437
+ - Use **validation checklist** to ensure complete implementation
299
438
  - For architecture, security, and scalability, recommend `/clavix:prd`
300
439
 
301
440
  ## Troubleshooting
@@ -326,16 +465,16 @@ echo '{"version":"1.0","prompts":[]}' > .clavix/outputs/prompts/deep/.index.json
326
465
  **Solution**:
327
466
  - Proceed with deep mode as requested
328
467
  - Remind at end that `/clavix:prd` is available for strategic planning
329
- - Focus on prompt-level CLEAR analysis, exclude architecture recommendations
468
+ - Focus on prompt-level analysis, exclude architecture recommendations
330
469
 
331
470
  ### Issue: Too many alternative variations making output overwhelming
332
- **Cause**: Adaptive component generating many options
471
+ **Cause**: Generating too many options
333
472
  **Solution**:
334
473
  - Limit to 2-3 most distinct alternatives
335
474
  - Focus on meaningfully different approaches (not minor wording changes)
336
475
  - Group similar variations together
337
476
 
338
- ### Issue: Reflective validation finding too many edge cases
477
+ ### Issue: Validation checklist finding too many edge cases
339
478
  **Cause**: Complex prompt with many potential failure modes
340
479
  **Solution**:
341
480
  - Prioritize most likely or highest-impact edge cases