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,38 +1,50 @@
1
1
  ---
2
2
  name: "Clavix: Fast"
3
- description: CLEAR-guided quick improvements (C, L, E components)
3
+ description: Quick prompt improvements with smart quality assessment and triage
4
4
  ---
5
5
 
6
- # Clavix Fast Mode - CLEAR Framework Quick Improvement
6
+ # Clavix Fast Mode - Universal Prompt Intelligence
7
7
 
8
- 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.
8
+ You are helping the user improve their prompt using Clavix's fast mode, which applies universal prompt intelligence with smart quality assessment and triage.
9
9
 
10
- ## CLEAR Framework (Fast Mode)
10
+ ## What is Clavix?
11
11
 
12
- **What is CLEAR?**
13
- An academically-validated prompt engineering framework by Dr. Leo Lo (University of New Mexico).
12
+ Clavix provides **universal prompt intelligence** that automatically detects intent and applies the right optimization patterns. No frameworks to learn—just better prompts, instantly.
14
13
 
15
- **Fast Mode Uses:**
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
14
+ **Fast Mode Features:**
15
+ - **Intent Detection**: Automatically identifies what you're trying to achieve
16
+ - **Quality Assessment**: 5-dimension analysis (Clarity, Efficiency, Structure, Completeness, Actionability)
17
+ - **Smart Optimization**: Applies proven patterns based on your intent
18
+ - **Intelligent Triage**: Recommends deep mode when comprehensive analysis would help
19
19
 
20
- **Deep Mode Adds:** [A] Adaptive variations, [R] Reflective validation (use `/clavix:deep` for these)
20
+ **Deep Mode Adds:** Alternative approaches, edge case analysis, validation checklists (use `/clavix:deep` for these)
21
21
 
22
22
  ## Instructions
23
23
 
24
24
  1. Take the user's prompt: `{{ARGS}}`
25
25
 
26
- 2. **CLEAR Analysis** - Assess the prompt using three components:
26
+ 2. **Intent Detection** - Analyze what the user is trying to achieve:
27
+ - **code-generation**: Writing new code or functions
28
+ - **planning**: Designing architecture or breaking down tasks
29
+ - **refinement**: Improving existing code or prompts
30
+ - **debugging**: Finding and fixing issues
31
+ - **documentation**: Creating docs or explanations
32
+ - **prd-generation**: Creating requirements documents
27
33
 
28
- - **Conciseness [C]**: Identify verbose language, pleasantries ("please", "could you"), unnecessary qualifiers
29
- - **Logic [L]**: Check sequencing and flow - is information presented coherently?
30
- - **Explicitness [E]**: Verify specifications - persona, output format, tone, success criteria
34
+ 3. **Quality Assessment** - Evaluate across 5 dimensions:
31
35
 
32
- 3. **CLEAR-Aware Smart Triage**: Use multi-factor content-quality assessment to determine if deep analysis is needed:
36
+ - **Clarity**: Is the objective clear and unambiguous?
37
+ - **Efficiency**: Is the prompt concise without losing critical information?
38
+ - **Structure**: Is information organized logically?
39
+ - **Completeness**: Are all necessary details provided?
40
+ - **Actionability**: Can AI take immediate action on this prompt?
33
41
 
34
- **Primary Indicators** (CLEAR scores - most important):
35
- - **Low CLEAR scores**: Conciseness < 60%, Logic < 60%, or Explicitness < 50%
42
+ Score each dimension 0-100%, calculate weighted overall score.
43
+
44
+ 4. **Smart Triage** - Determine if deep analysis is needed:
45
+
46
+ **Primary Indicators** (quality scores - most important):
47
+ - **Low quality scores**: Overall < 65%, or any dimension < 50%
36
48
 
37
49
  **Secondary Indicators** (content quality):
38
50
  - **Missing critical elements**: 3+ missing from (context, tech stack, success criteria, user needs, expected output)
