clavix 4.11.2 → 5.0.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 +72 -60
- package/dist/cli/commands/update.js +9 -10
- package/dist/templates/agents/agents.md +14 -8
- package/dist/templates/agents/copilot-instructions.md +1 -1
- package/dist/templates/instructions/core/verification.md +2 -2
- package/dist/templates/slash-commands/_canonical/archive.md +83 -121
- package/dist/templates/slash-commands/_canonical/execute.md +32 -42
- package/dist/templates/slash-commands/_canonical/implement.md +32 -44
- package/dist/templates/slash-commands/_canonical/improve.md +14 -53
- package/dist/templates/slash-commands/_canonical/start.md +1 -1
- package/dist/templates/slash-commands/_canonical/summarize.md +8 -8
- package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +84 -180
- package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +2 -2
- package/dist/templates/slash-commands/_components/agent-protocols/file-formats.md +41 -59
- package/dist/templates/slash-commands/_components/agent-protocols/state-assertion.md +1 -1
- package/dist/templates/slash-commands/_components/references/intent-types.md +1 -1
- package/dist/templates/slash-commands/_components/sections/file-saving-protocol.md +20 -27
- package/dist/templates/slash-commands/_components/sections/pattern-visibility.md +29 -46
- package/dist/templates/slash-commands/_components/troubleshooting/file-not-saved.md +4 -5
- package/dist/types/config.d.ts +57 -0
- package/dist/utils/legacy-command-cleanup.js +31 -4
- package/package.json +5 -4
- package/dist/cli/commands/analyze.d.ts +0 -17
- package/dist/cli/commands/analyze.js +0 -133
- package/dist/cli/commands/archive.d.ts +0 -36
- package/dist/cli/commands/archive.js +0 -266
- package/dist/cli/commands/deep.d.ts +0 -17
- package/dist/cli/commands/deep.js +0 -170
- package/dist/cli/commands/execute.d.ts +0 -15
- package/dist/cli/commands/execute.js +0 -168
- package/dist/cli/commands/fast.d.ts +0 -18
- package/dist/cli/commands/fast.js +0 -219
- package/dist/cli/commands/implement.d.ts +0 -24
- package/dist/cli/commands/implement.js +0 -289
- package/dist/cli/commands/improve.d.ts +0 -32
- package/dist/cli/commands/improve.js +0 -250
- package/dist/cli/commands/list.d.ts +0 -17
- package/dist/cli/commands/list.js +0 -217
- package/dist/cli/commands/plan.d.ts +0 -21
- package/dist/cli/commands/plan.js +0 -297
- package/dist/cli/commands/prd.d.ts +0 -24
- package/dist/cli/commands/prd.js +0 -321
- package/dist/cli/commands/prompts/clear.d.ts +0 -16
- package/dist/cli/commands/prompts/clear.js +0 -222
- package/dist/cli/commands/prompts/list.d.ts +0 -8
- package/dist/cli/commands/prompts/list.js +0 -88
- package/dist/cli/commands/show.d.ts +0 -21
- package/dist/cli/commands/show.js +0 -191
- package/dist/cli/commands/start.d.ts +0 -40
- package/dist/cli/commands/start.js +0 -210
- package/dist/cli/commands/summarize.d.ts +0 -17
- package/dist/cli/commands/summarize.js +0 -196
- package/dist/cli/commands/task-complete.d.ts +0 -27
- package/dist/cli/commands/task-complete.js +0 -269
- package/dist/cli/commands/verify.d.ts +0 -28
- package/dist/cli/commands/verify.js +0 -349
- package/dist/core/archive-manager.d.ts +0 -100
- package/dist/core/archive-manager.js +0 -302
- package/dist/core/basic-checklist-generator.d.ts +0 -35
- package/dist/core/basic-checklist-generator.js +0 -344
- package/dist/core/checklist-parser.d.ts +0 -48
- package/dist/core/checklist-parser.js +0 -238
- package/dist/core/config-manager.d.ts +0 -149
- package/dist/core/config-manager.js +0 -230
- package/dist/core/conversation-analyzer.d.ts +0 -86
- package/dist/core/conversation-analyzer.js +0 -387
- package/dist/core/conversation-quality-tracker.d.ts +0 -81
- package/dist/core/conversation-quality-tracker.js +0 -195
- package/dist/core/git-manager.d.ts +0 -126
- package/dist/core/git-manager.js +0 -282
- package/dist/core/intelligence/confidence-calculator.d.ts +0 -93
- package/dist/core/intelligence/confidence-calculator.js +0 -124
- package/dist/core/intelligence/index.d.ts +0 -11
- package/dist/core/intelligence/index.js +0 -15
- package/dist/core/intelligence/intent-detector.d.ts +0 -54
- package/dist/core/intelligence/intent-detector.js +0 -723
- package/dist/core/intelligence/pattern-library.d.ts +0 -104
- package/dist/core/intelligence/pattern-library.js +0 -339
- package/dist/core/intelligence/patterns/actionability-enhancer.d.ts +0 -27
- package/dist/core/intelligence/patterns/actionability-enhancer.js +0 -192
- package/dist/core/intelligence/patterns/alternative-phrasing-generator.d.ts +0 -29
- package/dist/core/intelligence/patterns/alternative-phrasing-generator.js +0 -239
- package/dist/core/intelligence/patterns/ambiguity-detector.d.ts +0 -22
- package/dist/core/intelligence/patterns/ambiguity-detector.js +0 -196
- package/dist/core/intelligence/patterns/assumption-explicitizer.d.ts +0 -30
- package/dist/core/intelligence/patterns/assumption-explicitizer.js +0 -296
- package/dist/core/intelligence/patterns/base-pattern.d.ts +0 -192
- package/dist/core/intelligence/patterns/base-pattern.js +0 -103
- package/dist/core/intelligence/patterns/completeness-validator.d.ts +0 -27
- package/dist/core/intelligence/patterns/completeness-validator.js +0 -221
- package/dist/core/intelligence/patterns/conciseness-filter.d.ts +0 -20
- package/dist/core/intelligence/patterns/conciseness-filter.js +0 -92
- package/dist/core/intelligence/patterns/context-precision.d.ts +0 -32
- package/dist/core/intelligence/patterns/context-precision.js +0 -389
- package/dist/core/intelligence/patterns/conversation-summarizer.d.ts +0 -30
- package/dist/core/intelligence/patterns/conversation-summarizer.js +0 -277
- package/dist/core/intelligence/patterns/dependency-identifier.d.ts +0 -23
- package/dist/core/intelligence/patterns/dependency-identifier.js +0 -166
- package/dist/core/intelligence/patterns/domain-context-enricher.d.ts +0 -21
- package/dist/core/intelligence/patterns/domain-context-enricher.js +0 -198
- package/dist/core/intelligence/patterns/edge-case-identifier.d.ts +0 -30
- package/dist/core/intelligence/patterns/edge-case-identifier.js +0 -269
- package/dist/core/intelligence/patterns/error-tolerance-enhancer.d.ts +0 -22
- package/dist/core/intelligence/patterns/error-tolerance-enhancer.js +0 -179
- package/dist/core/intelligence/patterns/implicit-requirement-extractor.d.ts +0 -24
- package/dist/core/intelligence/patterns/implicit-requirement-extractor.js +0 -259
- package/dist/core/intelligence/patterns/objective-clarifier.d.ts +0 -22
- package/dist/core/intelligence/patterns/objective-clarifier.js +0 -126
- package/dist/core/intelligence/patterns/output-format-enforcer.d.ts +0 -22
- package/dist/core/intelligence/patterns/output-format-enforcer.js +0 -151
- package/dist/core/intelligence/patterns/prd-structure-enforcer.d.ts +0 -23
- package/dist/core/intelligence/patterns/prd-structure-enforcer.js +0 -183
- package/dist/core/intelligence/patterns/prerequisite-identifier.d.ts +0 -23
- package/dist/core/intelligence/patterns/prerequisite-identifier.js +0 -221
- package/dist/core/intelligence/patterns/requirement-prioritizer.d.ts +0 -24
- package/dist/core/intelligence/patterns/requirement-prioritizer.js +0 -134
- package/dist/core/intelligence/patterns/scope-definer.d.ts +0 -26
- package/dist/core/intelligence/patterns/scope-definer.js +0 -236
- package/dist/core/intelligence/patterns/step-decomposer.d.ts +0 -31
- package/dist/core/intelligence/patterns/step-decomposer.js +0 -242
- package/dist/core/intelligence/patterns/structure-organizer.d.ts +0 -31
- package/dist/core/intelligence/patterns/structure-organizer.js +0 -218
- package/dist/core/intelligence/patterns/success-criteria-enforcer.d.ts +0 -22
- package/dist/core/intelligence/patterns/success-criteria-enforcer.js +0 -165
- package/dist/core/intelligence/patterns/success-metrics-enforcer.d.ts +0 -24
- package/dist/core/intelligence/patterns/success-metrics-enforcer.js +0 -165
- package/dist/core/intelligence/patterns/technical-context-enricher.d.ts +0 -25
- package/dist/core/intelligence/patterns/technical-context-enricher.js +0 -165
- package/dist/core/intelligence/patterns/topic-coherence-analyzer.d.ts +0 -26
- package/dist/core/intelligence/patterns/topic-coherence-analyzer.js +0 -300
- package/dist/core/intelligence/patterns/user-persona-enricher.d.ts +0 -24
- package/dist/core/intelligence/patterns/user-persona-enricher.js +0 -141
- package/dist/core/intelligence/patterns/validation-checklist-creator.d.ts +0 -31
- package/dist/core/intelligence/patterns/validation-checklist-creator.js +0 -242
- package/dist/core/intelligence/quality-assessor.d.ts +0 -51
- package/dist/core/intelligence/quality-assessor.js +0 -505
- package/dist/core/intelligence/types.d.ts +0 -111
- package/dist/core/intelligence/types.js +0 -3
- package/dist/core/intelligence/universal-optimizer.d.ts +0 -84
- package/dist/core/intelligence/universal-optimizer.js +0 -371
- package/dist/core/prd-generator.d.ts +0 -76
- package/dist/core/prd-generator.js +0 -173
- package/dist/core/prompt-manager.d.ts +0 -110
- package/dist/core/prompt-manager.js +0 -274
- package/dist/core/prompt-optimizer.d.ts +0 -268
- package/dist/core/prompt-optimizer.js +0 -959
- package/dist/core/question-engine.d.ts +0 -167
- package/dist/core/question-engine.js +0 -356
- package/dist/core/session-manager.d.ts +0 -139
- package/dist/core/session-manager.js +0 -365
- package/dist/core/task-manager.d.ts +0 -211
- package/dist/core/task-manager.js +0 -981
- package/dist/core/verification-hooks.d.ts +0 -67
- package/dist/core/verification-hooks.js +0 -309
- package/dist/core/verification-manager.d.ts +0 -107
- package/dist/core/verification-manager.js +0 -415
- package/dist/index 2.js +0 -13
- package/dist/index.d 2.ts +0 -4
- package/dist/types/session.d.ts +0 -78
- package/dist/types/session.js +0 -8
- package/dist/types/verification.d.ts +0 -205
- package/dist/types/verification.js +0 -9
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Clavix
|
|
2
|
-
>
|
|
2
|
+
> Agentic-first prompt workflows. Markdown templates that teach AI agents how to optimize prompts, create PRDs, and manage implementation. Works with Claude Code, Cursor, Windsurf, and 19+ other AI coding tools.
|
|
3
3
|
|
|
4
4
|
## Table of contents
|
|
5
5
|
- [Why Clavix?](#why-clavix)
|
|
6
6
|
- [How It Works](#how-it-works)
|
|
7
|
-
- [
|
|
7
|
+
- [Supported AI Tools](#supported-ai-tools)
|
|
8
8
|
- [Quickstart](#quickstart)
|
|
9
9
|
- [Full documentation](#full-documentation)
|
|
10
10
|
|
|
@@ -12,105 +12,117 @@
|
|
|
12
12
|
|
|
13
13
|
| Version | Highlights | Details |
|
|
14
14
|
| --- | --- | --- |
|
|
15
|
-
| **
|
|
16
|
-
| **
|
|
17
|
-
| **v3.5.0** | "Providers" → "Integrations" terminology | [Changelog](CHANGELOG.md#350---2025-01-24) |
|
|
18
|
-
| **v3.4.0** | Provider categorization fixes | [Changelog](CHANGELOG.md#340---2025-11-24) |
|
|
15
|
+
| **v5.0.0** (Latest) | Agentic-first architecture - lean template delivery | [Changelog](CHANGELOG.md#500---2025-01-27) |
|
|
16
|
+
| **v4.12.0** | Final v4 release with full CLI commands | [Changelog](docs/archive/v4-changelog.md) |
|
|
19
17
|
|
|
20
|
-
**Requirements:** Node.js
|
|
18
|
+
**Requirements:** Node.js >= 18.0.0
|
|
21
19
|
|
|
22
20
|
## Why Clavix?
|
|
23
|
-
Better prompts lead to better code. Clavix automatically detects what you're trying to do and applies the right optimization patterns—no framework to learn, no methodology to master. Just describe what you want, and Clavix makes it AI-ready.
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
- **
|
|
27
|
-
- **
|
|
28
|
-
- **
|
|
29
|
-
- **
|
|
22
|
+
Better prompts lead to better code. Clavix provides **markdown templates** that teach AI agents how to:
|
|
23
|
+
- **Optimize prompts** - Transform rough ideas into structured, AI-ready prompts
|
|
24
|
+
- **Create PRDs** - Generate comprehensive requirements documents through guided questions
|
|
25
|
+
- **Plan implementations** - Break down PRDs into phased task lists
|
|
26
|
+
- **Track progress** - Manage task completion with optional git commits
|
|
27
|
+
|
|
28
|
+
**No framework to learn.** Just describe what you want, and your AI agent follows the Clavix templates to structure it properly.
|
|
30
29
|
|
|
31
30
|
Learn more in [docs/why-clavix.md](docs/why-clavix.md).
|
|
32
31
|
|
|
33
32
|
## How It Works
|
|
34
|
-
Clavix uses **Clavix Intelligence™** (v3.0+) to automatically:
|
|
35
|
-
- **Detect intent** - 95%+ accuracy with weighted scoring, phrase detection, and context analysis
|
|
36
|
-
- **Assess quality** - Evaluates across 5 dimensions: Clarity, Efficiency, Structure, Completeness, Actionability
|
|
37
|
-
- **Apply patterns** - 6 optimization patterns automatically selected and prioritized for your specific need
|
|
38
|
-
- **Generate output** - Production-ready prompts optimized for AI coding assistants
|
|
39
33
|
|
|
40
|
-
|
|
34
|
+
Clavix v5 follows an **agentic-first architecture**:
|
|
41
35
|
|
|
42
|
-
|
|
36
|
+
1. **You run `clavix init`** - Sets up `.clavix/` directory with slash command templates
|
|
37
|
+
2. **You invoke a slash command** - Like `/clavix:improve` in Claude Code or Cursor
|
|
38
|
+
3. **Your AI agent reads the template** - The markdown file contains all instructions
|
|
39
|
+
4. **The agent follows the instructions** - Using its native tools (Write, Read, Edit, etc.)
|
|
40
|
+
5. **Output is saved** - To `.clavix/outputs/` for future reference
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
| --- | --- |
|
|
46
|
-
| IDE & editor extensions | Cursor · Windsurf · Kilocode · Roocode · Cline |
|
|
47
|
-
| CLI agents | Claude Code · Droid CLI · CodeBuddy CLI · OpenCode · Gemini CLI · Qwen Code · LLXPRT · Amp · Crush CLI · Codex CLI · Augment CLI |
|
|
48
|
-
| Universal adapters | AGENTS.md · GitHub Copilot · OCTO.md · WARP.md |
|
|
42
|
+
**No TypeScript code executes during slash command usage.** The templates are the product - they instruct AI agents on what to do.
|
|
49
43
|
|
|
50
|
-
|
|
44
|
+
## Supported AI Tools
|
|
51
45
|
|
|
52
|
-
|
|
46
|
+
| Category | Tools |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| IDE extensions | Cursor, Windsurf, Kilocode, Roocode, Cline |
|
|
49
|
+
| CLI agents | Claude Code, Droid CLI, CodeBuddy CLI, OpenCode, Gemini CLI, Qwen Code, LLXPRT, Amp, Crush CLI, Codex CLI, Augment CLI |
|
|
50
|
+
| Universal adapters | AGENTS.md, GitHub Copilot, OCTO.md, WARP.md |
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
Full list and configuration: [docs/integrations.md](docs/integrations.md)
|
|
55
53
|
|
|
56
|
-
|
|
54
|
+
## Quickstart
|
|
57
55
|
|
|
58
|
-
|
|
59
|
-
> - **Fast/Deep** – Modifying or improving existing features
|
|
60
|
-
> - **PRD** – Developing something completely new
|
|
61
|
-
>
|
|
62
|
-
> See [Choosing the Right Mode](docs/guides/workflows.md#choosing-the-right-mode) for detailed guidance.
|
|
56
|
+
### 1. Install and Initialize
|
|
63
57
|
|
|
64
58
|
```bash
|
|
65
|
-
# 1. Initialize in your project
|
|
66
59
|
npm install -g clavix
|
|
67
60
|
clavix init
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
This creates `.clavix/` with slash command templates and injects documentation into your CLAUDE.md (or equivalent).
|
|
68
64
|
|
|
69
|
-
|
|
70
|
-
/clavix:fast "Create a login page"
|
|
71
|
-
/clavix:deep "Build an API for user management"
|
|
72
|
-
/clavix:prd # Full PRD workflow
|
|
65
|
+
### 2. Use Slash Commands
|
|
73
66
|
|
|
74
|
-
|
|
75
|
-
/clavix:execute # Execute saved prompts
|
|
76
|
-
/clavix:prompts # Manage prompt lifecycle
|
|
67
|
+
In your AI coding assistant (Claude Code, Cursor, etc.):
|
|
77
68
|
|
|
78
|
-
# 4. Implement with task tracking
|
|
79
|
-
clavix plan # Generate tasks from PRD
|
|
80
|
-
clavix implement # Start implementation workflow
|
|
81
|
-
clavix task-complete <taskId> # Mark tasks done with auto-commit
|
|
82
69
|
```
|
|
70
|
+
/clavix:improve "Create a secure login page with JWT"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The AI agent reads the improve template and:
|
|
74
|
+
- Analyzes your prompt for quality
|
|
75
|
+
- Applies optimization patterns
|
|
76
|
+
- Saves the improved version to `.clavix/outputs/prompts/`
|
|
83
77
|
|
|
84
|
-
|
|
78
|
+
### 3. Choose Your Workflow
|
|
85
79
|
|
|
86
|
-
|
|
80
|
+
| Command | When to Use |
|
|
81
|
+
|---------|-------------|
|
|
82
|
+
| `/clavix:improve` | Optimize a single prompt (auto-selects depth) |
|
|
83
|
+
| `/clavix:prd` | Plan something new with guided questions |
|
|
84
|
+
| `/clavix:start` | Explore ideas conversationally first |
|
|
85
|
+
| `/clavix:plan` | Generate tasks from a PRD |
|
|
86
|
+
| `/clavix:implement` | Execute tasks with progress tracking |
|
|
87
|
+
| `/clavix:archive` | Archive completed projects |
|
|
87
88
|
|
|
88
|
-
|
|
89
|
+
See [Choosing the Right Workflow](docs/guides/choosing-workflow.md) for detailed guidance.
|
|
89
90
|
|
|
90
|
-
|
|
91
|
+
### 4. Keep Templates Updated
|
|
91
92
|
|
|
92
93
|
```bash
|
|
93
|
-
clavix
|
|
94
|
-
clavix fast "Create a login page"
|
|
95
|
-
clavix deep "Build an API for user management"
|
|
96
|
-
clavix prd
|
|
94
|
+
clavix update # After npm update clavix
|
|
97
95
|
```
|
|
98
96
|
|
|
97
|
+
## CLI Commands
|
|
98
|
+
|
|
99
|
+
Clavix v5 has only 4 CLI commands (for setup, not workflows):
|
|
100
|
+
|
|
101
|
+
| Command | Purpose |
|
|
102
|
+
|---------|---------|
|
|
103
|
+
| `clavix init` | Initialize Clavix in a project |
|
|
104
|
+
| `clavix update` | Update templates after package update |
|
|
105
|
+
| `clavix config` | Manage configuration |
|
|
106
|
+
| `clavix version` | Show version |
|
|
107
|
+
|
|
108
|
+
**All workflows** (`/clavix:improve`, `/clavix:prd`, etc.) are **slash commands** that AI agents execute by reading markdown templates.
|
|
109
|
+
|
|
99
110
|
## Full documentation
|
|
100
111
|
- Overview & navigation: [docs/README.md](docs/README.md)
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
112
|
+
- Integrations: [docs/integrations.md](docs/integrations.md)
|
|
113
|
+
- How it works: [docs/how-it-works.md](docs/how-it-works.md)
|
|
114
|
+
- Philosophy: [docs/philosophy.md](docs/philosophy.md)
|
|
115
|
+
- v4 Architecture (archived): [docs/archive/v4-architecture.md](docs/archive/v4-architecture.md)
|
|
105
116
|
|
|
106
117
|
## Requirements
|
|
107
118
|
|
|
108
119
|
### For End Users
|
|
109
|
-
- **Node.js
|
|
120
|
+
- **Node.js >= 18.0.0**
|
|
110
121
|
- npm or yarn package manager
|
|
122
|
+
- An AI coding assistant (Claude Code, Cursor, Windsurf, etc.)
|
|
111
123
|
|
|
112
124
|
### For Contributors
|
|
113
|
-
- **Node.js
|
|
125
|
+
- **Node.js >= 18.0.0**
|
|
114
126
|
- Run tests: `npm test`
|
|
115
127
|
- Lint: `npm run lint`
|
|
116
128
|
- Build: `npm run build`
|
|
@@ -216,25 +216,24 @@ export default class Update extends Command {
|
|
|
216
216
|
This project uses Clavix for prompt improvement and PRD generation.
|
|
217
217
|
|
|
218
218
|
### Available Commands
|
|
219
|
+
- \`clavix improve [prompt]\` - Unified prompt optimization with auto-depth selection
|
|
220
|
+
- \`clavix improve --comprehensive [prompt]\` - Force comprehensive analysis
|
|
221
|
+
- \`clavix improve --standard [prompt]\` - Force standard optimization
|
|
222
|
+
- \`clavix analyze [prompt]\` - JSON analysis output for programmatic use
|
|
219
223
|
- \`clavix prd\` - Generate a comprehensive PRD through guided questions
|
|
220
|
-
- \`clavix fast [prompt]\` - Quick prompt improvements with smart triage
|
|
221
|
-
- \`clavix deep [prompt]\` - Comprehensive prompt analysis
|
|
222
224
|
- \`clavix start\` - Start a conversational session for iterative development
|
|
223
225
|
- \`clavix summarize\` - Extract requirements from conversation history
|
|
224
|
-
- \`clavix
|
|
225
|
-
- \`clavix
|
|
226
|
+
- \`clavix execute [--latest]\` - Execute saved prompts
|
|
227
|
+
- \`clavix verify [--latest]\` - Verify implementation against checklist
|
|
226
228
|
|
|
227
229
|
### Quick Start
|
|
228
230
|
\`\`\`bash
|
|
231
|
+
# Prompt optimization (auto-selects depth)
|
|
232
|
+
clavix improve "Build a user auth system"
|
|
233
|
+
|
|
229
234
|
# Generate a PRD
|
|
230
235
|
clavix prd
|
|
231
236
|
|
|
232
|
-
# Quick prompt improvement
|
|
233
|
-
clavix fast "Build a user auth system"
|
|
234
|
-
|
|
235
|
-
# Deep prompt analysis
|
|
236
|
-
clavix deep "Build a user auth system"
|
|
237
|
-
|
|
238
237
|
# Start conversational mode
|
|
239
238
|
clavix start
|
|
240
239
|
\`\`\`
|
|
@@ -9,7 +9,7 @@ This guide is for agents that can only read documentation (no slash-command supp
|
|
|
9
9
|
**CRITICAL: Know which mode you're in and STOP at the right point.**
|
|
10
10
|
|
|
11
11
|
**OPTIMIZATION workflows** (NO CODE ALLOWED):
|
|
12
|
-
-
|
|
12
|
+
- Improve mode - Prompt optimization only (auto-selects depth)
|
|
13
13
|
- Your role: Analyze, optimize, show improved prompt, **STOP**
|
|
14
14
|
- ❌ DO NOT implement the prompt's requirements
|
|
15
15
|
- ✅ After showing optimized prompt, tell user: "Run `/clavix:execute --latest` to implement"
|
|
@@ -38,11 +38,11 @@ For complete step-by-step workflows, see `.clavix/instructions/`:
|
|
|
38
38
|
|----------|-----------------|---------|
|
|
39
39
|
| **Conversational Mode** | `workflows/start.md` | Natural requirements gathering through discussion |
|
|
40
40
|
| **Extract Requirements** | `workflows/summarize.md` | Analyze conversation → mini-PRD + optimized prompts |
|
|
41
|
-
| **
|
|
42
|
-
| **Deep Analysis** | `workflows/deep.md` | Comprehensive with alternatives, validation, edge cases |
|
|
41
|
+
| **Prompt Optimization** | `workflows/improve.md` | Intent detection + quality assessment + auto-depth selection |
|
|
43
42
|
| **PRD Generation** | `workflows/prd.md` | Socratic questions → full PRD + quick PRD |
|
|
44
43
|
| **Mode Boundaries** | `core/clavix-mode.md` | Planning vs implementation distinction |
|
|
45
44
|
| **File Operations** | `core/file-operations.md` | File creation patterns |
|
|
45
|
+
| **Verification** | `core/verification.md` | Post-implementation verification |
|
|
46
46
|
|
|
47
47
|
**Troubleshooting:**
|
|
48
48
|
- `troubleshooting/jumped-to-implementation.md` - If you started coding during planning
|
|
@@ -55,11 +55,12 @@ For complete step-by-step workflows, see `.clavix/instructions/`:
|
|
|
55
55
|
|
|
56
56
|
| Keywords in User Request | Recommended Workflow | File Reference |
|
|
57
57
|
|---------------------------|---------------------|----------------|
|
|
58
|
-
| "improve this prompt", "make it better", "optimize" |
|
|
59
|
-
| "analyze thoroughly", "edge cases", "alternatives" |
|
|
58
|
+
| "improve this prompt", "make it better", "optimize" | Improve mode → Auto-depth optimization | `workflows/improve.md` |
|
|
59
|
+
| "analyze thoroughly", "edge cases", "alternatives" | Improve mode (--comprehensive) | `workflows/improve.md` |
|
|
60
60
|
| "create a PRD", "product requirements" | PRD mode → Socratic questioning | `workflows/prd.md` |
|
|
61
61
|
| "let's discuss", "not sure what I want" | Conversational mode → Start gathering | `workflows/start.md` |
|
|
62
62
|
| "summarize our conversation" | Extract mode → Analyze thread | `workflows/summarize.md` |
|
|
63
|
+
| "verify", "check my implementation" | Verify mode → Implementation verification | `core/verification.md` |
|
|
63
64
|
|
|
64
65
|
**When detected:** Reference the corresponding `.clavix/instructions/workflows/{workflow}.md` file.
|
|
65
66
|
|
|
@@ -70,11 +71,14 @@ For complete step-by-step workflows, see `.clavix/instructions/`:
|
|
|
70
71
|
| Command | Purpose |
|
|
71
72
|
|---------|---------|
|
|
72
73
|
| `clavix init` | Interactive setup with integration selection |
|
|
73
|
-
| `clavix
|
|
74
|
-
| `clavix
|
|
74
|
+
| `clavix improve "<prompt>"` | Unified optimization with auto-depth selection |
|
|
75
|
+
| `clavix improve --comprehensive "<prompt>"` | Force comprehensive analysis |
|
|
76
|
+
| `clavix improve --standard "<prompt>"` | Force standard optimization |
|
|
77
|
+
| `clavix analyze "<prompt>"` | JSON analysis output for programmatic use |
|
|
75
78
|
| `clavix execute [--latest]` | Execute saved prompts (interactive or --latest) |
|
|
79
|
+
| `clavix verify [--latest]` | Verify implementation against checklist |
|
|
76
80
|
| `clavix prompts list` | View saved prompts with status (NEW, EXECUTED, OLD, STALE) |
|
|
77
|
-
| `clavix prompts clear` | Manage cleanup (--executed, --stale, --
|
|
81
|
+
| `clavix prompts clear` | Manage cleanup (--executed, --stale, --standard, --comprehensive, --all) |
|
|
78
82
|
| `clavix prd` | Guided PRD generation → `full-prd.md` + `quick-prd.md` |
|
|
79
83
|
| `clavix plan` | Transform PRD → phase-based `tasks.md` |
|
|
80
84
|
| `clavix implement [--commit-strategy=<type>]` | Execute tasks (git strategies: per-task, per-5-tasks, per-phase, none) |
|
|
@@ -91,6 +95,8 @@ clavix init
|
|
|
91
95
|
clavix version
|
|
92
96
|
```
|
|
93
97
|
|
|
98
|
+
**Save behavior:** CLI auto-saves prompts to `.clavix/outputs/`. When using slash commands, the agent must save manually per template instructions (no automatic persistence).
|
|
99
|
+
|
|
94
100
|
---
|
|
95
101
|
|
|
96
102
|
## 🔄 Standard Workflow
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Clavix Instructions for GitHub Copilot
|
|
2
2
|
|
|
3
|
-
These instructions enhance GitHub Copilot's understanding of Clavix
|
|
3
|
+
These instructions enhance GitHub Copilot's understanding of Clavix prompt optimization workflows available in this project.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ Checkpoints are standardized markers that agents output to confirm workflow step
|
|
|
57
57
|
|
|
58
58
|
**After multi-step processes:**
|
|
59
59
|
```markdown
|
|
60
|
-
**CHECKPOINT:** Completed
|
|
60
|
+
**CHECKPOINT:** Completed pattern-based optimization - 5 improvements applied
|
|
61
61
|
**CHECKPOINT:** Analyzed conversation - extracted 12 requirements, 3 constraints
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -273,7 +273,7 @@ If workflow isn't proceeding as expected, check:
|
|
|
273
273
|
**CHECKPOINT:** All files verified - exist at expected paths
|
|
274
274
|
|
|
275
275
|
6. After optimization:
|
|
276
|
-
**CHECKPOINT:** Applied
|
|
276
|
+
**CHECKPOINT:** Applied optimization patterns - [N] improvements added
|
|
277
277
|
|
|
278
278
|
7. Workflow complete:
|
|
279
279
|
**CHECKPOINT:** Summarization workflow complete - all outputs created
|