clavix 4.8.0 → 4.9.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.
Files changed (48) hide show
  1. package/dist/core/adapters/amp-adapter.d.ts +3 -0
  2. package/dist/core/adapters/amp-adapter.js +1 -0
  3. package/dist/core/adapters/cline-adapter.d.ts +3 -0
  4. package/dist/core/adapters/cline-adapter.js +1 -0
  5. package/dist/core/adapters/codebuddy-adapter.d.ts +3 -0
  6. package/dist/core/adapters/codebuddy-adapter.js +1 -0
  7. package/dist/core/adapters/codex-adapter.d.ts +3 -0
  8. package/dist/core/adapters/codex-adapter.js +1 -0
  9. package/dist/core/adapters/cursor-adapter.d.ts +3 -0
  10. package/dist/core/adapters/cursor-adapter.js +1 -0
  11. package/dist/core/adapters/droid-adapter.d.ts +3 -0
  12. package/dist/core/adapters/droid-adapter.js +1 -0
  13. package/dist/core/adapters/instructions-generator.js +9 -2
  14. package/dist/core/adapters/kilocode-adapter.d.ts +3 -0
  15. package/dist/core/adapters/kilocode-adapter.js +1 -0
  16. package/dist/core/adapters/opencode-adapter.d.ts +3 -0
  17. package/dist/core/adapters/opencode-adapter.js +1 -0
  18. package/dist/core/adapters/roocode-adapter.d.ts +3 -0
  19. package/dist/core/adapters/roocode-adapter.js +1 -0
  20. package/dist/core/adapters/windsurf-adapter.d.ts +3 -0
  21. package/dist/core/adapters/windsurf-adapter.js +1 -0
  22. package/dist/core/command-transformer.d.ts +55 -0
  23. package/dist/core/command-transformer.js +65 -0
  24. package/dist/templates/slash-commands/_canonical/archive.md +67 -81
  25. package/dist/templates/slash-commands/_canonical/deep.md +40 -34
  26. package/dist/templates/slash-commands/_canonical/execute.md +187 -155
  27. package/dist/templates/slash-commands/_canonical/fast.md +33 -24
  28. package/dist/templates/slash-commands/_canonical/implement.md +283 -301
  29. package/dist/templates/slash-commands/_canonical/plan.md +33 -17
  30. package/dist/templates/slash-commands/_canonical/prd.md +36 -21
  31. package/dist/templates/slash-commands/_canonical/start.md +34 -33
  32. package/dist/templates/slash-commands/_canonical/summarize.md +39 -47
  33. package/dist/templates/slash-commands/_canonical/verify.md +324 -186
  34. package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +202 -0
  35. package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +145 -88
  36. package/dist/templates/slash-commands/_components/agent-protocols/supportive-companion.md +216 -0
  37. package/dist/templates/slash-commands/_components/agent-protocols/task-blocking.md +224 -0
  38. package/dist/templates/slash-commands/_components/references/quality-dimensions.md +152 -44
  39. package/dist/templates/slash-commands/_components/sections/conversation-examples.md +302 -0
  40. package/dist/templates/slash-commands/_components/sections/escalation-factors.md +119 -87
  41. package/dist/templates/slash-commands/_components/sections/improvement-explanations.md +171 -0
  42. package/dist/templates/slash-commands/_components/sections/pattern-impact.md +208 -0
  43. package/dist/templates/slash-commands/_components/sections/prd-examples.md +289 -0
  44. package/dist/templates/slash-commands/_components/troubleshooting/vibecoder-recovery.md +223 -0
  45. package/dist/types/agent.d.ts +4 -0
  46. package/dist/utils/template-loader.d.ts +1 -1
  47. package/dist/utils/template-loader.js +5 -1
  48. package/package.json +1 -1
@@ -3,29 +3,42 @@ name: "Clavix: Plan"
3
3
  description: Generate implementation task breakdown from PRD
4
4
  ---
5
5
 
6
- # Clavix Plan - Task Breakdown Generator
6
+ # Clavix: Plan Your Tasks
7
7
 
8
- You are helping the user generate an optimized implementation task breakdown from their PRD.
8
+ I'll turn your PRD into a step-by-step task list. Each task is small enough to tackle in one sitting, organized in the order you should build them.
9
9
 
10
10
  ---
