clavix 2.6.1 → 2.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/README.md +41 -0
- package/dist/cli/commands/deep.d.ts +1 -0
- package/dist/cli/commands/deep.js +36 -0
- package/dist/cli/commands/execute.d.ts +15 -0
- package/dist/cli/commands/execute.js +152 -0
- package/dist/cli/commands/fast.d.ts +1 -0
- package/dist/cli/commands/fast.js +34 -0
- package/dist/cli/commands/prompts/clear.d.ts +16 -0
- package/dist/cli/commands/prompts/clear.js +222 -0
- package/dist/cli/commands/prompts/list.d.ts +8 -0
- package/dist/cli/commands/prompts/list.js +99 -0
- package/dist/cli/commands/task-complete.js +2 -1
- package/dist/core/config-manager.js +4 -4
- package/dist/core/prompt-manager.d.ts +101 -0
- package/dist/core/prompt-manager.js +312 -0
- package/dist/core/task-manager.js +3 -3
- package/dist/templates/agents/agents.md +5 -2
- package/dist/templates/agents/copilot-instructions.md +28 -0
- package/dist/templates/agents/octo.md +28 -1
- package/dist/templates/agents/warp.md +5 -2
- package/dist/templates/slash-commands/_canonical/archive.md +23 -0
- package/dist/templates/slash-commands/_canonical/deep.md +23 -0
- package/dist/templates/slash-commands/_canonical/execute.md +80 -0
- package/dist/templates/slash-commands/_canonical/fast.md +23 -1
- package/dist/templates/slash-commands/_canonical/prompts.md +97 -0
- package/package.json +2 -1
|
@@ -152,6 +152,29 @@ You are helping the user archive completed PRD projects to keep their workspace
|
|
|
152
152
|
- They're still accessible in archive directory
|
|
153
153
|
- Can be restored at any time
|
|
154
154
|
|
|
155
|
+
## Prompts Are Separate (v2.7+)
|
|
156
|
+
|
|
157
|
+
Fast/deep prompts from `/clavix:fast` and `/clavix:deep` are stored separately in `.clavix/outputs/prompts/`.
|
|
158
|
+
|
|
159
|
+
**Prompts are NOT archived with PRD projects.**
|
|
160
|
+
|
|
161
|
+
**Manage prompts separately:**
|
|
162
|
+
```bash
|
|
163
|
+
clavix prompts list # View all prompts
|
|
164
|
+
clavix prompts clear # Cleanup prompts
|
|
165
|
+
/clavix:prompts # Full management workflow
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Before archiving, consider cleanup:**
|
|
169
|
+
```bash
|
|
170
|
+
/clavix:prompts clear --executed
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Prompts lifecycle:**
|
|
174
|
+
- Independent from PRD lifecycle
|
|
175
|
+
- Managed via `/clavix:prompts`
|
|
176
|
+
- Clear manually when project complete
|
|
177
|
+
|
|
155
178
|
## Example Workflows
|
|
156
179
|
|
|
157
180
|
### Workflow 1: Complete Project
|
|
@@ -153,16 +153,39 @@ Output:
|
|
|
153
153
|
- **Deep mode** (`/clavix:deep`): Full CLEAR (C, L, E, A, R) - comprehensive analysis with alternatives and validation
|
|
154
154
|
- **PRD mode** (`/clavix:prd`): CLEAR-validated PRD generation - strategic planning with architecture decisions
|
|
155
155
|
|
|
156
|
+
## Next Steps (v2.7+)
|
|
157
|
+
|
|
158
|
+
After deep analysis completes, the prompt is automatically saved to `.clavix/outputs/prompts/deep/`.
|
|
159
|
+
|
|
160
|
+
**Execute immediately:**
|
|
161
|
+
```bash
|
|
162
|
+
/clavix:execute
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Review saved prompts first:**
|
|
166
|
+
```bash
|
|
167
|
+
/clavix:prompts
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
**Cleanup old prompts:**
|
|
171
|
+
```bash
|
|
172
|
+
clavix prompts clear --deep
|
|
173
|
+
```
|
|
174
|
+
|
|
156
175
|
## Workflow Navigation
|
|
157
176
|
|
|
158
177
|
**You are here:** Deep Mode (Comprehensive CLEAR Analysis)
|
|
159
178
|
|
|
160
179
|
**Common workflows:**
|
|
180
|
+
- **Quick execute**: `/clavix:deep` → `/clavix:execute` → Implement
|
|
181
|
+
- **Review first**: `/clavix:deep` → `/clavix:prompts` → `/clavix:execute`
|
|
161
182
|
- **Thorough analysis**: `/clavix:deep` → Use optimized prompt + alternatives
|
|
162
183
|
- **Escalate to strategic**: `/clavix:deep` → (detects strategic scope) → `/clavix:prd` → Plan → Implement → Archive
|
|
163
184
|
- **From fast mode**: `/clavix:fast` → (suggests) `/clavix:deep` → Full analysis with A & R components
|
|
164
185
|
|
|
165
186
|
**Related commands:**
|
|
187
|
+
- `/clavix:execute` - Execute saved prompt
|
|
188
|
+
- `/clavix:prompts` - Manage saved prompts
|
|
166
189
|
- `/clavix:fast` - Quick CLEAR improvements (C, L, E only)
|
|
167
190
|
- `/clavix:prd` - Strategic PRD generation for architecture/business decisions
|
|
168
191
|
- `/clavix:start` - Conversational mode for exploring unclear requirements
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "Clavix: Execute"
|
|
3
|
+
description: Execute saved prompts from fast/deep optimization
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Clavix: Execute Saved Prompts
|
|
7
|
+
|
|
8
|
+
Implement optimized prompts from `/clavix:fast` or `/clavix:deep`.
|
|
9
|
+
|
|
10
|
+
Prompts are automatically saved to `.clavix/outputs/prompts/fast/` or `.clavix/outputs/prompts/deep/`.
|
|
11
|
+
|
|
12
|
+
## Prerequisites
|
|
13
|
+
|
|
14
|
+
Save a prompt first:
|
|
15
|
+
```bash
|
|
16
|
+
/clavix:fast "your prompt"
|
|
17
|
+
# or
|
|
18
|
+
/clavix:deep "your prompt"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
**Execute latest prompt (recommended):**
|
|
24
|
+
```bash
|
|
25
|
+
clavix execute --latest
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Execute latest fast/deep:**
|
|
29
|
+
```bash
|
|
30
|
+
clavix execute --latest --fast
|
|
31
|
+
clavix execute --latest --deep
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Interactive selection:**
|
|
35
|
+
```bash
|
|
36
|
+
clavix execute
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Execute specific prompt:**
|
|
40
|
+
```bash
|
|
41
|
+
clavix execute --id <prompt-id>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Agent Workflow
|
|
45
|
+
|
|
46
|
+
1. Run `clavix execute --latest`
|
|
47
|
+
2. Read displayed prompt content
|
|
48
|
+
3. Implement requirements
|
|
49
|
+
4. Cleanup: `/clavix:prompts clear`
|
|
50
|
+
|
|
51
|
+
## Prompt Management
|
|
52
|
+
|
|
53
|
+
**List all saved prompts:**
|
|
54
|
+
```bash
|
|
55
|
+
clavix prompts list
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Clear executed prompts:**
|
|
59
|
+
```bash
|
|
60
|
+
clavix prompts clear --executed
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Clear all fast/deep prompts:**
|
|
64
|
+
```bash
|
|
65
|
+
clavix prompts clear --fast
|
|
66
|
+
clavix prompts clear --deep
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Error Recovery
|
|
70
|
+
|
|
71
|
+
**No prompts found:**
|
|
72
|
+
```bash
|
|
73
|
+
/clavix:fast "your requirement"
|
|
74
|
+
```
|
|
75
|
+
Then retry `/clavix:execute`.
|
|
76
|
+
|
|
77
|
+
**Too many old prompts:**
|
|
78
|
+
```bash
|
|
79
|
+
clavix prompts clear --executed
|
|
80
|
+
```
|
|
@@ -136,16 +136,38 @@ Success Criteria:
|
|
|
136
136
|
[E] Added explicit specifications: React TypeScript persona, component output format, production-ready tone, accessibility criteria
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
+
## Next Steps (v2.7+)
|
|
140
|
+
|
|
141
|
+
After fast optimization completes, the prompt is automatically saved to `.clavix/outputs/prompts/fast/`.
|
|
142
|
+
|
|
143
|
+
**Execute immediately:**
|
|
144
|
+
```bash
|
|
145
|
+
/clavix:execute
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Review saved prompts first:**
|
|
149
|
+
```bash
|
|
150
|
+
/clavix:prompts
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**Cleanup old prompts:**
|
|
154
|
+
```bash
|
|
155
|
+
clavix prompts clear --fast
|
|
156
|
+
```
|
|
157
|
+
|
|
139
158
|
## Workflow Navigation
|
|
140
159
|
|
|
141
160
|
**You are here:** Fast Mode (Quick CLEAR Improvement)
|
|
142
161
|
|
|
143
162
|
**Common workflows:**
|
|
144
|
-
- **Quick cleanup**: `/clavix:fast` →
|
|
163
|
+
- **Quick cleanup**: `/clavix:fast` → `/clavix:execute` → Implement
|
|
164
|
+
- **Review first**: `/clavix:fast` → `/clavix:prompts` → `/clavix:execute`
|
|
145
165
|
- **Need more depth**: `/clavix:fast` → (suggests) `/clavix:deep` → Comprehensive analysis
|
|
146
166
|
- **Strategic planning**: `/clavix:fast` → (suggests) `/clavix:prd` → Plan → Implement → Archive
|
|
147
167
|
|
|
148
168
|
**Related commands:**
|
|
169
|
+
- `/clavix:execute` - Execute saved prompt
|
|
170
|
+
- `/clavix:prompts` - Manage saved prompts
|
|
149
171
|
- `/clavix:deep` - Full CLEAR analysis (all 5 components: C, L, E, A, R)
|
|
150
172
|
- `/clavix:prd` - Generate PRD for strategic planning
|
|
151
173
|
- `/clavix:start` - Conversational exploration before prompting
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavix",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Transform vague ideas into production-ready prompts. AI agent tool with CLI interface using the CLEAR framework to analyze, improve, and generate PRDs for AI coding assistants (Claude Code, Cursor, Windsurf, and more)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"uuid": "^9.0.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
+
"@oclif/test": "^4.1.15",
|
|
60
61
|
"@types/fs-extra": "^11.0.4",
|
|
61
62
|
"@types/handlebars": "^4.0.40",
|
|
62
63
|
"@types/inquirer": "^9.0.9",
|