create-ax-project
v1.0.3
Published
Multi-AI Workflow Pipeline - Create new projects with 10-stage development workflow
Maintainers
Readme
ax-templates
Multi-AI Workflow Pipeline for Software Development
Overview
ax-templates is a 10-stage software development workflow pipeline that orchestrates multiple AI models (Claude, Gemini, Codex) for end-to-end project development.
Key Features
- 10-Stage Pipeline: Complete development cycle from brainstorming to deployment
- Multi-AI Orchestration: Intelligent collaboration between Gemini, Claude, and Codex with parallel, sequential, and debate modes
- Smart HANDOFF System: Automatic context extraction, semantic compression, and AI memory integration
- Auto-Checkpoint & Smart Rollback: Task-based triggers, file change detection, partial rollback support
- Pipeline Forking: Branch exploration for architecture alternatives with merge capabilities
- Stage Personas: Optimized AI behavior profiles per stage (Creative Explorer, Precise Builder, etc.)
- Output Validation: Automated quality checks with lint, typecheck, and coverage verification
- Dual Distribution: Both NPM CLI and Claude Code plugin available
Pipeline Stages
┌─────────────────────────────────────────────────────────────────────┐
│ ax-templates Pipeline │
├─────────────────────────────────────────────────────────────────────┤
│ 01 Brainstorm → 02 Research → 03 Planning → 04 UI/UX │
│ Gemini Claude Gemini Gemini │
├─────────────────────────────────────────────────────────────────────┤
│ 05 Tasks → 06 Implement → 07 Refactor → 08 QA → 09 Test │
│ Claude Claude Codex Claude Codex │
├─────────────────────────────────────────────────────────────────────┤
│ 10 Deploy │
│ Claude │
└─────────────────────────────────────────────────────────────────────┘| Stage | Name | AI Model | Mode | |-------|------|----------|------| | 01 | Brainstorming | Gemini + Claude | YOLO (Container) | | 02 | Research | Claude | Plan Mode | | 03 | Planning | Gemini | Plan Mode | | 04 | UI/UX Planning | Gemini | Plan Mode | | 05 | Task Management | Claude | Plan Mode | | 06 | Implementation | Claude | Plan + Sandbox | | 07 | Refactoring | Codex | Deep Dive | | 08 | QA | Claude | Plan + Sandbox | | 09 | Testing & E2E | Codex | Sandbox + Playwright | | 10 | CI/CD & Deployment | Claude | Headless |
Installation
Quick Start with npx
# Create a new project
npx create-ax-project my-project
cd my-project
# Edit project brief
# stages/01-brainstorm/inputs/project_brief.md
# Start development with Claude Code
/run-stage 01-brainstormUsing Claude Code
In Claude Code, all slash commands are available:
/status # Check pipeline status
/run-stage 01-brainstorm
/handoff # Create handoff document
/next # Move to next stageQuick Start
Step-by-Step
# 1. Create project
npx create-ax-project my-saas-app
cd my-saas-app
# 2. Edit your project brief
# Open: stages/01-brainstorm/inputs/project_brief.md
# 3. Start brainstorming stage
# In Claude Code:
/brainstorm
# 4. Check status anytime
/status
# 5. Create handoff and move to next stage
/handoff
/nextProject Brief Template
Edit stages/01-brainstorm/inputs/project_brief.md:
## 프로젝트 이름
my-saas-app
## 한 줄 설명
[프로젝트를 한 줄로 설명해주세요]
## 문제 정의
[해결하려는 문제는 무엇인가요?]
## 타겟 사용자
[주요 사용자는 누구인가요?]
## 핵심 기능 (초안)
1. [기능 1]
2. [기능 2]
3. [기능 3]Packages
This monorepo contains three packages:
| Package | Description | Install |
|---------|-------------|---------|
| ax-templates | NPM CLI | npm install -g ax-templates |
| @ax-templates/core | Core library | npm install @ax-templates/core |
| @ax-templates/plugin | Claude Code plugin | claude plugin install @ax-templates/plugin |
Commands
Core Commands
| Command | CLI | Plugin |
|---------|-----|--------|
| Initialize project | ax init | /init-project |
| Show status | ax status | /status |
| List stages | ax stages | /stages |
| Run stage | ax run-stage <id> | /run-stage <id> |
| Next stage | ax next | /next |
| Create handoff | ax handoff | /handoff |
| Create checkpoint | ax checkpoint | /checkpoint |
| Restore checkpoint | ax restore | /restore |
| Check context | ax context | /context |
AI Commands
| Command | CLI | Plugin |
|---------|-----|--------|
| Gemini prompt | ax gemini <prompt> | /gemini <prompt> |
| Codex prompt | ax codex <prompt> | /codex <prompt> |
Multi-AI Commands
| Command | CLI | Plugin | Description |
|---------|-----|--------|-------------|
| AI Collaboration | ax collaborate | /collaborate | Run multi-AI collaboration (parallel, sequential, debate modes) |
| AI Benchmarking | ax benchmark | /benchmark | Compare AI model performance on tasks |
| Pipeline Fork | ax fork | /fork | Create/manage pipeline branches for exploration |
| Output Validation | ax validate | /validate | Validate stage outputs against quality criteria |
Stage Shortcuts
| Stage | CLI | Plugin |
|-------|-----|--------|
| 01-brainstorm | ax brainstorm | /brainstorm |
| 02-research | ax research | /research |
| 03-planning | ax planning | /planning |
| 04-ui-ux | ax ui-ux | /ui-ux |
| 05-task-management | ax tasks | /tasks |
| 06-implementation | ax implement | /implement |
| 07-refactoring | ax refactor | /refactor |
| 08-qa | ax qa | /qa |
| 09-testing | ax test | /test |
| 10-deployment | ax deploy | /deploy |
Configuration
Project configuration is stored in .ax-config.yaml:
ax_templates:
version: "2.0.0"
paths:
project_root: "./my-app"
stages_output: "./stages"
state: "./state"
checkpoints: "./state/checkpoints"
ai:
gemini: true
codex: true
tmux:
gemini_session: "ax-gemini"
codex_session: "ax-codex"
output_timeout: 300
context:
warning: 60
action: 50
critical: 40
task_save_frequency: 5
git:
commit_language: "Korean"
auto_commit: trueProject Structure
Each project is fully self-contained with all pipeline components:
my-project/ # PROJECT_ROOT
├── .claude/ # Claude Code configuration
│ ├── commands/ # Slash commands (26 commands)
│ ├── hooks/ # Lifecycle hooks
│ ├── skills/ # AI skills
│ └── settings.json
├── stages/ # 10-stage pipeline
│ ├── 01-brainstorm/
│ │ ├── CLAUDE.md # Stage-specific AI instructions
│ │ ├── config.yaml
│ │ ├── prompts/
│ │ ├── inputs/
│ │ │ └── project_brief.md # Start here!
│ │ ├── outputs/ # Generated artifacts
│ │ └── HANDOFF.md
│ ├── 02-research/
│ └── ... (10 stages total)
├── config/ # Pipeline configuration
│ ├── pipeline.yaml
│ ├── context.yaml
│ └── ... (15+ config files)
├── state/ # Project state
│ ├── progress.json # Pipeline progress
│ ├── checkpoints/ # Recovery points
│ └── context/ # Context snapshots
├── scripts/ # Helper scripts
├── CLAUDE.md # Main AI instructions
├── src/ # Source code (from stage 06)
└── package.jsonDesign Patterns
- Sequential Workflow Architecture - Sequential stage definition and auto-progression
- Stateless Orchestration - Stateless context transfer via HANDOFF.md
- Orchestrator-Workers - Parallel agent execution (Brainstorm stage)
- Proactive State Externalization - External state file management
- State Machine Workflow - State transition management (progress.json)
- Layered Configuration - Hierarchical configuration structure
- Multi-AI Collaboration - Parallel, sequential, and debate modes for AI coordination
- Pipeline Forking - Branch exploration with merge capabilities
- Smart Context Management - Semantic compression and AI memory integration
Documentation
Development
Prerequisites
- Node.js >= 18.0.0
- pnpm >= 8.0.0
- tmux (for AI sessions)
Setup
# Clone repository
git clone https://github.com/your-org/ax-templates.git
cd ax-templates
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm testLocal Development
# Link CLI globally
cd packages/cli
pnpm link --global
# Test CLI
ax --help
# Link plugin to Claude Code
claude plugin link ./packages/pluginMonorepo Structure
ax-templates/
├── packages/
│ ├── core/ # Shared business logic
│ │ ├── src/
│ │ │ ├── config/ # Configuration management
│ │ │ ├── stage/ # Stage management
│ │ │ ├── context/ # Context management
│ │ │ └── ai/ # AI model abstraction
│ │ └── package.json
│ │
│ ├── cli/ # NPM CLI package
│ │ ├── src/
│ │ │ ├── commands/ # CLI commands
│ │ │ └── prompts/ # Interactive prompts
│ │ ├── bin/ax.js
│ │ └── package.json
│ │
│ └── plugin/ # Claude Code plugin
│ ├── plugin.json
│ ├── CLAUDE.md
│ ├── .claude/
│ │ ├── commands/ # Slash commands
│ │ └── hooks/ # Lifecycle hooks
│ ├── scripts/ # Helper scripts
│ └── package.json
│
├── templates/ # Installable templates
│ └── default/ # Default 10-stage template
│
├── docs/ # Documentation
└── package.json # Monorepo rootContributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Commit Convention
We use Conventional Commits:
feat: New featurefix: Bug fixdocs: Documentationchore: Maintenancerefactor: Code refactoringtest: Test updates
License
MIT
Related
- Claude Code - AI coding assistant
- Gemini CLI - Google's AI CLI