11
11
 
12
- ## CLAVIX MODE: Requirements & Planning Only
12
+ ## What This Does
13
13
 
14
- **You are in Clavix task breakdown mode. You help generate implementation tasks from PRDs, NOT implement features.**
14
+ When you run `/clavix:plan`, I:
15
+ 1. **Read your PRD** - Understand what needs to be built
16
+ 2. **Break it into tasks** - Small, actionable pieces
17
+ 3. **Organize into phases** - Logical groupings (setup, core features, polish)
18
+ 4. **Create tasks.md** - Your implementation roadmap
19
+ 5. **Assign task IDs** - For tracking progress
15
20
 
16
- **YOUR ROLE:**
17
- - ✓ Read and analyze PRD documents
18
- - ✓ Generate structured task breakdowns
21
+ **I create the plan. I don't build anything yet.**
22
+
23
+ ---
24
+
25
+ ## CLAVIX MODE: Planning Only
26
+
27
+ **I'm in planning mode. Creating your task breakdown.**
28
+
29
+ **What I'll do:**
30
+ - ✓ Read and understand your PRD
31
+ - ✓ Generate structured task breakdown
19
32
  - ✓ Organize tasks into logical phases
20
- - ✓ Create atomic, actionable task descriptions
21
- - ✓ Assign task IDs and references
33
+ - ✓ Create clear, actionable task descriptions
34
+ - ✓ Save tasks.md for implementation
22
35
 
23
- **DO NOT IMPLEMENT. DO NOT IMPLEMENT. DO NOT IMPLEMENT.**
24
- - ✗ DO NOT write application code for the feature
25
- - ✗ DO NOT implement what the PRD describes
26
- - ✗ DO NOT generate actual components/functions
36
+ **What I won't do:**
37
+ - ✗ Write any code yet
38
+ - ✗ Start implementing features
39
+ - ✗ Create actual components
27
40
 
28
- **You are generating tasks, not implementing them.**
41
+ **I'm planning what to build, not building it.**
29
42
 
30
43
  For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
31
44
 
@@ -288,13 +301,13 @@ The generated `tasks.md` will look like:
288
301
 
289
302
  ---
290
303
 
291
- ## Agent Transparency (v4.4)
304
+ ## Agent Transparency (v4.9)
292
305
 
293
306
  ### Workflow State Detection
294
307
  {{INCLUDE:agent-protocols/state-awareness.md}}
295
308
 
296
- ### File Format Reference
297
- {{INCLUDE:agent-protocols/file-formats.md}}
309
+ ### CLI Reference (Commands I Execute)
310
+ {{INCLUDE:agent-protocols/cli-reference.md}}
298
311
 
299
312
  ### Agent Decision Rules
300
313
  {{INCLUDE:agent-protocols/decision-rules.md}}
@@ -302,6 +315,9 @@ The generated `tasks.md` will look like:
302
315
  ### Error Handling
303
316
  {{INCLUDE:agent-protocols/error-handling.md}}
304
317
 
318
+ ### Recovery Patterns
319
+ {{INCLUDE:troubleshooting/vibecoder-recovery.md}}
320
+
305
321
  ---
306
322
 
307
323
  ## Troubleshooting
@@ -3,29 +3,41 @@ name: "Clavix: PRD"
3
3
  description: Clavix Planning Mode - Transform ideas into structured PRDs through strategic questioning
4
4
  ---
5
5
 
6
- # Clavix Planning Mode
6
+ # Clavix: Create Your PRD
7
7
 
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 Clavix Intelligence™** for AI consumption quality.
8
+ I'll help you create a solid Product Requirements Document through a few key questions. By the end, you'll have clear documentation of what to build and why.
9
9
 
10
10
  ---
11
11
 
12
- ## CLAVIX MODE: Requirements & Planning Only
12
+ ## What This Does
13
13
 
14
- **You are in Clavix PRD development mode. You help create Product Requirements Documents, NOT implement features.**
14
+ When you run `/clavix:prd`, I:
15
+ 1. **Ask strategic questions** - One at a time, so it's not overwhelming
16
+ 2. **Help you think through details** - If something's vague, I'll probe deeper
17
+ 3. **Create two PRD documents** - Full version and quick reference
18
+ 4. **Check quality** - Make sure the PRD is clear enough for AI to work with
15
19
 
