clavix 2.3.1 → 2.4.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 (187) hide show
  1. package/README.md +0 -116
  2. package/bin/clavix.js +7 -0
  3. package/dist/cli/commands/implement.js +25 -33
  4. package/dist/cli/commands/plan.js +22 -27
  5. package/dist/cli/commands/prd.js +7 -12
  6. package/dist/cli/commands/start.js +4 -9
  7. package/dist/cli/commands/summarize.js +15 -22
  8. package/dist/core 2/adapters/agents-md-generator.d.ts +26 -0
  9. package/dist/core 2/adapters/agents-md-generator.js +102 -0
  10. package/dist/core 2/adapters/amp-adapter.d.ts +27 -0
  11. package/dist/core 2/adapters/amp-adapter.js +42 -0
  12. package/dist/core 2/adapters/augment-adapter.d.ts +22 -0
  13. package/dist/core 2/adapters/augment-adapter.js +77 -0
  14. package/dist/core 2/adapters/base-adapter.d.ts +45 -0
  15. package/dist/core 2/adapters/base-adapter.js +142 -0
  16. package/dist/core 2/adapters/claude-code-adapter.d.ts +32 -0
  17. package/dist/core 2/adapters/claude-code-adapter.js +116 -0
  18. package/dist/core 2/adapters/cline-adapter.d.ts +34 -0
  19. package/dist/core 2/adapters/cline-adapter.js +52 -0
  20. package/dist/core 2/adapters/codebuddy-adapter.d.ts +24 -0
  21. package/dist/core 2/adapters/codebuddy-adapter.js +82 -0
  22. package/dist/core 2/adapters/codex-adapter.d.ts +24 -0
  23. package/dist/core 2/adapters/codex-adapter.js +79 -0
  24. package/dist/core 2/adapters/copilot-instructions-generator.d.ts +26 -0
  25. package/dist/core 2/adapters/copilot-instructions-generator.js +104 -0
  26. package/dist/core 2/adapters/crush-adapter.d.ts +35 -0
  27. package/dist/core 2/adapters/crush-adapter.js +49 -0
  28. package/dist/core 2/adapters/cursor-adapter.d.ts +25 -0
  29. package/dist/core 2/adapters/cursor-adapter.js +40 -0
  30. package/dist/core 2/adapters/droid-adapter.d.ts +33 -0
  31. package/dist/core 2/adapters/droid-adapter.js +57 -0
  32. package/dist/core 2/adapters/gemini-adapter.d.ts +27 -0
  33. package/dist/core 2/adapters/gemini-adapter.js +90 -0
  34. package/dist/core 2/adapters/kilocode-adapter.d.ts +34 -0
  35. package/dist/core 2/adapters/kilocode-adapter.js +49 -0
  36. package/dist/core 2/adapters/octo-md-generator.d.ts +26 -0
  37. package/dist/core 2/adapters/octo-md-generator.js +102 -0
  38. package/dist/core 2/adapters/opencode-adapter.d.ts +33 -0
  39. package/dist/core 2/adapters/opencode-adapter.js +56 -0
  40. package/dist/core 2/adapters/qwen-adapter.d.ts +27 -0
  41. package/dist/core 2/adapters/qwen-adapter.js +90 -0
  42. package/dist/core 2/adapters/roocode-adapter.d.ts +40 -0
  43. package/dist/core 2/adapters/roocode-adapter.js +68 -0
  44. package/dist/core 2/adapters/warp-md-generator.d.ts +17 -0
  45. package/dist/core 2/adapters/warp-md-generator.js +88 -0
  46. package/dist/core 2/adapters/windsurf-adapter.d.ts +34 -0
  47. package/dist/core 2/adapters/windsurf-adapter.js +49 -0
  48. package/dist/core 2/agent-manager.d.ts +51 -0
  49. package/dist/core 2/agent-manager.js +126 -0
  50. package/dist/core 2/archive-manager.d.ts +100 -0
  51. package/dist/core 2/archive-manager.js +338 -0
  52. package/dist/core 2/conversation-analyzer.d.ts +86 -0
  53. package/dist/core 2/doc-injector.d.ts +51 -0
  54. package/dist/core 2/doc-injector.js +236 -0
  55. package/dist/core 2/git-manager.d.ts +100 -0
  56. package/dist/core 2/git-manager.js +214 -0
  57. package/dist/core 2/prompt-optimizer.d.ts +268 -0
  58. package/dist/core 2/prompt-optimizer.js +963 -0
  59. package/dist/core 2/question-engine.d.ts +167 -0
  60. package/dist/core 2/question-engine.js +395 -0
  61. package/dist/core 2/session-manager.d.ts +139 -0
  62. package/dist/core 2/session-manager.js +403 -0
  63. package/dist/core 2/task-manager.d.ts +155 -0
  64. package/dist/core 2/task-manager.js +689 -0
  65. package/dist/index.js +6 -0
  66. package/dist/utils/template-loader.js +24 -22
  67. package/package.json +1 -1
  68. package/dist/templates/slash-commands/augment/archive.md +0 -291
  69. package/dist/templates/slash-commands/augment/deep.md +0 -207
  70. package/dist/templates/slash-commands/augment/fast.md +0 -183
  71. package/dist/templates/slash-commands/augment/implement.md +0 -267
  72. package/dist/templates/slash-commands/augment/plan.md +0 -173
  73. package/dist/templates/slash-commands/augment/prd.md +0 -178
  74. package/dist/templates/slash-commands/augment/start.md +0 -142
  75. package/dist/templates/slash-commands/augment/summarize.md +0 -179
  76. package/dist/templates/slash-commands/claude-code/archive.md +0 -291
  77. package/dist/templates/slash-commands/claude-code/deep.md +0 -207
  78. package/dist/templates/slash-commands/claude-code/fast.md +0 -183
  79. package/dist/templates/slash-commands/claude-code/implement.md +0 -267
  80. package/dist/templates/slash-commands/claude-code/plan.md +0 -173
  81. package/dist/templates/slash-commands/claude-code/prd.md +0 -178
  82. package/dist/templates/slash-commands/claude-code/start.md +0 -142
  83. package/dist/templates/slash-commands/claude-code/summarize.md +0 -179
  84. package/dist/templates/slash-commands/cline/archive.md +0 -291
  85. package/dist/templates/slash-commands/cline/deep.md +0 -207
  86. package/dist/templates/slash-commands/cline/fast.md +0 -183
  87. package/dist/templates/slash-commands/cline/implement.md +0 -267
  88. package/dist/templates/slash-commands/cline/plan.md +0 -173
  89. package/dist/templates/slash-commands/cline/prd.md +0 -178
  90. package/dist/templates/slash-commands/cline/start.md +0 -142
  91. package/dist/templates/slash-commands/cline/summarize.md +0 -179
  92. package/dist/templates/slash-commands/codebuddy/archive.md +0 -291
  93. package/dist/templates/slash-commands/codebuddy/deep.md +0 -207
  94. package/dist/templates/slash-commands/codebuddy/fast.md +0 -183
  95. package/dist/templates/slash-commands/codebuddy/implement.md +0 -267
  96. package/dist/templates/slash-commands/codebuddy/plan.md +0 -173
  97. package/dist/templates/slash-commands/codebuddy/prd.md +0 -178
  98. package/dist/templates/slash-commands/codebuddy/start.md +0 -142
  99. package/dist/templates/slash-commands/codebuddy/summarize.md +0 -179
  100. package/dist/templates/slash-commands/codex/archive.md +0 -291
  101. package/dist/templates/slash-commands/codex/deep.md +0 -207
  102. package/dist/templates/slash-commands/codex/fast.md +0 -183
  103. package/dist/templates/slash-commands/codex/implement.md +0 -267
  104. package/dist/templates/slash-commands/codex/plan.md +0 -173
  105. package/dist/templates/slash-commands/codex/prd.md +0 -178
  106. package/dist/templates/slash-commands/codex/start.md +0 -142
  107. package/dist/templates/slash-commands/codex/summarize.md +0 -179
  108. package/dist/templates/slash-commands/crush/archive.md +0 -291
  109. package/dist/templates/slash-commands/crush/deep.md +0 -207
  110. package/dist/templates/slash-commands/crush/fast.md +0 -183
  111. package/dist/templates/slash-commands/crush/implement.md +0 -267
  112. package/dist/templates/slash-commands/crush/plan.md +0 -173
  113. package/dist/templates/slash-commands/crush/prd.md +0 -178
  114. package/dist/templates/slash-commands/crush/start.md +0 -142
  115. package/dist/templates/slash-commands/crush/summarize.md +0 -179
  116. package/dist/templates/slash-commands/cursor/archive.md +0 -291
  117. package/dist/templates/slash-commands/cursor/deep.md +0 -207
  118. package/dist/templates/slash-commands/cursor/fast.md +0 -183
  119. package/dist/templates/slash-commands/cursor/implement.md +0 -267
  120. package/dist/templates/slash-commands/cursor/plan.md +0 -173
  121. package/dist/templates/slash-commands/cursor/prd.md +0 -178
  122. package/dist/templates/slash-commands/cursor/start.md +0 -142
  123. package/dist/templates/slash-commands/cursor/summarize.md +0 -179
  124. package/dist/templates/slash-commands/droid/archive.md +0 -291
  125. package/dist/templates/slash-commands/droid/deep.md +0 -207
  126. package/dist/templates/slash-commands/droid/fast.md +0 -183
  127. package/dist/templates/slash-commands/droid/implement.md +0 -267
  128. package/dist/templates/slash-commands/droid/plan.md +0 -173
  129. package/dist/templates/slash-commands/droid/prd.md +0 -178
  130. package/dist/templates/slash-commands/droid/start.md +0 -142
  131. package/dist/templates/slash-commands/droid/summarize.md +0 -179
  132. package/dist/templates/slash-commands/gemini/archive.toml +0 -290
  133. package/dist/templates/slash-commands/gemini/deep.toml +0 -206
  134. package/dist/templates/slash-commands/gemini/fast.toml +0 -182
  135. package/dist/templates/slash-commands/gemini/implement.toml +0 -266
  136. package/dist/templates/slash-commands/gemini/plan.toml +0 -170
  137. package/dist/templates/slash-commands/gemini/prd.toml +0 -177
  138. package/dist/templates/slash-commands/gemini/start.toml +0 -141
  139. package/dist/templates/slash-commands/gemini/summarize.toml +0 -178
  140. package/dist/templates/slash-commands/kilocode/archive.md +0 -291
  141. package/dist/templates/slash-commands/kilocode/deep.md +0 -207
  142. package/dist/templates/slash-commands/kilocode/fast.md +0 -183
  143. package/dist/templates/slash-commands/kilocode/implement.md +0 -267
  144. package/dist/templates/slash-commands/kilocode/plan.md +0 -173
  145. package/dist/templates/slash-commands/kilocode/prd.md +0 -178
  146. package/dist/templates/slash-commands/kilocode/start.md +0 -142
  147. package/dist/templates/slash-commands/kilocode/summarize.md +0 -179
  148. package/dist/templates/slash-commands/opencode/archive.md +0 -291
  149. package/dist/templates/slash-commands/opencode/deep.md +0 -207
  150. package/dist/templates/slash-commands/opencode/fast.md +0 -183
  151. package/dist/templates/slash-commands/opencode/implement.md +0 -267
  152. package/dist/templates/slash-commands/opencode/plan.md +0 -173
  153. package/dist/templates/slash-commands/opencode/prd.md +0 -178
  154. package/dist/templates/slash-commands/opencode/start.md +0 -142
  155. package/dist/templates/slash-commands/opencode/summarize.md +0 -179
  156. package/dist/templates/slash-commands/qwen/archive.toml +0 -290
  157. package/dist/templates/slash-commands/qwen/deep.toml +0 -206
  158. package/dist/templates/slash-commands/qwen/fast.toml +0 -182
  159. package/dist/templates/slash-commands/qwen/implement.toml +0 -266
  160. package/dist/templates/slash-commands/qwen/plan.toml +0 -170
  161. package/dist/templates/slash-commands/qwen/prd.toml +0 -177
  162. package/dist/templates/slash-commands/qwen/start.toml +0 -141
  163. package/dist/templates/slash-commands/qwen/summarize.toml +0 -178
  164. package/dist/templates/slash-commands/roocode/archive.md +0 -291
  165. package/dist/templates/slash-commands/roocode/deep.md +0 -207
  166. package/dist/templates/slash-commands/roocode/fast.md +0 -183
  167. package/dist/templates/slash-commands/roocode/implement.md +0 -267
  168. package/dist/templates/slash-commands/roocode/plan.md +0 -173
  169. package/dist/templates/slash-commands/roocode/prd.md +0 -178
  170. package/dist/templates/slash-commands/roocode/start.md +0 -142
  171. package/dist/templates/slash-commands/roocode/summarize.md +0 -179
  172. package/dist/templates/slash-commands/windsurf/archive.md +0 -291
  173. package/dist/templates/slash-commands/windsurf/deep.md +0 -207
  174. package/dist/templates/slash-commands/windsurf/fast.md +0 -183
  175. package/dist/templates/slash-commands/windsurf/implement.md +0 -267
  176. package/dist/templates/slash-commands/windsurf/plan.md +0 -173
  177. package/dist/templates/slash-commands/windsurf/prd.md +0 -178
  178. package/dist/templates/slash-commands/windsurf/start.md +0 -142
  179. package/dist/templates/slash-commands/windsurf/summarize.md +0 -179
  180. /package/dist/templates/slash-commands/{amp → _canonical}/archive.md +0 -0
  181. /package/dist/templates/slash-commands/{amp → _canonical}/deep.md +0 -0
  182. /package/dist/templates/slash-commands/{amp → _canonical}/fast.md +0 -0
  183. /package/dist/templates/slash-commands/{amp → _canonical}/implement.md +0 -0
  184. /package/dist/templates/slash-commands/{amp → _canonical}/plan.md +0 -0
  185. /package/dist/templates/slash-commands/{amp → _canonical}/prd.md +0 -0
  186. /package/dist/templates/slash-commands/{amp → _canonical}/start.md +0 -0
  187. /package/dist/templates/slash-commands/{amp → _canonical}/summarize.md +0 -0
