ASCII diagram generation skill for creating professional architectural diagrams in text format...
Professional ASCII-based diagram generation for technical documentation. This skill provides templates and guidelines for creating clean, maintainable architectural diagrams that integrate seamlessly into documentation systems.
Standard Boxes (Components, Services)
┌─────────────────┐
│ Component │
│ or Service │
└─────────────────┘
Double-Line Boxes (External Systems, APIs)
╔═════════════════╗
║ External ║
║ System/API ║
╚═════════════════╝
Bold/Heavy Boxes (Databases, Storage)
┏━━━━━━━━━━━━━━━━━┓
┃ Database ┃
┃ or Storage ┃
┗━━━━━━━━━━━━━━━━━┛
Dashed Boxes (Optional, Conditional)
┌┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┐
┆ Optional ┆
┆ Component ┆
└┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┘
| Symbol | Meaning | Usage |
|---|---|---|
────► |
Synchronous request | Direct API calls, HTTP requests |
◄────► |
Bidirectional | WebSocket, duplex connections |
- - - - ► |
Asynchronous/Event | Message queues, events, webhooks |
════════► |
Data flow | Large data transfers, streaming |
······► |
Optional/Conditional | Optional integrations |
~~~~► |
Real-time/WebSocket | WebSocket connections |
"GET /api/users"
↓
┌────────┐
│API │
│Gateway │
└────────┘
↓
"JSON response"
Connection labels should be placed:
Hierarchical system decomposition (System, Container, Component, Code)
Best for: Architecture documentation, system overviews
Characteristics:
Interaction flows between components over time
Best for: API flows, transaction sequences, user journeys
Characteristics:
Internal structure of a system/container
Best for: Service internals, module relationships
Characteristics:
Physical/cloud deployment architecture
Best for: Infrastructure documentation, deployment guides
Characteristics:
Data movement through systems
Best for: ETL pipelines, data architecture, streaming flows
Characteristics:
Object-oriented structure
Best for: Domain models, data structures
Characteristics:
System-to-system communication patterns
Best for: Microservices, third-party integrations
Characteristics:
┌───────────────────────────────┐
│ Presentation Layer │
├───────────────────────────────┤
│ Business Logic Layer │
├───────────────────────────────┤
│ Data Access Layer │
├───────────────────────────────┤
│ Database Layer │
└───────────────────────────────┘
┌─────────────┐ ┌──────────────┐
│ Client │───HTTP────────►│ Server │
│ (Browser) │◄───JSON────────│ (REST API) │
└─────────────┘ └──────────────┘
┌──────────────┐
│API Gateway │
└──────┬───────┘
│
┌───┼────┬────────┬────────┐
│ │ │ │ │
▼ ▼ ▼ ▼ ▼
┌─────────────────────────────────┐
│User │Product│Order │Payment│Auth│
│Svc │ Svc │ Svc │ Svc │Svc │
└─────────────────────────────────┘
These diagrams integrate with documentation systems via:
docs/diagrams/ directory{system}-{diagram-type}.md or .txt## System Architecture
```
┌──────────────┐
│ Service │
└──────────────┘
```
[Description of what this diagram shows and key components]
See the template files for complete examples:
c4-diagram.md - System hierarchy examplessequence-diagram.md - Interaction flow examplescomponent-diagram.md - Internal structure examplesdeployment-diagram.md - Infrastructure examplesdata-flow-diagram.md - ETL and data pipeline examplesclass-diagram.md - Data model examplesintegration-diagram.md - Multi-system examplesVersion: 1.0 Last Updated: 2026-01-02 Maintained by: DeepWiki Documentation System