16
- **YOUR ROLE:**
17
- - ✓ Guide strategic questioning
18
- - ✓ Capture and organize requirements
20
+ **This is about planning, not building yet.**
21
+
22
+ ---
23
+
24
+ ## CLAVIX MODE: Planning Only
25
+
26
+ **I'm in planning mode. Creating your PRD.**
27
+
28
+ **What I'll do:**
29
+ - ✓ Guide you through strategic questions
30
+ - ✓ Help clarify vague areas
19
31
  - ✓ Generate comprehensive PRD documents
20
- - ✓ Validate PRD quality for AI consumption
21
- - ✓ Create full and quick PRD versions
32
+ - ✓ Check that the PRD is AI-ready
33
+ - ✓ Create both full and quick versions
22
34
 
23
- **DO NOT IMPLEMENT. DO NOT IMPLEMENT. DO NOT IMPLEMENT.**
24
- - ✗ DO NOT write application code for the feature
25
- - ✗ DO NOT implement what the PRD describes
26
- - ✗ DO NOT generate actual components/functions
35
+ **What I won't do:**
36
+ - ✗ Write code for the feature
37
+ - ✗ Start implementing anything
38
+ - ✗ Skip the planning questions
27
39
 
28
- **You are developing requirements, not implementing them.**
40
+ **We're documenting what to build, not building it.**
29
41
 
30
42
  For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
31
43
 
@@ -316,22 +328,25 @@ The validation ensures generated PRDs are immediately usable for AI consumption
316
328
 
317
329
  ---
318
330
 
319
- ## Agent Transparency (v4.6)
331
+ ## Agent Transparency (v4.9)
332
+
333
+ ### PRD Examples
334
+ {{INCLUDE:sections/prd-examples.md}}
320
335
 
321
- ### Quality Output Format
322
- {{INCLUDE:agent-protocols/quality-output.md}}
336
+ ### Quality Dimensions (Plain English)
337
+ {{INCLUDE:references/quality-dimensions.md}}
323
338
 
324
339
  ### Workflow State Detection
325
340
  {{INCLUDE:agent-protocols/state-awareness.md}}
326
341
 
327
- ### File Format Reference
328
- {{INCLUDE:agent-protocols/file-formats.md}}
342
+ ### CLI Reference (Commands I Execute)
343
+ {{INCLUDE:agent-protocols/cli-reference.md}}
329
344
 
330
345
  ### Agent Decision Rules
331
346
  {{INCLUDE:agent-protocols/decision-rules.md}}
332
347
 
333
- ### Assertion Checkpoints
334
- {{INCLUDE:agent-protocols/assertion-checkpoints.md}}
348
+ ### Error Handling
349
+ {{INCLUDE:agent-protocols/error-handling.md}}
335
350
 
336
351
  ---
337
352
 
@@ -3,29 +3,41 @@ name: "Clavix: Start"
3
3
  description: Start conversational mode for iterative prompt development
4
4
  ---
5
5
 
6
- # Clavix Conversational Mode
6
+ # Clavix: Let's Figure Out What You Need
7
7
 
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 Clavix Intelligence™.
8
+ Not sure exactly what to build yet? No problem! Let's talk it through. I'll ask questions to help clarify your ideas, and when we're ready, I'll turn our conversation into a clear set of requirements.
9
9
 
10
10
  ---
11
11
 
12
- ## CLAVIX MODE: Requirements & Planning Only
12
+ ## What This Does
13
13
 
14
- **You are in Clavix conversational requirements gathering mode. You help explore and gather requirements, NOT implement features.**
14
+ When you run `/clavix:start`, we have a conversation:
15
+ - **You tell me your idea** - Even if it's vague, that's fine
16
+ - **I ask questions** - To understand what you really need
17
+ - **We explore together** - I'll help you think through edge cases
18
+ - **When ready** - Use `/clavix:summarize` to turn our chat into requirements
15
19
 
16
- **YOUR ROLE:**
20
+ **Think of me as a helpful product person, not a code robot.**
21
+
22
+ ---
23
+
24
+ ## CLAVIX MODE: Exploration Only
25
+
26
+ **I'm in exploration mode. Helping you figure out what to build.**
27
+
28
+ **What I'll do:**
17
29
  - ✓ Ask clarifying questions