@@ -1,141 +0,0 @@
1
- description = "Start conversational mode for iterative prompt development"
2
- prompt = """
3
-
4
- # Clavix Conversational Mode - CLEAR Framework Enhanced
5
-
6
- 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).
7
-
8
- ## Instructions
9
-
10
- 1. Begin with a friendly introduction:
11
- ```
12
- Let's build something great together! Tell me about what you want to create.
13
-
14
- I'll ask clarifying questions as we go, and we can refine the requirements together.
15
- When we're done, use /clavix:summarize to extract a CLEAR-optimized prompt from our conversation.
16
- ```
17
-
18
- 2. As the user describes their needs:
19
- - Ask clarifying questions about unclear points
20
- - Probe for technical constraints
21
- - Explore edge cases and requirements
22
- - Help them think through user needs
23
- - Identify potential challenges
24
-
25
- 3. **Track conversation topics and manage complexity**:
26
-
27
- **Key points to track:**
28
- - Problem statement
29
- - Target users
30
- - Core features
31
- - Technical requirements
32
- - Success criteria
33
- - Constraints and scope
34
-
35
- **Multi-topic detection** (track distinct topics being discussed):
36
- - Consider topics distinct if they address different problems/features/user needs
37
- - Examples: "dashboard for sales" + "API for integrations" + "mobile app" = 3 topics
38
-
39
- **When 3+ distinct topics detected**:
40
- Auto-suggest focusing: "I notice we're discussing multiple distinct areas: [Topic A: summary], [Topic B: summary], and [Topic C: summary]. To ensure we develop clear requirements for each, would you like to:
41
- - **Focus on one** - Pick the most important topic to explore thoroughly first
42
- - **Continue multi-topic** - We'll track all of them, but the resulting prompt may need refinement
43
- - **Create separate sessions** - Start fresh for each topic with dedicated focus"
44
-
45
- **Complexity indicators** (suggest wrapping up/summarizing):
46
- - Conversation > 15 exchanges
47
- - Requirements for 5+ major features discussed
48
- - Multiple technology stacks mentioned
49
- - Significant scope changes or pivots occurred
50
-
51
- When complexity threshold reached: "We've covered substantial ground. Would you like to:
52
- - Continue exploring
53
- - Use `/clavix:summarize` to extract what we have so far
54
- - Switch to `/clavix:prd` for more structured planning"
55
-
56
- 4. Be conversational and supportive:
57
- - Don't interrogate - have a natural discussion
58
- - Build on their ideas
59
- - Offer suggestions when helpful
60
- - Validate their thinking
61
-
62
- 5. Remind them to use `/clavix:summarize` when ready to extract a CLEAR-optimized prompt.
63
-
64
- ## CLEAR Framework Connection
65
-
66
- After the conversational session, `/clavix:summarize` will:
67
- - Extract requirements from the conversation
68
- - Apply CLEAR framework optimization (Concise, Logical, Explicit)
69
- - Generate both raw extraction and CLEAR-enhanced version
70
- - Display CLEAR scores and improvements
71
- - Save `clear-optimized-prompt.md` for optimal AI consumption
72
-
73
- ## Example Flow
74
-
75
- **User**: "I need a dashboard for analytics"
76
-
77
- **Assistant**: "Great! What kind of analytics are we talking about? Is this for business metrics, user behavior, system performance, or something else?"
78
-
79
- **User**: "Business metrics - sales, revenue, customer growth"
80
-
81
- **Assistant**: "Perfect. Who will be using this dashboard? Executives, sales team, analysts? Their needs might be quite different."
82
-
83
- [Continue conversational refinement...]
84
-
85
- ## Workflow Navigation
86
-
87
- **You are here:** Conversational Mode (Iterative Exploration)
88
-
89
- **Common workflows:**
90
- - **Exploration to prompt**: `/clavix:start` → [conversation] → `/clavix:summarize` → CLEAR-optimized prompt
91
- - **Exploration to PRD**: `/clavix:start` → [conversation] → `/clavix:prd` (answer questions with discussed info)
92
- - **Exploration to planning**: `/clavix:start` → `/clavix:summarize` → `/clavix:plan` → Implement
93
-
94
- **Related commands:**
95
- - `/clavix:summarize` - Extract and CLEAR-optimize conversation (typical next step)
96
- - `/clavix:prd` - Switch to structured PRD generation
97
- - `/clavix:fast` or `/clavix:deep` - Direct prompt improvement instead of conversation
98
-
99
- ## Note
100
-
101
- The goal is natural exploration of requirements, not a rigid questionnaire. Follow the user's lead while gently guiding toward clarity.
102
-
103
- ## Troubleshooting
104
-
105
- ### Issue: Conversation going in circles without progress
106
- **Cause**: Unclear focus or too many topics being explored
107
- **Solution** (inline):
108
- - Pause and summarize: "So far we've discussed [A], [B], [C]. Which should we focus on?"
109
- - Suggest focusing on one topic at a time
110
- - Or suggest `/clavix:summarize` to extract what's been discussed
111
-
112
- ### Issue: User provides very high-level descriptions ("build something cool")
113
- **Cause**: User hasn't crystallized their ideas yet
114
- **Solution**:
115
- - Ask open-ended questions: "What made you think of this?"
116
- - Probe for use cases: "Walk me through how someone would use this"
117
- - Be patient - this mode is for exploration
118
- - Multiple exchanges are normal and expected
119
-
120
- ### Issue: Detecting 3+ distinct topics but user keeps adding more
121
- **Cause**: Brainstorming mode or unclear priorities
122
- **Solution** (inline):
123
- - Interrupt after 3+ topics detected (per multi-topic protocol)
124
- - Strongly suggest focusing on one topic
125
- - Alternative: Document all topics and help prioritize
126
- - Consider suggesting `/clavix:prd` for each topic separately
127
-
128
- ### Issue: Conversation exceeds 20 exchanges without clarity
129
- **Cause**: Too exploratory without convergence
130
- **Solution**:
131
- - Suggest wrapping up: "We've covered a lot. Ready to `/clavix:summarize`?"
132
- - Or pivot to `/clavix:prd` for structured planning
133
- - Or focus conversation: "Let's nail down the core problem first"
134
-
135
- ### Issue: User wants to switch topics mid-conversation
136
- **Cause**: New idea occurred or original topic wasn't right
137
- **Solution**:
138
- - Note what was discussed so far
139
- - Ask: "Should we continue with [original topic] or switch to [new topic]?"
140
- - Suggest summarizing current topic first before switching
141
- """
@@ -1,178 +0,0 @@
1
- description = "Extract and CLEAR-optimize requirements from conversation"
2
- prompt = """
3
-
4
- # Clavix Conversation Summarization - CLEAR Framework Enhanced
5
-
6
- You are analyzing the conversation history and extracting optimized requirements. **Extracted prompts are automatically enhanced using the CLEAR Framework** (Concise, Logical, Explicit) for optimal AI consumption.
7
-
8
- ## Instructions
9
-
10
- 1. **Pre-Extraction Validation** - Check conversation completeness:
11
-
12
- **Minimum viable requirements:**
13
- - **Objective/Goal**: Is there a clear problem or goal stated?
14
- - **Requirements**: Are there at least 2-3 concrete features or capabilities described?
15
- - **Context**: Is there enough context about who/what/why?
16
-
17
- **If missing critical elements:**
18
- - Identify what's missing (e.g., "No clear objective", "Requirements too vague")
19
- - Ask targeted questions to fill gaps:
20
- - Missing objective: "What problem are you trying to solve?"
21
- - Vague requirements: "Can you describe 2-3 specific things this should do?"
22
- - No context: "Who will use this and in what situation?"
23
- - **DO NOT** proceed to extraction until minimum viable requirements met
24
-
25
- **Confidence indicators** (annotate extracted elements):
26
- - **[HIGH]**: Explicitly stated multiple times with details
27
- - **[MEDIUM]**: Mentioned once or inferred from context
28
- - **[LOW]**: Assumed based on limited information
29
-
30
- 2. Review the entire conversation and identify (with confidence indicators):
31
- - **Problem/Goal** [confidence]: What is the user trying to build or solve?
32
- - **Key Requirements** [confidence per requirement]: What features and functionality were discussed?
33
- - **Technical Constraints** [confidence]: Any technologies, integrations, or performance needs?
34
- - **User Needs** [confidence]: Who are the end users and what do they need?
35
- - **Success Criteria** [confidence]: How will success be measured?
36
- - **Context** [confidence]: Any important background or constraints?
37
-
38
- 3. Generate TWO outputs:
39
-
40
- **Mini-PRD** (structured document):
41
- ```markdown
42
- # Requirements: [Project Name]
43
-
44
- ## Objective
45
- [Clear, specific goal extracted from conversation]
46
-
47
- ## Key Requirements
48
- - [Requirement 1]
49
- - [Requirement 2]
50
- - [Requirement 3]
51
-
52
- ## Technical Constraints
53
- - [Constraint 1]
54
- - [Constraint 2]
55
-
56
- ## Success Criteria
57
- - [Criterion 1]
58
- - [Criterion 2]
59
-
60
- ## Context
61
- [Important background information]
62
- ```
63
-
64
- **Optimized Prompt** (AI-ready, 2-3 paragraphs):
65
- ```
66
- [Dense paragraph combining objective, key features, and user needs]
67
-
68
- [Technical requirements and constraints]
69
-
70
- [Success criteria and any important context]
71
- ```
72
-
73
- 3. **CLEAR Framework Optimization** (automatic with labeled improvements):
74
- - After extracting the optimized prompt, analyze using CLEAR framework
75
- - Apply Conciseness, Logic, and Explicitness enhancements
76
- - **Label all improvements** with CLEAR component tags:
77
- - **[C]**: "Removed 12 conversational words, reduced from 45 to 28 words"
78
- - **[L]**: "Restructured flow: context → requirements → constraints → success criteria"
79
- - **[E]**: "Added explicit output format (React component), persona (senior dev), success metrics (load time < 2s)"
80
- - Display both raw extraction and CLEAR-enhanced version
81
- - Show CLEAR scores (before/after) and labeled improvements
82
- - Save both versions:
83
- - `optimized-prompt.md` (raw extraction)
84
- - `clear-optimized-prompt.md` (CLEAR-enhanced with improvement notes)
85
-
86
- 4. Highlight key insights discovered during the conversation.
87
-
88
- 5. Suggest saving to `.clavix/outputs/[session-name]/`
89
-
90
- 6. If anything is still unclear or missing, point it out and suggest areas for further discussion.
91
-
92
- ## CLEAR Enhancement
93
-
94
- **What gets optimized:**
95
- - **[C] Concise**: Remove any verbosity from extracted requirements
96
- - **[L] Logical**: Ensure coherent flow (context → requirements → constraints → output)
97
- - **[E] Explicit**: Add missing specifications, formats, success criteria
98
-
99
- **Output files:**
100
- - `optimized-prompt.md` - Raw extraction from conversation
101
- - `clear-optimized-prompt.md` - CLEAR-enhanced version (recommended for AI agents)
102
-
103
- ## Quality Checks
104
-
105
- - Clear objective stated
106
- - Specific, actionable requirements
107
- - Technical constraints identified
108
- - Success criteria defined
109
- - User needs considered
110
- - CLEAR framework applied for AI consumption
111
-
112
- ## Workflow Navigation
113
-
114
- **You are here:** Summarize (Conversation Extraction)
115
-
116
- **Common workflows:**
117
- - **Standard flow**: `/clavix:start` → [conversation] → `/clavix:summarize` → Use CLEAR-optimized prompt
118
- - **To implementation**: `/clavix:summarize` → `/clavix:plan` → `/clavix:implement` → `/clavix:archive`
119
- - **Standalone use**: [Any conversation] → `/clavix:summarize` → Extract and optimize
120
-
121
- **Related commands:**
122
- - `/clavix:start` - Begin conversational exploration (typical previous step)
123
- - `/clavix:plan` - Generate tasks from extracted mini-PRD (next step)
124
- - `/clavix:fast` or `/clavix:deep` - Further optimize the extracted prompt
125
-
126
- ## Example
127
-
128
- From conversation about "analytics dashboard for sales team"...
129
-
130
- **Optimized Prompt**:
131
- ```
132
- Build a real-time sales analytics dashboard for the sales team showing revenue trends, top performers, pipeline status, and conversion rates. The dashboard should update live as deals progress, support filtering by date range/region/rep, and display key metrics prominently. Users need to quickly identify at-risk deals and celebrate wins.
133
-
134
- Technical stack: React + TypeScript frontend, integrate with existing Salesforce API, use Chart.js for visualizations, responsive design for mobile access. Must handle 10K+ deals without performance degradation.
135
-
136
- Success: Sales managers can identify issues within 30 seconds of opening, dashboard loads in <2 seconds, 90% of team uses it daily within first month.
137
- ```
138
-
139
- ## Troubleshooting
140
-
141
- ### Issue: Pre-extraction validation fails (missing objective/requirements)
142
- **Cause**: Conversation didn't cover enough detail
143
- **Solution** (inline - DO NOT extract):
144
- - List what's missing specifically
145
- - Ask targeted questions to fill gaps
146
- - Only proceed to extraction after minimum viable requirements met
147
- - Show confidence indicators for what WAS discussed
148
-
149
- ### Issue: Conversation covered multiple unrelated topics
150
- **Cause**: Exploratory discussion without focus
151
- **Solution**:
152
- - Ask user which topic to extract/focus on
153
- - Or extract all topics separately into different sections
154
- - Mark multi-topic extraction with [MULTI-TOPIC] indicator
155
- - Suggest breaking into separate PRDs for each topic
156
-
157
- ### Issue: CLEAR optimization doesn't significantly improve extracted prompt
158
- **Cause**: Conversation was already well-structured and detailed
159
- **Solution**:
160
- - Minor improvements are normal for good conversations
161
- - Show CLEAR scores (should be high: >80%)
162
- - Still provide both versions but note that original extraction was already CLEAR
163
-
164
- ### Issue: Low confidence indicators across all extracted elements
165
- **Cause**: Conversation was too vague or high-level
166
- **Solution** (inline):
167
- - Don't just extract with [LOW] markers everywhere
168
- - Ask follow-up questions to increase confidence
169
- - Or inform user: "Our conversation was exploratory. I recommend `/clavix:start` to go deeper, or `/clavix:prd` for structured planning"
170
-
171
- ### Issue: Extracted prompt contradicts earlier conversation
172
- **Cause**: Requirements evolved during conversation
173
- **Solution**:
174
- - Use latest/final version of requirements
175
- - Note that requirements evolved
176
- - Ask user to confirm which version is correct
177
- - Suggest starting fresh with `/clavix:prd` if major contradictions exist
178
- """
@@ -1,291 +0,0 @@
1
- ---
2
- name: "Clavix: Archive"
3
- description: Archive completed PRD projects
4
- ---
5
-
6
- # Clavix Archive - PRD Project Archival
7
-
8
- You are helping the user archive completed PRD projects to keep their workspace organized.
9
-
10
- ## Instructions
11
-
12
- 1. **Understanding Archive**:
13
- - Archives move completed PRD projects from `.clavix/outputs/` to `.clavix/outputs/archive/`
14
- - Archived projects are no longer shown in active project lists
15
- - Projects can be restored from archive if needed
16
- - Only projects with all tasks completed should typically be archived
17
-
18
- 2. **Interactive Archive Mode**:
19
- ```bash
20
- clavix archive
21
- ```
22
-
23
- This will:
24
- - List all PRD projects with 100% tasks completed
25
- - Allow user to select which project to archive
26
- - Confirm before archiving
27
- - Move the project to archive directory
28
-
29
- 3. **Archive Specific Project**:
30
- ```bash
31
- clavix archive [project-name]
32
- ```
33
-
34
- This will:
35
- - Check task completion status
36
- - Warn if tasks are incomplete
37
- - Ask for confirmation
38
- - Archive the specific project
39
-
40
- 4. **Force Archive (Incomplete Tasks)**:
41
- ```bash
42
- clavix archive [project-name] --force
43
- ```
44
-
45
- Use this when:
46
- - Project scope changed and some tasks are no longer relevant
47
- - User wants to archive work-in-progress
48
- - Tasks are incomplete but project is done
49
-
50
- 5. **Delete Project (Permanent Removal)**: **DESTRUCTIVE ACTION**
51
- ```bash
52
- clavix archive [project-name] --delete
53
- ```
54
-
55
- **WARNING**: This PERMANENTLY deletes the project. Cannot be restored.
56
-
57
- **When to delete vs archive:**
58
- - **DELETE**: Failed experiments, duplicate projects, test/demo data, abandoned prototypes with no value
59
- - **ARCHIVE**: Completed work, incomplete but potentially useful work, anything you might reference later
60
-
61
- **Delete decision tree:**
62
- ```
63
- Is this a failed experiment with no learning value? → DELETE
64
- Is this a duplicate/test project with no unique info? → DELETE
65
- Might you need to reference this code later? → ARCHIVE
66
- Could this be useful for learning/reference? → ARCHIVE
67
- Are you unsure? → ARCHIVE (safe default)
68
- ```
69
-
70
- **Safety confirmation required:**
71
- - Shows project details and task status
72
- - Requires typing project name to confirm
73
- - Warns about permanent deletion
74
- - Lists what will be permanently deleted
75
-
76
- 6. **List Archived Projects**:
77
- ```bash
78
- clavix archive --list
79
- ```
80
-
81
- Shows all projects currently in archive with their task completion status
82
-
83
- 6. **Restore from Archive**:
84
- ```bash
85
- clavix archive --restore [project-name]
86
- ```
87
-
88
- Moves a project back from archive to active outputs
89
-
90
- ## When to Archive
91
-
92
- **Good times to archive:**
93
- - All implementation tasks are completed (`tasks.md` shows 100%)
94
- - Project has been deployed/shipped to production
95
- - Feature is complete and no more work planned
96
- - User explicitly requests archival
97
- - Old/abandoned projects that won't be continued
98
-
99
- **Don't archive when:**
100
- - Tasks are still in progress (unless using --force)
101
- - Project is actively being worked on
102
- - Future enhancements are planned in current tasks
103
-
104
- ## Archive Behavior
105
-
106
- **What gets archived:**
107
- - The entire PRD project folder
108
- - All files: PRD.md, PRD-quick.md, tasks.md, .clavix-implement-config.json
109
- - Complete directory structure preserved
110
-
111
- **Where it goes:**
112
- - From: `.clavix/outputs/[project-name]/`
113
- - To: `.clavix/outputs/archive/[project-name]/`
114
-
115
- **What changes:**
116
- - Archived projects won't show in `/clavix:plan` searches
117
- - Archived projects won't show in `/clavix:implement` searches
118
- - They're still accessible in archive directory
119
- - Can be restored at any time
120
-
121
- ## Example Workflows
122
-
123
- ### Workflow 1: Complete Project
124
- ```
125
- User: "I've finished implementing the user authentication feature"
126
- You: "Great! Let me help you archive it."
127
-
128
- Run: clavix archive
129
-
130
- User selects: user-authentication-system
131
- System shows: All 15 tasks completed (100%)
132
- User confirms: Yes, archive it
133
-
134
- Result: Project moved to .clavix/outputs/archive/user-authentication-system/
135
- ```
136
-
137
- ### Workflow 2: Force Archive WIP
138
- ```
139
- User: "We're pivoting, I want to archive the old API design even though tasks aren't done"
140
- You: "I'll archive it with --force"
141
-
142
- Run: clavix archive old-api-design --force
143
-
144
- System shows: 8 incomplete tasks
145
- User confirms: Yes, archive anyway
146
-
147
- Result: Project archived despite incomplete tasks
148
- ```
149
-
150
- ### Workflow 3: Restore Archived Project
151
- ```
152
- User: "Actually, we need to revisit that authentication feature"
153
- You: "I'll restore it from the archive"
154
-
155
- Run: clavix archive --restore user-authentication-system
156
-
157
- Result: Project moved back to .clavix/outputs/user-authentication-system/
158
- ```
159
-
160
- ### Workflow 4: Delete Failed Experiment
161
- ```
162
- User: "I have a test project 'api-experiment-1' that I don't need anymore"
163
- You: "Is this something you might reference later, or can it be permanently deleted?"
164
-
165
- User: "It was just a quick test, no value. Delete it."
166
- You: "This will permanently delete the project. I'll run the delete command."
167
-
168
- Run: clavix archive api-experiment-1 --delete
169
-
170
- System shows:
171
- Project: api-experiment-1
172
- Tasks: 3/5 completed
173
- Files: full-prd.md, quick-prd.md, tasks.md
174
-
175
- WARNING: This action is PERMANENT and CANNOT be undone.
176
- Type the project name to confirm deletion: _
177
-
178
- User types: api-experiment-1
179
-
180
- Result: Project permanently deleted from .clavix/outputs/api-experiment-1/
181
- ```
182
-
183
- ## AI Agent Guidelines
184
-
185
- When user mentions archiving or cleaning up projects:
186
-
187
- 1. **Check completion status first**:
188
- - Run `clavix archive` to see archivable projects
189
- - Review task completion percentages
190
- - Suggest archiving only completed projects
191
-
192
- 2. **Confirm before archiving**:
193
- - Always confirm which project to archive
194
- - Mention the archive location
195
- - Explain that it can be restored
196
-
197
- 3. **Use --force cautiously**:
198
- - Only when user explicitly wants to archive incomplete work
199
- - Explain which tasks will remain incomplete
200
- - Confirm they won't lose data (just moving location)
201
-
202
- 4. **Suggest restoration**:
203
- - If user mentions old work, check archive
204
- - Use `clavix archive --list` to show what's archived
205
- - Offer to restore if needed
206
-
207
- 5. **Handle delete requests carefully**:
208
- - Always ask if they want to delete or archive
209
- - Explain that delete is permanent and irreversible
210
- - Suggest archive as the safer default
211
- - Use decision tree to help user decide
212
- - Only proceed with `--delete` after clear confirmation
213
- - Double-check it's truly no-value content (failed experiments, duplicates)
214
-
215
- ## Workflow Navigation
216
-
217
- **You are here:** Archive (Project Cleanup)
218
-
219
- **Common workflows:**
220
- - **Complete workflow**: `/clavix:implement` → [all tasks done] → `/clavix:archive` → Clean workspace
221
- - **Review and archive**: `/clavix:archive` → [select completed project] → Archive
222
- - **Restore old work**: `/clavix:archive --list` → `/clavix:archive --restore [project]` → Resume
223
-
224
- **Related commands:**
225
- - `/clavix:implement` - Complete remaining tasks before archiving
226
- - `/clavix:plan` - Review task completion status
227
- - `/clavix:prd` - Start new project after archiving old one
228
-
229
- ## Tips
230
-
231
- - Archive keeps your active projects list clean and focused
232
- - Archived projects maintain all their data (nothing is deleted)
233
- - Archive is searchable - you can still `grep` or find files in archive/
234
- - Regular archiving improves `/clavix:plan` and `/clavix:implement` performance
235
- - Use `--list` regularly to know what's been archived
236
-
237
- ## Troubleshooting
238
-
239
- ### Issue: No projects available to archive
240
- **Cause**: No projects in `.clavix/outputs/` OR all already archived
241
- **Solution**:
242
- - Run `clavix archive --list` to see archived projects
243
- - Check `.clavix/outputs/` for active projects
244
- - If none exist, no action needed
245
-
246
- ### Issue: Trying to archive project with incomplete tasks
247
- **Cause**: User wants to archive but tasks aren't 100% done
248
- **Solution** (inline):
249
- - Warn: "Project has X incomplete tasks. Archive anyway?"
250
- - Show which tasks are incomplete
251
- - Suggest `--force` flag if user confirms
252
- - Recommend completing tasks first if they're actually unfinished (not scope-changed)
253
-
254
- ### Issue: Cannot restore archived project (name conflict)
255
- **Cause**: Project with same name already exists in active outputs
256
- **Solution**:
257
- - Error: "Project '[name]' already exists in active outputs"
258
- - Suggest renaming one of them
259
- - Or archive the active one first, then restore
260
- - Or restore to different name (if CLI supports it)
261
-
262
- ### Issue: Unsure whether to delete or archive
263
- **Cause**: User wants to clean up but uncertain about permanence
264
- **Solution**:
265
- - Use the decision tree in template
266
- - Default recommendation: ARCHIVE (safer)
267
- - Only suggest delete for: duplicates, failed experiments, test data
268
- - Remind: Archive is free, disk space is cheap, regret is expensive
269
-
270
- ### Issue: Accidentally deleted project (used --delete instead of archive)
271
- **Cause**: User error or misunderstanding of --delete flag
272
- **Solution**:
273
- - Cannot be recovered from Clavix
274
- - Check if git history exists (if code was committed)
275
- - Check if user has backups
276
- - Learn: Use archive by default, delete only when absolutely certain
277
-
278
- ### Issue: Archive directory getting too large
279
- **Cause**: Many archived projects accumulating
280
- **Solution**:
281
- - Archive is meant to grow - this is normal
282
- - Projects in archive don't affect performance
283
- - If truly concerned: Review archive, delete ancient/irrelevant projects
284
- - Or move very old archives to external backup storage
285
-
286
- ### Issue: Archived project but forgot what it was about
287
- **Cause**: No naming convention or time passed
288
- **Solution**:
289
- - Read PRD in archived project: `.clavix/outputs/archive/[project]/full-prd.md`
290
- - PRD contains problem, goal, and features
291
- - Consider better naming conventions: date-feature format (e.g., "2024-01-user-auth")