clavix 5.5.0 → 5.5.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/README.md +54 -95
- package/dist/cli/commands/init.js +33 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,64 +1,27 @@
|
|
|
1
1
|
# Clavix
|
|
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
|
-
|
|
4
|
-
## Table of contents
|
|
5
|
-
- [Why Clavix?](#why-clavix)
|
|
6
|
-
- [How It Works](#how-it-works)
|
|
7
|
-
- [Supported AI Tools](#supported-ai-tools)
|
|
8
|
-
- [Quickstart](#quickstart)
|
|
9
|
-
- [Full documentation](#full-documentation)
|
|
10
|
-
|
|
11
|
-
## Release Notes
|
|
12
|
-
|
|
13
|
-
| Version | Highlights | Details |
|
|
14
|
-
| --- | --- | --- |
|
|
15
|
-
| **v5.5.0** (Latest) | Architecture cleanup, consolidated adapters, documentation overhaul | [Changelog](CHANGELOG.md) |
|
|
16
|
-
| **v5.0.0** | Agentic-first architecture - lean template delivery | [Changelog](CHANGELOG.md#500---2025-01-27) |
|
|
17
|
-
|
|
18
|
-
**Requirements:** Node.js >= 18.0.0
|
|
19
|
-
|
|
20
|
-
## Why Clavix?
|
|
21
|
-
|
|
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.
|
|
29
|
-
|
|
30
|
-
Learn more in [docs/why-clavix.md](docs/why-clavix.md).
|
|
31
2
|
|
|
32
|
-
|
|
3
|
+
> 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.
|
|
33
4
|
|
|
34
|
-
|
|
5
|
+
## Quick Links
|
|
35
6
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
7
|
+
| I want to... | Go to |
|
|
8
|
+
|--------------|-------|
|
|
9
|
+
| Get started | [Quickstart](#quickstart) |
|
|
10
|
+
| See all commands | [docs/commands.md](docs/commands.md) |
|
|
11
|
+
| Understand the architecture | [docs/architecture.md](docs/architecture.md) |
|
|
12
|
+
| Check integrations | [docs/integrations.md](docs/integrations.md) |
|
|
13
|
+
| Contribute | [CONTRIBUTING.md](CONTRIBUTING.md) |
|
|
41
14
|
|
|
42
|
-
|
|
15
|
+
## Command Format
|
|
43
16
|
|
|
44
|
-
|
|
17
|
+
**Your command format depends on your AI tool:**
|
|
45
18
|
|
|
46
|
-
|
|
|
47
|
-
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
| Universal adapters | AGENTS.md, GitHub Copilot, OCTO.md, WARP.md |
|
|
19
|
+
| Tool Type | Format | Example |
|
|
20
|
+
|-----------|--------|---------|
|
|
21
|
+
| **CLI tools** (Claude Code, Gemini, Qwen) | Colon (`:`) | `/clavix:improve` |
|
|
22
|
+
| **IDE extensions** (Cursor, Windsurf, Cline) | Hyphen (`-`) | `/clavix-improve` |
|
|
51
23
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
| Feature | Claude Code | Cursor/Windsurf | Gemini/Qwen | Generic Agents |
|
|
55
|
-
|---------|-------------|-----------------|-------------|----------------|
|
|
56
|
-
| Slash commands | ✅ Native | ✅ Native | ✅ TOML | ❌ Read-only |
|
|
57
|
-
| Doc injection | ✅ CLAUDE.md | ✅ .cursor/rules | ✅ N/A | ✅ AGENTS.md |
|
|
58
|
-
| Namespace dirs | ✅ clavix/ | ✅ clavix/ | ✅ clavix/ | N/A |
|
|
59
|
-
| Auto-detection | ✅ Yes | ✅ Yes | ✅ Yes | N/A |
|
|
60
|
-
|
|
61
|
-
Full list and configuration: [docs/integrations.md](docs/integrations.md)
|
|
24
|
+
**Rule of thumb:** CLI tools use colon, IDE extensions use hyphen.
|
|
62
25
|
|
|
63
26
|
## Quickstart
|
|
64
27
|
|
|
@@ -69,80 +32,76 @@ npm install -g clavix
|
|
|
69
32
|
clavix init
|
|
70
33
|
```
|
|
71
34
|
|
|
72
|
-
This creates `.clavix/` with slash command templates and injects documentation into your CLAUDE.md (or equivalent).
|
|
73
|
-
|
|
74
35
|
### 2. Use Slash Commands
|
|
75
36
|
|
|
76
|
-
In your AI coding assistant (Claude Code, Cursor, etc.):
|
|
77
|
-
|
|
78
37
|
```
|
|
79
38
|
/clavix:improve "Create a secure login page with JWT"
|
|
80
39
|
```
|
|
81
40
|
|
|
82
|
-
The AI agent reads the
|
|
83
|
-
- Analyzes your prompt for quality
|
|
84
|
-
- Applies optimization patterns
|
|
85
|
-
- Saves the improved version to `.clavix/outputs/prompts/`
|
|
41
|
+
The AI agent reads the template and optimizes your prompt.
|
|
86
42
|
|
|
87
43
|
### 3. Choose Your Workflow
|
|
88
44
|
|
|
89
|
-
**Core Workflows:**
|
|
90
45
|
| Command | When to Use |
|
|
91
46
|
|---------|-------------|
|
|
92
|
-
| `/clavix:improve` | Optimize a single prompt
|
|
47
|
+
| `/clavix:improve` | Optimize a single prompt |
|
|
93
48
|
| `/clavix:prd` | Plan something new with guided questions |
|
|
94
|
-
| `/clavix:start` | Explore ideas conversationally first |
|
|
95
49
|
| `/clavix:plan` | Generate tasks from a PRD |
|
|
96
50
|
| `/clavix:implement` | Execute tasks with progress tracking |
|
|
97
|
-
| `/clavix:summarize` | Extract requirements from conversation |
|
|
98
51
|
|
|
99
|
-
|
|
100
|
-
| Utility | Purpose |
|
|
101
|
-
|---------|---------|
|
|
102
|
-
| `/clavix:verify` | Check implementation against PRD requirements |
|
|
103
|
-
| `/clavix:archive` | Archive completed projects to `.clavix/archive/` |
|
|
52
|
+
See [Getting Started](docs/getting-started.md) for the full guide.
|
|
104
53
|
|
|
105
|
-
|
|
54
|
+
## How It Works
|
|
106
55
|
|
|
107
|
-
|
|
56
|
+
Clavix is **agentic-first**:
|
|
108
57
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
58
|
+
1. **You run `clavix init`** - Sets up slash command templates
|
|
59
|
+
2. **You invoke a slash command** - Like `/clavix:improve`
|
|
60
|
+
3. **AI agent reads the template** - Markdown instructions
|
|
61
|
+
4. **Agent follows instructions** - Using its native tools
|
|
62
|
+
5. **Output is saved** - To `.clavix/outputs/`
|
|
112
63
|
|
|
113
|
-
|
|
64
|
+
**No TypeScript executes during slash commands.** The markdown templates ARE the product.
|
|
114
65
|
|
|
115
|
-
|
|
66
|
+
See [Architecture](docs/architecture.md) for details.
|
|
67
|
+
|
|
68
|
+
## Supported AI Tools
|
|
69
|
+
|
|
70
|
+
| Category | Tools |
|
|
71
|
+
|----------|-------|
|
|
72
|
+
| IDE extensions | Cursor, Windsurf, Kilocode, Roocode, Cline |
|
|
73
|
+
| CLI agents | Claude Code, Gemini CLI, Qwen Code, Droid CLI, CodeBuddy, OpenCode, LLXPRT, Amp, Crush CLI, Codex CLI, Augment CLI |
|
|
74
|
+
| Universal | AGENTS.md, GitHub Copilot, OCTO.md, WARP.md |
|
|
75
|
+
|
|
76
|
+
Full list: [docs/integrations.md](docs/integrations.md)
|
|
77
|
+
|
|
78
|
+
## CLI Commands
|
|
116
79
|
|
|
117
80
|
| Command | Purpose |
|
|
118
81
|
|---------|---------|
|
|
119
|
-
| `clavix init` | Initialize
|
|
120
|
-
| `clavix update` |
|
|
121
|
-
| `clavix diagnose` | Check installation
|
|
82
|
+
| `clavix init` | Initialize Clavix in a project |
|
|
83
|
+
| `clavix update` | Regenerate templates |
|
|
84
|
+
| `clavix diagnose` | Check installation |
|
|
122
85
|
| `clavix version` | Show version |
|
|
123
86
|
|
|
124
|
-
|
|
87
|
+
All workflows (`/clavix:improve`, etc.) are **slash commands** that AI agents execute.
|
|
125
88
|
|
|
126
|
-
##
|
|
127
|
-
- Overview & navigation: [docs/README.md](docs/README.md)
|
|
128
|
-
- Integrations: [docs/integrations.md](docs/integrations.md)
|
|
129
|
-
- How it works: [docs/how-it-works.md](docs/how-it-works.md)
|
|
130
|
-
- Philosophy: [docs/philosophy.md](docs/philosophy.md)
|
|
89
|
+
## Documentation
|
|
131
90
|
|
|
132
|
-
|
|
91
|
+
- [Getting Started](docs/getting-started.md) - Installation and first workflow
|
|
92
|
+
- [Commands Reference](docs/commands.md) - All commands in one place
|
|
93
|
+
- [Architecture](docs/architecture.md) - How Clavix works
|
|
94
|
+
- [Integrations](docs/integrations.md) - Full tool matrix
|
|
95
|
+
- [CONTRIBUTING.md](CONTRIBUTING.md) - Contribute to Clavix
|
|
133
96
|
|
|
134
|
-
|
|
135
|
-
- **Node.js >= 18.0.0**
|
|
136
|
-
- npm or yarn package manager
|
|
137
|
-
- An AI coding assistant (Claude Code, Cursor, Windsurf, etc.)
|
|
97
|
+
## Requirements
|
|
138
98
|
|
|
139
|
-
### For Contributors
|
|
140
99
|
- **Node.js >= 18.0.0**
|
|
141
|
-
-
|
|
142
|
-
-
|
|
143
|
-
- Build: `npm run build`
|
|
100
|
+
- npm or yarn
|
|
101
|
+
- An AI coding tool (Claude Code, Cursor, etc.)
|
|
144
102
|
|
|
145
103
|
## License
|
|
104
|
+
|
|
146
105
|
Apache-2.0
|
|
147
106
|
|
|
148
107
|
## Star History
|
|
@@ -272,18 +272,30 @@ export default class Init extends Command {
|
|
|
272
272
|
await InstructionsGenerator.generate();
|
|
273
273
|
console.log(chalk.gray(' ✓ Created detailed workflow guides for generic integrations'));
|
|
274
274
|
}
|
|
275
|
-
// Success message
|
|
276
|
-
// v4.11: Use generic command names - format varies by integration
|
|
277
|
-
// (claude-code uses colon like /clavix:improve, droid uses hyphen like /clavix-improve)
|
|
275
|
+
// Success message with prominent command format display
|
|
278
276
|
console.log(chalk.bold.green('\n✅ Clavix initialized successfully!\n'));
|
|
279
|
-
|
|
277
|
+
// Determine the primary command format based on selected integrations
|
|
278
|
+
const colonTools = ['claude-code', 'gemini', 'qwen', 'crush', 'llxprt', 'augment'];
|
|
279
|
+
const usesColon = selectedIntegrations.some((i) => colonTools.includes(i));
|
|
280
|
+
const usesHyphen = selectedIntegrations.some((i) => !colonTools.includes(i));
|
|
281
|
+
const separator = usesColon && !usesHyphen ? ':' : usesHyphen && !usesColon ? '-' : ':';
|
|
282
|
+
const altSeparator = separator === ':' ? '-' : ':';
|
|
283
|
+
// Show command format prominently at the TOP
|
|
284
|
+
console.log(chalk.bold('📋 Your command format:'), chalk.bold.cyan(`/clavix${separator}improve`));
|
|
285
|
+
if (usesColon && usesHyphen) {
|
|
286
|
+
console.log(chalk.gray(' (Some integrations use'), chalk.cyan(`/clavix${altSeparator}improve`), chalk.gray('instead)'));
|
|
287
|
+
}
|
|
288
|
+
console.log();
|
|
289
|
+
// Available commands
|
|
290
|
+
console.log(chalk.gray('Available slash commands:'));
|
|
291
|
+
console.log(chalk.gray(' •'), chalk.cyan(`/clavix${separator}improve`), chalk.gray('- Smart prompt optimization'));
|
|
292
|
+
console.log(chalk.gray(' •'), chalk.cyan(`/clavix${separator}prd`), chalk.gray('- Generate PRD through guided questions'));
|
|
293
|
+
console.log(chalk.gray(' •'), chalk.cyan(`/clavix${separator}plan`), chalk.gray('- Create task breakdown from PRD'));
|
|
294
|
+
console.log(chalk.gray(' •'), chalk.cyan(`/clavix${separator}implement`), chalk.gray('- Execute tasks or prompts'));
|
|
295
|
+
console.log(chalk.gray('\nNext steps:'));
|
|
280
296
|
console.log(chalk.gray(' • Slash commands are now available in your AI agent'));
|
|
281
|
-
console.log(chalk.gray(' • Run'), chalk.cyan('clavix
|
|
282
|
-
console.log(
|
|
283
|
-
console.log(chalk.gray(' ◦'), chalk.cyan('improve'), chalk.gray('- Smart prompt optimization with auto depth selection'));
|
|
284
|
-
console.log(chalk.gray(' ◦'), chalk.cyan('prd'), chalk.gray('- Generate PRD through guided questions'));
|
|
285
|
-
console.log(chalk.gray(' ◦'), chalk.cyan('execute'), chalk.gray('- Run saved prompts'));
|
|
286
|
-
console.log(chalk.gray('\n Command format varies by integration (colon vs hyphen)\n'));
|
|
297
|
+
console.log(chalk.gray(' • Run'), chalk.cyan('clavix diagnose'), chalk.gray('to verify installation'));
|
|
298
|
+
console.log();
|
|
287
299
|
}
|
|
288
300
|
catch (error) {
|
|
289
301
|
const { getErrorMessage, toError } = await import('../../utils/error-utils.js');
|
|
@@ -378,6 +390,17 @@ export default class Init extends Command {
|
|
|
378
390
|
|
|
379
391
|
Welcome to Clavix! This directory contains your local Clavix configuration and data.
|
|
380
392
|
|
|
393
|
+
## Command Format
|
|
394
|
+
|
|
395
|
+
**Your command format depends on your AI tool:**
|
|
396
|
+
|
|
397
|
+
| Tool Type | Format | Example |
|
|
398
|
+
|-----------|--------|---------|
|
|
399
|
+
| **CLI tools** (Claude Code, Gemini, Qwen) | Colon (\`:\`) | \`/clavix:improve\` |
|
|
400
|
+
| **IDE extensions** (Cursor, Windsurf, Cline) | Hyphen (\`-\`) | \`/clavix-improve\` |
|
|
401
|
+
|
|
402
|
+
**Rule of thumb:** CLI tools use colon, IDE extensions use hyphen.
|
|
403
|
+
|
|
381
404
|
## Directory Structure
|
|
382
405
|
|
|
383
406
|
\`\`\`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavix",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.1",
|
|
4
4
|
"description": "Agentic-first prompt workflows. Markdown templates that teach AI agents how to optimize prompts, create PRDs, and manage implementation.\n\nSLASH COMMANDS (in your AI assistant):\n /clavix:improve Optimize prompts with auto-depth\n /clavix:prd Generate PRD through questions\n /clavix:plan Create task breakdown from PRD\n /clavix:implement Execute tasks with progress tracking\n /clavix:start Begin conversational session\n /clavix:summarize Extract requirements from conversation\n\nWorks with Claude Code, Cursor, Windsurf, and 19+ other AI coding tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|