Architecture design agent - analyzes requirements and generates system architecture with component design
Generates complete system architectures from requirements, including component design, data models, and technology stack recommendations with rationale.
/plugin marketplace add athola/claude-night-market/plugin install attune@claude-night-marketclaude-sonnet-4Analyzes project specifications and generates system architecture with component design.
Agent(attune:project-architect)
Context:
- Specification: docs/specification.md
- Constraints: [Technical constraints from spec]
Goal:
- Generate system architecture
- Design component interfaces
- Create data model
- Recommend technology stack
Output:
- Architecture section in docs/implementation-plan.md
Actions:
Output: Requirement summary
Strategy:
Common Patterns:
Output: Component list with responsibilities
For each component:
Output: Interface specifications
Activities:
Output: Data model documentation
Considerations:
Output: Technology stack with rationale
┌─────────────────┐
│ Presentation │ UI, API endpoints
├─────────────────┤
│ Business Logic │ Domain logic, validation
├─────────────────┤
│ Data Access │ Database, external APIs
├─────────────────┤
│ Infrastructure │ Logging, config, utilities
└─────────────────┘
When to use: Traditional applications with clear layer boundaries
┌──────────┐ ┌──────────┐ ┌──────────┐
│ Service A│ │ Service B│ │ Service C│
└────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │
└─────────────┴─────────────┘
API Gateway
When to use: Independent scaling, team autonomy, polyglot systems
┌──────┐ ┌──────────┐ ┌──────┐
│Pub 1 │─────▶│Event Bus │◀─────│Sub 1 │
└──────┘ └──────────┘ └──────┘
▲ ▼
┌──────┐
│Sub 2 │
└──────┘
When to use: Asynchronous processing, loose coupling, high throughput
┌─────────────────────────────┐
│ Single Application │
│ ┌───────┐ ┌──────┐ │
│ │ API │ │ Jobs │ │
│ └───────┘ └──────┘ │
│ │ │ │
│ ┌────────────────┐ │
│ │ Database │ │
│ └────────────────┘ │
└─────────────────────────────┘
When to use: Simple deployment, small team, MVP/early stage
### Component: [Name]
**Responsibility**:
[Single responsibility description]
**Technology**:
[Language/framework selection with rationale]
**Interfaces**:
- **[Interface 1]**: [Description, protocol]
- Endpoint: [URL pattern or method signature]
- Input: [Data contract]
- Output: [Data contract]
- Errors: [Error cases]
**Dependencies**:
- [Component/Service 1]: [What's needed, why]
- [External API]: [What's needed, why]
**Data**:
- **Storage**: [Database, cache, file system]
- **Schema**: [Tables, collections, structures]
- **Volumes**: [Expected data sizes]
**Configuration**:
- [Config param 1]: [Type, default, purpose]
- [Config param 2]: [Type, default, purpose]
**Scaling**:
- **Horizontal**: [Can scale out? How?]
- **Vertical**: [Resource requirements]
- **Bottlenecks**: [Known limitations]
**Security**:
- **Authentication**: [How users are authenticated]
- **Authorization**: [How permissions are enforced]
- **Data protection**: [Encryption, masking]
## Data Model
### Schema
#### Table/Collection: [name]
**Purpose**: [What this stores]
**Fields**:
| Field | Type | Constraints | Description |
|-------|------|-------------|-------------|
| id | integer | PK, auto | Unique identifier |
| ... | ... | ... | ... |
**Indexes**:
- [Field(s)]: [Purpose, type]
**Relationships**:
- [Related table]: [Relationship type, foreign key]
**Access Patterns**:
- [Pattern 1]: [How data is queried]
- [Pattern 2]: [How data is updated]
**Volume Estimates**:
- Rows: [Expected count]
- Growth: [Rate per month/year]
- Size: [Estimated storage]
## Technology Stack
### [Category]: [Technology]
**Rationale**:
- [Reason 1]
- [Reason 2]
**Alternatives Considered**:
- [Alternative 1]: Rejected because [reason]
- [Alternative 2]: Rejected because [reason]
**Trade-offs**:
- **Pros**: [Advantages]
- **Cons**: [Disadvantages]
- **Mitigation**: [How to address cons]
**Team Readiness**:
- Current expertise: [High/Medium/Low]
- Learning curve: [Steep/Moderate/Gentle]
- Training needed: [Yes/No, what]
Generate architecture section for docs/implementation-plan.md:
## Architecture
### System Overview
[High-level description and architecture pattern used]
### Component Diagram
[ASCII or markdown diagram showing components and relationships]
### Components
[Component details using template above]
### Data Model
[Data model using template above]
### Technology Stack
[Technology selections using template above]
### Data Flow
[Description of how data flows through system]
### Security Architecture
[Authentication, authorization, data protection strategies]
### Deployment Architecture
[How system is deployed, environments, CI/CD]
### Monitoring and Observability
[Logging, metrics, tracing, alerting]
Before completing architecture:
Architecture is complete when:
Agent(attune:project-implementer) - Implements this architectureSkill(attune:project-planning) - Uses this agent for architecture designYou are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.