Skip to content

A framework for organizing and structuring software architecture design with support for multiple AI coding assistants

Notifications You must be signed in to change notification settings

codenamev/ai-software-architect

Repository files navigation

AI Software Architect

A markdown-based framework for implementing rigorous software architecture practices in any project, with specialized AI assistant integration.

Overview

This framework provides a structured approach to:

  1. Architecture Documentation - Templates and processes for documenting architectural decisions
  2. Architecture Reviews - A multi-perspective review process with specialized reviewers
  3. Architecture Recalibration - Process for translating reviews into concrete implementation plans
  4. Progress Tracking - Tools for monitoring the implementation of architectural changes
  5. AI Integration - Seamless collaboration with AI coding assistants

For detailed usage instructions, see USAGE.md.

Installation

Choose the installation method for your AI assistant:

Claude Code Installation

If you're using Claude Code, follow the detailed setup instructions in USAGE-WITH-CLAUDE.md.

Quick Setup:

Setup architecture using: https://github.com/codenamev/ai-software-architect

Claude Code will automatically detect the framework, customize it for your project, and set up the proper CLAUDE.md integration.

Cursor Installation

If you're using Cursor, follow the detailed setup instructions in USAGE-WITH-CURSOR.md.

Quick Setup:

Setup architecture using @https://github.com/codenamev/ai-software-architect

Cursor will clone the framework and configure the Rule files in .cursor/rules/ for seamless integration.

GitHub Copilot / Codex Installation

If you're using GitHub Copilot or OpenAI Codex, follow the detailed setup instructions in USAGE-WITH-CODEX.md.

Quick Setup:

Setup architecture using: https://github.com/codenamev/ai-software-architect

The framework will be configured with context files that GitHub Copilot and Codex can automatically understand.

Getting Started

After installation, start using the framework:

  • Create architecture decisions: "Help me create an ADR for our new authentication system"
  • Start architecture reviews: "Start an architecture review for version 2.0.0"
  • Get specialist opinions: "Ask Security Architect to review this API design"

See USAGE.md for detailed workflow instructions.

Directory Structure

.architecture/
├── decisions/
│   ├── adrs/                # Architectural Decision Records
│   └── principles.md        # Architectural principles document
├── reviews/                 # Architecture review documents
├── recalibration/           # Recalibration plans and tracking
├── comparisons/             # Version-to-version comparisons
├── docs/                    # General architecture documentation
├── templates/               # Templates for various documents
└── members.yml              # Architecture review team members

Usage with AI Assistants

This framework is designed to work seamlessly with AI assistants. Each assistant has specialized instructions in the .coding-assistants directory.

For general usage instructions, see USAGE.md.

Claude Code

For Claude Code users, see USAGE-WITH-CLAUDE.md for detailed instructions. Key capabilities include:

  • Setup & Customization: "Setup .architecture", "Customize architecture"
  • Reviews: "Start architecture review for version X.Y.Z" or "Review architecture for 'component'"
  • Specialized Reviews: "Ask Security Architect to review these code changes"
  • Recalibration: "Start architecture recalibration for 'feature name'"
  • ADR Creation: "Create an ADR for 'topic'"

Claude can dynamically create new specialist roles if they don't exist in your members.yml file.

Cursor

For Cursor users, see USAGE-WITH-CURSOR.md for detailed instructions. Key capabilities include:

  • Setup & Customization: "Setup ai-software-architect", "Setup architecture"
  • Architecture Reviews: "Review this architecture using the AI Software Architect framework"
  • Specialized Reviews: "Analyze this from a security perspective using AI Software Architect"
  • Documentation Creation: "Create an ADR for this decision using the AI Software Architect format"

Cursor uses .mdc rule files in the .coding-assistants/cursor directory to understand the framework.

GitHub Copilot / Codex

For GitHub Copilot and OpenAI Codex users, see USAGE-WITH-CODEX.md for detailed instructions. Key features include:

  • Natural Language Commands: Uses context-based recognition - no need to mention the framework explicitly
  • Architecture Reviews: "Review this architecture", "What are the security implications?"
  • ADR Creation: "Create an ADR for our database choice"
  • Code Generation: Generate code that follows established architectural patterns and ADRs
  • Inline Guidance: Get architectural suggestions directly in your IDE

Examples of natural commands:

  • "What are the architectural implications of this change?"
  • "Review this database schema for performance"
  • "Create an ADR for our microservices approach"

Other AI Assistants

Support for additional AI assistants can be added by creating appropriate configuration files in the .coding-assistants directory following the established patterns.

Key Features

Architectural Wisdom

The framework incorporates wisdom from influential software architects including Martin Fowler, Sandi Metz, Robert C. Martin, Eric Evans, Sarah Mei, and others. These principles are embedded in the architectural documentation.

Multi-Perspective Reviews

Architecture reviews consider multiple specialized perspectives:

  • Systems Architecture
  • Domain Expertise
  • Security
  • Performance
  • Maintainability
  • AI Engineering
  • And dynamically created specialists as needed

Feature-Based Architecture Management

The framework now supports:

  • Version-based reviews and recalibration (e.g., for v2.1.0)
  • Feature-based reviews and recalibration (e.g., for "payment processing")
  • Component-specific reviews (e.g., for "authentication system")

License

MIT

About

A framework for organizing and structuring software architecture design with support for multiple AI coding assistants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published