Transform vague ideas into production-ready prompts. Analyze gaps, generate PRDs, and supercharge your AI coding workflow with the CLEAR framework.
Better prompts lead to better code. Clavix analyzes gaps, generates PRDs, and integrates with your AI tooling so you can move from idea to implementation quickly. Learn more in docs/why-clavix.md.
Clavix is built on CLEAR (Concise, Logical, Explicit, Adaptive, Reflective), an academically validated prompt engineering methodology. Read the full overview in docs/clear-framework.md.
| Category | Providers |
|---|---|
| IDE & editor extensions | Cursor · Windsurf · Kilocode · Roocode · Cline |
| CLI agents | Claude Code · Droid CLI · CodeBuddy CLI · OpenCode · Gemini CLI · Qwen Code · Amp · Crush CLI · Codex CLI |
| Universal adapters | AGENTS.md · OCTO.md · WARP.md |
Provider paths and argument placeholders are listed in docs/providers.md.
npm install -g clavix
# or without a global install
npx clavix@latest initCommon commands:
clavix init
clavix fast "Create a login page"
clavix deep "Build an API for user management"
clavix prd- Overview & navigation: docs/index.md
- Command reference: docs/commands/
- Providers: docs/providers.md
- CLEAR Framework: docs/clear-framework.md
- Guides: docs/guides/
- Requires Node.js ≥ 18
- Run tests:
npm test - Lint:
npm run lint - Build:
npm run build
MIT
Create a login page
Improved:
# Objective
Build a secure user authentication login page
# Requirements
- Email and password input fields with validation
- "Remember me" checkbox
- "Forgot password" link
- Show clear error messages for invalid credentials
- Responsive design for mobile and desktop
# Technical Constraints
- Use React with TypeScript
- Integrate with existing JWT authentication API
- Follow WCAG 2.1 AA accessibility standards
- Support password managers
# Expected Output
- Fully functional login component
- Unit tests with >80% coverage
- Integration with auth context
# Success Criteria
- Users can log in successfully
- Invalid credentials show appropriate errors
- Page is accessible via keyboard navigation
- Loads in < 2 secondsIn Claude Code:
/clavix:fast Create a dashboard for analytics
Claude will:
- Analyze your prompt
- Check if deep analysis is needed (smart triage)
- Identify gaps, ambiguities, and strengths
- Show changes made summary
- Generate a structured, improved prompt
- Display it ready for immediate use
For comprehensive analysis:
/clavix:deep Create a dashboard for analytics
Provides all fast mode features plus alternative phrasings, edge cases, implementation examples, and more.
Use Fast Mode when:
- You have a simple, straightforward prompt
- You need quick cleanup and structure
- Time is a priority
Use Deep Mode when:
- Requirements are complex or ambiguous
- You want to explore alternative approaches
- You need to think through edge cases
- You're planning a significant feature
Use PRD Mode when:
- You need strategic planning
- Architecture decisions are required
- Business impact and scalability matter
- Node.js >= 18.0.0
- npm or yarn
# build dist
npm run build
# run tests
npm test
# lint / format
npm run lint
npm run format:checkMIT