xarchitecture
Design, analyze, and evolve system architecture using Domain-Driven Design, 12-Factor App, and proven patterns
Initialize a new project with comprehensive CLAUDE.md and specification framework
How it fires
How this command gets triggered: by you, by Claude, or both.
/xnewContext preview
What this command does when you run it.
Initialize a new project with comprehensive CLAUDE.md and specification framework
description: "Initialize a new project with comprehensive CLAUDE.md and specification framework" tags: ["project", "setup", "initialization"]
Initialize a new project with comprehensive CLAUDE.md and specification framework.
/xnew <project_name> [stack]
/xnew vibecoding-web node /xnew ai-patterns python /xnew microservice-api go
Perform the following steps in order:
Generate CLAUDE.md with Specification-Driven Development methodology:
# Project: $PROJECT_NAME
# Stack: $STACK
# Generated: $(date +%Y-%m-%d)
# Development Methodology: Specification-Driven Development (SDD)
This is the single source of truth for all development standards, conventions, rules, and specifications for this project. Claude Code and other AI assistants should read this file first and follow these guidelines for all operations.
## ๐ Specification-Driven Development
This project follows Specification-Driven Development (SDD) methodology. All features MUST have specifications before implementation.
### Specification Framework
specs/
โโโ README.md # Specification guide and navigation
โโโ requirements.md # EARS-formatted requirements
โโโ design.md # Technical architecture and design
โโโ tasks.md # Atomic, sequenced implementation tasks
โโโ mvp-summary.md # MVP vs Advanced feature separation
โโโ testing-requirements.md # Test coverage requirements
โโโ performance-benchmarks.md # Performance targets and metrics
โโโ user-testing-strategy.md # User validation approach
โโโ system-monitoring.md # Operational monitoring strategy
โโโ hooks.md # Development lifecycle automation
โโโ agents.md # Multi-agent orchestration
โโโ context.md # Data classification and context management
โโโ github-actions-requirements.md # CI/CD automation specs
### AWS Kiro EARS Requirements Pattern
All Requirements Now Follow Official EARS Syntax:
- **Event-Driven**: "When [trigger], the system shall [response]"
- **State-Driven**: "While [precondition], the system shall [response]"
- **Ubiquitous**: "The system shall [response]"
- **Optional Feature**: "Where [feature], the system shall [response]"
- **Unwanted Behavior**: "If [trigger], then the system shall [response]"
The validation tool now shows **100% EARS compliance**
### Specification Coverage Requirements
- Every feature must have corresponding specifications
- Every specification must have corresponding tests
- Minimum spec coverage: 95% of all features
- Spec-to-test mapping: Automated validation required
- **EARS compliance: 100% mandatory for all requirements**
### EARS Validation Rules
๐จ **MANDATORY COMPLIANCE**:
- All requirements MUST use exact AWS Kiro EARS syntax with brackets
- No exceptions allowed - 100% compliance required
- Validation tool enforces strict format checking
- Requirements failing EARS format are rejected automatically
**EARS Format Validation Examples**:
โ
CORRECT: "When [user clicks save], the system shall [persist data to database]"
โ
CORRECT: "While [backup is running], the system shall [display progress indicator]"
โ
CORRECT: "The system shall [authenticate users before access]"
โ
CORRECT: "Where [admin privileges], the system shall [allow user management]"
โ
CORRECT: "If [network timeout occurs], then the system shall [retry 3 times]"
โ INCORRECT: "User can save data" (not EARS format)
โ INCORRECT: "System should authenticate" (missing brackets)
โ INCORRECT: "When user saves, validate" (incomplete structure)
## ๐ฏ Project Goals & Context
- Primary objective: [Define main goal and success metrics]
- Technical requirements: [Core technical needs and constraints]
- Business objectives: [Business value delivered]
- User value: [What users gain from this system]
- Development methodology: Specification-Driven Development (SDD)
## ๐ Requirements Management
### Requirements Framework (AWS Kiro EARS)
requirement_structure:
id: "REQ-XXX"
pattern: "Event-Driven|State-Driven|Ubiquitous|Optional|Unwanted"
requirement: "MUST follow exact EARS syntax with brackets"
ears_format_examples:
- "When [user submits form], the system shall [validate all fields]"
- "While [user is authenticated], the system shall [display user dashboard]"
- "The system shall [encrypt all data at rest]"
- "Where [premium feature enabled], the system shall [allow advanced analytics]"
- "If [invalid login attempt], then the system shall [lock account after 3 failures]"
rationale: "Why this requirement exists"
acceptance_criteria: "Testable criteria for validation"
priority: "MVP|ADVANCED"
ears_compliance: "MANDATORY - 100% compliance required"
### MVP vs Advanced Features
- MVP Features: Core functionality for initial release
- Advanced Features: Enhanced capabilities for future iterations
- Decision Framework:
- โ
Include in MVP if: Essential for core workflow
- โ ๏ธ Move to Advanced if: Complex edge cases or optimizations
## ๐ Directory Structure
project/
โโโ src/ # Source code
โโโ tests/ # Test suites
โ โโโ specs/ # Specification compliance tests
โโโ specs/ # SPECIFICATIONS (CRITICAL)
โ โโโ README.md # Specification navigation guide
โ โโโ requirements.md # EARS-formatted requirements
โ โโโ design.mTransform 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โฆ