clavix 4.6.0 → 4.7.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/templates/agents/agents.md +14 -7
- package/dist/templates/agents/copilot-instructions.md +14 -7
- package/dist/templates/agents/octo.md +14 -8
- package/dist/templates/agents/warp.md +15 -10
- package/dist/templates/slash-commands/_canonical/archive.md +6 -5
- package/dist/templates/slash-commands/_canonical/deep.md +72 -11
- package/dist/templates/slash-commands/_canonical/execute.md +57 -6
- package/dist/templates/slash-commands/_canonical/fast.md +70 -13
- package/package.json +1 -1
- package/dist/templates/slash-commands/_canonical/prompts.md +0 -97
|
@@ -4,18 +4,25 @@ This guide is for agents that can only read documentation (no slash-command supp
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
## CLAVIX
|
|
7
|
+
## ⛔ CLAVIX MODE ENFORCEMENT (v4.7)
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**CRITICAL: Know which mode you're in and STOP at the right point.**
|
|
10
10
|
|
|
11
|
-
**
|
|
12
|
-
-
|
|
11
|
+
**OPTIMIZATION workflows** (NO CODE ALLOWED):
|
|
12
|
+
- Fast/deep optimization - Prompt improvement only
|
|
13
|
+
- Your role: Analyze, optimize, show improved prompt, **STOP**
|
|
14
|
+
- ❌ DO NOT implement the prompt's requirements
|
|
15
|
+
- ✅ After showing optimized prompt, tell user: "Run `/clavix:execute --latest` to implement"
|
|
16
|
+
|
|
17
|
+
**PLANNING workflows** (NO CODE ALLOWED):
|
|
18
|
+
- Conversational mode, requirement extraction, PRD generation
|
|
13
19
|
- Your role: Ask questions, create PRDs/prompts, extract requirements
|
|
14
|
-
- DO NOT implement features during these workflows
|
|
20
|
+
- ❌ DO NOT implement features during these workflows
|
|
15
21
|
|
|
16
|
-
**IMPLEMENTATION workflows** (
|
|
17
|
-
- Only
|
|
22
|
+
**IMPLEMENTATION workflows** (CODE ALLOWED):
|
|
23
|
+
- Only after user runs execute/implement commands
|
|
18
24
|
- Your role: Write code, execute tasks, implement features
|
|
25
|
+
- ✅ DO implement code during these workflows
|
|
19
26
|
|
|
20
27
|
**If unsure, ASK:** "Should I implement this now, or continue with planning?"
|
|
21
28
|
|
|
@@ -4,18 +4,25 @@ These instructions enhance GitHub Copilot's understanding of Clavix Intelligence
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
## CLAVIX
|
|
7
|
+
## ⛔ CLAVIX MODE ENFORCEMENT (v4.7)
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**CRITICAL: Know which mode you're in and STOP at the right point.**
|
|
10
10
|
|
|
11
|
-
**
|
|
12
|
-
-
|
|
11
|
+
**OPTIMIZATION workflows** (NO CODE ALLOWED):
|
|
12
|
+
- Fast/deep optimization - Prompt improvement only
|
|
13
|
+
- Your role: Analyze, optimize, show improved prompt, **STOP**
|
|
14
|
+
- ❌ DO NOT implement the prompt's requirements
|
|
15
|
+
- ✅ After showing optimized prompt, tell user: "Run `/clavix:execute --latest` to implement"
|
|
16
|
+
|
|
17
|
+
**PLANNING workflows** (NO CODE ALLOWED):
|
|
18
|
+
- Conversational mode, requirement extraction, PRD generation
|
|
13
19
|
- Your role: Ask questions, create PRDs/prompts, extract requirements
|
|
14
|
-
- DO NOT implement features during these workflows
|
|
20
|
+
- ❌ DO NOT implement features during these workflows
|
|
15
21
|
|
|
16
|
-
**IMPLEMENTATION workflows** (
|
|
17
|
-
- Only
|
|
22
|
+
**IMPLEMENTATION workflows** (CODE ALLOWED):
|
|
23
|
+
- Only after user runs execute/implement commands
|
|
18
24
|
- Your role: Write code, execute tasks, implement features
|
|
25
|
+
- ✅ DO implement code during these workflows
|
|
19
26
|
|
|
20
27
|
**If unsure, ASK:** "Should I implement this now, or continue with planning?"
|
|
21
28
|
|
|
@@ -4,19 +4,25 @@ Clavix workflows optimized for Octofriend's capabilities: model switching, multi
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
## CLAVIX
|
|
7
|
+
## ⛔ CLAVIX MODE ENFORCEMENT (v4.7)
|
|
8
8
|
|
|
9
|
-
**Know which mode you're in
|
|
9
|
+
**CRITICAL: Know which mode you're in and STOP at the right point.**
|
|
10
10
|
|
|
11
|
-
**
|
|
12
|
-
-
|
|
11
|
+
**OPTIMIZATION workflows** (NO CODE ALLOWED):
|
|
12
|
+
- `/clavix:fast`, `/clavix:deep` - Prompt optimization only
|
|
13
|
+
- Your role: Analyze, optimize, show improved prompt, **STOP**
|
|
14
|
+
- ❌ DO NOT implement the prompt's requirements
|
|
15
|
+
- ✅ After showing optimized prompt, tell user: "Run `/clavix:execute --latest` to implement"
|
|
16
|
+
|
|
17
|
+
**PLANNING workflows** (NO CODE ALLOWED):
|
|
18
|
+
- `/clavix:start`, `/clavix:summarize`, `/clavix:prd`, `/clavix:plan`
|
|
13
19
|
- Your role: Ask questions, create PRDs/prompts, extract requirements
|
|
14
|
-
-
|
|
20
|
+
- ❌ DO NOT implement features during these workflows
|
|
15
21
|
|
|
16
|
-
**IMPLEMENTATION workflows** (
|
|
17
|
-
- implement
|
|
22
|
+
**IMPLEMENTATION workflows** (CODE ALLOWED):
|
|
23
|
+
- `/clavix:implement`, `/clavix:execute`, `clavix task-complete`
|
|
18
24
|
- Your role: Write code, execute tasks, implement features
|
|
19
|
-
-
|
|
25
|
+
- ✅ DO implement code during these workflows
|
|
20
26
|
|
|
21
27
|
See `.clavix/instructions/core/clavix-mode.md` for complete mode documentation.
|
|
22
28
|
|
|
@@ -4,20 +4,25 @@ Clavix helps Warp developers turn rough ideas into quality, AI-ready prompts and
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### ⛔ CLAVIX MODE ENFORCEMENT (v4.7)
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**CRITICAL: Know which mode you're in and STOP at the right point.**
|
|
10
10
|
|
|
11
|
-
**
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
11
|
+
**OPTIMIZATION workflows** (NO CODE ALLOWED):
|
|
12
|
+
- Fast/deep optimization - Prompt improvement only
|
|
13
|
+
- Your role: Analyze, optimize, show improved prompt, **STOP**
|
|
14
|
+
- ❌ DO NOT implement the prompt's requirements
|
|
15
|
+
- ✅ After showing optimized prompt, tell user: "Run `/clavix:execute --latest` to implement"
|
|
15
16
|
|
|
16
|
-
**
|
|
17
|
-
-
|
|
18
|
-
-
|
|
17
|
+
**PLANNING workflows** (NO CODE ALLOWED):
|
|
18
|
+
- Conversational mode, requirement extraction, PRD generation
|
|
19
|
+
- Your role: Ask questions, create PRDs/prompts, extract requirements
|
|
20
|
+
- ❌ DO NOT implement features during these workflows
|
|
19
21
|
|
|
20
|
-
**
|
|
22
|
+
**IMPLEMENTATION workflows** (CODE ALLOWED):
|
|
23
|
+
- Only after user runs execute/implement commands
|
|
24
|
+
- Your role: Write code, execute tasks, implement features
|
|
25
|
+
- ✅ DO implement code during these workflows
|
|
21
26
|
|
|
22
27
|
See `.clavix/instructions/core/clavix-mode.md` for complete mode documentation.
|
|
23
28
|
|
|
@@ -158,21 +158,22 @@ Fast/deep prompts from `/clavix:fast` and `/clavix:deep` are stored separately i
|
|
|
158
158
|
|
|
159
159
|
**Prompts are NOT archived with PRD projects.**
|
|
160
160
|
|
|
161
|
-
**Manage prompts separately:**
|
|
161
|
+
**Manage prompts separately (CLI commands):**
|
|
162
162
|
```bash
|
|
163
163
|
clavix prompts list # View all prompts
|
|
164
|
-
clavix prompts clear #
|
|
165
|
-
|
|
164
|
+
clavix prompts clear # Interactive cleanup
|
|
165
|
+
clavix prompts clear --executed # Remove executed only
|
|
166
|
+
clavix prompts clear --stale # Remove >30 day old
|
|
166
167
|
```
|
|
167
168
|
|
|
168
169
|
**Before archiving, consider cleanup:**
|
|
169
170
|
```bash
|
|
170
|
-
|
|
171
|
+
clavix prompts clear --executed
|
|
171
172
|
```
|
|
172
173
|
|
|
173
174
|
**Prompts lifecycle:**
|
|
174
175
|
- Independent from PRD lifecycle
|
|
175
|
-
- Managed via
|
|
176
|
+
- Managed via CLI commands
|
|
176
177
|
- Clear manually when project complete
|
|
177
178
|
|
|
178
179
|
## Example Workflows
|
|
@@ -3,13 +3,38 @@ name: "Clavix: Deep"
|
|
|
3
3
|
description: Comprehensive analysis with alternatives, edge cases, and validation
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
# ⛔ STOP: OPTIMIZATION MODE - NOT IMPLEMENTATION
|
|
7
|
+
|
|
8
|
+
**THIS IS A PROMPT ANALYSIS WORKFLOW. YOU MUST NOT IMPLEMENT ANYTHING.**
|
|
9
|
+
|
|
10
|
+
## YOU MUST NOT:
|
|
11
|
+
- ❌ Write any application code
|
|
12
|
+
- ❌ Create any new files (except prompt save files)
|
|
13
|
+
- ❌ Modify any existing project code
|
|
14
|
+
- ❌ Start implementing the prompt's requirements
|
|
15
|
+
- ❌ Generate components, functions, or features
|
|
16
|
+
|
|
17
|
+
## YOU MUST:
|
|
18
|
+
1. ✅ Analyze the user's prompt comprehensively
|
|
19
|
+
2. ✅ Apply all intelligence patterns
|
|
20
|
+
3. ✅ Show the optimized prompt + alternatives + edge cases
|
|
21
|
+
4. ✅ Save the prompt (CLI command or manual)
|
|
22
|
+
5. ✅ **STOP and wait** for user to run `/clavix:execute`
|
|
23
|
+
|
|
24
|
+
## IF USER WANTS TO IMPLEMENT:
|
|
25
|
+
Tell them: **"Run `/clavix:execute --latest` to implement this prompt."**
|
|
26
|
+
|
|
27
|
+
**DO NOT IMPLEMENT YOURSELF. YOUR JOB ENDS AFTER SHOWING THE ANALYSIS.**
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
6
31
|
# Clavix Deep Mode - Clavix Intelligence™
|
|
7
32
|
|
|
8
33
|
You are helping the user perform comprehensive deep analysis using Clavix Intelligence™ with full exploration features (alternatives, edge cases, validation checklists).
|
|
9
34
|
|
|
10
35
|
---
|
|
11
36
|
|
|
12
|
-
## CLAVIX MODE:
|
|
37
|
+
## CLAVIX MODE: Prompt Analysis Only
|
|
13
38
|
|
|
14
39
|
**You are in Clavix deep analysis mode. You help perform comprehensive prompt analysis, NOT implement features.**
|
|
15
40
|
|
|
@@ -19,11 +44,14 @@ You are helping the user perform comprehensive deep analysis using Clavix Intell
|
|
|
19
44
|
- ✓ Generate alternative approaches
|
|
20
45
|
- ✓ Identify edge cases and validation checklists
|
|
21
46
|
- ✓ Provide comprehensive quality assessments
|
|
47
|
+
- ✓ Save the optimized prompt
|
|
48
|
+
- ✓ **STOP** after analysis
|
|
22
49
|
|
|
23
50
|
**DO NOT IMPLEMENT. DO NOT IMPLEMENT. DO NOT IMPLEMENT.**
|
|
24
51
|
- ✗ DO NOT write application code for the feature
|
|
25
52
|
- ✗ DO NOT implement what the prompt/PRD describes
|
|
26
53
|
- ✗ DO NOT generate actual components/functions
|
|
54
|
+
- ✗ DO NOT continue after showing the analysis
|
|
27
55
|
|
|
28
56
|
**You are analyzing prompts, not building what they describe.**
|
|
29
57
|
|
|
@@ -455,19 +483,50 @@ Confirm:
|
|
|
455
483
|
|
|
456
484
|
After saving completes successfully:
|
|
457
485
|
|
|
458
|
-
|
|
486
|
+
---
|
|
487
|
+
|
|
488
|
+
## ⛔ STOP HERE - Agent Verification Required
|
|
489
|
+
|
|
490
|
+
**Your workflow ends here. Before responding to the user:**
|
|
491
|
+
|
|
492
|
+
### CLI Verification (Run This Command)
|
|
459
493
|
```bash
|
|
494
|
+
clavix prompts list
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
**Verify**: Your prompt appears in the list with status "pending" or "NEW".
|
|
498
|
+
|
|
499
|
+
**If verification fails**:
|
|
500
|
+
- Check if file was saved to `.clavix/outputs/prompts/deep/`
|
|
501
|
+
- Retry the save operation
|
|
502
|
+
- Check file permissions
|
|
503
|
+
|
|
504
|
+
### Required Response Ending
|
|
505
|
+
|
|
506
|
+
**Your response MUST end with:**
|
|
507
|
+
```
|
|
508
|
+
✅ Deep analysis complete. Prompt optimized and saved.
|
|
509
|
+
|
|
510
|
+
To implement this prompt, run:
|
|
460
511
|
/clavix:execute --latest
|
|
461
512
|
```
|
|
462
513
|
|
|
463
|
-
**
|
|
514
|
+
**DO NOT continue to implementation. DO NOT write any code. STOP HERE.**
|
|
515
|
+
|
|
516
|
+
---
|
|
517
|
+
|
|
518
|
+
### Prompt Management (CLI Commands)
|
|
519
|
+
|
|
520
|
+
**List all saved prompts:**
|
|
464
521
|
```bash
|
|
465
|
-
|
|
522
|
+
clavix prompts list
|
|
466
523
|
```
|
|
467
524
|
|
|
468
|
-
**Cleanup
|
|
525
|
+
**Cleanup after execution:**
|
|
469
526
|
```bash
|
|
470
|
-
clavix prompts clear --
|
|
527
|
+
clavix prompts clear --executed # Remove executed prompts
|
|
528
|
+
clavix prompts clear --stale # Remove >30 day old prompts
|
|
529
|
+
clavix prompts clear --deep # Remove all deep prompts
|
|
471
530
|
```
|
|
472
531
|
|
|
473
532
|
## Workflow Navigation
|
|
@@ -475,19 +534,21 @@ clavix prompts clear --deep
|
|
|
475
534
|
**You are here:** Deep Mode (Comprehensive Prompt Intelligence)
|
|
476
535
|
|
|
477
536
|
**Common workflows:**
|
|
478
|
-
- **Quick execute**: `/clavix:deep` → `/clavix:execute` → Implement
|
|
479
|
-
- **Review first**: `/clavix:deep` → `/clavix:prompts` → `/clavix:execute`
|
|
537
|
+
- **Quick execute**: `/clavix:deep` → `/clavix:execute --latest` → Implement
|
|
480
538
|
- **Thorough analysis**: `/clavix:deep` → Use optimized prompt + alternatives + validation
|
|
481
539
|
- **Escalate to strategic**: `/clavix:deep` → (detects strategic scope) → `/clavix:prd` → Plan → Implement → Archive
|
|
482
540
|
- **From fast mode**: `/clavix:fast` → (suggests) `/clavix:deep` → Full analysis with alternatives & validation
|
|
483
541
|
|
|
484
542
|
**Related commands:**
|
|
485
|
-
- `/clavix:execute` - Execute saved prompt
|
|
486
|
-
- `/clavix:prompts` - Manage saved prompts
|
|
543
|
+
- `/clavix:execute` - Execute saved prompt (IMPLEMENTATION starts here)
|
|
487
544
|
- `/clavix:fast` - Quick improvements (basic optimization only)
|
|
488
|
-
- `/clavix:prd` - Strategic PRD generation
|
|
545
|
+
- `/clavix:prd` - Strategic PRD generation for architecture/business decisions
|
|
489
546
|
- `/clavix:start` - Conversational mode for exploring unclear requirements
|
|
490
547
|
|
|
548
|
+
**CLI commands (run directly when needed):**
|
|
549
|
+
- `clavix prompts list` - View saved prompts
|
|
550
|
+
- `clavix prompts clear --executed` - Clean up executed prompts
|
|
551
|
+
|
|
491
552
|
## Tips
|
|
492
553
|
|
|
493
554
|
- **Intent-aware optimization**: Clavix automatically detects what you're trying to achieve
|
|
@@ -74,26 +74,77 @@ clavix execute --id <prompt-id>
|
|
|
74
74
|
1. Run `clavix execute --latest`
|
|
75
75
|
2. Read displayed prompt content
|
|
76
76
|
3. Implement requirements
|
|
77
|
-
4.
|
|
77
|
+
4. After completion, cleanup: `clavix prompts clear --executed`
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Prompt Management (CLI Commands)
|
|
82
|
+
|
|
83
|
+
Prompts saved from `/clavix:fast` and `/clavix:deep` are stored in:
|
|
84
|
+
- Fast prompts: `.clavix/outputs/prompts/fast/`
|
|
85
|
+
- Deep prompts: `.clavix/outputs/prompts/deep/`
|
|
80
86
|
|
|
81
|
-
|
|
87
|
+
### List All Saved Prompts
|
|
82
88
|
```bash
|
|
83
89
|
clavix prompts list
|
|
84
90
|
```
|
|
85
91
|
|
|
86
|
-
|
|
92
|
+
Shows:
|
|
93
|
+
- All saved prompts with age
|
|
94
|
+
- Execution status (✓ executed / ○ pending)
|
|
95
|
+
- Age warnings (OLD >7d, STALE >30d)
|
|
96
|
+
- Storage statistics
|
|
97
|
+
|
|
98
|
+
### Cleanup Workflows
|
|
99
|
+
|
|
100
|
+
**After executing prompts (recommended):**
|
|
87
101
|
```bash
|
|
88
102
|
clavix prompts clear --executed
|
|
89
103
|
```
|
|
90
104
|
|
|
91
|
-
**
|
|
105
|
+
**Remove stale prompts (>30 days):**
|
|
106
|
+
```bash
|
|
107
|
+
clavix prompts clear --stale
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Remove specific type:**
|
|
92
111
|
```bash
|
|
93
112
|
clavix prompts clear --fast
|
|
94
113
|
clavix prompts clear --deep
|
|
95
114
|
```
|
|
96
115
|
|
|
116
|
+
**Interactive cleanup:**
|
|
117
|
+
```bash
|
|
118
|
+
clavix prompts clear
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**Remove all (with safety checks):**
|
|
122
|
+
```bash
|
|
123
|
+
clavix prompts clear --all
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Prompt Lifecycle
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
CREATE → /clavix:fast or /clavix:deep
|
|
130
|
+
EXECUTE → /clavix:execute (you are here)
|
|
131
|
+
CLEANUP → clavix prompts clear --executed
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Best Practices
|
|
135
|
+
|
|
136
|
+
**Regular cleanup schedule:**
|
|
137
|
+
1. After executing prompts: Clear executed
|
|
138
|
+
2. Weekly: Review and clear stale
|
|
139
|
+
3. Before archiving PRD: Clear related prompts
|
|
140
|
+
|
|
141
|
+
**Storage hygiene:**
|
|
142
|
+
- Keep <20 active prompts for performance
|
|
143
|
+
- Clear executed prompts regularly
|
|
144
|
+
- Review prompts >7 days old
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
97
148
|
## Error Recovery
|
|
98
149
|
|
|
99
150
|
**No prompts found:**
|
|
@@ -109,7 +160,7 @@ clavix prompts clear --executed
|
|
|
109
160
|
|
|
110
161
|
---
|
|
111
162
|
|
|
112
|
-
## Agent Transparency (v4.
|
|
163
|
+
## Agent Transparency (v4.7)
|
|
113
164
|
|
|
114
165
|
### File Format Reference
|
|
115
166
|
{{INCLUDE:agent-protocols/file-formats.md}}
|
|
@@ -3,13 +3,38 @@ name: "Clavix: Fast"
|
|
|
3
3
|
description: Quick prompt improvements with smart quality assessment and triage
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
# ⛔ STOP: OPTIMIZATION MODE - NOT IMPLEMENTATION
|
|
7
|
+
|
|
8
|
+
**THIS IS A PROMPT OPTIMIZATION WORKFLOW. YOU MUST NOT IMPLEMENT ANYTHING.**
|
|
9
|
+
|
|
10
|
+
## YOU MUST NOT:
|
|
11
|
+
- ❌ Write any application code
|
|
12
|
+
- ❌ Create any new files (except prompt save files)
|
|
13
|
+
- ❌ Modify any existing project code
|
|
14
|
+
- ❌ Start implementing the prompt's requirements
|
|
15
|
+
- ❌ Generate components, functions, or features
|
|
16
|
+
|
|
17
|
+
## YOU MUST:
|
|
18
|
+
1. ✅ Analyze the user's prompt
|
|
19
|
+
2. ✅ Apply intelligence patterns
|
|
20
|
+
3. ✅ Show the optimized prompt
|
|
21
|
+
4. ✅ Save the prompt (CLI command or manual)
|
|
22
|
+
5. ✅ **STOP and wait** for user to run `/clavix:execute`
|
|
23
|
+
|
|
24
|
+
## IF USER WANTS TO IMPLEMENT:
|
|
25
|
+
Tell them: **"Run `/clavix:execute --latest` to implement this prompt."**
|
|
26
|
+
|
|
27
|
+
**DO NOT IMPLEMENT YOURSELF. YOUR JOB ENDS AFTER SHOWING THE OPTIMIZED PROMPT.**
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
6
31
|
# Clavix Fast Mode - Clavix Intelligence™
|
|
7
32
|
|
|
8
33
|
You are helping the user improve their prompt using Clavix's fast mode, which applies Clavix Intelligence™ with smart quality assessment and triage.
|
|
9
34
|
|
|
10
35
|
---
|
|
11
36
|
|
|
12
|
-
## CLAVIX MODE:
|
|
37
|
+
## CLAVIX MODE: Prompt Optimization Only
|
|
13
38
|
|
|
14
39
|
**You are in Clavix prompt optimization mode. You help analyze and optimize PROMPTS, NOT implement features.**
|
|
15
40
|
|
|
@@ -18,11 +43,14 @@ You are helping the user improve their prompt using Clavix's fast mode, which ap
|
|
|
18
43
|
- ✓ Apply optimization patterns
|
|
19
44
|
- ✓ Generate improved versions
|
|
20
45
|
- ✓ Provide quality assessments
|
|
46
|
+
- ✓ Save the optimized prompt
|
|
47
|
+
- ✓ **STOP** after optimization
|
|
21
48
|
|
|
22
49
|
**DO NOT IMPLEMENT. DO NOT IMPLEMENT. DO NOT IMPLEMENT.**
|
|
23
50
|
- ✗ DO NOT write application code for the feature
|
|
24
51
|
- ✗ DO NOT implement what the prompt/PRD describes
|
|
25
52
|
- ✗ DO NOT generate actual components/functions
|
|
53
|
+
- ✗ DO NOT continue after showing the optimized prompt
|
|
26
54
|
|
|
27
55
|
**You are optimizing prompts, not building what they describe.**
|
|
28
56
|
|
|
@@ -347,23 +375,50 @@ Confirm:
|
|
|
347
375
|
- Index file updated with new entry
|
|
348
376
|
- Display success message: `✓ Prompt saved: <prompt-id>.md`
|
|
349
377
|
|
|
350
|
-
|
|
378
|
+
---
|
|
351
379
|
|
|
352
|
-
|
|
380
|
+
## ⛔ STOP HERE - Agent Verification Required
|
|
353
381
|
|
|
354
|
-
**
|
|
382
|
+
**Your workflow ends here. Before responding to the user:**
|
|
383
|
+
|
|
384
|
+
### CLI Verification (Run This Command)
|
|
355
385
|
```bash
|
|
386
|
+
clavix prompts list
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
**Verify**: Your prompt appears in the list with status "pending" or "NEW".
|
|
390
|
+
|
|
391
|
+
**If verification fails**:
|
|
392
|
+
- Check if file was saved to `.clavix/outputs/prompts/fast/`
|
|
393
|
+
- Retry the save operation
|
|
394
|
+
- Check file permissions
|
|
395
|
+
|
|
396
|
+
### Required Response Ending
|
|
397
|
+
|
|
398
|
+
**Your response MUST end with:**
|
|
399
|
+
```
|
|
400
|
+
✅ Prompt optimized and saved.
|
|
401
|
+
|
|
402
|
+
To implement this prompt, run:
|
|
356
403
|
/clavix:execute --latest
|
|
357
404
|
```
|
|
358
405
|
|
|
359
|
-
**
|
|
406
|
+
**DO NOT continue to implementation. DO NOT write any code. STOP HERE.**
|
|
407
|
+
|
|
408
|
+
---
|
|
409
|
+
|
|
410
|
+
### Prompt Management (CLI Commands)
|
|
411
|
+
|
|
412
|
+
**List all saved prompts:**
|
|
360
413
|
```bash
|
|
361
|
-
|
|
414
|
+
clavix prompts list
|
|
362
415
|
```
|
|
363
416
|
|
|
364
|
-
**Cleanup
|
|
417
|
+
**Cleanup after execution:**
|
|
365
418
|
```bash
|
|
366
|
-
clavix prompts clear --
|
|
419
|
+
clavix prompts clear --executed # Remove executed prompts
|
|
420
|
+
clavix prompts clear --stale # Remove >30 day old prompts
|
|
421
|
+
clavix prompts clear --fast # Remove all fast prompts
|
|
367
422
|
```
|
|
368
423
|
|
|
369
424
|
## Workflow Navigation
|
|
@@ -371,18 +426,20 @@ clavix prompts clear --fast
|
|
|
371
426
|
**You are here:** Fast Mode (Quick Prompt Intelligence)
|
|
372
427
|
|
|
373
428
|
**Common workflows:**
|
|
374
|
-
- **Quick cleanup**: `/clavix:fast` → `/clavix:execute` → Implement
|
|
375
|
-
- **Review first**: `/clavix:fast` → `/clavix:prompts` → `/clavix:execute`
|
|
429
|
+
- **Quick cleanup**: `/clavix:fast` → `/clavix:execute --latest` → Implement
|
|
376
430
|
- **Need more depth**: `/clavix:fast` → (suggests) `/clavix:deep` → Comprehensive analysis
|
|
377
431
|
- **Strategic planning**: `/clavix:fast` → (suggests) `/clavix:prd` → Plan → Implement → Archive
|
|
378
432
|
|
|
379
433
|
**Related commands:**
|
|
380
|
-
- `/clavix:execute` - Execute saved prompt
|
|
381
|
-
- `/clavix:prompts` - Manage saved prompts
|
|
434
|
+
- `/clavix:execute` - Execute saved prompt (IMPLEMENTATION starts here)
|
|
382
435
|
- `/clavix:deep` - Comprehensive analysis with alternatives, edge cases, validation
|
|
383
|
-
- `/clavix:prd` - Generate PRD for strategic planning
|
|
436
|
+
- `/clavix:prd` - Generate PRD for strategic planning
|
|
384
437
|
- `/clavix:start` - Conversational exploration before prompting
|
|
385
438
|
|
|
439
|
+
**CLI commands (run directly when needed):**
|
|
440
|
+
- `clavix prompts list` - View saved prompts
|
|
441
|
+
- `clavix prompts clear --executed` - Clean up executed prompts
|
|
442
|
+
|
|
386
443
|
## Tips
|
|
387
444
|
|
|
388
445
|
- **Intent-aware optimization**: Clavix automatically detects what you're trying to achieve
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavix",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "Clavix Intelligence™ for AI coding. Automatically optimizes prompts with intent detection, quality assessment, and adaptive patterns—no framework to learn. Works with Claude Code, Cursor, Windsurf, and 19+ other AI coding tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "Clavix: Prompts"
|
|
3
|
-
description: Manage saved prompts (list, clear, inspect)
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Clavix: Prompts Management
|
|
7
|
-
|
|
8
|
-
Manage your saved fast/deep prompts with lifecycle awareness.
|
|
9
|
-
|
|
10
|
-
## List All Prompts
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
clavix prompts list
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Shows:
|
|
17
|
-
- All saved prompts with age
|
|
18
|
-
- Execution status (executed ✓ / pending ○)
|
|
19
|
-
- Age warnings (OLD >7d, STALE >30d)
|
|
20
|
-
- Storage statistics
|
|
21
|
-
|
|
22
|
-
## Cleanup Workflows
|
|
23
|
-
|
|
24
|
-
**After executing prompts (recommended):**
|
|
25
|
-
```bash
|
|
26
|
-
clavix prompts clear --executed
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
**Remove stale prompts (>30 days):**
|
|
30
|
-
```bash
|
|
31
|
-
clavix prompts clear --stale
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**Remove specific type:**
|
|
35
|
-
```bash
|
|
36
|
-
clavix prompts clear --fast
|
|
37
|
-
clavix prompts clear --deep
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**Interactive cleanup:**
|
|
41
|
-
```bash
|
|
42
|
-
clavix prompts clear
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
**Remove all (with safety checks):**
|
|
46
|
-
```bash
|
|
47
|
-
clavix prompts clear --all
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Best Practices
|
|
51
|
-
|
|
52
|
-
**Regular cleanup schedule:**
|
|
53
|
-
1. After executing prompts: Clear executed
|
|
54
|
-
2. Weekly: Review and clear stale
|
|
55
|
-
3. Before archiving PRD: Clear related prompts
|
|
56
|
-
|
|
57
|
-
**Storage hygiene:**
|
|
58
|
-
- Keep <20 active prompts for performance
|
|
59
|
-
- Clear executed prompts regularly
|
|
60
|
-
- Review prompts >7 days old
|
|
61
|
-
|
|
62
|
-
**Safety:**
|
|
63
|
-
- System warns before deleting unexecuted prompts
|
|
64
|
-
- Interactive mode shows what will be deleted
|
|
65
|
-
- Prompts are in `.clavix/outputs/prompts/` for manual recovery
|
|
66
|
-
|
|
67
|
-
## Prompt Lifecycle
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
CREATE → /clavix:fast or /clavix:deep
|
|
71
|
-
REVIEW → /clavix:prompts (you are here)
|
|
72
|
-
EXECUTE → /clavix:execute
|
|
73
|
-
CLEANUP → /clavix:prompts clear
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## Common Workflows
|
|
77
|
-
|
|
78
|
-
**Quick execute (no review):**
|
|
79
|
-
```bash
|
|
80
|
-
/clavix:fast "task"
|
|
81
|
-
/clavix:execute --latest
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
**Review before executing:**
|
|
85
|
-
```bash
|
|
86
|
-
/clavix:fast "task"
|
|
87
|
-
/clavix:prompts # Review
|
|
88
|
-
/clavix:execute # Select interactively
|
|
89
|
-
/clavix:prompts clear --executed
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**Batch cleanup:**
|
|
93
|
-
```bash
|
|
94
|
-
/clavix:prompts # See stats
|
|
95
|
-
clavix prompts clear --executed
|
|
96
|
-
clavix prompts clear --stale
|
|
97
|
-
```
|