xarchitecture
Design, analyze, and evolve system architecture using Domain-Driven Design, 12-Factor App, and proven patterns
Generate multiple implementation options with trade-off analysis for informed decision-making
How it fires
How this command gets triggered: by you, by Claude, or both.
/xchoiceContext preview
What this command does when you run it.
Generate multiple implementation options with trade-off analysis for informed decision-making
description: Generate multiple implementation options with trade-off analysis for informed decision-making tags: [choice, options, trade-offs, architecture, decision-making, comparison]
Generate 2-5 distinct implementation approaches with trade-off analysis. Aligns with the Choice Generation pattern from ai-development-patterns.
**Generate options for a feature:**
/xchoice authentication system
**Compare architectural approaches:**
/xchoice --arch API gateway vs direct service calls
**Quick 2-option comparison:**
/xchoice --quick Redis vs PostgreSQL for caching
**Help and options:**
/xchoice help /xchoice --help
If $ARGUMENTS contains "help" or "--help": Display this usage information and exit.
Examine the current codebase to ground options in reality: !ls -la | grep -E "(pyproject.toml|package.json|go.mod|Cargo.toml|docker-compose.yml)" !find . -type f -name "*.py" -o -name "*.js" -o -name "*.ts" -o -name "*.go" | grep -v node_modules | head -10
Identify constraints:
Based on $ARGUMENTS, generate **3 distinct implementation approaches** (or 2 if `--quick`):
For each option, structure as:
**Option N: [Focus] — [Name]**
Present a decision matrix:
| Criteria | Option 1 | Option 2 | Option 3 | |----------|----------|----------|----------| | Implementation effort | | | | | Performance | | | | | Maintainability | | | | | Scalability | | | | | Security | | | | | Team familiarity | | | |
Rate each: Strong / Adequate / Weak
Based on the detected project context, provide:
1. **Recommended option** with rationale tied to project constraints 2. **Runner-up** and when to prefer it instead 3. **Prototype suggestion**: What to build first to validate the choice (target: 30-minute spike)
Per ai-development-patterns Choice Generation:
Present options clearly with visual separation. End with a direct recommendation:
> **Recommendation**: Option N is the strongest fit because [reason tied to detected context]. > **Validate with**: [specific 30-minute prototype task] > **Revisit if**: [condition that would change the recommendation]
Transform Claude Code into a complete development platform with 45 AI-powered commands that automate your entire software development workflow. Now with improved git identity management!
Design, analyze, and evolve system architecture using Domain-Driven Design, 12-Factor App, and proven patterns
Manage project configuration files, environment variables, and application settings
Continue an execution plan from where it left off across sessions
Interactive debugging support with error analysis and fix suggestions - integrates with Debug Specialist sub-agent for complex…