clavix 2.3.0 → 2.4.0
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/dist/cli/commands/init.js +1 -1
- package/dist/core 2/adapters/agents-md-generator.d.ts +26 -0
- package/dist/core 2/adapters/agents-md-generator.js +102 -0
- package/dist/core 2/adapters/amp-adapter.d.ts +27 -0
- package/dist/core 2/adapters/amp-adapter.js +42 -0
- package/dist/core 2/adapters/augment-adapter.d.ts +22 -0
- package/dist/core 2/adapters/augment-adapter.js +77 -0
- package/dist/core 2/adapters/base-adapter.d.ts +45 -0
- package/dist/core 2/adapters/base-adapter.js +142 -0
- package/dist/core 2/adapters/claude-code-adapter.d.ts +32 -0
- package/dist/core 2/adapters/claude-code-adapter.js +116 -0
- package/dist/core 2/adapters/cline-adapter.d.ts +34 -0
- package/dist/core 2/adapters/cline-adapter.js +52 -0
- package/dist/core 2/adapters/codebuddy-adapter.d.ts +24 -0
- package/dist/core 2/adapters/codebuddy-adapter.js +82 -0
- package/dist/core 2/adapters/codex-adapter.d.ts +24 -0
- package/dist/core 2/adapters/codex-adapter.js +79 -0
- package/dist/core 2/adapters/copilot-instructions-generator.d.ts +26 -0
- package/dist/core 2/adapters/copilot-instructions-generator.js +104 -0
- package/dist/core 2/adapters/crush-adapter.d.ts +35 -0
- package/dist/core 2/adapters/crush-adapter.js +49 -0
- package/dist/core 2/adapters/cursor-adapter.d.ts +25 -0
- package/dist/core 2/adapters/cursor-adapter.js +40 -0
- package/dist/core 2/adapters/droid-adapter.d.ts +33 -0
- package/dist/core 2/adapters/droid-adapter.js +57 -0
- package/dist/core 2/adapters/gemini-adapter.d.ts +27 -0
- package/dist/core 2/adapters/gemini-adapter.js +90 -0
- package/dist/core 2/adapters/kilocode-adapter.d.ts +34 -0
- package/dist/core 2/adapters/kilocode-adapter.js +49 -0
- package/dist/core 2/adapters/octo-md-generator.d.ts +26 -0
- package/dist/core 2/adapters/octo-md-generator.js +102 -0
- package/dist/core 2/adapters/opencode-adapter.d.ts +33 -0
- package/dist/core 2/adapters/opencode-adapter.js +56 -0
- package/dist/core 2/adapters/qwen-adapter.d.ts +27 -0
- package/dist/core 2/adapters/qwen-adapter.js +90 -0
- package/dist/core 2/adapters/roocode-adapter.d.ts +40 -0
- package/dist/core 2/adapters/roocode-adapter.js +68 -0
- package/dist/core 2/adapters/warp-md-generator.d.ts +17 -0
- package/dist/core 2/adapters/warp-md-generator.js +88 -0
- package/dist/core 2/adapters/windsurf-adapter.d.ts +34 -0
- package/dist/core 2/adapters/windsurf-adapter.js +49 -0
- package/dist/core 2/agent-manager.d.ts +51 -0
- package/dist/core 2/agent-manager.js +126 -0
- package/dist/core 2/archive-manager.d.ts +100 -0
- package/dist/core 2/archive-manager.js +338 -0
- package/dist/core 2/conversation-analyzer.d.ts +86 -0
- package/dist/core 2/doc-injector.d.ts +51 -0
- package/dist/core 2/doc-injector.js +236 -0
- package/dist/core 2/git-manager.d.ts +100 -0
- package/dist/core 2/git-manager.js +214 -0
- package/dist/core 2/prompt-optimizer.d.ts +268 -0
- package/dist/core 2/prompt-optimizer.js +963 -0
- package/dist/core 2/question-engine.d.ts +167 -0
- package/dist/core 2/question-engine.js +395 -0
- package/dist/core 2/session-manager.d.ts +139 -0
- package/dist/core 2/session-manager.js +403 -0
- package/dist/core 2/task-manager.d.ts +155 -0
- package/dist/core 2/task-manager.js +689 -0
- package/dist/utils/template-loader.js +24 -22
- package/package.json +1 -1
- package/dist/templates/slash-commands/augment/archive.md +0 -291
- package/dist/templates/slash-commands/augment/deep.md +0 -207
- package/dist/templates/slash-commands/augment/fast.md +0 -183
- package/dist/templates/slash-commands/augment/implement.md +0 -267
- package/dist/templates/slash-commands/augment/plan.md +0 -173
- package/dist/templates/slash-commands/augment/prd.md +0 -178
- package/dist/templates/slash-commands/augment/start.md +0 -142
- package/dist/templates/slash-commands/augment/summarize.md +0 -179
- package/dist/templates/slash-commands/claude-code/archive.md +0 -291
- package/dist/templates/slash-commands/claude-code/deep.md +0 -207
- package/dist/templates/slash-commands/claude-code/fast.md +0 -183
- package/dist/templates/slash-commands/claude-code/implement.md +0 -267
- package/dist/templates/slash-commands/claude-code/plan.md +0 -173
- package/dist/templates/slash-commands/claude-code/prd.md +0 -178
- package/dist/templates/slash-commands/claude-code/start.md +0 -142
- package/dist/templates/slash-commands/claude-code/summarize.md +0 -179
- package/dist/templates/slash-commands/cline/archive.md +0 -291
- package/dist/templates/slash-commands/cline/deep.md +0 -207
- package/dist/templates/slash-commands/cline/fast.md +0 -183
- package/dist/templates/slash-commands/cline/implement.md +0 -267
- package/dist/templates/slash-commands/cline/plan.md +0 -173
- package/dist/templates/slash-commands/cline/prd.md +0 -178
- package/dist/templates/slash-commands/cline/start.md +0 -142
- package/dist/templates/slash-commands/cline/summarize.md +0 -179
- package/dist/templates/slash-commands/codebuddy/archive.md +0 -291
- package/dist/templates/slash-commands/codebuddy/deep.md +0 -207
- package/dist/templates/slash-commands/codebuddy/fast.md +0 -183
- package/dist/templates/slash-commands/codebuddy/implement.md +0 -267
- package/dist/templates/slash-commands/codebuddy/plan.md +0 -173
- package/dist/templates/slash-commands/codebuddy/prd.md +0 -178
- package/dist/templates/slash-commands/codebuddy/start.md +0 -142
- package/dist/templates/slash-commands/codebuddy/summarize.md +0 -179
- package/dist/templates/slash-commands/codex/archive.md +0 -291
- package/dist/templates/slash-commands/codex/deep.md +0 -207
- package/dist/templates/slash-commands/codex/fast.md +0 -183
- package/dist/templates/slash-commands/codex/implement.md +0 -267
- package/dist/templates/slash-commands/codex/plan.md +0 -173
- package/dist/templates/slash-commands/codex/prd.md +0 -178
- package/dist/templates/slash-commands/codex/start.md +0 -142
- package/dist/templates/slash-commands/codex/summarize.md +0 -179
- package/dist/templates/slash-commands/crush/archive.md +0 -291
- package/dist/templates/slash-commands/crush/deep.md +0 -207
- package/dist/templates/slash-commands/crush/fast.md +0 -183
- package/dist/templates/slash-commands/crush/implement.md +0 -267
- package/dist/templates/slash-commands/crush/plan.md +0 -173
- package/dist/templates/slash-commands/crush/prd.md +0 -178
- package/dist/templates/slash-commands/crush/start.md +0 -142
- package/dist/templates/slash-commands/crush/summarize.md +0 -179
- package/dist/templates/slash-commands/cursor/archive.md +0 -291
- package/dist/templates/slash-commands/cursor/deep.md +0 -207
- package/dist/templates/slash-commands/cursor/fast.md +0 -183
- package/dist/templates/slash-commands/cursor/implement.md +0 -267
- package/dist/templates/slash-commands/cursor/plan.md +0 -173
- package/dist/templates/slash-commands/cursor/prd.md +0 -178
- package/dist/templates/slash-commands/cursor/start.md +0 -142
- package/dist/templates/slash-commands/cursor/summarize.md +0 -179
- package/dist/templates/slash-commands/droid/archive.md +0 -291
- package/dist/templates/slash-commands/droid/deep.md +0 -207
- package/dist/templates/slash-commands/droid/fast.md +0 -183
- package/dist/templates/slash-commands/droid/implement.md +0 -267
- package/dist/templates/slash-commands/droid/plan.md +0 -173
- package/dist/templates/slash-commands/droid/prd.md +0 -178
- package/dist/templates/slash-commands/droid/start.md +0 -142
- package/dist/templates/slash-commands/droid/summarize.md +0 -179
- package/dist/templates/slash-commands/gemini/archive.toml +0 -290
- package/dist/templates/slash-commands/gemini/deep.toml +0 -206
- package/dist/templates/slash-commands/gemini/fast.toml +0 -182
- package/dist/templates/slash-commands/gemini/implement.toml +0 -266
- package/dist/templates/slash-commands/gemini/plan.toml +0 -170
- package/dist/templates/slash-commands/gemini/prd.toml +0 -177
- package/dist/templates/slash-commands/gemini/start.toml +0 -141
- package/dist/templates/slash-commands/gemini/summarize.toml +0 -178
- package/dist/templates/slash-commands/kilocode/archive.md +0 -291
- package/dist/templates/slash-commands/kilocode/deep.md +0 -207
- package/dist/templates/slash-commands/kilocode/fast.md +0 -183
- package/dist/templates/slash-commands/kilocode/implement.md +0 -267
- package/dist/templates/slash-commands/kilocode/plan.md +0 -173
- package/dist/templates/slash-commands/kilocode/prd.md +0 -178
- package/dist/templates/slash-commands/kilocode/start.md +0 -142
- package/dist/templates/slash-commands/kilocode/summarize.md +0 -179
- package/dist/templates/slash-commands/opencode/archive.md +0 -291
- package/dist/templates/slash-commands/opencode/deep.md +0 -207
- package/dist/templates/slash-commands/opencode/fast.md +0 -183
- package/dist/templates/slash-commands/opencode/implement.md +0 -267
- package/dist/templates/slash-commands/opencode/plan.md +0 -173
- package/dist/templates/slash-commands/opencode/prd.md +0 -178
- package/dist/templates/slash-commands/opencode/start.md +0 -142
- package/dist/templates/slash-commands/opencode/summarize.md +0 -179
- package/dist/templates/slash-commands/qwen/archive.toml +0 -290
- package/dist/templates/slash-commands/qwen/deep.toml +0 -206
- package/dist/templates/slash-commands/qwen/fast.toml +0 -182
- package/dist/templates/slash-commands/qwen/implement.toml +0 -266
- package/dist/templates/slash-commands/qwen/plan.toml +0 -170
- package/dist/templates/slash-commands/qwen/prd.toml +0 -177
- package/dist/templates/slash-commands/qwen/start.toml +0 -141
- package/dist/templates/slash-commands/qwen/summarize.toml +0 -178
- package/dist/templates/slash-commands/roocode/archive.md +0 -291
- package/dist/templates/slash-commands/roocode/deep.md +0 -207
- package/dist/templates/slash-commands/roocode/fast.md +0 -183
- package/dist/templates/slash-commands/roocode/implement.md +0 -267
- package/dist/templates/slash-commands/roocode/plan.md +0 -173
- package/dist/templates/slash-commands/roocode/prd.md +0 -178
- package/dist/templates/slash-commands/roocode/start.md +0 -142
- package/dist/templates/slash-commands/roocode/summarize.md +0 -179
- package/dist/templates/slash-commands/windsurf/archive.md +0 -291
- package/dist/templates/slash-commands/windsurf/deep.md +0 -207
- package/dist/templates/slash-commands/windsurf/fast.md +0 -183
- package/dist/templates/slash-commands/windsurf/implement.md +0 -267
- package/dist/templates/slash-commands/windsurf/plan.md +0 -173
- package/dist/templates/slash-commands/windsurf/prd.md +0 -178
- package/dist/templates/slash-commands/windsurf/start.md +0 -142
- package/dist/templates/slash-commands/windsurf/summarize.md +0 -179
- /package/dist/templates/slash-commands/{amp → _canonical}/archive.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/deep.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/fast.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/implement.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/plan.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/prd.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/start.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/summarize.md +0 -0
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "Clavix: Start"
|
|
3
|
-
description: Start conversational mode for iterative prompt development
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Clavix Conversational Mode - CLEAR Framework Enhanced
|
|
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).
|
|
9
|
-
|
|
10
|
-
## Instructions
|
|
11
|
-
|
|
12
|
-
1. Begin with a friendly introduction:
|
|
13
|
-
```
|
|
14
|
-
Let's build something great together! Tell me about what you want to create.
|
|
15
|
-
|
|
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.
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
2. As the user describes their needs:
|
|
21
|
-
- Ask clarifying questions about unclear points
|
|
22
|
-
- Probe for technical constraints
|
|
23
|
-
- Explore edge cases and requirements
|
|
24
|
-
- Help them think through user needs
|
|
25
|
-
- Identify potential challenges
|
|
26
|
-
|
|
27
|
-
3. **Track conversation topics and manage complexity**:
|
|
28
|
-
|
|
29
|
-
**Key points to track:**
|
|
30
|
-
- Problem statement
|
|
31
|
-
- Target users
|
|
32
|
-
- Core features
|
|
33
|
-
- Technical requirements
|
|
34
|
-
- Success criteria
|
|
35
|
-
- Constraints and scope
|
|
36
|
-
|
|
37
|
-
**Multi-topic detection** (track distinct topics being discussed):
|
|
38
|
-
- Consider topics distinct if they address different problems/features/user needs
|
|
39
|
-
- Examples: "dashboard for sales" + "API for integrations" + "mobile app" = 3 topics
|
|
40
|
-
|
|
41
|
-
**When 3+ distinct topics detected**:
|
|
42
|
-
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:
|
|
43
|
-
- **Focus on one** - Pick the most important topic to explore thoroughly first
|
|
44
|
-
- **Continue multi-topic** - We'll track all of them, but the resulting prompt may need refinement
|
|
45
|
-
- **Create separate sessions** - Start fresh for each topic with dedicated focus"
|
|
46
|
-
|
|
47
|
-
**Complexity indicators** (suggest wrapping up/summarizing):
|
|
48
|
-
- Conversation > 15 exchanges
|
|
49
|
-
- Requirements for 5+ major features discussed
|
|
50
|
-
- Multiple technology stacks mentioned
|
|
51
|
-
- Significant scope changes or pivots occurred
|
|
52
|
-
|
|
53
|
-
When complexity threshold reached: "We've covered substantial ground. Would you like to:
|
|
54
|
-
- Continue exploring
|
|
55
|
-
- Use `/clavix:summarize` to extract what we have so far
|
|
56
|
-
- Switch to `/clavix:prd` for more structured planning"
|
|
57
|
-
|
|
58
|
-
4. Be conversational and supportive:
|
|
59
|
-
- Don't interrogate - have a natural discussion
|
|
60
|
-
- Build on their ideas
|
|
61
|
-
- Offer suggestions when helpful
|
|
62
|
-
- Validate their thinking
|
|
63
|
-
|
|
64
|
-
5. Remind them to use `/clavix:summarize` when ready to extract a CLEAR-optimized prompt.
|
|
65
|
-
|
|
66
|
-
## CLEAR Framework Connection
|
|
67
|
-
|
|
68
|
-
After the conversational session, `/clavix:summarize` will:
|
|
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
|
|
74
|
-
|
|
75
|
-
## Example Flow
|
|
76
|
-
|
|
77
|
-
**User**: "I need a dashboard for analytics"
|
|
78
|
-
|
|
79
|
-
**Assistant**: "Great! What kind of analytics are we talking about? Is this for business metrics, user behavior, system performance, or something else?"
|
|
80
|
-
|
|
81
|
-
**User**: "Business metrics - sales, revenue, customer growth"
|
|
82
|
-
|
|
83
|
-
**Assistant**: "Perfect. Who will be using this dashboard? Executives, sales team, analysts? Their needs might be quite different."
|
|
84
|
-
|
|
85
|
-
[Continue conversational refinement...]
|
|
86
|
-
|
|
87
|
-
## Workflow Navigation
|
|
88
|
-
|
|
89
|
-
**You are here:** Conversational Mode (Iterative Exploration)
|
|
90
|
-
|
|
91
|
-
**Common workflows:**
|
|
92
|
-
- **Exploration to prompt**: `/clavix:start` → [conversation] → `/clavix:summarize` → CLEAR-optimized prompt
|
|
93
|
-
- **Exploration to PRD**: `/clavix:start` → [conversation] → `/clavix:prd` (answer questions with discussed info)
|
|
94
|
-
- **Exploration to planning**: `/clavix:start` → `/clavix:summarize` → `/clavix:plan` → Implement
|
|
95
|
-
|
|
96
|
-
**Related commands:**
|
|
97
|
-
- `/clavix:summarize` - Extract and CLEAR-optimize conversation (typical next step)
|
|
98
|
-
- `/clavix:prd` - Switch to structured PRD generation
|
|
99
|
-
- `/clavix:fast` or `/clavix:deep` - Direct prompt improvement instead of conversation
|
|
100
|
-
|
|
101
|
-
## Note
|
|
102
|
-
|
|
103
|
-
The goal is natural exploration of requirements, not a rigid questionnaire. Follow the user's lead while gently guiding toward clarity.
|
|
104
|
-
|
|
105
|
-
## Troubleshooting
|
|
106
|
-
|
|
107
|
-
### Issue: Conversation going in circles without progress
|
|
108
|
-
**Cause**: Unclear focus or too many topics being explored
|
|
109
|
-
**Solution** (inline):
|
|
110
|
-
- Pause and summarize: "So far we've discussed [A], [B], [C]. Which should we focus on?"
|
|
111
|
-
- Suggest focusing on one topic at a time
|
|
112
|
-
- Or suggest `/clavix:summarize` to extract what's been discussed
|
|
113
|
-
|
|
114
|
-
### Issue: User provides very high-level descriptions ("build something cool")
|
|
115
|
-
**Cause**: User hasn't crystallized their ideas yet
|
|
116
|
-
**Solution**:
|
|
117
|
-
- Ask open-ended questions: "What made you think of this?"
|
|
118
|
-
- Probe for use cases: "Walk me through how someone would use this"
|
|
119
|
-
- Be patient - this mode is for exploration
|
|
120
|
-
- Multiple exchanges are normal and expected
|
|
121
|
-
|
|
122
|
-
### Issue: Detecting 3+ distinct topics but user keeps adding more
|
|
123
|
-
**Cause**: Brainstorming mode or unclear priorities
|
|
124
|
-
**Solution** (inline):
|
|
125
|
-
- Interrupt after 3+ topics detected (per multi-topic protocol)
|
|
126
|
-
- Strongly suggest focusing on one topic
|
|
127
|
-
- Alternative: Document all topics and help prioritize
|
|
128
|
-
- Consider suggesting `/clavix:prd` for each topic separately
|
|
129
|
-
|
|
130
|
-
### Issue: Conversation exceeds 20 exchanges without clarity
|
|
131
|
-
**Cause**: Too exploratory without convergence
|
|
132
|
-
**Solution**:
|
|
133
|
-
- Suggest wrapping up: "We've covered a lot. Ready to `/clavix:summarize`?"
|
|
134
|
-
- Or pivot to `/clavix:prd` for structured planning
|
|
135
|
-
- Or focus conversation: "Let's nail down the core problem first"
|
|
136
|
-
|
|
137
|
-
### Issue: User wants to switch topics mid-conversation
|
|
138
|
-
**Cause**: New idea occurred or original topic wasn't right
|
|
139
|
-
**Solution**:
|
|
140
|
-
- Note what was discussed so far
|
|
141
|
-
- Ask: "Should we continue with [original topic] or switch to [new topic]?"
|
|
142
|
-
- Suggest summarizing current topic first before switching
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "Clavix: Summarize"
|
|
3
|
-
description: Extract and CLEAR-optimize requirements from conversation
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Clavix Conversation Summarization - CLEAR Framework Enhanced
|
|
7
|
-
|
|
8
|
-
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.
|
|
9
|
-
|
|
10
|
-
## Instructions
|
|
11
|
-
|
|
12
|
-
1. **Pre-Extraction Validation** - Check conversation completeness:
|
|
13
|
-
|
|
14
|
-
**Minimum viable requirements:**
|
|
15
|
-
- **Objective/Goal**: Is there a clear problem or goal stated?
|
|
16
|
-
- **Requirements**: Are there at least 2-3 concrete features or capabilities described?
|
|
17
|
-
- **Context**: Is there enough context about who/what/why?
|
|
18
|
-
|
|
19
|
-
**If missing critical elements:**
|
|
20
|
-
- Identify what's missing (e.g., "No clear objective", "Requirements too vague")
|
|
21
|
-
- Ask targeted questions to fill gaps:
|
|
22
|
-
- Missing objective: "What problem are you trying to solve?"
|
|
23
|
-
- Vague requirements: "Can you describe 2-3 specific things this should do?"
|
|
24
|
-
- No context: "Who will use this and in what situation?"
|
|
25
|
-
- **DO NOT** proceed to extraction until minimum viable requirements met
|
|
26
|
-
|
|
27
|
-
**Confidence indicators** (annotate extracted elements):
|
|
28
|
-
- **[HIGH]**: Explicitly stated multiple times with details
|
|
29
|
-
- **[MEDIUM]**: Mentioned once or inferred from context
|
|
30
|
-
- **[LOW]**: Assumed based on limited information
|
|
31
|
-
|
|
32
|
-
2. Review the entire conversation and identify (with confidence indicators):
|
|
33
|
-
- **Problem/Goal** [confidence]: What is the user trying to build or solve?
|
|
34
|
-
- **Key Requirements** [confidence per requirement]: What features and functionality were discussed?
|
|
35
|
-
- **Technical Constraints** [confidence]: Any technologies, integrations, or performance needs?
|
|
36
|
-
- **User Needs** [confidence]: Who are the end users and what do they need?
|
|
37
|
-
- **Success Criteria** [confidence]: How will success be measured?
|
|
38
|
-
- **Context** [confidence]: Any important background or constraints?
|
|
39
|
-
|
|
40
|
-
3. Generate TWO outputs:
|
|
41
|
-
|
|
42
|
-
**Mini-PRD** (structured document):
|
|
43
|
-
```markdown
|
|
44
|
-
# Requirements: [Project Name]
|
|
45
|
-
|
|
46
|
-
## Objective
|
|
47
|
-
[Clear, specific goal extracted from conversation]
|
|
48
|
-
|
|
49
|
-
## Key Requirements
|
|
50
|
-
- [Requirement 1]
|
|
51
|
-
- [Requirement 2]
|
|
52
|
-
- [Requirement 3]
|
|
53
|
-
|
|
54
|
-
## Technical Constraints
|
|
55
|
-
- [Constraint 1]
|
|
56
|
-
- [Constraint 2]
|
|
57
|
-
|
|
58
|
-
## Success Criteria
|
|
59
|
-
- [Criterion 1]
|
|
60
|
-
- [Criterion 2]
|
|
61
|
-
|
|
62
|
-
## Context
|
|
63
|
-
[Important background information]
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**Optimized Prompt** (AI-ready, 2-3 paragraphs):
|
|
67
|
-
```
|
|
68
|
-
[Dense paragraph combining objective, key features, and user needs]
|
|
69
|
-
|
|
70
|
-
[Technical requirements and constraints]
|
|
71
|
-
|
|
72
|
-
[Success criteria and any important context]
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
3. **CLEAR Framework Optimization** (automatic with labeled improvements):
|
|
76
|
-
- After extracting the optimized prompt, analyze using CLEAR framework
|
|
77
|
-
- Apply Conciseness, Logic, and Explicitness enhancements
|
|
78
|
-
- **Label all improvements** with CLEAR component tags:
|
|
79
|
-
- **[C]**: "Removed 12 conversational words, reduced from 45 to 28 words"
|
|
80
|
-
- **[L]**: "Restructured flow: context → requirements → constraints → success criteria"
|
|
81
|
-
- **[E]**: "Added explicit output format (React component), persona (senior dev), success metrics (load time < 2s)"
|
|
82
|
-
- Display both raw extraction and CLEAR-enhanced version
|
|
83
|
-
- Show CLEAR scores (before/after) and labeled improvements
|
|
84
|
-
- Save both versions:
|
|
85
|
-
- `optimized-prompt.md` (raw extraction)
|
|
86
|
-
- `clear-optimized-prompt.md` (CLEAR-enhanced with improvement notes)
|
|
87
|
-
|
|
88
|
-
4. Highlight key insights discovered during the conversation.
|
|
89
|
-
|
|
90
|
-
5. Suggest saving to `.clavix/outputs/[session-name]/`
|
|
91
|
-
|
|
92
|
-
6. If anything is still unclear or missing, point it out and suggest areas for further discussion.
|
|
93
|
-
|
|
94
|
-
## CLEAR Enhancement
|
|
95
|
-
|
|
96
|
-
**What gets optimized:**
|
|
97
|
-
- **[C] Concise**: Remove any verbosity from extracted requirements
|
|
98
|
-
- **[L] Logical**: Ensure coherent flow (context → requirements → constraints → output)
|
|
99
|
-
- **[E] Explicit**: Add missing specifications, formats, success criteria
|
|
100
|
-
|
|
101
|
-
**Output files:**
|
|
102
|
-
- `optimized-prompt.md` - Raw extraction from conversation
|
|
103
|
-
- `clear-optimized-prompt.md` - CLEAR-enhanced version (recommended for AI agents)
|
|
104
|
-
|
|
105
|
-
## Quality Checks
|
|
106
|
-
|
|
107
|
-
- Clear objective stated
|
|
108
|
-
- Specific, actionable requirements
|
|
109
|
-
- Technical constraints identified
|
|
110
|
-
- Success criteria defined
|
|
111
|
-
- User needs considered
|
|
112
|
-
- CLEAR framework applied for AI consumption
|
|
113
|
-
|
|
114
|
-
## Workflow Navigation
|
|
115
|
-
|
|
116
|
-
**You are here:** Summarize (Conversation Extraction)
|
|
117
|
-
|
|
118
|
-
**Common workflows:**
|
|
119
|
-
- **Standard flow**: `/clavix:start` → [conversation] → `/clavix:summarize` → Use CLEAR-optimized prompt
|
|
120
|
-
- **To implementation**: `/clavix:summarize` → `/clavix:plan` → `/clavix:implement` → `/clavix:archive`
|
|
121
|
-
- **Standalone use**: [Any conversation] → `/clavix:summarize` → Extract and optimize
|
|
122
|
-
|
|
123
|
-
**Related commands:**
|
|
124
|
-
- `/clavix:start` - Begin conversational exploration (typical previous step)
|
|
125
|
-
- `/clavix:plan` - Generate tasks from extracted mini-PRD (next step)
|
|
126
|
-
- `/clavix:fast` or `/clavix:deep` - Further optimize the extracted prompt
|
|
127
|
-
|
|
128
|
-
## Example
|
|
129
|
-
|
|
130
|
-
From conversation about "analytics dashboard for sales team"...
|
|
131
|
-
|
|
132
|
-
**Optimized Prompt**:
|
|
133
|
-
```
|
|
134
|
-
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.
|
|
135
|
-
|
|
136
|
-
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.
|
|
137
|
-
|
|
138
|
-
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.
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
## Troubleshooting
|
|
142
|
-
|
|
143
|
-
### Issue: Pre-extraction validation fails (missing objective/requirements)
|
|
144
|
-
**Cause**: Conversation didn't cover enough detail
|
|
145
|
-
**Solution** (inline - DO NOT extract):
|
|
146
|
-
- List what's missing specifically
|
|
147
|
-
- Ask targeted questions to fill gaps
|
|
148
|
-
- Only proceed to extraction after minimum viable requirements met
|
|
149
|
-
- Show confidence indicators for what WAS discussed
|
|
150
|
-
|
|
151
|
-
### Issue: Conversation covered multiple unrelated topics
|
|
152
|
-
**Cause**: Exploratory discussion without focus
|
|
153
|
-
**Solution**:
|
|
154
|
-
- Ask user which topic to extract/focus on
|
|
155
|
-
- Or extract all topics separately into different sections
|
|
156
|
-
- Mark multi-topic extraction with [MULTI-TOPIC] indicator
|
|
157
|
-
- Suggest breaking into separate PRDs for each topic
|
|
158
|
-
|
|
159
|
-
### Issue: CLEAR optimization doesn't significantly improve extracted prompt
|
|
160
|
-
**Cause**: Conversation was already well-structured and detailed
|
|
161
|
-
**Solution**:
|
|
162
|
-
- Minor improvements are normal for good conversations
|
|
163
|
-
- Show CLEAR scores (should be high: >80%)
|
|
164
|
-
- Still provide both versions but note that original extraction was already CLEAR
|
|
165
|
-
|
|
166
|
-
### Issue: Low confidence indicators across all extracted elements
|
|
167
|
-
**Cause**: Conversation was too vague or high-level
|
|
168
|
-
**Solution** (inline):
|
|
169
|
-
- Don't just extract with [LOW] markers everywhere
|
|
170
|
-
- Ask follow-up questions to increase confidence
|
|
171
|
-
- Or inform user: "Our conversation was exploratory. I recommend `/clavix:start` to go deeper, or `/clavix:prd` for structured planning"
|
|
172
|
-
|
|
173
|
-
### Issue: Extracted prompt contradicts earlier conversation
|
|
174
|
-
**Cause**: Requirements evolved during conversation
|
|
175
|
-
**Solution**:
|
|
176
|
-
- Use latest/final version of requirements
|
|
177
|
-
- Note that requirements evolved
|
|
178
|
-
- Ask user to confirm which version is correct
|
|
179
|
-
- Suggest starting fresh with `/clavix:prd` if major contradictions exist
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|