clavix 5.6.6 → 5.7.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.
@@ -163,7 +163,7 @@
163
163
  },
164
164
  {
165
165
  "name": "llxprt",
166
- "displayName": "LLXpert",
166
+ "displayName": "LLXPRT",
167
167
  "directory": ".llxprt/commands/clavix",
168
168
  "filenamePattern": "{name}",
169
169
  "extension": ".toml",
@@ -48,10 +48,9 @@ function transformConfig(config) {
48
48
  if (config.placeholder) {
49
49
  features.argumentPlaceholder = config.placeholder;
50
50
  }
51
- // Special handling for Claude Code (subdirectories + frontmatter + doc injection)
51
+ // Special handling for Claude Code (subdirectories + doc injection)
52
52
  if (config.specialAdapter === 'doc-injection') {
53
53
  features.supportsSubdirectories = true;
54
- features.supportsFrontmatter = true;
55
54
  features.supportsDocInjection = true;
56
55
  features.commandSeparator = ':';
57
56
  }
@@ -10,7 +10,6 @@ export declare class ClaudeCodeAdapter extends BaseAdapter {
10
10
  readonly fileExtension = ".md";
11
11
  readonly features: {
12
12
  supportsSubdirectories: boolean;
13
- supportsFrontmatter: boolean;
14
13
  };
15
14
  /**
16
15
  * Detect if Claude Code is available in the project
@@ -13,7 +13,6 @@ export class ClaudeCodeAdapter extends BaseAdapter {
13
13
  fileExtension = '.md';
14
14
  features = {
15
15
  supportsSubdirectories: true,
16
- supportsFrontmatter: false,
17
16
  };
18
17
  /**
19
18
  * Detect if Claude Code is available in the project
@@ -27,7 +27,6 @@ export declare abstract class TomlFormattingAdapter extends BaseAdapter {
27
27
  readonly fileExtension = ".toml";
28
28
  readonly features: {
29
29
  supportsSubdirectories: boolean;
30
- supportsFrontmatter: boolean;
31
30
  argumentPlaceholder: string;
32
31
  };
33
32
  protected readonly config: TomlAdapterConfig;
@@ -16,7 +16,6 @@ export class TomlFormattingAdapter extends BaseAdapter {
16
16
  fileExtension = '.toml';
17
17
  features = {
18
18
  supportsSubdirectories: true,
19
- supportsFrontmatter: false,
20
19
  argumentPlaceholder: '{{args}}',
21
20
  };
22
21
  config;
@@ -46,9 +46,5 @@ export declare class UniversalAdapter extends BaseAdapter {
46
46
  * Check if this adapter supports subdirectories
47
47
  */
48
48
  supportsSubdirectories(): boolean;
49
- /**
50
- * Check if this adapter supports frontmatter
51
- */
52
- supportsFrontmatter(): boolean;
53
49
  }
54
50
  //# sourceMappingURL=universal-adapter.d.ts.map
@@ -22,7 +22,6 @@ export class UniversalAdapter extends BaseAdapter {
22
22
  // Set features from config for interface compatibility
23
23
  this.features = {
24
24
  supportsSubdirectories: config.features.supportsSubdirectories,
25
- supportsFrontmatter: config.features.supportsFrontmatter,
26
25
  commandFormat: {
27
26
  separator: config.features.commandSeparator,
28
27
  },
@@ -102,11 +101,5 @@ export class UniversalAdapter extends BaseAdapter {
102
101
  supportsSubdirectories() {
103
102
  return this.config.features.supportsSubdirectories;
104
103
  }
105
- /**
106
- * Check if this adapter supports frontmatter
107
- */
108
- supportsFrontmatter() {
109
- return this.config.features.supportsFrontmatter;
110
- }
111
104
  }
112
105
  //# sourceMappingURL=universal-adapter.js.map
@@ -21,16 +21,20 @@ When you run `/clavix:archive`, I:
21
21
 
22
22
  ---
23
23
 
24
- ## State Assertion (REQUIRED)
24
+ ## CLAVIX MODE: Archival
25
25
 
26
- Before ANY action, output this confirmation:
26
+ **I'm in archival mode. Organizing your completed work.**
27
27
 
28
- ```
29
- **CLAVIX MODE: Archival**
30
- Mode: management
31
- Purpose: Organizing completed projects
32
- Implementation: BLOCKED (file operations only)
33
- ```
28
+ **What I'll do:**
29
+ - Find projects ready for archive
30
+ - ✓ Show you what's complete (100% tasks done)
31
+ - Move projects to archive when you confirm
32
+ - Track everything so you can restore later
33
+
34
+ **What I won't do:**
35
+ - ✗ Delete anything without explicit confirmation
36
+ - ✗ Archive projects you're still working on (unless you use --force)
37
+ - ✗ Make decisions for you - you pick what to archive
34
38
 
35
39
  ---
36
40
 
@@ -49,20 +53,16 @@ If you catch yourself doing any of these, STOP and correct:
49
53
 
50
54
  ---
51
55
 
52
- ## CLAVIX MODE: Archival
53
-
54
- **I'm in archival mode. Organizing your completed work.**
56
+ ## State Assertion (REQUIRED)
55
57
 
56
- **What I'll do:**
57
- - ✓ Find projects ready for archive
58
- - ✓ Show you what's complete (100% tasks done)
59
- - ✓ Move projects to archive when you confirm
60
- - ✓ Track everything so you can restore later
58
+ Before ANY action, output this confirmation:
61
59
 
62
- **What I won't do:**
63
- - Delete anything without explicit confirmation
64
- - ✗ Archive projects you're still working on (unless you use --force)
65
- - Make decisions for you - you pick what to archive
60
+ ```
61
+ **CLAVIX MODE: Archival**
62
+ Mode: management
63
+ Purpose: Organizing completed projects
64
+ Implementation: BLOCKED (file operations only)
65
+ ```
66
66
 
67
67
  ---
68
68
 
@@ -70,6 +70,12 @@ If you catch yourself doing any of these, STOP and correct:
70
70
 
71
71
  **I use my native tools directly - no CLI commands involved.**
72
72
 
73
+ **Tools I use:**
74
+ - **Read tool**: To read tasks.md and check completion status
75
+ - **Bash/Move**: To move directories (`mv source dest`)
76
+ - **Bash/Remove**: To delete directories (`rm -rf path`) - only with explicit confirmation
77
+ - **Glob/List**: To list projects and archive contents
78
+
73
79
  ### What I Do
74
80
 
75
81
  | What You Want | How I Do It |
@@ -90,10 +96,18 @@ I check:
90
96
 
91
97
  ### After Archiving
92
98
 
93
- I tell you:
94
- - Where the project went
95
- - How to restore it (unless you deleted it)
96
- - What to do next
99
+ I verify the operation completed and ask what you want to do next:
100
+
101
+ **Verification:**
102
+ - Confirm the project was moved/deleted
103
+ - Show the new location (for archive) or confirm removal (for delete)
104
+ - List any related files that may need cleanup
105
+
106
+ **I then ask:** "What would you like to do next?"
107
+ - Start a new project with `/clavix:prd`
108
+ - Archive another completed project
109
+ - Review archived projects
110
+ - Return to something else
97
111
 
98
112
  ### Part B: Understanding Archive Operations
99
113
 
@@ -260,7 +274,7 @@ Result: Project permanently deleted
260
274
 
261
275
  ---
262
276
 
263
- ## Agent Transparency (v5.1)
277
+ ## Agent Transparency (v5.7.1)
264
278
 
265
279
  ### Agent Manual (Universal Protocols)
266
280
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -68,35 +68,6 @@ Override auto-detection when needed:
68
68
 
69
69
  ---
70
70
 
71
- ## State Assertion (REQUIRED)
72
-
73
- Before ANY action, output this confirmation:
74
-
75
- ```
76
- **CLAVIX MODE: Implementation**
77
- Mode: implementation
78
- Purpose: Executing tasks or prompts with code generation
79
- Source: [tasks.md | prompts/ | user request]
80
- Implementation: AUTHORIZED
81
- ```
82
-
83
- ---
84
-
85
- ## Self-Correction Protocol
86
-
87
- If you catch yourself doing any of these, STOP and correct:
88
-
89
- 1. **Skipping Auto-Detection** - Not checking for tasks.md and prompts/ before asking
90
- 2. **Implementing Without Reading** - Starting code before reading the full task/prompt
91
- 3. **Skipping Verification** - Not running tests after implementation
92
- 4. **Batch Task Completion** - Marking multiple tasks done without implementing each
93
- 5. **Ignoring Blocked Tasks** - Not reporting when a task cannot be completed
94
- 6. **Capability Hallucination** - Claiming Clavix can do things it cannot
95
-
96
- **DETECT → STOP → CORRECT → RESUME**
97
-
98
- ---
99
-
100
71
  ## CLAVIX MODE: Implementation
101
72
 
102
73
  **I'm in implementation mode. Building your tasks!**
@@ -122,6 +93,35 @@ For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
122
93
 
123
94
  ---
124
95
 
96
+ ## Self-Correction Protocol
97
+
98
+ If you catch yourself doing any of these, STOP and correct:
99
+
100
+ 1. **Skipping Auto-Detection** - Not checking for tasks.md and prompts/ before asking
101
+ 2. **Implementing Without Reading** - Starting code before reading the full task/prompt
102
+ 3. **Skipping Verification** - Not running tests after implementation
103
+ 4. **Batch Task Completion** - Marking multiple tasks done without implementing each
104
+ 5. **Ignoring Blocked Tasks** - Not reporting when a task cannot be completed
105
+ 6. **Capability Hallucination** - Claiming Clavix can do things it cannot
106
+
107
+ **DETECT → STOP → CORRECT → RESUME**
108
+
109
+ ---
110
+
111
+ ## State Assertion (REQUIRED)
112
+
113
+ Before ANY action, output this confirmation:
114
+
115
+ ```
116
+ **CLAVIX MODE: Implementation**
117
+ Mode: implementation
118
+ Purpose: Executing tasks or prompts with code generation
119
+ Source: [tasks.md | prompts/ | user request]
120
+ Implementation: AUTHORIZED
121
+ ```
122
+
123
+ ---
124
+
125
125
  ## How It Works
126
126
 
127
127
  ### The Quick Version
@@ -524,7 +524,7 @@ I'll explain what's wrong and what you might need to do:
524
524
 
525
525
  ---
526
526
 
527
- ## Agent Transparency (v5.1)
527
+ ## Agent Transparency (v5.7.1)
528
528
 
529
529
  ### Agent Manual (Universal Protocols)
530
530
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -5,6 +5,24 @@ description: Analyze and improve prompts with auto-detected depth
5
5
 
6
6
  # Clavix: Improve Your Prompt
7
7
 
8
+ ---
9
+
10
+ ## What This Does
11
+
12
+ When you run `/clavix:improve`, I:
13
+ 1. **Analyze your prompt quality** - 6-dimension assessment (Clarity, Efficiency, Structure, Completeness, Actionability, Specificity)
14
+ 2. **Select optimal depth** - Auto-choose standard vs comprehensive based on quality score
15
+ 3. **Apply improvement patterns** - Transform using proven optimization techniques
16
+ 4. **Generate optimized version** - Create enhanced prompt with quality feedback
17
+ 5. **Save for implementation** - Store in `.clavix/outputs/prompts/` for `/clavix:implement`
18
+
19
+ **Smart Depth Selection:**
20
+ - **Quality ≥ 75%**: Comprehensive depth (add polish and enhancements)
21
+ - **Quality 60-74%**: User choice (borderline quality)
22
+ - **Quality < 60%**: Standard depth (focus on basic fixes)
23
+
24
+ ---
25
+
8
26
  ## Important: This is Planning Mode
9
27
 
10
28
  This is a prompt improvement workflow. Your job is to ANALYZE and IMPROVE the prompt, then STOP.
@@ -47,6 +65,28 @@ This is a prompt improvement workflow. Your job is to ANALYZE and IMPROVE the pr
47
65
 
48
66
  ---
49
67
 
68
+ ## Self-Correction Protocol
69
+
70
+ **DETECT**: If you find yourself doing any of these mistake types:
71
+
72
+ | Type | What It Looks Like |
73
+ |------|--------------------|
74
+ | 1. Implementation Code | Writing function/class definitions, creating components, generating API endpoints |
75
+ | 2. Skipping Quality Assessment | Not scoring all 6 dimensions, jumping to improved prompt without analysis |
76
+ | 3. Wrong Depth Selection | Not explaining why standard/comprehensive was chosen |
77
+ | 4. Incomplete Pattern Application | Not showing which patterns were applied |
78
+ | 5. Missing Depth Features | In comprehensive mode: missing alternatives, edge cases, or validation |
79
+ | 6. Capability Hallucination | Claiming features Clavix doesn't have, inventing pattern names |
80
+
81
+ **STOP**: Immediately halt the incorrect action
82
+
83
+ **CORRECT**: Output:
84
+ "I apologize - I was [describe mistake]. Let me return to prompt optimization."
85
+
86
+ **RESUME**: Return to the prompt optimization workflow with correct approach.
87
+
88
+ ---
89
+
50
90
  ## State Assertion (REQUIRED)
51
91
 
52
92
  **Before starting analysis, output:**
@@ -83,28 +123,6 @@ Clavix provides a unified **improve** mode that intelligently selects the approp
83
123
 
84
124
  ---
85
125
 
86
- ## Self-Correction Protocol
87
-
88
- **DETECT**: If you find yourself doing any of these mistake types:
89
-
90
- | Type | What It Looks Like |
91
- |------|--------------------|
92
- | 1. Implementation Code | Writing function/class definitions, creating components, generating API endpoints |
93
- | 2. Skipping Quality Assessment | Not scoring all 6 dimensions, jumping to improved prompt without analysis |
94
- | 3. Wrong Depth Selection | Not explaining why standard/comprehensive was chosen |
95
- | 4. Incomplete Pattern Application | Not showing which patterns were applied |
96
- | 5. Missing Depth Features | In comprehensive mode: missing alternatives, edge cases, or validation |
97
- | 6. Capability Hallucination | Claiming features Clavix doesn't have, inventing pattern names |
98
-
99
- **STOP**: Immediately halt the incorrect action
100
-
101
- **CORRECT**: Output:
102
- "I apologize - I was [describe mistake]. Let me return to prompt optimization."
103
-
104
- **RESUME**: Return to the prompt optimization workflow with correct approach.
105
-
106
- ---
107
-
108
126
  ## Instructions
109
127
 
110
128
  1. Take the user's prompt: `{{ARGS}}`
@@ -477,10 +495,20 @@ Wait for the user to decide what to do next.
477
495
 
478
496
  **You are here:** Improve Mode (Unified Prompt Intelligence)
479
497
 
498
+ **State markers for workflow continuity:**
499
+ - If user came from `/clavix:start`: They explored conversationally, now want optimization
500
+ - If user came from `/clavix:summarize`: They have a mini-PRD, want to refine the prompt further
501
+ - If prompt is complex (score < 60%): Suggest `/clavix:prd` for comprehensive planning instead
502
+
480
503
  **Common workflows:**
481
- - **Quick cleanup**: `/clavix:improve` -> `/clavix:implement --latest` -> Build
482
- - **Force comprehensive**: `/clavix:improve --comprehensive` -> Full analysis with alternatives
483
- - **Strategic planning**: `/clavix:improve` -> (suggests) `/clavix:prd` -> Plan -> Implement -> Archive
504
+ - **Quick cleanup**: `/clavix:improve` `/clavix:implement --latest` Build
505
+ - **Force comprehensive**: `/clavix:improve --comprehensive` Full analysis with alternatives
506
+ - **Strategic planning**: `/clavix:improve` (suggests) `/clavix:prd` Plan Implement Archive
507
+
508
+ **After completion, guide user to:**
509
+ - `/clavix:implement --latest` - Build what the prompt describes
510
+ - `/clavix:prd` - If the task is larger than expected
511
+ - `/clavix:refine` - If they want to iterate on the improved prompt
484
512
 
485
513
  **Related commands:**
486
514
  - `/clavix:implement` - Execute saved prompt or tasks (IMPLEMENTATION starts here)
@@ -494,7 +522,7 @@ Wait for the user to decide what to do next.
494
522
 
495
523
  ---
496
524
 
497
- ## Agent Transparency (v5.1)
525
+ ## Agent Transparency (v5.7.1)
498
526
 
499
527
  ### Agent Manual (Universal Protocols)
500
528
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -282,15 +282,52 @@ The generated `tasks.md` will look like:
282
282
  **Create directory if not exists**: Yes
283
283
  **Overwrite if exists**: Only with explicit user confirmation or `--overwrite` flag
284
284
 
285
+ ---
286
+
287
+ ## After Plan Generation
288
+
289
+ After creating the task breakdown, I present it and ask for verification:
290
+
291
+ **What I'll show:**
292
+ - Summary of phases and task count
293
+ - First few tasks from each phase
294
+ - Any dependencies detected
295
+
296
+ **What I'll ask:**
297
+ > "Here's your task breakdown. Before you start implementing, please verify:
298
+ > 1. Does this capture everything from your PRD?
299
+ > 2. Are the tasks in the right order?
300
+ > 3. Is the granularity right (not too big, not too small)?
301
+ >
302
+ > What would you like to do next?"
303
+
304
+ **Your options:**
305
+ 1. Start implementing with `/clavix:implement`
306
+ 2. Edit tasks.md to adjust tasks
307
+ 3. Regenerate with different granularity
308
+ 4. Go back and refine the PRD first
309
+
310
+ ---
311
+
285
312
  ## Workflow Navigation
286
313
 
287
314
  **You are here:** Plan (Task Breakdown)
288
315
 
316
+ **State markers for workflow continuity:**
317
+ - If user came from `/clavix:prd`: Full PRD available, use comprehensive task breakdown
318
+ - If user came from `/clavix:summarize`: Mini-PRD available, may need simpler task structure
319
+ - If PRD has many features: Consider grouping by feature in phases
320
+ - If PRD has dependencies: Ensure task ordering reflects them
321
+
289
322
  **Common workflows:**
290
323
  - **PRD workflow**: `/clavix:prd` → `/clavix:plan` → `/clavix:implement` → `/clavix:archive`
291
324
  - **Conversation workflow**: `/clavix:summarize` → `/clavix:plan` → `/clavix:implement` → `/clavix:archive`
292
325
  - **Standalone**: [Existing PRD] → `/clavix:plan` → Review tasks.md → `/clavix:implement`
293
326
 
327
+ **After completion, guide user to:**
328
+ - `/clavix:implement` - Start executing tasks (recommended next step)
329
+ - Edit `tasks.md` - If they want to adjust task order or granularity
330
+
294
331
  **Related commands:**
295
332
  - `/clavix:prd` - Generate PRD (typical previous step)
296
333
  - `/clavix:summarize` - Extract mini-PRD from conversation (alternative previous step)
@@ -307,7 +344,7 @@ The generated `tasks.md` will look like:
307
344
 
308
345
  ---
309
346
 
310
- ## Agent Transparency (v5.1)
347
+ ## Agent Transparency (v5.7.1)
311
348
 
312
349
  ### Agent Manual (Universal Protocols)
313
350
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -314,11 +314,21 @@ The validation ensures generated PRDs are immediately usable for AI consumption
314
314
 
315
315
  **You are here:** Clavix Planning Mode (Strategic Planning)
316
316
 
317
+ **State markers for workflow continuity:**
318
+ - If user came from `/clavix:improve`: Prompt was too complex for simple optimization
319
+ - If user came from `/clavix:start`: They explored, now want structured planning
320
+ - If this is a greenfield project: Start with business context questions
321
+ - If modifying existing feature: Start with current state questions
322
+
317
323
  **Common workflows:**
318
324
  - **Full planning workflow**: `/clavix:prd` → `/clavix:plan` → `/clavix:implement` → `/clavix:archive`
319
325
  - **From improve mode**: `/clavix:improve` → (strategic scope detected) → `/clavix:prd`
320
326
  - **Quick to strategic**: `/clavix:improve` → (realizes complexity) → `/clavix:prd`
321
327
 
328
+ **After completion, guide user to:**
329
+ - `/clavix:plan` - Generate task breakdown from the PRD (recommended next step)
330
+ - `/clavix:refine` - If they want to iterate on the PRD
331
+
322
332
  **Related commands:**
323
333
  - `/clavix:plan` - Generate task breakdown from PRD (next step)
324
334
  - `/clavix:implement` - Execute tasks (after plan)
@@ -334,7 +344,7 @@ The validation ensures generated PRDs are immediately usable for AI consumption
334
344
 
335
345
  ---
336
346
 
337
- ## Agent Transparency (v5.1)
347
+ ## Agent Transparency (v5.7.1)
338
348
 
339
349
  ### Agent Manual (Universal Protocols)
340
350
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}