This document provides step-by-step procedures for common AI Software Architect framework workflows.
👉 For framework overview, see ../../AGENTS.md
- Setup Procedures
- Update Procedures
- Architecture Review Workflows
- ADR Creation Workflow
- Implementation with Methodology
The AI Software Architect framework can be installed using three methods:
# Install as reusable skills
git clone https://github.com/codenamev/ai-software-architect /tmp/ai-architect-$$
cp -r /tmp/ai-architect-$$/.claude/skills ~/.claude/Then in any project with Claude Code:
Setup ai-software-architect
# In your project root
git clone https://github.com/codenamev/ai-software-architect .architectureThen ask your AI assistant:
Setup software architect
# Install globally
npm install -g ai-software-architect
# Or add to claude_desktop_config.json
{
"mcpServers": {
"ai-software-architect": {
"command": "npx",
"args": ["ai-software-architect"]
}
}
}When you request setup, the AI assistant will:
-
Analyze Your Project
- Identify primary programming languages
- Detect frameworks and architectural patterns
- Examine existing documentation
- Understand project structure
-
Customize Templates
- Create
AGENTS.mdwith your project specifics - Populate technology stack information
- Configure build and test commands
- Set up project conventions
- Create
-
Create Directory Structure
.architecture/ ├── decisions/adrs/ # Architecture Decision Records ├── reviews/ # Architecture reviews ├── recalibration/ # Recalibration plans ├── members.yml # Team member definitions ├── principles.md # Architectural principles └── config.yml # Framework configuration -
Initial Analysis
- Conduct comprehensive architectural analysis
- Multiple perspective review from architecture team
- Document findings in initial system analysis
- Provide recommendations for next steps
To update an existing installation to the latest version:
# Backup old versions first
mkdir -p ~/.ai-architect-backups/skills-$(date +%Y%m%d-%H%M%S)
cd ~/.claude/skills
mv setup-architect architecture-review create-adr list-members architecture-status specialist-review ~/.ai-architect-backups/skills-$(date +%Y%m%d-%H%M%S)/ 2>/dev/null || true
# Install from latest
git clone https://github.com/codenamev/ai-software-architect /tmp/ai-architect-$$
cp -r /tmp/ai-architect-$$/.claude/skills/* ./
echo "Backup created at ~/.ai-architect-backups/skills-TIMESTAMP/"Ask your AI assistant:
Update the software architect framework from main branch
Or manually:
cd .architecture
git fetch origin main
git reset --hard origin/mainUpdated Files:
.architecture/templates/(all templates).architecture/principles.md(if not customized)- Framework helper scripts
- Base configuration files
Preserved Files:
.architecture/decisions/adrs/(your ADRs).architecture/reviews/(your reviews).architecture/recalibration/(your plans).architecture/members.yml(if customized).architecture/config.yml(your settings)
Command Pattern:
Start architecture review for version X.Y.Z
Start architecture review for [feature name]
Process:
-
Individual Review Phase
- Each architecture member reviews independently
- Focus on their area of expertise
- Document findings from their perspective
-
Collaborative Discussion Phase
- Members discuss findings
- Resolve conflicting perspectives
- Prioritize recommendations
- Identify trade-offs
-
Final Report Phase
- Produce comprehensive review document
- Balance all perspectives
- Provide actionable recommendations
- Document in
.architecture/reviews/
Command Pattern:
Ask [Specialist] to review [component]
Have [Role] review [code/design]
Get [Expert]'s opinion on [topic]
Example:
Ask Security Specialist to review authentication flow
Have Performance Specialist review database schema
Process:
- AI adopts the specialist's persona
- Reviews from that specific perspective
- Provides focused recommendations
- Documents in
.architecture/reviews/[role]-[topic].md
Command Pattern:
Create ADR for [topic]
Document architectural decision for [topic]
Template Structure:
# ADR-###: [Title]
## Status
[Draft | Proposed | Accepted | Deprecated | Superseded]
## Context
[Problem statement, background, constraints]
## Decision
[The decision that was made]
## Consequences
### Positive
### Negative
### Neutral
## Alternatives Considered
[Alternative approaches and why they were rejected]Best Practices:
- Write ADRs Early: Document decisions as you make them, not after
- Be Specific: Clear, precise language about what's changing
- Include Context: Future readers need to understand why
- Document Alternatives: Show you considered other approaches
- Update Status: Mark as Accepted when implemented, Superseded if replaced
To have AI assistants automatically apply your development methodology during implementation, configure the implementation section in .architecture/config.yml:
implementation:
enabled: true
methodology: "TDD" # or BDD, DDD, Test-Last, Exploratory
influences:
- "Kent Beck - TDD by Example"
- "Sandi Metz - POODR"
- "Martin Fowler - Refactoring"
languages:
ruby:
style_guide: "Rubocop"
idioms: "Blocks over loops, meaningful names"
testing:
framework: "RSpec"
style: "BDD"
coverage_target: 90
quality:
definition_of_done:
- "Tests passing"
- "Code refactored"
- "Documentation updated"Command Pattern:
Implement [feature] as the architects
Implement [feature] as [specific architect]
What Happens:
- AI reads implementation config from
.architecture/config.yml - Applies configured methodology (e.g., TDD)
- Follows influences (e.g., Kent Beck, Sandi Metz)
- Uses language-specific idioms and style guides
- Ensures quality standards met
Example with TDD:
"Implement user authentication as the architects"
AI will:
- Write test first (RED phase)
- Write minimal code to pass (GREEN phase)
- Refactor for clarity (REFACTOR phase)
- Apply Sandi Metz principles (small methods, clear names)
- Follow configured style guide
- Repeat cycle for each aspect
- Write test first (RED)
- Write minimal code to pass (GREEN)
- Refactor for clarity (REFACTOR)
- Repeat cycle
- Inspiration: Kent Beck's "TDD by Example"
- Write behavior-focused tests
- Outside-in development
- Describe expected behavior before implementation
- Use Given-When-Then format
- Focus on domain modeling
- Use ubiquitous language
- Define bounded contexts
- Model business concepts accurately
- Implement feature first
- Write tests after
- Ensure coverage meets targets
- Experiment with approaches
- Iterate and learn
- Codify successful patterns
- Refactor as understanding grows
Issue: Framework files not created
- Solution: Ensure you're in project root, not inside
.architecture/
Issue: Templates not customized
- Solution: AI needs to analyze project first - ensure project files present
Issue: Review doesn't include all members
- Solution: Check
.architecture/members.ymland.architecture/config.yml
Issue: Pragmatic Enforcer too aggressive/lenient
- Solution: Adjust
pragmatic_mode.intensityin.architecture/config.yml
Issue: Methodology not applied
- Solution: Ensure
implementation.enabled: truein.architecture/config.yml
Issue: Wrong style guide used
- Solution: Check
implementation.languagessection for your language
After completing workflows, consider:
- Conduct Regular Reviews: Schedule reviews for major versions or features
- Document Decisions: Create ADRs for significant architectural choices
- Enable Pragmatic Mode: Keep complexity in check
- Customize Configuration: Tailor framework to your needs
- Share with Team: Ensure all team members understand the framework
For more information, see:
- AGENTS.md - Framework overview
- .architecture/principles.md - Architectural principles
- .architecture/members.yml - Team members
- .architecture/config.yml - Configuration