This guide covers installation, first workflow, and configuration.
- Node.js >= 18.0.0
- npm or yarn
- An AI coding tool (Claude Code, Cursor, Gemini CLI, etc.)
npm install -g clavixcd your-project
clavix initSelect your AI tools from the interactive list. Clavix generates:
.clavix/config.json- Configuration.clavix/INSTRUCTIONS.md- Quick-start guide- Slash command templates in your AI tool's directory
clavix diagnose/clavix:improve "add user authentication with JWT"Clavix analyzes your prompt, applies optimization patterns, and saves the result.
/clavix:implement --latestThe agent reads the optimized prompt and implements it.
Step 1: Generate PRD
/clavix:prdAnswer the guided questions. Outputs: full-prd.md + quick-prd.md
Step 2: Create Task Plan
/clavix:planConverts PRD into tasks.md with phases and checkboxes.
Step 3: Implement
/clavix:implementExecutes tasks one by one with optional git commits.
Step 4: Verify
/clavix:verifyChecks implementation against requirements.
Step 5: Archive
/clavix:archiveMoves completed project to archive.
Do you have a clear, specific task?
├── YES → Is it a single prompt/request?
│ ├── YES → Use /clavix:improve
│ └── NO (multiple tasks) → Do you have requirements?
│ ├── YES → Use /clavix:plan then /clavix:implement
│ └── NO → Use /clavix:prd first
└── NO (vague idea) → Do you know what you want?
├── SOMEWHAT → Use /clavix:prd (guided questions)
└── NOT REALLY → Use /clavix:start (conversational)
| Situation | Workflow |
|---|---|
| Quick prompt optimization | /clavix:improve |
| Building something new | /clavix:prd → /clavix:plan → /clavix:implement |
| Unclear requirements | /clavix:start → /clavix:summarize |
| Have PRD, need tasks | /clavix:plan |
| Tasks ready to execute | /clavix:implement |
Use Improve for modifications:
- Add a section to the homepage
- Change content in "About Us"
- Update styling on contact page
Use PRD for new development:
- Create an entirely new "Services" subpage
- Build a complete blog section
- Develop a new customer portal
Rule of thumb: For most tasks, /clavix:improve is enough. Use /clavix:prd when building something that doesn't exist yet.
/clavix:improve "..." → /clavix:implement --latest
/clavix:prd → /clavix:plan → /clavix:implement → /clavix:verify
/clavix:start → /clavix:summarize → /clavix:plan → /clavix:implement
.clavix/config.json stores your settings:
{
"version": "5.10.2",
"integrations": ["claude-code", "cursor"],
"outputs": {
"path": ".clavix/outputs",
"format": "markdown"
}
}| Field | Description |
|---|---|
integrations |
List of AI tools selected during init |
outputs.path |
Where generated documents go |
clavix init # Re-run to change integrations
clavix update # Regenerate templates after changesClavix uses canonical templates that get formatted for each AI tool. You can override them.
- Provider-specific:
.clavix/templates/slash-commands/<provider>/<command>.<ext> - Canonical:
.clavix/templates/slash-commands/_canonical/<command>.md - Built-in: Package default
- Create
.clavix/templates/slash-commands/_canonical/ - Copy template from package source
- Modify content
- Run
clavix update --commands-only
Markdown (most tools):
---
name: "Clavix: Fast"
description: Quick improvements
---
Instructions here...
Use {{ARGS}} for user input.TOML (Gemini/Qwen):
description = "Quick improvements"
prompt = """
Instructions here...
Use {{args}} for user input.
"""/clavix:implement supports automatic git commits:
| Strategy | Behavior |
|---|---|
none (default) |
No auto-commits |
per-task |
Commit after every task |
per-5-tasks |
Commit every 5 tasks |
per-phase |
Commit when phase completes |
Set strategy:
/clavix:implement --commit-strategy per-phaseDisable for one session:
/clavix:implement --no-gitAll outputs go to .clavix/outputs/:
.clavix/outputs/
├── prompts/ # Saved prompts from /clavix:improve
├── <project>/ # PRD projects
│ ├── full-prd.md
│ ├── quick-prd.md
│ └── tasks.md
├── summarize/ # Outputs from /clavix:summarize
│ ├── mini-prd.md # Structured requirements (like a mini PRD)
│ ├── original-prompt.md # Original prompt as received
│ └── optimized-prompt.md # Improved version of the prompt
└── archive/ # Archived projects
/clavix:improvesaves toprompts//clavix:implement --latestexecutes most recent- Delete old prompts:
rm .clavix/outputs/prompts/executed-*.md
/clavix:summarize extracts requirements from conversation and produces:
- mini-prd.md: Structured requirements in PRD format
- original-prompt.md: The original prompt/requirement
- optimized-prompt.md: An improved, clearer version of the prompt
Commands not found
- Run
clavix diagnoseto check installation - Run
clavix updateto regenerate templates
Wrong command format
- CLI tools use colon:
/clavix:improve - IDE extensions use hyphen:
/clavix-improve
Integration not working
- Check
.clavix/config.jsonhas your tool listed - Run
clavix initto add integrations
clavix diagnoseShows:
- Version check
- Directory structure
- Configuration validity
- Integration status
- Template integrity
- Commands Reference - All commands in detail
- Architecture - How Clavix works
- Integrations - Full tool matrix
- CONTRIBUTING.md - Contribute to Clavix