clavix 5.8.1 → 5.8.2
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/helpers/init/integrations.js +3 -2
- package/dist/templates/slash-commands/_canonical/archive.md +1 -1
- package/dist/templates/slash-commands/_canonical/implement.md +1 -1
- package/dist/templates/slash-commands/_canonical/improve.md +3 -1
- package/dist/templates/slash-commands/_canonical/plan.md +3 -1
- package/dist/templates/slash-commands/_canonical/prd.md +3 -1
- package/dist/templates/slash-commands/_canonical/refine.md +1 -1
- package/dist/templates/slash-commands/_canonical/start.md +3 -1
- package/dist/templates/slash-commands/_canonical/summarize.md +3 -1
- package/dist/templates/slash-commands/_canonical/verify.md +1 -1
- package/dist/templates/slash-commands/_components/MANIFEST.md +6 -5
- package/dist/templates/slash-commands/_components/agent-protocols/AGENT_MANUAL.md +6 -0
- package/dist/templates/slash-commands/_components/agent-protocols/clarifying-questions.md +99 -0
- package/package.json +1 -1
|
@@ -96,8 +96,9 @@ export function getDisplayNames(agentManager, integrations) {
|
|
|
96
96
|
* Determine the command separator based on selected integrations
|
|
97
97
|
*/
|
|
98
98
|
export function determineCommandSeparator(integrations) {
|
|
99
|
-
const
|
|
100
|
-
const
|
|
99
|
+
const colonList = COLON_SEPARATOR_INTEGRATIONS;
|
|
100
|
+
const usesColon = integrations.some((i) => colonList.includes(i));
|
|
101
|
+
const usesHyphen = integrations.some((i) => !colonList.includes(i));
|
|
101
102
|
if (usesColon && !usesHyphen) {
|
|
102
103
|
return { primary: ':' };
|
|
103
104
|
}
|
|
@@ -125,6 +125,8 @@ Clavix provides a unified **improve** mode that intelligently selects the approp
|
|
|
125
125
|
|
|
126
126
|
## Instructions
|
|
127
127
|
|
|
128
|
+
**Before beginning:** Use the Clarifying Questions Protocol (see Agent Transparency section) when you need critical information from the user (confidence < 95%). For prompt improvement, this means confirming intent, desired depth, or technical constraints when ambiguous.
|
|
129
|
+
|
|
128
130
|
1. Take the user's prompt: `{{ARGS}}`
|
|
129
131
|
|
|
130
132
|
2. **Intent Detection** - Analyze what the user is trying to achieve:
|
|
@@ -522,7 +524,7 @@ Wait for the user to decide what to do next.
|
|
|
522
524
|
|
|
523
525
|
---
|
|
524
526
|
|
|
525
|
-
## Agent Transparency (v5.8.
|
|
527
|
+
## Agent Transparency (v5.8.2)
|
|
526
528
|
|
|
527
529
|
### Agent Manual (Universal Protocols)
|
|
528
530
|
{{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
|
|
@@ -79,6 +79,8 @@ Implementation: BLOCKED - I will create the plan, not the code
|
|
|
79
79
|
|
|
80
80
|
## Instructions
|
|
81
81
|
|
|
82
|
+
**Before beginning:** Use the Clarifying Questions Protocol (see Agent Transparency section) when you need critical information from the user (confidence < 95%). For task planning, this means confirming which PRD to use, technical approach preferences, or task breakdown granularity.
|
|
83
|
+
|
|
82
84
|
### Part A: Agent Execution Protocol
|
|
83
85
|
|
|
84
86
|
**As an AI agent, you must follow this strict sequence:**
|
|
@@ -219,7 +221,7 @@ Present the plan and ask:
|
|
|
219
221
|
|
|
220
222
|
---
|
|
221
223
|
|
|
222
|
-
## Agent Transparency (v5.8.
|
|
224
|
+
## Agent Transparency (v5.8.2)
|
|
223
225
|
|
|
224
226
|
### Agent Manual (Universal Protocols)
|
|
225
227
|
{{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
|
|
@@ -87,6 +87,8 @@ Both documents are automatically validated for quality (Clarity, Structure, Comp
|
|
|
87
87
|
|
|
88
88
|
## Instructions
|
|
89
89
|
|
|
90
|
+
**Before beginning:** Use the Clarifying Questions Protocol (see Agent Transparency section) when you need critical information from the user (confidence < 95%). For PRD development, this means confirming ambiguous project scope, technical requirements, or feature priorities.
|
|
91
|
+
|
|
90
92
|
1. Guide the user through these strategic questions, **one at a time** with validation:
|
|
91
93
|
|
|
92
94
|
**Question 1**: What are we building and why? (Problem + goal in 2-3 sentences)
|
|
@@ -344,7 +346,7 @@ The validation ensures generated PRDs are immediately usable for AI consumption
|
|
|
344
346
|
|
|
345
347
|
---
|
|
346
348
|
|
|
347
|
-
## Agent Transparency (v5.8.
|
|
349
|
+
## Agent Transparency (v5.8.2)
|
|
348
350
|
|
|
349
351
|
### Agent Manual (Universal Protocols)
|
|
350
352
|
{{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
|
|
@@ -79,6 +79,8 @@ Implementation: BLOCKED - I will ask questions and explore needs, not implement
|
|
|
79
79
|
|
|
80
80
|
## Instructions
|
|
81
81
|
|
|
82
|
+
**Before beginning:** Use the Clarifying Questions Protocol (see Agent Transparency section) throughout the conversation when you need critical information from the user (confidence < 95%). In conversational mode, this means probing for unclear requirements, technical constraints, or user needs.
|
|
83
|
+
|
|
82
84
|
1. Begin with a friendly introduction:
|
|
83
85
|
```
|
|
84
86
|
I'm starting Clavix conversational mode for requirements gathering.
|
|
@@ -226,7 +228,7 @@ The goal is natural exploration of requirements, not a rigid questionnaire. Foll
|
|
|
226
228
|
|
|
227
229
|
---
|
|
228
230
|
|
|
229
|
-
## Agent Transparency (v5.8.
|
|
231
|
+
## Agent Transparency (v5.8.2)
|
|
230
232
|
|
|
231
233
|
### Agent Manual (Universal Protocols)
|
|
232
234
|
{{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
|
|
@@ -80,6 +80,8 @@ Implementation: BLOCKED - I will extract requirements, not implement them
|
|
|
80
80
|
|
|
81
81
|
## Instructions
|
|
82
82
|
|
|
83
|
+
**Before beginning:** Use the Clarifying Questions Protocol (see Agent Transparency section) when you need critical information from the user (confidence < 95%). For summarization, this means asking for missing context, unclear requirements, or ambiguous technical specifications before extraction.
|
|
84
|
+
|
|
83
85
|
1. **Pre-Extraction Validation** - Check conversation completeness:
|
|
84
86
|
|
|
85
87
|
**CHECKPOINT:** Pre-extraction validation started
|
|
@@ -401,7 +403,7 @@ The `/clavix:summarize` command extracts requirements from exploratory conversat
|
|
|
401
403
|
|
|
402
404
|
---
|
|
403
405
|
|
|
404
|
-
## Agent Transparency (v5.8.
|
|
406
|
+
## Agent Transparency (v5.8.2)
|
|
405
407
|
|
|
406
408
|
### Agent Manual (Universal Protocols)
|
|
407
409
|
{{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
|
|
@@ -10,6 +10,7 @@ Core protocols that all AI agents must follow. Shared across most commands.
|
|
|
10
10
|
| Component | Purpose | Used By |
|
|
11
11
|
|-----------|---------|---------|
|
|
12
12
|
| `AGENT_MANUAL.md` | Universal protocols (transparency, mode identification, communication patterns) | All 9 commands |
|
|
13
|
+
| `clarifying-questions.md` | Systematic protocol for asking clarifying questions (95% confidence threshold) | improve, prd, plan, start, summarize |
|
|
13
14
|
| `cli-reference.md` | CLI command reference including removed commands table | improve, prd, plan, implement, verify, archive |
|
|
14
15
|
| `state-awareness.md` | Workflow state detection (mid-PRD, mid-implementation, etc.) | prd, plan, implement, summarize |
|
|
15
16
|
| `state-assertion.md` | Required mode assertion output (MODE, Purpose, Implementation status) | Available for all commands |
|
|
@@ -46,12 +47,12 @@ Recovery patterns for common agent issues.
|
|
|
46
47
|
|
|
47
48
|
| Command | Components Used |
|
|
48
49
|
|---------|----------------|
|
|
49
|
-
| `/clavix:improve` | AGENT_MANUAL, cli-reference, improvement-explanations, quality-dimensions, escalation-factors, pattern-impact |
|
|
50
|
-
| `/clavix:prd` | AGENT_MANUAL, prd-examples, quality-dimensions, state-awareness, cli-reference |
|
|
51
|
-
| `/clavix:plan` | AGENT_MANUAL, state-awareness, cli-reference, vibecoder-recovery |
|
|
50
|
+
| `/clavix:improve` | AGENT_MANUAL (includes clarifying-questions), cli-reference, improvement-explanations, quality-dimensions, escalation-factors, pattern-impact |
|
|
51
|
+
| `/clavix:prd` | AGENT_MANUAL (includes clarifying-questions), prd-examples, quality-dimensions, state-awareness, cli-reference |
|
|
52
|
+
| `/clavix:plan` | AGENT_MANUAL (includes clarifying-questions), state-awareness, cli-reference, vibecoder-recovery |
|
|
52
53
|
| `/clavix:implement` | AGENT_MANUAL, state-awareness, task-blocking, cli-reference, vibecoder-recovery |
|
|
53
|
-
| `/clavix:start` | AGENT_MANUAL, supportive-companion, conversation-examples, vibecoder-recovery |
|
|
54
|
-
| `/clavix:summarize` | AGENT_MANUAL, improvement-explanations, quality-dimensions, state-awareness, vibecoder-recovery |
|
|
54
|
+
| `/clavix:start` | AGENT_MANUAL (includes clarifying-questions), supportive-companion, conversation-examples, vibecoder-recovery |
|
|
55
|
+
| `/clavix:summarize` | AGENT_MANUAL (includes clarifying-questions), improvement-explanations, quality-dimensions, state-awareness, vibecoder-recovery |
|
|
55
56
|
| `/clavix:refine` | AGENT_MANUAL, cli-reference, quality-dimensions, state-awareness |
|
|
56
57
|
| `/clavix:verify` | AGENT_MANUAL, cli-reference, vibecoder-recovery |
|
|
57
58
|
| `/clavix:archive` | AGENT_MANUAL, cli-reference, vibecoder-recovery |
|
|
@@ -268,6 +268,12 @@ Each Clavix command has a specific mode. Stay within your mode:
|
|
|
268
268
|
|
|
269
269
|
---
|
|
270
270
|
|
|
271
|
+
## Clarifying Questions Protocol
|
|
272
|
+
|
|
273
|
+
{{INCLUDE:agent-protocols/clarifying-questions.md}}
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
271
277
|
## Verification Block Template
|
|
272
278
|
|
|
273
279
|
At the end of workflows that produce output, include verification:
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Clarifying Questions Protocol
|
|
2
|
+
|
|
3
|
+
When the user's request requires critical information to proceed correctly, use this protocol to gather necessary details systematically.
|
|
4
|
+
|
|
5
|
+
## When to Ask Clarifying Questions
|
|
6
|
+
|
|
7
|
+
Ask clarifying questions when:
|
|
8
|
+
- **Critical ambiguity exists** - The request has multiple valid interpretations that lead to substantially different outcomes
|
|
9
|
+
- **Missing essential context** - Information necessary to complete the task successfully is absent
|
|
10
|
+
- **Technical specifications needed** - Specific versions, paths, identifiers, or constraints are required
|
|
11
|
+
- **User choice required** - Multiple valid approaches exist and the user's preference is needed
|
|
12
|
+
|
|
13
|
+
**Do NOT ask clarifying questions when:**
|
|
14
|
+
- The information is trivial or easily inferred from context
|
|
15
|
+
- You can make a reasonable default assumption and mention it
|
|
16
|
+
- The question would slow down obviously simple tasks
|
|
17
|
+
- You're seeking perfection rather than addressing genuine ambiguity
|
|
18
|
+
|
|
19
|
+
## Question Format
|
|
20
|
+
|
|
21
|
+
Use this structured format for maximum clarity and efficiency:
|
|
22
|
+
|
|
23
|
+
### a. Multiple Choice Questions
|
|
24
|
+
|
|
25
|
+
When presenting options, use clear labels and make selection easy:
|
|
26
|
+
|
|
27
|
+
**Question:** [Your question here]
|
|
28
|
+
|
|
29
|
+
**Options:**
|
|
30
|
+
- **a.** First option - brief explanation
|
|
31
|
+
- **b.** Second option - brief explanation
|
|
32
|
+
- **c.** Third option - brief explanation
|
|
33
|
+
|
|
34
|
+
**Please respond with your choice (e.g., 'a' or 'option a').**
|
|
35
|
+
|
|
36
|
+
### b. Custom Input Questions
|
|
37
|
+
|
|
38
|
+
When you need specific information not in a predefined list:
|
|
39
|
+
|
|
40
|
+
**Question:** [Your question here]
|
|
41
|
+
|
|
42
|
+
**Please provide:** [Clear description of what format/content you need]
|
|
43
|
+
|
|
44
|
+
**Example:** [Show an example of valid input]
|
|
45
|
+
|
|
46
|
+
## Confidence Threshold
|
|
47
|
+
|
|
48
|
+
**Ask clarifying questions when confidence < 95%**
|
|
49
|
+
|
|
50
|
+
If you're 95%+ confident you understand the user's intent and have the necessary information, proceed without asking. If confidence is below 95%, stop and ask.
|
|
51
|
+
|
|
52
|
+
## Best Practices
|
|
53
|
+
|
|
54
|
+
1. **Ask questions sequentially** - Don't overwhelm with multiple questions at once unless they're tightly related
|
|
55
|
+
2. **Explain why you're asking** - Briefly state what the answer will help you determine
|
|
56
|
+
3. **Limit options** - Present 2-4 options maximum for choice questions
|
|
57
|
+
4. **Make defaults clear** - If there's a sensible default, state it and ask for confirmation
|
|
58
|
+
5. **Batch related questions** - If multiple questions are interdependent, present them together
|
|
59
|
+
|
|
60
|
+
## Examples
|
|
61
|
+
|
|
62
|
+
### Good: Clear Multiple Choice
|
|
63
|
+
> I need to know where to save the configuration file to proceed correctly.
|
|
64
|
+
>
|
|
65
|
+
> **Options:**
|
|
66
|
+
> - **a.** Project root (recommended for project-specific configs)
|
|
67
|
+
> - **b.** Home directory (for user-wide settings)
|
|
68
|
+
> - **c.** Custom path (you specify)
|
|
69
|
+
>
|
|
70
|
+
> **Please respond with your choice (e.g., 'a').**
|
|
71
|
+
|
|
72
|
+
### Good: Custom Input with Context
|
|
73
|
+
> To generate the migration script, I need the database schema version.
|
|
74
|
+
>
|
|
75
|
+
> **Please provide:** The current schema version number (e.g., "2.1.0" or "v3.4")
|
|
76
|
+
>
|
|
77
|
+
> If you're unsure, you can check with: `npm run db:version`
|
|
78
|
+
|
|
79
|
+
### Bad: Unnecessary Question
|
|
80
|
+
> ❌ "Do you want me to use good coding practices?"
|
|
81
|
+
>
|
|
82
|
+
> (This is always implied - just do it)
|
|
83
|
+
|
|
84
|
+
### Bad: Analysis Paralysis
|
|
85
|
+
> ❌ "Should I use const or let for this variable?"
|
|
86
|
+
>
|
|
87
|
+
> (This is implementation detail - decide yourself based on best practices)
|
|
88
|
+
|
|
89
|
+
## Recovery Pattern
|
|
90
|
+
|
|
91
|
+
If you realize you should have asked clarifying questions AFTER starting:
|
|
92
|
+
|
|
93
|
+
1. **STOP** the current approach
|
|
94
|
+
2. **EXPLAIN** what you discovered that requires clarification
|
|
95
|
+
3. **ASK** the necessary questions
|
|
96
|
+
4. **RESUME** with the correct approach once answered
|
|
97
|
+
|
|
98
|
+
**Example:**
|
|
99
|
+
> I apologize - I started implementing the auth flow but realized I need to clarify which authentication method you want to use. Are we implementing: (a) JWT tokens, (b) Session-based auth, or (c) OAuth2?
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavix",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.2",
|
|
4
4
|
"description": "Agentic-first prompt workflows. Markdown templates that teach AI agents how to optimize prompts, create PRDs, and manage implementation.\n\nSLASH COMMANDS (in your AI assistant):\n /clavix:improve Optimize prompts with auto-depth\n /clavix:prd Generate PRD through questions\n /clavix:plan Create task breakdown from PRD\n /clavix:implement Execute tasks with progress tracking\n /clavix:start Begin conversational session\n /clavix:summarize Extract requirements from conversation\n /clavix:refine Refine existing PRD or prompt\n /clavix:verify Verify implementation against requirements\n /clavix:archive Archive completed projects\n\nWorks with Claude Code, Cursor, Windsurf, and 20 AI coding tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|