Xavier is a comprehensive enterprise development framework that brings strict SCRUM methodology, test-first development, and Clean Code principles to Claude Code. It ensures 100% test coverage, sequential task execution, and enterprise-grade code quality.
Latest Version: v1.2.3 (2025-10-03) - Enhanced Git Worktree Integration
- Tasks are executed one at a time, in order
- No task begins until the previous one is 100% complete and tested
- Dependencies are strictly enforced
- Tests must be written before implementation
- 100% test coverage required for task completion
- Automatic test validation and coverage reporting
- Enforces Clean Code standards
- SOLID principles validation
- Inversion of Control (IoC) patterns
- Cyclomatic complexity monitoring
- Code duplication detection
- Parallel Development: Each agent works in isolated git worktree
- Automatic Branching: Creates
agent-name/task-idbranches - PR Automation: Automatic pull request creation on task completion
- Sprint Worktrees: Worktrees created on sprint start, cleaned on sprint end
- Conflict-Free: Main branch stays clean while agents work in parallel
- Project Manager: Sprint planning, story estimation, task assignment
- Context Manager: Codebase analysis, pattern detection, knowledge management
- Python Engineer: Python-only development with strict boundaries
- Golang Engineer: Go-only development with strict boundaries
- Frontend Engineer: TypeScript/React/Vue/Angular development
- DevOps Engineer: CI/CD, deployment, infrastructure
- UI/UX Designer: Design systems, user experience
- User stories with acceptance criteria
- Tasks with test criteria
- Bug tracking with severity levels
- Sprint planning and execution
- Velocity tracking and burndown charts
- Roadmap management with milestones
Run this command in your project directory:
curl -sSL https://raw.githubusercontent.com/gumruyanzh/xavier/main/install.sh | bashFor existing installations, update to the latest version:
# Download and run update script (Recommended)
curl -sSL https://raw.githubusercontent.com/gumruyanzh/xavier/main/update.sh -o xavier-update.sh && \
bash xavier-update.sh && \
rm xavier-update.sh
# Or use the Xavier command
/xavier-updateOr manually:
# Clone Xavier
git clone https://github.com/xavier-framework/xavier.git
cd xavier
# Run setup
python setup.py install# In your project root
xavier init# Create new project with Xavier
xavier create-project myproject
cd myproject/create-storyArguments:
title: Story titleas_a: User role (e.g., "developer", "user")i_want: Feature descriptionso_that: Business valueacceptance_criteria: List of criteriapriority: Critical/High/Medium/Low
Example:
{
"title": "User Authentication",
"as_a": "user",
"i_want": "to log in with email and password",
"so_that": "I can access my personal dashboard",
"acceptance_criteria": [
"Email validation",
"Password strength requirements",
"Remember me option",
"Password reset capability"
],
"priority": "High"
}/create-taskArguments:
story_id: Parent story IDtitle: Task titledescription: Task descriptiontechnical_details: Implementation detailsestimated_hours: Hour estimatetest_criteria: Test requirementsdependencies: List of dependency task IDs
/create-bugArguments:
title: Bug titledescription: Bug descriptionsteps_to_reproduce: Reproduction stepsexpected_behavior: What should happenactual_behavior: What actually happensseverity: Critical/High/Medium/Low
When you start a sprint, Xavier automatically:
- Creates a
trees/directory for worktrees - Creates a worktree for each agent-task combination
- Manages branches as
agent-name/task-id
# Start sprint (creates worktrees automatically)
/xavier-sprint start
# Check worktree status
/xavier-status verbose=true
# End sprint (cleans up worktrees)
/xavier-sprint endThe worktree workflow ensures:
- Each agent works in isolation
- No merge conflicts during development
- Automatic PR creation on task completion
- Clean main branch throughout sprint
For detailed information, see Git Worktree Workflow Documentation.
/create-sprintArguments:
name: Sprint namegoal: Sprint goalduration_days: Sprint length (default: 14)auto_plan: Auto-select items by priority (default: true)
/start-sprintArguments:
sprint_id: Sprint to start (optional, uses latest)strict_mode: Enable strict sequential execution (default: true)
This command will:
- Activate the sprint
- Assign tasks to appropriate agents
- Begin sequential task execution
- Enforce test-first development
- Validate Clean Code compliance
/end-sprintArguments:
retrospective_notes: Sprint retrospective
/learn-projectAnalyzes your existing codebase and:
- Detects technology stack
- Identifies patterns and conventions
- Generates appropriate agents
- Creates initial backlog
/create-roadmapArguments:
name: Roadmap namevision: Product visionmilestones: List of milestone definitions
/generate-reportReport types:
backlog: Backlog overviewsprint: Sprint progressvelocity: Team velocity trendsburndown: Sprint burndown chartagents: Agent capabilities
/show-backlogShows prioritized backlog with story points.
/list-stories # List all user stories
/list-tasks # List all tasks
/list-bugs # List all bugs/xavier-help # Show all commandsxavier init
/learn-project/create-story {
"title": "User Registration",
"as_a": "new user",
"i_want": "to create an account",
"so_that": "I can use the application",
"acceptance_criteria": [
"Email verification",
"Strong password enforcement",
"Profile creation"
],
"priority": "High"
}/create-task {
"story_id": "US-ABC123",
"title": "Implement email validation",
"description": "Add email validation service",
"technical_details": "Use regex and MX record checking",
"estimated_hours": 4,
"test_criteria": [
"Valid emails accepted",
"Invalid emails rejected",
"MX record verification works"
]
}/create-sprint {
"name": "Sprint 1",
"goal": "Complete user authentication",
"auto_plan": true
}/start-sprintXavier will:
- Assign tasks to appropriate agents
- Enforce test-first development
- Execute tasks sequentially
- Validate 100% test coverage
- Check Clean Code compliance
- Update progress in real-time
/end-sprint {
"retrospective_notes": "Completed authentication module with 100% coverage"
}{
"settings": {
"strict_mode": true,
"test_first": true,
"clean_code_enforcement": true,
"ioc_patterns": true,
"sequential_execution": true,
"test_coverage_required": 100,
"sprint_velocity": 20,
"default_sprint_duration": 14
},
"agents": {
"project_manager": {
"enabled": true
},
"python_engineer": {
"enabled": true,
"tech_stack": ["django", "fastapi", "pytest"]
}
}
}- Write tests before implementation
- Ensure tests fail initially
- Write minimal code to pass tests
- Refactor while keeping tests green
- Achieve 100% coverage
- Functions: Max 20 lines
- Classes: Max 200 lines
- Methods per class: Max 10
- Function parameters: Max 3
- Cyclomatic complexity: Max 10
- Line length: Max 120 characters
- Single Responsibility
- Open/Closed
- Liskov Substitution
- Interface Segregation
- Dependency Inversion
- Python Engineer writes ONLY Python
- Go Engineer writes ONLY Go
- Frontend Engineer writes ONLY TypeScript/JavaScript
- No agent crosses language boundaries
Xavier Framework
├── Core Engine (Strict Execution Control)
├── SCRUM Manager (Sprint & Backlog Management)
├── Agent Orchestrator (Task Delegation)
├── Sub-Agents
│ ├── Project Manager
│ ├── Context Manager
│ ├── Python Engineer
│ ├── Golang Engineer
│ ├── Frontend Engineer
│ └── [Dynamic Agents]
├── Validators
│ ├── Test-First Enforcer
│ ├── Clean Code Analyzer
│ ├── SOLID Validator
│ └── IoC Validator
└── Command System
Xavier automatically detects and adapts to:
- Languages: Python, Go, TypeScript, JavaScript, Java, Ruby, C#
- Frameworks: Django, FastAPI, Flask, React, Vue, Angular, Spring
- Build Tools: npm, pip, go, maven, gradle, bundler
- Test Frameworks: pytest, jest, go test, junit, rspec
- Databases: PostgreSQL, MySQL, MongoDB, Redis
- CI/CD: GitHub Actions, GitLab CI, Jenkins
When Xavier detects a technology not covered by default agents, it automatically generates specialized agents:
# Detected Ruby on Rails
Xavier generates -> RubyEngineerAgent
# Detected Java Spring
Xavier generates -> JavaEngineerAgent
# Detected Rust
Xavier generates -> RustEngineerAgentXavier seamlessly integrates with Claude Code through custom commands. All Xavier commands are available directly in your Claude Code chat:
User: /create-story
Claude Code + Xavier: [Creates story with PM agent estimation]
User: /start-sprint
Claude Code + Xavier: [Orchestrates agents to execute sprint]
- Ensure test frameworks are installed
- Check test file naming conventions
- Verify test paths in configuration
- Run
/tech-stack-analyzeto detect stack - Use
/create-agentto add custom agents - Check agent is enabled in config
- Ensure sprint has items assigned
- Check no other sprint is active
- Verify all dependencies are resolved
Xavier is open-source and welcomes contributions:
- Fork the repository
- Create a feature branch
- Write tests first (100% coverage required)
- Implement feature following Clean Code
- Ensure all validators pass
- Submit pull request
MIT License - See LICENSE file for details
- Documentation: https://gumruyan.com/xavier/documentation.html
Created for enterprise teams using Claude Code who demand:
- 100% test coverage
- Clean, maintainable code
- Strict SCRUM methodology
- Professional development standards
Xavier Framework - Enterprise Development, Properly Executed