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.
- package/README.md +26 -6
- package/dist/cli/commands/deep.d.ts +3 -4
- package/dist/cli/commands/deep.js +162 -261
- package/dist/cli/commands/fast.d.ts +3 -4
- package/dist/cli/commands/fast.js +126 -303
- package/dist/cli/commands/init.js +184 -22
- package/dist/cli/commands/prd.d.ts +7 -6
- package/dist/cli/commands/prd.js +113 -132
- package/dist/cli/commands/summarize.d.ts +1 -12
- package/dist/cli/commands/summarize.js +63 -131
- package/dist/core/intelligence/index.d.ts +10 -0
- package/dist/core/intelligence/index.js +13 -0
- package/dist/core/intelligence/intent-detector.d.ts +33 -0
- package/dist/core/intelligence/intent-detector.js +311 -0
- package/dist/core/intelligence/pattern-library.d.ts +44 -0
- package/dist/core/intelligence/pattern-library.js +103 -0
- package/dist/core/intelligence/patterns/actionability-enhancer.d.ts +27 -0
- package/dist/core/intelligence/patterns/actionability-enhancer.js +162 -0
- package/dist/core/intelligence/patterns/base-pattern.d.ts +31 -0
- package/dist/core/intelligence/patterns/base-pattern.js +39 -0
- package/dist/core/intelligence/patterns/completeness-validator.d.ts +27 -0
- package/dist/core/intelligence/patterns/completeness-validator.js +135 -0
- package/dist/core/intelligence/patterns/conciseness-filter.d.ts +12 -0
- package/dist/core/intelligence/patterns/conciseness-filter.js +61 -0
- package/dist/core/intelligence/patterns/objective-clarifier.d.ts +14 -0
- package/dist/core/intelligence/patterns/objective-clarifier.js +97 -0
- package/dist/core/intelligence/patterns/structure-organizer.d.ts +31 -0
- package/dist/core/intelligence/patterns/structure-organizer.js +185 -0
- package/dist/core/intelligence/patterns/technical-context-enricher.d.ts +16 -0
- package/dist/core/intelligence/patterns/technical-context-enricher.js +132 -0
- package/dist/core/intelligence/quality-assessor.d.ts +42 -0
- package/dist/core/intelligence/quality-assessor.js +296 -0
- package/dist/core/intelligence/types.d.ts +81 -0
- package/dist/core/intelligence/types.js +3 -0
- package/dist/core/intelligence/universal-optimizer.d.ts +31 -0
- package/dist/core/intelligence/universal-optimizer.js +118 -0
- package/dist/core/prd-generator.d.ts +2 -2
- package/dist/core/task-manager.js +18 -5
- package/dist/templates/agents/agents.md +2 -2
- package/dist/templates/agents/copilot-instructions.md +15 -15
- package/dist/templates/agents/octo.md +35 -30
- package/dist/templates/agents/warp.md +3 -3
- package/dist/templates/full-prd-template.hbs +1 -1
- package/dist/templates/prd-questions.md +1 -1
- package/dist/templates/quick-prd-template.hbs +1 -1
- package/dist/templates/slash-commands/_canonical/deep.md +261 -122
- package/dist/templates/slash-commands/_canonical/fast.md +101 -69
- package/dist/templates/slash-commands/_canonical/implement.md +1 -1
- package/dist/templates/slash-commands/_canonical/plan.md +12 -12
- package/dist/templates/slash-commands/_canonical/prd.md +34 -24
- package/dist/templates/slash-commands/_canonical/start.md +13 -12
- package/dist/templates/slash-commands/_canonical/summarize.md +42 -25
- package/dist/utils/error-utils.d.ts +7 -0
- package/dist/utils/error-utils.js +17 -0
- package/package.json +21 -12
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "Clavix: Deep"
|
|
3
|
-
description:
|
|
3
|
+
description: Comprehensive analysis with alternatives, edge cases, and validation
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Clavix Deep Mode -
|
|
6
|
+
# Clavix Deep Mode - Comprehensive Prompt Intelligence
|
|
7
7
|
|
|
8
|
-
You are helping the user perform
|
|
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
|
-
##
|
|
10
|
+
## What is Deep Mode?
|
|
11
11
|
|
|
12
|
-
**
|
|
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
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
18
|
-
- **
|
|
19
|
-
- **
|
|
20
|
-
- **
|
|
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. **
|
|
27
|
-
|
|
28
|
-
- **
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
- **
|
|
32
|
-
- **
|
|
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
|
|
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. **
|
|
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
|
-
|
|
65
|
+
b. **Quality Assessment** (5 dimensions with detailed feedback)
|
|
53
66
|
|
|
54
|
-
|
|
67
|
+
c. **Optimized Prompt** (applying all patterns)
|
|
55
68
|
|
|
56
|
-
|
|
69
|
+
d. **Improvements Applied** (labeled with quality dimensions)
|
|
57
70
|
|
|
58
|
-
|
|
59
|
-
- 2-3
|
|
60
|
-
- Alternative structures (user story, job story, structured)
|
|
61
|
-
-
|
|
62
|
-
-
|
|
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
|
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
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
|
|
82
|
-
- **
|
|
83
|
-
- **
|
|
84
|
-
- **
|
|
85
|
-
- **
|
|
86
|
-
- **
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
-
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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`):
|
|
153
|
-
- **Deep mode** (`/clavix:deep`):
|
|
154
|
-
- **PRD mode** (`/clavix:prd`):
|
|
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
|
|
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
|
|
332
|
+
<Insert the optimized prompt content from your analysis above>
|
|
198
333
|
|
|
199
|
-
##
|
|
200
|
-
- **
|
|
201
|
-
- **
|
|
202
|
-
- **
|
|
203
|
-
- **
|
|
204
|
-
- **
|
|
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
|
|
344
|
+
<Insert alternative approaches from your analysis>
|
|
345
|
+
|
|
346
|
+
## Validation Checklist
|
|
347
|
+
|
|
348
|
+
<Insert validation checklist from your analysis>
|
|
210
349
|
|
|
211
|
-
##
|
|
350
|
+
## Edge Cases
|
|
212
351
|
|
|
213
|
-
<Insert
|
|
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
|
|
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
|
|
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
|
|
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
|
-
- **
|
|
295
|
-
-
|
|
296
|
-
-
|
|
297
|
-
- Use **
|
|
298
|
-
- Use **
|
|
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
|
|
468
|
+
- Focus on prompt-level analysis, exclude architecture recommendations
|
|
330
469
|
|
|
331
470
|
### Issue: Too many alternative variations making output overwhelming
|
|
332
|
-
**Cause**:
|
|
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:
|
|
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
|