Architecture Diagram Skill
Generate professional, dark-themed technical architecture diagrams as standalone HTML files with inline SVG graphics. No external tools, no API keys, no rendering libraries — just write the HTML file and open it in a browser.
Scope
Best suited for:
- Software system architecture (frontend / backend / database layers)
- Cloud infrastructure (VPC, regions, subnets, managed services)
- Microservice / service-mesh topology
- Database + API map, deployment diagrams
- Anything with a tech-infra subject that fits a dark, grid-backed aesthetic
Look elsewhere first for:
- Physics, chemistry, math, biology, or other scientific subjects
- Physical objects (vehicles, hardware, anatomy, cross-sections)
- Floor plans, narrative journeys, educational / textbook-style visuals
- Hand-drawn whiteboard sketches (consider
excalidraw)
- Animated explainers (consider an animation skill)
If a more specialized skill is available for the subject, prefer that. If none fits, this skill can also serve as a general SVG diagram fallback — the output will just carry the dark tech aesthetic described below.
Based on Cocoon AI's architecture-diagram-generator (MIT).
Workflow
- User describes their system architecture (components, connections, technologies)
- Generate the HTML file following the design system below
- Save with
write_file to a .html file (e.g. ~/architecture-diagram.html)
- User opens in any browser — works offline, no dependencies
Output Location
Save diagrams to a user-specified path, or default to the current working directory:
./[project-name]-architecture.html
Preview
After saving, suggest the user open it:
# macOS
open ./my-architecture.html
# Linux
xdg-open ./my-architecture.html
Design System & Visual Language
Color Palette (Semantic Mapping)
Use specific rgba fills and hex strokes to categorize components:
| Component Type |
Fill (rgba) |
Stroke (Hex) |
| Frontend |
rgba(8, 51, 68, 0.4) |
#22d3ee (cyan-400) |
| Backend |
rgba(6, 78, 59, 0.4) |
#34d399 (emerald-400) |
| Database |
rgba(76, 29, 149, 0.4) |
#a78bfa (violet-400) |
| AWS/Cloud |
rgba(120, 53, 15, 0.3) |
#fbbf24 (amber-400) |
| Security |
rgba(136, 19, 55, 0.4) |
#fb7185 (rose-400) |
| Message Bus |
rgba(251, 146, 60, 0.3) |
#fb923c (orange-400) |
| External |
rgba(30, 41, 59, 0.5) |
#94a3b8 (slate-400) |
Typography & Background
- Font: JetBrains Mono (Monospace), loaded from Google Fonts
- Sizes: 12px (Names), 9px (Sublabels), 8px (Annotations), 7px (Tiny labels)
- Background: Slate-950 (
#020617) with a subtle 40px grid pattern
<!-- Background Grid Pattern -->
<pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">
<path d="M 40 0 L 0 0 0 40" fill="none" stroke="#1e293b" stroke-width="0.5"/>
</pattern>
Technical Implementation Details
Component Rendering
Components are rounded rectangles (rx="6") with 1.5px strokes. To prevent arrows from showing through semi-transparent fills, use a double-rect masking technique:
- Draw an opaque background rect (
#0f172a)
- Draw the semi-transparent styled rect on top
Connection Rules
- Z-Order: Draw arrows early in the SVG (after the grid) so they render behind component boxes
- Arrowheads: Defined via SVG markers
- Security Flows: Use dashed lines in rose color (
#fb7185)
- Boundaries:
- Security Groups: Dashed (
4,4), rose color
- Regions: Large dashed (
8,4), amber color, rx="12"
Spacing & Layout Logic
- Standard Height: 60px (Services); 80-120px (Large components)
- Vertical Gap: Minimum 40px between components
- Message Buses: Must be placed in the gap between services, not overlapping them
- Legend Placement: CRITICAL. Must be placed outside all boundary boxes. Calculate the lowest Y-coordinate of all boundaries and place the legend at least 20px below it.
Document Structure
The generated HTML file follows a four-part layout:
- Header: Title with a pulsing dot indicator and subtitle
- Main SVG: The diagram contained within a rounded border card
- Summary Cards: A grid of three cards below the diagram for high-level details
- Footer: Minimal metadata
Info Card Pattern
<div class="card">
<div class="card-header">
<div class="card-dot cyan"></div>
<h3>Title</h3>
</div>
<ul>
<li>• Item one</li>
<li>• Item two</li>
</ul>
</div>
Output Requirements
- Single File: One self-contained
.html file
- No External Dependencies: All CSS and SVG must be inline (except Google Fonts)
- No JavaScript: Use pure CSS for any animations (like pulsing dots)
- Compatibility: Must render correctly in any modern web browser
Template Reference
Load the full HTML template for the exact structure, CSS, and SVG component examples:
skill_view(name="architecture-diagram", file_path="templates/template.html")
The template contains working examples of every component type (frontend, backend, database, cloud, security), arrow styles (standard, dashed, curved), security groups, region boundaries, and the legend — use it as your structural reference when generating diagrams.
1---2name: argentos-architecture-diagram3description: Generate dark-themed SVG diagrams of software systems and cloud infrastructure as standalone HTML files with inline SVG graphics. Semantic component colors (cyan=frontend, emerald=backend, violet=database, amber=cloud/AWS, rose=security, orange=message bus), JetBrains Mono font, grid background. Best suited for software architecture, cloud/VPC topology, microservice maps, service-mesh diagrams, database + API layer diagrams, security groups, message buses — anything that fits a tech-infra deck with a dark aesthetic. If a more specialized diagramming skill exists for the subject (scientific, educational, hand-drawn, animated, etc.), prefer that — otherwise this skill can also serve as a general-purpose SVG diagram fallback. Based on Cocoon AI's architecture-diagram-generator (MIT).4license: MIT5---67# Architecture Diagram Skill89Generate professional, dark-themed technical architecture diagrams as standalone HTML files with inline SVG graphics. No external tools, no API keys, no rendering libraries — just write the HTML file and open it in a browser.1011## Scope1213**Best suited for:**1415- Software system architecture (frontend / backend / database layers)16- Cloud infrastructure (VPC, regions, subnets, managed services)17- Microservice / service-mesh topology18- Database + API map, deployment diagrams19- Anything with a tech-infra subject that fits a dark, grid-backed aesthetic2021**Look elsewhere first for:**2223- Physics, chemistry, math, biology, or other scientific subjects24- Physical objects (vehicles, hardware, anatomy, cross-sections)25- Floor plans, narrative journeys, educational / textbook-style visuals26- Hand-drawn whiteboard sketches (consider `excalidraw`)27- Animated explainers (consider an animation skill)2829If a more specialized skill is available for the subject, prefer that. If none fits, this skill can also serve as a general SVG diagram fallback — the output will just carry the dark tech aesthetic described below.3031Based on [Cocoon AI's architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) (MIT).3233## Workflow34351. User describes their system architecture (components, connections, technologies)362. Generate the HTML file following the design system below373. Save with `write_file` to a `.html` file (e.g. `~/architecture-diagram.html`)384. User opens in any browser — works offline, no dependencies3940### Output Location4142Save diagrams to a user-specified path, or default to the current working directory:4344```45./[project-name]-architecture.html46```4748### Preview4950After saving, suggest the user open it:5152```bash53# macOS54open ./my-architecture.html55# Linux56xdg-open ./my-architecture.html57```5859## Design System & Visual Language6061### Color Palette (Semantic Mapping)6263Use specific `rgba` fills and hex strokes to categorize components:6465| Component Type | Fill (rgba) | Stroke (Hex) |66| :-------------- | :------------------------ | :---------------------- |67| **Frontend** | `rgba(8, 51, 68, 0.4)` | `#22d3ee` (cyan-400) |68| **Backend** | `rgba(6, 78, 59, 0.4)` | `#34d399` (emerald-400) |69| **Database** | `rgba(76, 29, 149, 0.4)` | `#a78bfa` (violet-400) |70| **AWS/Cloud** | `rgba(120, 53, 15, 0.3)` | `#fbbf24` (amber-400) |71| **Security** | `rgba(136, 19, 55, 0.4)` | `#fb7185` (rose-400) |72| **Message Bus** | `rgba(251, 146, 60, 0.3)` | `#fb923c` (orange-400) |73| **External** | `rgba(30, 41, 59, 0.5)` | `#94a3b8` (slate-400) |7475### Typography & Background7677- **Font:** JetBrains Mono (Monospace), loaded from Google Fonts78- **Sizes:** 12px (Names), 9px (Sublabels), 8px (Annotations), 7px (Tiny labels)79- **Background:** Slate-950 (`#020617`) with a subtle 40px grid pattern8081```svg82<!-- Background Grid Pattern -->83<pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">84 <path d="M 40 0 L 0 0 0 40" fill="none" stroke="#1e293b" stroke-width="0.5"/>85</pattern>86```8788## Technical Implementation Details8990### Component Rendering9192Components are rounded rectangles (`rx="6"`) with 1.5px strokes. To prevent arrows from showing through semi-transparent fills, use a **double-rect masking technique**:93941. Draw an opaque background rect (`#0f172a`)952. Draw the semi-transparent styled rect on top9697### Connection Rules9899- **Z-Order:** Draw arrows _early_ in the SVG (after the grid) so they render behind component boxes100- **Arrowheads:** Defined via SVG markers101- **Security Flows:** Use dashed lines in rose color (`#fb7185`)102- **Boundaries:**103 - _Security Groups:_ Dashed (`4,4`), rose color104 - _Regions:_ Large dashed (`8,4`), amber color, `rx="12"`105106### Spacing & Layout Logic107108- **Standard Height:** 60px (Services); 80-120px (Large components)109- **Vertical Gap:** Minimum 40px between components110- **Message Buses:** Must be placed _in the gap_ between services, not overlapping them111- **Legend Placement:** **CRITICAL.** Must be placed outside all boundary boxes. Calculate the lowest Y-coordinate of all boundaries and place the legend at least 20px below it.112113## Document Structure114115The generated HTML file follows a four-part layout:1161171. **Header:** Title with a pulsing dot indicator and subtitle1182. **Main SVG:** The diagram contained within a rounded border card1193. **Summary Cards:** A grid of three cards below the diagram for high-level details1204. **Footer:** Minimal metadata121122### Info Card Pattern123124```html125<div class="card">126 <div class="card-header">127 <div class="card-dot cyan"></div>128 <h3>Title</h3>129 </div>130 <ul>131 <li>• Item one</li>132 <li>• Item two</li>133 </ul>134</div>135```136137## Output Requirements138139- **Single File:** One self-contained `.html` file140- **No External Dependencies:** All CSS and SVG must be inline (except Google Fonts)141- **No JavaScript:** Use pure CSS for any animations (like pulsing dots)142- **Compatibility:** Must render correctly in any modern web browser143144## Template Reference145146Load the full HTML template for the exact structure, CSS, and SVG component examples:147148```149skill_view(name="architecture-diagram", file_path="templates/template.html")150```151152The template contains working examples of every component type (frontend, backend, database, cloud, security), arrow styles (standard, dashed, curved), security groups, region boundaries, and the legend — use it as your structural reference when generating diagrams.