@@ -41,39 +53,43 @@ An academically-validated prompt engineering framework by Dr. Leo Lo (University
41
53
  - **Context depth**: Extremely brief (<15 words) OR overly verbose (>100 words without structure)
42
54
 
43
55
  **Escalation Decision**:
44
- - If **Low CLEAR scores** + **2+ Secondary Indicators**: **Strongly recommend `/clavix:deep`**
45
- - If **Low CLEAR scores** only: **Suggest `/clavix:deep`** but can proceed with fast mode
46
- - Explain which CLEAR component needs deeper analysis and why
56
+ - If **Low quality scores** + **2+ Secondary Indicators**: **Strongly recommend `/clavix:deep`**
57
+ - If **Low quality scores** only: **Suggest `/clavix:deep`** but can proceed with fast mode
58
+ - Explain which quality dimension needs deeper analysis and why
47
59
 
48
60
  Ask the user:
49
61
  - Switch to deep mode (recommended when strongly recommended)
50
62
  - Continue with fast mode (acceptable for suggestion-level, but at their own risk for strong recommendation)
51
63
 
52
- 4. Generate a **CLEAR-optimized** structured prompt with these sections:
64
+ 5. Generate an **optimized** structured prompt with these sections:
53
65
  **Objective**: Clear, specific goal
54
66
  **Requirements**: Detailed, actionable requirements
55
67
  **Technical Constraints**: Technologies, performance needs, integrations
56
68
  **Expected Output**: What the result should look like
57
69
  **Success Criteria**: How to measure completion
58
70
 
59
- 5. **CLEAR Changes Made**: List improvements with CLEAR component labels:
60
- - **[C]** "Removed 15 unnecessary words and pleasantries"
61
- - **[L]** "Restructured: context → requirements → constraints → output"
62
- - **[E]** "Added explicit persona (senior developer), output format (React component), tone (production-ready)"
71
+ 6. **Improvements Applied**: List enhancements with quality dimension labels:
72
+ - **[Efficiency]** "Removed 15 unnecessary words and pleasantries"
73
+ - **[Structure]** "Reorganized: objective → requirements → constraints → output"
74
+ - **[Clarity]** "Added explicit persona (senior developer), output format (React component), tone (production-ready)"
75
+ - **[Completeness]** "Added missing tech stack and success criteria"
76
+ - **[Actionability]** "Converted vague request into specific, executable tasks"
63
77
 
64
- 6. Present the CLEAR-optimized prompt in a code block for easy copying.
78
+ 7. Present the optimized prompt in a code block for easy copying.
65
79
 
66
80
  ## Fast Mode Features
67
81
 
68
- **Include (CLEAR C, L, E):**
69
- - **CLEAR Assessment** (Conciseness, Logic, Explicitness scores with issues)
70
- - Single CLEAR-optimized improved prompt
71
- - **CLEAR Changes Made** (labeled with [C], [L], [E] components)
72
- - Recommendation to use deep mode for Adaptive & Reflective components
82
+ **Include:**
83
+ - **Intent Analysis** (detected intent type with confidence)
84
+ - **Quality Assessment** (5 dimensions: Clarity, Efficiency, Structure, Completeness, Actionability)
85
+ - Single optimized improved prompt
86
+ - **Improvements Applied** (labeled with quality dimensions)
87
+ - Recommendation to use deep mode for comprehensive analysis
73
88
 
74
89
  **Skip (use `/clavix:deep` instead):**
75
- - **[A] Adaptive**: Alternative phrasings, structures, flexibility
76
- - **[R] Reflective**: Validation checklists, edge cases, quality criteria
90
+ - Alternative phrasings and structures
91
+ - Validation checklists and edge cases
92
+ - Quality criteria and risk assessment
77
93
  - Strategic analysis (architecture, security - that's for `/clavix:prd`)
78
94
 
79
95
  ## Example
@@ -82,29 +98,41 @@ If user provides: "Please could you maybe help me create a login page?"
82
98
 
83
99
  Output:
84
100
  ```
85
- ## CLEAR Analysis (Fast Mode)
101
+ ## Clavix Fast Mode Analysis
102
+
103
+ ### Intent Detection:
104
+ Type: code-generation
105
+ Confidence: 85%
86
106
 
87
- ### CLEAR Framework Assessment:
107
+ ### Quality Assessment:
88
108
 
89
- [C] Conciseness: 45%
90
- 4 unnecessary pleasantries detected ("Please", "could you", "maybe", "help me")
109
+ Clarity: 40%
110
+ Objective unclear - "create" vs "design" vs "implement"?
111
+ • No specifics about authentication method
112
+
113
+ Efficiency: 35%
114
+ • 4 unnecessary pleasantries ("Please", "could you", "maybe", "help me")
91
115
  • Low signal-to-noise ratio (core request is only 4 words)
92
116
 
93
- [L] Logic: 85%
117
+ Structure: 85%
94
118
  • Single request, coherent but minimal
95
- • Suggested flow: Context → Requirements → Constraints → Output
119
+ • Suggested flow: Objective → Requirements → Constraints → Output
120
+
121
+ Completeness: 20%
122
+ • Missing: tech stack, authentication context, success criteria, constraints
123
+ • No authentication method specified
96
124
 
97
- [E] Explicitness: 25%
98
- Missing: persona, output format, tone, success criteria, technical constraints
99
- No authentication context specified
125
+ Actionability: 30%
126
+ Too vague to start implementation
127
+ Missing technical specifications
100
128
 
101
- Overall CLEAR Score: 51% (needs-improvement)
129
+ Overall Quality: 42% (needs-improvement)
102
130
 
103
131
  Recommendation:
104
- For Adaptive variations (A) and Reflective validation (R), use:
132
+ For comprehensive analysis with alternatives, edge cases, and validation checklists, use:
105
133
  clavix deep "<your prompt>"
106
134
 
107
- ### CLEAR-Optimized Prompt:
135
+ ### Optimized Prompt:
108
136
 
109
137
  Objective: Build a secure user authentication login page
110
138
 
@@ -129,18 +157,20 @@ Success Criteria:
129
157
  - Invalid credentials show appropriate errors
130
158
  - Page is accessible via keyboard navigation
131
159
 
132
- ### CLEAR Changes Made:
160
+ ### Improvements Applied:
133
161
 
134
- [C] Removed 4 pleasantries ("Please", "could you", "maybe", "help me"), reduced from 11 words to core intent
135
- [L] Structured logical flow: Objective → Requirements → Technical Constraints → Expected Output → Success Criteria
136
- [E] Added explicit specifications: React TypeScript persona, component output format, production-ready tone, accessibility criteria
162
+ [Efficiency] Removed 4 pleasantries ("Please", "could you", "maybe", "help me"), reduced from 11 words to core intent
163
+ [Structure] Organized logical flow: Objective → Requirements → Technical Constraints → Expected Output → Success Criteria
164
+ [Clarity] Added explicit specifications: React TypeScript persona, component output format, production-ready tone
165
+ [Completeness] Added tech stack (React/TypeScript), authentication method (JWT), accessibility standards (WCAG 2.1 AA)
166
+ [Actionability] Converted vague "create" into specific implementation requirements with measurable success criteria
137
167
  ```
138
168
 
139
169
  ## Next Steps (v2.7+)
140
170
 
141
171
  ### Saving the Prompt (REQUIRED)
142
172
 
143
- After displaying the CLEAR-optimized prompt, you MUST save it to ensure it's available for the prompt lifecycle workflow.
173
+ After displaying the optimized prompt, you MUST save it to ensure it's available for the prompt lifecycle workflow.
144
174
 
145
175
  **If user ran CLI command** (`clavix fast "prompt"`):
146
176
  - Prompt is automatically saved ✓
@@ -177,12 +207,14 @@ originalPrompt: <user's original prompt text>
177
207
 
178
208
  # Improved Prompt
179
209
 
180
- <Insert the CLEAR-optimized prompt content from your analysis above>
210
+ <Insert the optimized prompt content from your analysis above>
181
211
 
182
- ## CLEAR Scores
183
- - **C** (Conciseness): <percentage>%
184
- - **L** (Logic): <percentage>%
185
- - **E** (Explicitness): <percentage>%
212
+ ## Quality Scores
213
+ - **Clarity**: <percentage>%
214
+ - **Efficiency**: <percentage>%
215
+ - **Structure**: <percentage>%
216
+ - **Completeness**: <percentage>%
217
+ - **Actionability**: <percentage>%
186
218
  - **Overall**: <percentage>% (<rating>)
187
219
 
188
220
  ## Original Prompt
@@ -246,7 +278,7 @@ clavix prompts clear --fast
246
278
 
247
279
  ## Workflow Navigation
248
280
 
249
- **You are here:** Fast Mode (Quick CLEAR Improvement)
281
+ **You are here:** Fast Mode (Quick Prompt Intelligence)
250
282
 
251
283
  **Common workflows:**
252
284
  - **Quick cleanup**: `/clavix:fast` → `/clavix:execute` → Implement
@@ -257,18 +289,18 @@ clavix prompts clear --fast
257
289
  **Related commands:**
258
290
  - `/clavix:execute` - Execute saved prompt
259
291
  - `/clavix:prompts` - Manage saved prompts
260
- - `/clavix:deep` - Full CLEAR analysis (all 5 components: C, L, E, A, R)
261
- - `/clavix:prd` - Generate PRD for strategic planning
292
+ - `/clavix:deep` - Comprehensive analysis with alternatives, edge cases, validation
293
+ - `/clavix:prd` - Generate PRD for strategic planning (Clavix Planning Mode)
262
294
  - `/clavix:start` - Conversational exploration before prompting
263
295
 
264
296
  ## Tips
265
297
 
266
- - **Apply CLEAR framework** systematically: C, L, E components
267
- - Use **CLEAR-aware triage** to prevent inadequate analysis
268
- - Label all changes with CLEAR components for education
269
- - For comprehensive analysis with [A] and [R], recommend `/clavix:deep`
298
+ - **Intent-aware optimization**: Clavix automatically detects what you're trying to achieve
299
+ - Use **smart triage** to prevent inadequate analysis
300
+ - Label all changes with quality dimensions for education
301
+ - For comprehensive analysis with alternatives and validation, recommend `/clavix:deep`
270
302
  - For strategic planning, recommend `/clavix:prd`
271
- - Focus on making prompts **CLEAR** quickly
303
+ - Focus on making prompts **actionable** quickly
272
304
 
273
305
  ## Troubleshooting
274
306
 
@@ -294,22 +326,22 @@ echo '{"version":"1.0","prompts":[]}' > .clavix/outputs/prompts/fast/.index.json
294
326
  - Try creating the directory structure again
295
327
 
296
328
  ### Issue: Triage keeps recommending deep mode
297
- **Cause**: Prompt has low CLEAR scores + multiple secondary indicators
329
+ **Cause**: Prompt has low quality scores + multiple secondary indicators
298
330
  **Solution**:
299
331
  - Accept the recommendation - deep mode will provide better analysis
300
332
  - OR improve prompt manually before running fast mode again
301
- - Check which CLEAR component is scoring low and address it
333
+ - Check which quality dimension is scoring low and address it
302
334
 
303
335
  ### Issue: Can't determine if prompt is complex enough for deep mode
304
- **Cause**: Borderline CLEAR scores or unclear content quality
336
+ **Cause**: Borderline quality scores or unclear content quality
305
337
  **Solution**:
306
338
  - Err on side of fast mode first
307
339
  - If output feels insufficient, escalate to `/clavix:deep`
308
340
  - Use triage as guidance, not absolute rule
309
341
 
310
342
  ### Issue: Improved prompt still feels incomplete
311
- **Cause**: Fast mode only applies C, L, E components
343
+ **Cause**: Fast mode only applies basic optimizations
312
344
  **Solution**:
313
- - Use `/clavix:deep` for Adaptive variations and Reflective validation
345
+ - Use `/clavix:deep` for alternative approaches, edge cases, and validation checklists
314
346
  - OR use `/clavix:prd` if strategic planning is needed
315
347
  - Fast mode is for quick cleanup, not comprehensive analysis
@@ -66,7 +66,7 @@ You are helping the user implement tasks from their task plan with AI assistance
66
66
 
67
67
  d. **Implement the task**:
68
68
  - Write/modify code as needed
69
- - Follow CLEAR principles
69
+ - Follow quality principles (clarity, structure, actionability)
70
70
  - Use PRD requirements as your guide
71
71
  - Ask user for clarification if needed
72
72
 
@@ -5,7 +5,7 @@ description: Generate implementation task breakdown from PRD
5
5
 
6
6
  # Clavix Plan - Task Breakdown Generator
7
7
 
8
- You are helping the user generate a CLEAR-optimized implementation task breakdown from their PRD.
8
+ You are helping the user generate an optimized implementation task breakdown from their PRD.
9
9
 
10
10
  ## Instructions
11
11
 
@@ -54,12 +54,12 @@ If you have the full PRD content in memory and want to generate tasks directly:
54
54
 
55
55
  ### Part B: Behavioral Guidance (Task Breakdown Strategy)
56
56
 
57
- 3. **How to structure tasks** (CLEAR-optimized task breakdown):
57
+ 3. **How to structure tasks** (optimized task breakdown):
58
58
 
59
59
  **Task Granularity Principles:**
60
- - **[C] Concise**: Each task = 1 clear action (not "Build authentication system", but "Create user registration endpoint")
61
- - **[L] Logical**: Tasks flow in implementation order (database schema → backend logic → frontend UI)
62
- - **[E] Explicit**: Tasks specify deliverable (not "Add tests", but "Write unit tests for user service with >80% coverage")
60
+ - **Clarity**: Each task = 1 clear action (not "Build authentication system", but "Create user registration endpoint")
61
+ - **Structure**: Tasks flow in implementation order (database schema → backend logic → frontend UI)
62
+ - **Actionability**: Tasks specify deliverable (not "Add tests", but "Write unit tests for user service with >80% coverage")
63
63
 
64
64
  **Atomic Task Guidelines:**
65
65
  - **Ideal size**: Completable in 15-60 minutes
@@ -74,7 +74,7 @@ If you have the full PRD content in memory and want to generate tasks directly:
74
74
 
75
75
  4. **Review and customize generated tasks**:
76
76
  - The command will generate `tasks.md` in the PRD folder
77
- - Tasks are organized into logical phases with CLEAR principles
77
+ - Tasks are organized into logical phases with quality principles
78
78
  - Each task includes:
79
79
  - Checkbox `- [ ]` for tracking
80
80
  - Clear deliverable description
@@ -85,11 +85,11 @@ If you have the full PRD content in memory and want to generate tasks directly:
85
85
  - Reorder for better flow
86
86
  - Add notes or sub-tasks
87
87
 
88
- 5. **CLEAR Task Labeling** (optional, for education):
88
+ 5. **Task Quality Labeling** (optional, for education):
89
89
  When reviewing tasks, you can annotate improvements:
90
- - **[C]**: "Split vague 'Add UI' into 3 concrete tasks"
91
- - **[L]**: "Reordered tasks: database schema before API endpoints"
92
- - **[E]**: "Added specific acceptance criteria (>80% test coverage)"
90
+ - **[Clarity]**: "Split vague 'Add UI' into 3 concrete tasks"
91
+ - **[Structure]**: "Reordered tasks: database schema before API endpoints"
92
+ - **[Actionability]**: "Added specific acceptance criteria (>80% test coverage)"
93
93
 
94
94
  6. **Next steps**:
95
95
  - Review and edit `tasks.md` if needed
@@ -221,7 +221,7 @@ The generated `tasks.md` will look like:
221
221
 
222
222
  ## Tips
223
223
 
224
- - Tasks are automatically optimized using CLEAR framework
224
+ - Tasks are automatically optimized for clarity, structure, and actionability
225
225
  - Each task is concise and actionable
226
226
  - Tasks can reference specific PRD sections
227
227
  - Supports mini-PRD outputs from `/clavix:summarize` and session workflows via `--session` or `--active-session`
@@ -285,7 +285,7 @@ The generated `tasks.md` will look like:
285
285
  - Cut and paste tasks to correct order
286
286
  - Preserve task ID format
287
287
  - Maintain phase groupings
288
- 4. Follow CLEAR [L] Logic principle: ensure sequential coherence
288
+ 4. Follow structure principle: ensure sequential coherence
289
289
 
290
290
  ### Issue: Tasks conflict with PRD or duplicate work
291
291
  **Cause**: Misinterpretation of PRD or redundant task generation
@@ -1,11 +1,19 @@
1
1
  ---
2
2
  name: "Clavix: PRD"
3
- description: CLEAR-validated PRD generation through Socratic questioning
3
+ description: Clavix Planning Mode - Transform ideas into structured PRDs through strategic questioning
4
4
  ---
5
5
 
6
- # Clavix PRD Generation - CLEAR Framework Validated
6
+ # Clavix Planning Mode
7
7
 
8
- You are helping the user create a Product Requirements Document (PRD) using Clavix's Socratic questioning approach. **Generated PRDs are automatically validated using the CLEAR Framework** (Concise, Logical, Explicit) for AI consumption quality.
8
+ You are helping the user create a Product Requirements Document (PRD) using Clavix Planning Mode's Socratic questioning approach. **Generated PRDs are automatically validated using universal prompt intelligence** for AI consumption quality.
9
+
10
+ ## What is Clavix Planning Mode?
11
+
12
+ Clavix Planning Mode guides you through strategic questions to transform vague ideas into structured, comprehensive PRDs. The generated documents are:
13
+ - **Full PRD**: Comprehensive team-facing document
14
+ - **Quick PRD**: AI-optimized 2-3 paragraph version
15
+
16
+ Both documents are automatically validated for quality (Clarity, Structure, Completeness) to ensure they're ready for AI consumption.
9
17
 
10
18
  ## Instructions
11
19
 
@@ -99,13 +107,13 @@ You are helping the user create a Product Requirements Document (PRD) using Clav
99
107
 
100
108
  3. **Save both documents** using the file-saving protocol below
101
109
 
102
- 4. **CLEAR Framework Validation** (automatic):
103
- - After PRD generation, the quick-prd.md is analyzed using CLEAR framework
104
- - Assesses AI consumption quality (Conciseness, Logic, Explicitness)
105
- - Displays CLEAR scores and improvement suggestions
106
- - Only C, L, E components apply (Adaptive & Reflective not applicable to PRDs)
110
+ 4. **Quality Validation** (automatic):
111
+ - After PRD generation, the quick-prd.md is analyzed for AI consumption quality
112
+ - Assesses Clarity, Structure, and Completeness
113
+ - Displays quality scores and improvement suggestions
114
+ - Focus is on making PRDs actionable for AI agents
107
115
 
108
- 5. Display file paths, CLEAR validation results, and suggest next steps.
116
+ 5. Display file paths, validation results, and suggest next steps.
109
117
 
110
118
  ## File-Saving Protocol (For AI Agents)
111
119
 
@@ -150,7 +158,7 @@ mkdir -p .clavix/outputs/{sanitized-project-name}
150
158
 
151
159
  ---
152
160
 
153
- *Generated by Clavix /clavix:prd*
161
+ *Generated with Clavix Planning Mode*
154
162
  *Generated: {ISO timestamp}*
155
163
  ```
156
164
 
@@ -169,7 +177,7 @@ mkdir -p .clavix/outputs/{sanitized-project-name}
169
177
 
170
178
  ---
171
179
 
172
- *Generated by Clavix /clavix:prd*
180
+ *Generated with Clavix Planning Mode*
173
181
  *Generated: {ISO timestamp}*
174
182
  ```
175
183
 
@@ -191,10 +199,11 @@ Files saved:
191
199
  • Full PRD: .clavix/outputs/{project-name}/full-prd.md
192
200
  • Quick PRD: .clavix/outputs/{project-name}/quick-prd.md
193
201
 
194
- CLEAR Validation Results:
195
- [C] Conciseness: {score}/10 - {feedback}
196
- [L] Logic: {score}/10 - {feedback}
197
- [E] Explicitness: {score}/10 - {feedback}
202
+ Quality Assessment:
203
+ Clarity: {score}% - {feedback}
204
+ Structure: {score}% - {feedback}
205
+ Completeness: {score}% - {feedback}
206
+ Overall: {score}%
198
207
 
199
208
  Next steps:
200
209
  • Review and edit PRD files if needed
@@ -216,21 +225,21 @@ Next steps:
216
225
  - Existing files will be overwritten (user initiated PRD generation)
217
226
  - If unsure: Ask user "Project `{name}` already exists. Overwrite PRD files?"
218
227
 
219
- ## CLEAR Validation
228
+ ## Quality Validation
220
229
 
221
230
  **What gets validated:**
222
- - **[C] Concise**: Is the PRD focused and to-the-point for AI agents?
223
- - **[L] Logical**: Does information flow coherently (context → requirements → constraints)?
224
- - **[E] Explicit**: Are specifications, formats, and success criteria clear?
231
+ - **Clarity**: Is the PRD clear and unambiguous for AI agents?
232
+ - **Structure**: Does information flow logically (context → requirements → constraints)?
233
+ - **Completeness**: Are all necessary specifications provided?
225
234
 
226
- **Note:** Adaptive (A) and Reflective (R) components are not applicable to PRDs. For prompt-level CLEAR analysis with all 5 components, use `/clavix:deep` instead.
235
+ The validation ensures generated PRDs are immediately usable for AI consumption without back-and-forth clarifications.
227
236
 
228
237
  ## Workflow Navigation
229
238
 
230
- **You are here:** PRD Generation (Strategic Planning)
239
+ **You are here:** Clavix Planning Mode (Strategic Planning)
231
240
 
232
241
  **Common workflows:**
233
- - **Full PRD workflow**: `/clavix:prd` → `/clavix:plan` → `/clavix:implement` → `/clavix:archive`
242
+ - **Full planning workflow**: `/clavix:prd` → `/clavix:plan` → `/clavix:implement` → `/clavix:archive`
234
243
  - **From deep mode**: `/clavix:deep` → (strategic scope detected) → `/clavix:prd`
235
244
  - **Quick to strategic**: `/clavix:fast` → (realizes complexity) → `/clavix:prd`
236
245
 
@@ -244,7 +253,8 @@ Next steps:
244
253
  - Ask follow-up questions if answers are too vague
245
254
  - Help users think through edge cases
246
255
  - Keep the process conversational and supportive
247
- - Generated PRDs are automatically CLEAR-validated for optimal AI consumption
256
+ - Generated PRDs are automatically validated for optimal AI consumption
257
+ - Clavix Planning Mode is designed for strategic features, not simple prompts
248
258
 
249
259
  ## Troubleshooting
250
260
 
@@ -271,7 +281,7 @@ Next steps:
271
281
  - For Q4: Suggest common exclusions based on project type
272
282
  - Consider suggesting `/clavix:start` for conversational exploration first
273
283
 
274
- ### Issue: CLEAR validation shows low scores after generation
284
+ ### Issue: Quality validation shows low scores after generation
275
285
  **Cause**: Answers were too vague or incomplete
276
286
  **Solution**:
277
287
  - Review the generated PRD
@@ -3,9 +3,9 @@ name: "Clavix: Start"
3
3
  description: Start conversational mode for iterative prompt development
4
4
  ---
5
5
 
6
- # Clavix Conversational Mode - CLEAR Framework Enhanced
6
+ # Clavix Conversational Mode
7
7
 
8
- You are starting a Clavix conversational session for iterative prompt and requirements development. **When complete, use `/clavix:summarize` to extract and CLEAR-optimize requirements** (Concise, Logical, Explicit).
8
+ You are starting a Clavix conversational session for iterative prompt and requirements development. **When complete, use `/clavix:summarize` to extract and optimize requirements** using universal prompt intelligence.
9
9
 
10
10
  ## Instructions
11
11
 
@@ -14,7 +14,7 @@ You are starting a Clavix conversational session for iterative prompt and requir
14
14
  Let's build something great together! Tell me about what you want to create.
15
15
 
16
16
  I'll ask clarifying questions as we go, and we can refine the requirements together.
17
- When we're done, use /clavix:summarize to extract a CLEAR-optimized prompt from our conversation.
17
+ When we're done, use /clavix:summarize to extract an optimized prompt from our conversation.
18
18
  ```
19
19
 
20
20
  2. As the user describes their needs:
@@ -61,16 +61,17 @@ You are starting a Clavix conversational session for iterative prompt and requir
61
61
  - Offer suggestions when helpful
62
62
  - Validate their thinking
63
63
 
64
- 5. Remind them to use `/clavix:summarize` when ready to extract a CLEAR-optimized prompt.
64
+ 5. Remind them to use `/clavix:summarize` when ready to extract an optimized prompt.
65
65
 
66
- ## CLEAR Framework Connection
66
+ ## How Summarization Works
67
67
 
68
68
  After the conversational session, `/clavix:summarize` will:
69
69
  - Extract requirements from the conversation
70
- - Apply CLEAR framework optimization (Concise, Logical, Explicit)
71
- - Generate both raw extraction and CLEAR-enhanced version
72
- - Display CLEAR scores and improvements
73
- - Save `clear-optimized-prompt.md` for optimal AI consumption
70
+ - Apply universal prompt intelligence optimization
71
+ - Analyze intent and assess quality (Clarity, Efficiency, Structure, Completeness, Actionability)
72
+ - Generate both original extraction and optimized version
73
+ - Display quality scores and improvements
74
+ - Save `optimized-prompt.md` for optimal AI consumption
74
75
 
75
76
  ## Example Flow
76
77
 
@@ -89,13 +90,13 @@ After the conversational session, `/clavix:summarize` will:
89
90
  **You are here:** Conversational Mode (Iterative Exploration)
90
91
 
91
92
  **Common workflows:**
92
- - **Exploration to prompt**: `/clavix:start` → [conversation] → `/clavix:summarize` → CLEAR-optimized prompt
93
+ - **Exploration to prompt**: `/clavix:start` → [conversation] → `/clavix:summarize` → Optimized prompt
93
94
  - **Exploration to PRD**: `/clavix:start` → [conversation] → `/clavix:prd` (answer questions with discussed info)
94
95
  - **Exploration to planning**: `/clavix:start` → `/clavix:summarize` → `/clavix:plan` → Implement
95
96
 
96
97
  **Related commands:**
97
- - `/clavix:summarize` - Extract and CLEAR-optimize conversation (typical next step)
98
- - `/clavix:prd` - Switch to structured PRD generation
98
+ - `/clavix:summarize` - Extract and optimize conversation (typical next step)
99
+ - `/clavix:prd` - Switch to Clavix Planning Mode for structured PRD generation
99
100
  - `/clavix:fast` or `/clavix:deep` - Direct prompt improvement instead of conversation
100
101
 
101
102
  ## Note