Designs software architecture and selects appropriate patterns for projects. Use when designing systems, choosing architecture patterns, structuring projects, making technical decisions, or when asked about microservices, monoliths, or architectural approaches.
View on GitHubCloudAI-X/claude-workflow-v2
project-starter
January 14, 2026
Select agents to install to:
npx add-skill https://github.com/CloudAI-X/claude-workflow-v2/blob/main//skills/designing-architecture/SKILL.md -a claude-code --skill designing-architectureInstallation paths:
.claude/skills/designing-architecture/# Designing Architecture ## Architecture Decision Workflow Copy this checklist and track progress: ``` Architecture Design Progress: - [ ] Step 1: Understand requirements and constraints - [ ] Step 2: Assess project size and team capabilities - [ ] Step 3: Select architecture pattern - [ ] Step 4: Define directory structure - [ ] Step 5: Document trade-offs and decision - [ ] Step 6: Validate against decision framework ``` ## Pattern Selection Guide ### By Project Size | Size | Recommended Pattern | |------|---------------------| | Small (<10K LOC) | Simple MVC/Layered | | Medium (10K-100K) | Clean Architecture | | Large (>100K) | Modular Monolith or Microservices | ### By Team Size | Team | Recommended | |------|-------------| | 1-3 devs | Monolith with clear modules | | 4-10 devs | Modular Monolith | | 10+ devs | Microservices (if justified) | ## Common Patterns ### 1. Layered Architecture ``` ┌─────────────────────────────┐ │ Presentation │ ← UI, API Controllers ├─────────────────────────────┤ │ Application │ ← Use Cases, Services ├─────────────────────────────┤ │ Domain │ ← Business Logic, Entities ├─────────────────────────────┤ │ Infrastructure │ ← Database, External APIs └─────────────────────────────┘ ``` **Use when**: Simple CRUD apps, small teams, quick prototypes ### 2. Clean Architecture ``` ┌─────────────────────────────────────┐ │ Frameworks & Drivers │ │ ┌─────────────────────────────┐ │ │ │ Interface Adapters │ │ │ │ ┌─────────────────────┐ │ │ │ │ │ Application │ │ │ │ │ │ ┌─────────────┐ │ │ │ │ │ │ │ Domain │ │ │ │ │ │ │ └─────────────┘ │ │ │ │ │ └─────────────────────┘ │ │ │ └─────────────────────────────┘ │ └─────────────────────────────────────┘ ``` **Use when**: Complex business logic, long-lived projects, testability is key ### 3. Hexagonal (Ports & Adap