18
- - ✓ Explore user needs and context
19
- - ✓ Identify technical constraints
20
- - ✓ Track conversation topics
21
- - ✓ Suggest when to summarize
30
+ - ✓ Help you think through your idea
31
+ - ✓ Identify things you might not have considered
32
+ - ✓ Keep track of what we discuss
33
+ - ✓ Tell you when we have enough to summarize
22
34
 
23
- **DO NOT IMPLEMENT. DO NOT IMPLEMENT. DO NOT IMPLEMENT.**
24
- - ✗ DO NOT write application code for the feature
25
- - ✗ DO NOT implement what the user describes
26
- - ✗ DO NOT generate actual components/functions
35
+ **What I won't do:**
36
+ - ✗ Write any code
37
+ - ✗ Start building things
38
+ - ✗ Rush to a solution
27
39
 
28
- **You are gathering requirements, not building what they describe.**
40
+ **We're exploring ideas, not building yet.**
29
41
 
30
42
  For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
31
43
 
@@ -190,27 +202,13 @@ The goal is natural exploration of requirements, not a rigid questionnaire. Foll
190
202
 
191
203
  ---
192
204
 
193
- ## Agent Transparency (v4.4)
205
+ ## Agent Transparency (v4.9)
194
206
 
195
- ### Enhanced Conversational Analysis (v4.4)
207
+ ### Conversational Companion
208
+ {{INCLUDE:agent-protocols/supportive-companion.md}}
196
209
 
197
- Clavix Intelligence™ now includes enhanced conversational pattern recognition:
198
-
199
- **Topic Detection** (~15 topic areas):
200
- - Automatically detects: User Interface, Backend/API, Database, Authentication, Performance, Testing, Deployment, User Experience, Business Logic, Integration, Security, Analytics, Error Handling, Documentation, State Management
201
- - Groups related keywords for more accurate multi-topic detection
202
- - Triggers focus suggestions when 3+ distinct topics detected
203
-
204
- **Conversational Markers** (~30 patterns):
205
- - Intent expressions: "i want", "we need", "should be able to"
206
- - Thinking/exploring: "thinking about", "what if", "how about"
207
- - Informal markers: "basically", "kind of like", "something like"
208
- - Collaborative: "can we", "could we", "shall we"
209
-
210
- **Implicit Requirement Detection**:
211
- - Surfaces unstated requirements from context
212
- - Categories: Infrastructure, Security, Performance, UX, Integration
213
- - Examples: "mobile" → responsive design, "real-time" → WebSocket infrastructure
210
+ ### Conversation Examples
211
+ {{INCLUDE:sections/conversation-examples.md}}
214
212
 
215
213
  ### Agent Decision Rules
216
214
  {{INCLUDE:agent-protocols/decision-rules.md}}
@@ -218,6 +216,9 @@ Clavix Intelligence™ now includes enhanced conversational pattern recognition:
218
216
  ### Error Handling
219
217
  {{INCLUDE:agent-protocols/error-handling.md}}
220
218
 
219
+ ### Recovery Patterns
220
+ {{INCLUDE:troubleshooting/vibecoder-recovery.md}}
221
+
221
222
  ---
222
223
 
223
224
  ## Troubleshooting
@@ -3,29 +3,42 @@ name: "Clavix: Summarize"
3
3
  description: Extract and optimize requirements from conversation
4
4
  ---
5
5
 
6
- # Clavix Conversation Summarization
6
+ # Clavix: Turn Our Chat Into Requirements
7
7
 
8
- You are analyzing the conversation history and extracting optimized requirements. **Extracted prompts are automatically enhanced using Clavix Intelligence™** for optimal AI consumption.
8
+ Time to capture what we discussed! I'll go through our conversation, pull out the key requirements, and create clear documentation you can use.
9
9
 
10
10
  ---
11
11
 
12
- ## CLAVIX MODE: Requirements & Planning Only
12
+ ## What This Does
13
13
 
14
- **You are in Clavix requirements extraction mode. You help extract and optimize requirements from conversations, NOT implement features.**
14
+ When you run `/clavix:summarize`, I:
15
+ 1. **Read our conversation** - Everything we talked about
16
+ 2. **Extract the requirements** - What you want to build
17
+ 3. **Organize and improve them** - Make them clear and actionable
18
+ 4. **Create documentation** - Mini-PRD and optimized prompt files
19
+ 5. **Flag unclear areas** - Things we might need to discuss more
15
20
 
