Produces a system architecture overview (components, data flow, tech rationale, scalability). DO NOT use for single-feature, DB schema, or API design.
Generate a comprehensive system architecture plan including component mapping, data flow, tech rationale, and scaling strategies.
| Variable | Type | Req | Description |
|---|---|---|---|
project_description | string | Yes | High-level system overview |
tech_stack | string | Yes | Core technologies |
scale_requirements | string | Yes | Load, DAU, SLA targets |
| Case | Strategy |
|---|---|
| Scale Conflict | Flag tech/scale mismatches; recommend compatible alternatives. |
| Open Stack | Recommend a specific, opinionated stack with rationale; ask for confirmation. |
| Microservices | If requested but DAU is low, propose a modular monolith first. |
flowchart TD
A([Start: Architecture Planning]) --> B{scale_requirements\nprovided and consistent?}
B -- Missing/Vague --> C[Ask for clarification:\nDAU, uptime, latency targets]
C --> B
B -- Yes --> D{tech_stack conflicts\nwith scale requirements?}
D -- Yes --> E[Flag mismatch explicitly\nrecommend compatible alternative]
D -- No --> F{tech_stack open-ended?}
F -- Yes --> G[Recommend specific stack\nwith rationale\nask developer to confirm]
F -- No --> H[List Component Overview\nname + responsibility + tech + interfaces]
G --> H
H --> I{Monolith or\ndistributed?}
I -- Ambiguous --> J[Default to monolith\nfor given scale\nnote extraction path]
I -- Clear --> K[Describe Data Flow\nfor 2 critical user journeys\nsync vs async explicit]
J --> K
K --> L[Write Technology Decisions\nwith rationale + rejected alternatives\n+ trade-offs accepted]
L --> M[Write Scalability Considerations\nhorizontal/vertical per component\nbottleneck identification + caching]
M --> N[Produce ASCII Architecture Diagram\ncomponents + connections\nlabeled with protocol/data type]
N --> O([Output: 5-section architecture plan\n600–1200 words])
| Version | Date | Description |
|---|---|---|
| 1.1.0 | 2026-03-20 | Restructured: moved examples/references, added compatibility/license |
| 1.0.0 | 2026-03-20 | Initial release |