clavix 4.10.0 → 4.11.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.
- package/dist/cli/commands/analyze.d.ts +3 -0
- package/dist/cli/commands/analyze.js +11 -5
- package/dist/cli/commands/execute.d.ts +2 -2
- package/dist/cli/commands/execute.js +23 -21
- package/dist/cli/commands/improve.d.ts +32 -0
- package/dist/cli/commands/improve.js +250 -0
- package/dist/cli/commands/init.js +35 -29
- package/dist/cli/commands/prd.js +14 -13
- package/dist/cli/commands/prompts/clear.d.ts +2 -2
- package/dist/cli/commands/prompts/clear.js +32 -26
- package/dist/cli/commands/prompts/list.js +14 -19
- package/dist/cli/commands/summarize.js +23 -14
- package/dist/cli/commands/verify.d.ts +2 -2
- package/dist/cli/commands/verify.js +26 -24
- package/dist/core/doc-injector.d.ts +2 -0
- package/dist/core/doc-injector.js +12 -13
- package/dist/core/intelligence/intent-detector.d.ts +4 -0
- package/dist/core/intelligence/intent-detector.js +8 -18
- package/dist/core/intelligence/pattern-library.d.ts +16 -10
- package/dist/core/intelligence/pattern-library.js +47 -35
- package/dist/core/intelligence/patterns/actionability-enhancer.d.ts +2 -2
- package/dist/core/intelligence/patterns/actionability-enhancer.js +1 -1
- package/dist/core/intelligence/patterns/alternative-phrasing-generator.d.ts +2 -2
- package/dist/core/intelligence/patterns/alternative-phrasing-generator.js +1 -1
- package/dist/core/intelligence/patterns/ambiguity-detector.d.ts +2 -2
- package/dist/core/intelligence/patterns/ambiguity-detector.js +1 -1
- package/dist/core/intelligence/patterns/assumption-explicitizer.d.ts +2 -2
- package/dist/core/intelligence/patterns/assumption-explicitizer.js +1 -1
- package/dist/core/intelligence/patterns/base-pattern.d.ts +10 -7
- package/dist/core/intelligence/patterns/base-pattern.js +7 -3
- package/dist/core/intelligence/patterns/completeness-validator.d.ts +2 -2
- package/dist/core/intelligence/patterns/completeness-validator.js +1 -1
- package/dist/core/intelligence/patterns/conciseness-filter.d.ts +2 -2
- package/dist/core/intelligence/patterns/conciseness-filter.js +1 -1
- package/dist/core/intelligence/patterns/context-precision.d.ts +2 -2
- package/dist/core/intelligence/patterns/context-precision.js +1 -1
- package/dist/core/intelligence/patterns/conversation-summarizer.d.ts +2 -2
- package/dist/core/intelligence/patterns/conversation-summarizer.js +1 -1
- package/dist/core/intelligence/patterns/dependency-identifier.d.ts +2 -2
- package/dist/core/intelligence/patterns/dependency-identifier.js +1 -1
- package/dist/core/intelligence/patterns/domain-context-enricher.d.ts +2 -2
- package/dist/core/intelligence/patterns/domain-context-enricher.js +1 -1
- package/dist/core/intelligence/patterns/edge-case-identifier.d.ts +2 -2
- package/dist/core/intelligence/patterns/edge-case-identifier.js +1 -1
- package/dist/core/intelligence/patterns/error-tolerance-enhancer.d.ts +2 -2
- package/dist/core/intelligence/patterns/error-tolerance-enhancer.js +1 -1
- package/dist/core/intelligence/patterns/implicit-requirement-extractor.d.ts +2 -2
- package/dist/core/intelligence/patterns/implicit-requirement-extractor.js +1 -1
- package/dist/core/intelligence/patterns/objective-clarifier.d.ts +2 -2
- package/dist/core/intelligence/patterns/objective-clarifier.js +1 -1
- package/dist/core/intelligence/patterns/output-format-enforcer.d.ts +2 -2
- package/dist/core/intelligence/patterns/output-format-enforcer.js +1 -1
- package/dist/core/intelligence/patterns/prd-structure-enforcer.d.ts +2 -2
- package/dist/core/intelligence/patterns/prd-structure-enforcer.js +1 -1
- package/dist/core/intelligence/patterns/prerequisite-identifier.d.ts +2 -2
- package/dist/core/intelligence/patterns/prerequisite-identifier.js +1 -1
- package/dist/core/intelligence/patterns/requirement-prioritizer.d.ts +2 -2
- package/dist/core/intelligence/patterns/requirement-prioritizer.js +1 -1
- package/dist/core/intelligence/patterns/scope-definer.d.ts +2 -2
- package/dist/core/intelligence/patterns/scope-definer.js +1 -1
- package/dist/core/intelligence/patterns/step-decomposer.d.ts +2 -2
- package/dist/core/intelligence/patterns/step-decomposer.js +1 -1
- package/dist/core/intelligence/patterns/structure-organizer.d.ts +2 -2
- package/dist/core/intelligence/patterns/structure-organizer.js +1 -1
- package/dist/core/intelligence/patterns/success-criteria-enforcer.d.ts +2 -2
- package/dist/core/intelligence/patterns/success-criteria-enforcer.js +1 -1
- package/dist/core/intelligence/patterns/success-metrics-enforcer.d.ts +2 -2
- package/dist/core/intelligence/patterns/success-metrics-enforcer.js +1 -1
- package/dist/core/intelligence/patterns/technical-context-enricher.d.ts +2 -2
- package/dist/core/intelligence/patterns/technical-context-enricher.js +1 -1
- package/dist/core/intelligence/patterns/topic-coherence-analyzer.d.ts +2 -2
- package/dist/core/intelligence/patterns/topic-coherence-analyzer.js +1 -1
- package/dist/core/intelligence/patterns/user-persona-enricher.d.ts +2 -2
- package/dist/core/intelligence/patterns/user-persona-enricher.js +1 -1
- package/dist/core/intelligence/patterns/validation-checklist-creator.d.ts +2 -2
- package/dist/core/intelligence/patterns/validation-checklist-creator.js +1 -1
- package/dist/core/intelligence/types.d.ts +6 -3
- package/dist/core/intelligence/universal-optimizer.d.ts +20 -15
- package/dist/core/intelligence/universal-optimizer.js +44 -29
- package/dist/core/prompt-manager.d.ts +24 -22
- package/dist/core/prompt-manager.js +65 -92
- package/dist/core/verification-manager.d.ts +8 -7
- package/dist/core/verification-manager.js +34 -41
- package/dist/templates/agents/octo.md +6 -8
- package/dist/templates/slash-commands/_canonical/execute.md +39 -41
- package/dist/templates/slash-commands/_canonical/improve.md +604 -0
- package/dist/templates/slash-commands/_canonical/verify.md +1 -1
- package/dist/templates/slash-commands/_components/sections/escalation-factors.md +25 -25
- package/dist/templates/slash-commands/_components/sections/pattern-visibility.md +27 -33
- package/dist/types/config.d.ts +1 -2
- package/dist/types/verification.d.ts +7 -6
- package/dist/types/verification.js +2 -1
- package/package.json +1 -1
- package/dist/templates/slash-commands/_canonical/deep.md +0 -651
- package/dist/templates/slash-commands/_canonical/fast.md +0 -535
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "Clavix: Execute"
|
|
3
|
-
description: Execute saved prompts from
|
|
3
|
+
description: Execute saved prompts from improve optimization
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Clavix: Execute Saved Prompts
|
|
7
7
|
|
|
8
|
-
Time to build! You've optimized a prompt with `/clavix:
|
|
8
|
+
Time to build! You've optimized a prompt with `/clavix:improve` - now I'll implement it.
|
|
9
9
|
|
|
10
|
-
Your saved prompts live in `.clavix/outputs/prompts
|
|
10
|
+
Your saved prompts live in `.clavix/outputs/prompts/`.
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
## What This Does
|
|
15
15
|
|
|
16
16
|
When you run `/clavix:execute`, I:
|
|
17
|
-
1. **Find your prompt** - Load what you saved from
|
|
17
|
+
1. **Find your prompt** - Load what you saved from improve mode
|
|
18
18
|
2. **Understand what to build** - Read the requirements and checklist
|
|
19
19
|
3. **Implement everything** - Write the code, create files, build features
|
|
20
20
|
4. **Run verification automatically** - Make sure everything works
|
|
@@ -29,18 +29,18 @@ When you run `/clavix:execute`, I:
|
|
|
29
29
|
**I'm in implementation mode. Building time!**
|
|
30
30
|
|
|
31
31
|
**What I'll do:**
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
32
|
+
- Read and understand your prompt requirements
|
|
33
|
+
- Implement everything in the optimized prompt
|
|
34
|
+
- Write production-quality code
|
|
35
|
+
- Follow the specifications exactly
|
|
36
|
+
- Run tests and verification automatically
|
|
37
|
+
- Handle errors and fix issues
|
|
38
38
|
|
|
39
39
|
**What I'm authorized to create:**
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
40
|
+
- Functions, classes, and components
|
|
41
|
+
- New files and file modifications
|
|
42
|
+
- Tests for implemented code
|
|
43
|
+
- Configuration files if needed
|
|
44
44
|
|
|
45
45
|
**Before I start, I'll confirm:**
|
|
46
46
|
> "Starting implementation mode. Building your [feature description]..."
|
|
@@ -51,9 +51,8 @@ For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
|
|
|
51
51
|
|
|
52
52
|
## Before You Start
|
|
53
53
|
|
|
54
|
-
You need a saved prompt first. Run
|
|
55
|
-
- `/clavix:
|
|
56
|
-
- `/clavix:deep "your prompt"` - Comprehensive analysis
|
|
54
|
+
You need a saved prompt first. Run:
|
|
55
|
+
- `/clavix:improve "your prompt"` - Smart prompt improvement with auto depth selection
|
|
57
56
|
|
|
58
57
|
Then come back here with `/clavix:execute`.
|
|
59
58
|
|
|
@@ -78,7 +77,8 @@ Me: "Done! Here's what I built..."
|
|
|
78
77
|
|
|
79
78
|
I automatically run these commands (you don't need to):
|
|
80
79
|
- `clavix execute --latest` - Get most recent prompt
|
|
81
|
-
- Or `clavix execute --latest --
|
|
80
|
+
- Or `clavix execute --latest --standard` - Get latest standard depth prompt
|
|
81
|
+
- Or `clavix execute --latest --comprehensive` - Get latest comprehensive depth prompt
|
|
82
82
|
- Or `clavix execute --id <id>` - Get specific prompt
|
|
83
83
|
|
|
84
84
|
**Step 2: I read and understand**
|
|
@@ -129,11 +129,11 @@ After I finish building, I run verification myself:
|
|
|
129
129
|
### What You'll See
|
|
130
130
|
|
|
131
131
|
```
|
|
132
|
-
|
|
132
|
+
Implementation complete for [prompt-id]
|
|
133
133
|
|
|
134
134
|
Verification Results:
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
8 items passed
|
|
136
|
+
1 item needs attention: [specific issue]
|
|
137
137
|
|
|
138
138
|
Would you like me to fix the failing item?
|
|
139
139
|
```
|
|
@@ -142,10 +142,10 @@ Would you like me to fix the failing item?
|
|
|
142
142
|
|
|
143
143
|
| Symbol | Meaning |
|
|
144
144
|
|--------|---------|
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
|
145
|
+
| Pass | Passed - This works |
|
|
146
|
+
| Fail | Failed - Needs fixing |
|
|
147
|
+
| Skip | Skipped - Check later |
|
|
148
|
+
| N/A | N/A - Doesn't apply |
|
|
149
149
|
|
|
150
150
|
### When Things Fail
|
|
151
151
|
|
|
@@ -162,17 +162,17 @@ I'll explain what's wrong and what you might need to do:
|
|
|
162
162
|
> "The database connection is failing - this might be a configuration issue.
|
|
163
163
|
> Can you check that your `.env` file has the correct `DATABASE_URL`?"
|
|
164
164
|
|
|
165
|
-
###
|
|
165
|
+
### Standard vs Comprehensive Depth Verification
|
|
166
166
|
|
|
167
|
-
**
|
|
167
|
+
**Standard depth prompts:**
|
|
168
168
|
- I generate a basic checklist based on what you asked for
|
|
169
169
|
- Covers essentials: compiles, no errors, requirements met
|
|
170
170
|
|
|
171
|
-
**
|
|
171
|
+
**Comprehensive depth prompts:**
|
|
172
172
|
- Use the comprehensive checklist from deep analysis
|
|
173
173
|
- More thorough verification with edge cases
|
|
174
174
|
|
|
175
|
-
**For more thorough verification
|
|
175
|
+
**For more thorough verification, use `/clavix:improve --comprehensive`**
|
|
176
176
|
|
|
177
177
|
---
|
|
178
178
|
|
|
@@ -181,8 +181,7 @@ I'll explain what's wrong and what you might need to do:
|
|
|
181
181
|
These are commands I execute automatically - you don't need to run them.
|
|
182
182
|
|
|
183
183
|
**Where prompts live:**
|
|
184
|
-
-
|
|
185
|
-
- Deep prompts: `.clavix/outputs/prompts/deep/`
|
|
184
|
+
- All prompts: `.clavix/outputs/prompts/`
|
|
186
185
|
|
|
187
186
|
### Commands I Use (Reference)
|
|
188
187
|
|
|
@@ -205,7 +204,7 @@ After I finish implementing and verification passes:
|
|
|
205
204
|
### The Prompt Lifecycle
|
|
206
205
|
|
|
207
206
|
```
|
|
208
|
-
1. YOU CREATE → /clavix:
|
|
207
|
+
1. YOU CREATE → /clavix:improve
|
|
209
208
|
2. I EXECUTE → /clavix:execute (you are here)
|
|
210
209
|
3. I VERIFY → Automatic verification
|
|
211
210
|
4. I CLEANUP → Remove executed prompts
|
|
@@ -233,7 +232,7 @@ Need to see what projects exist or check progress? I use these commands:
|
|
|
233
232
|
If I can't find a saved prompt, I'll tell you:
|
|
234
233
|
> "I don't see any saved prompts. Let's create one first!"
|
|
235
234
|
|
|
236
|
-
Then you can run `/clavix:
|
|
235
|
+
Then you can run `/clavix:improve "your requirement"` and come back.
|
|
237
236
|
|
|
238
237
|
### Prompt Is Old or Stale
|
|
239
238
|
|
|
@@ -257,23 +256,22 @@ If I can't get verification to pass after trying:
|
|
|
257
256
|
**Where you are:** Execute (building your prompt)
|
|
258
257
|
|
|
259
258
|
**How you got here:**
|
|
260
|
-
1. `/clavix:
|
|
261
|
-
2. **`/clavix:execute`**
|
|
259
|
+
1. `/clavix:improve` - Optimized your prompt
|
|
260
|
+
2. **`/clavix:execute`** - Now building it (you are here)
|
|
262
261
|
|
|
263
262
|
**What happens after:**
|
|
264
|
-
- I verify automatically
|
|
265
|
-
- If all passes
|
|
266
|
-
- If issues
|
|
263
|
+
- I verify automatically - Results shown
|
|
264
|
+
- If all passes - Done! I clean up
|
|
265
|
+
- If issues - `/clavix:verify` for detailed check
|
|
267
266
|
|
|
268
267
|
**Related commands:**
|
|
269
|
-
- `/clavix:
|
|
270
|
-
- `/clavix:deep` - Comprehensive analysis (alternative previous step)
|
|
268
|
+
- `/clavix:improve` - Smart prompt optimization (previous step)
|
|
271
269
|
- `/clavix:verify` - Detailed verification (if needed)
|
|
272
270
|
- `/clavix:archive` - Archive when fully done
|
|
273
271
|
|
|
274
272
|
---
|
|
275
273
|
|
|
276
|
-
## Agent Transparency (v4.
|
|
274
|
+
## Agent Transparency (v4.11)
|
|
277
275
|
|
|
278
276
|
### CLI Reference (Commands I Execute)
|
|
279
277
|
{{INCLUDE:agent-protocols/cli-reference.md}}
|