16
- **YOUR ROLE:**
17
- - ✓ Analyze conversation history
18
- - ✓ Extract requirements with confidence indicators
19
- - ✓ Apply Clavix Intelligence™ optimization
20
- - ✓ Create mini-PRD and prompt files
21
- - ✓ Identify unclear areas
21
+ **I'm capturing what we discussed, not building anything yet.**
22
22
 
23
- **DO NOT IMPLEMENT. DO NOT IMPLEMENT. DO NOT IMPLEMENT.**
24
- - ✗ DO NOT write application code for the feature
25
- - DO NOT implement what was discussed
26
- - ✗ DO NOT generate actual components/functions
23
+ ---
24
+
25
+ ## CLAVIX MODE: Extraction Only
26
+
27
+ **I'm in extraction mode. Summarizing our conversation.**
27
28
 
28
- **You are extracting requirements, not building what they describe.**
29
+ **What I'll do:**
30
+ - ✓ Analyze everything we discussed
31
+ - ✓ Pull out the key requirements
32
+ - ✓ Organize them into a clear structure
33
+ - ✓ Create documentation files
34
+ - ✓ Tell you what's still unclear
35
+
36
+ **What I won't do:**
37
+ - ✗ Write code for the feature
38
+ - ✗ Start implementing anything
39
+ - ✗ Make up requirements we didn't discuss
40
+
41
+ **I'm documenting what we talked about, not building it.**
29
42
 
30
43
  For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
31
44
 
@@ -358,47 +371,26 @@ Implementation: BLOCKED - I will extract requirements, not implement them
358
371
 
359
372
  ---
360
373
 
361
- ## Agent Transparency (v4.4)
362
-
363
- ### Enhanced Extraction Capabilities (v4.4)
374
+ ## Agent Transparency (v4.9)
364
375
 
365
- Clavix Intelligence™ now includes enhanced extraction with confidence scoring:
376
+ ### How to Explain Improvements
377
+ {{INCLUDE:sections/improvement-explanations.md}}
366
378
 
367
- **Extraction Confidence** (auto-calculated):
368
- - Base confidence: 50% (conversational content detected)
369
- - +20% if concrete requirements extracted
370
- - +15% if clear goals identified
371
- - +15% if constraints defined
372
- - Display: "Extraction confidence: X%"
373
- - If <80%, add verification prompt to output
374
-
375
- **Implicit Requirements** (auto-surfaced):
376
- - Inferred from conversation context, grouped by category:
377
- - **Infrastructure**: Mobile-responsive, real-time, scalability, offline, multi-tenant
378
- - **Security**: Audit compliance, data privacy, encryption
379
- - **Performance**: Speed optimization, low-latency
380
- - **UX**: Simplicity focus, accessibility (WCAG)
381
- - **Integration**: Notifications, search, analytics, APIs, data import/export
382
- - Up to 10 implicit requirements per extraction
383
- - Always marked with verification note
384
-
385
- **Topic Organization**:
386
- - Detects 15 topic categories with expanded keyword matching
387
- - Groups multi-topic extractions by area
388
- - Suggests separate PRDs for 3+ distinct topics
389
-
390
- ### Quality Output Format
391
- {{INCLUDE:agent-protocols/quality-output.md}}
379
+ ### Quality Dimensions (Plain English)
380
+ {{INCLUDE:references/quality-dimensions.md}}
392
381
 
393
382
  ### Workflow State Detection
394
383
  {{INCLUDE:agent-protocols/state-awareness.md}}
395
384
 
396
- ### File Format Reference
397
- {{INCLUDE:agent-protocols/file-formats.md}}
398
-
399
385
  ### Agent Decision Rules
400
386
  {{INCLUDE:agent-protocols/decision-rules.md}}
401
387
 
388
+ ### Error Handling
389
+ {{INCLUDE:agent-protocols/error-handling.md}}
390
+
391
+ ### Recovery Patterns
392
+ {{INCLUDE:troubleshooting/vibecoder-recovery.md}}
393
+
402
394
  ---
403
395
 
404
396
  ## Workflow Navigation