draw architecture diagram
by @ksky521
Create professional, dark-themed SVG architecture diagrams as standalone HTML files matching a specific design system with precise color tokens, typography,...
clawhub install dark-architecture-diagramπ About This Skill
name: dark-architecture-diagram description: Create professional, dark-themed SVG architecture diagrams as standalone HTML files matching a specific design system with precise color tokens, typography, and component patterns. Use when the user asks for system architecture diagrams, infrastructure diagrams, technical diagrams showing system components, layer diagrams, or any diagram that should use the dark "cyberpunk-engineering" aesthetic with colored layer boundaries, numbered step circles, and card-based component layouts. Also use when the user says "η¨ε ¨ζ―εΎι£ζ Ό", "ζθ²ζΆζεΎ", "dark architecture", or references this diagram style.
Dark Architecture Diagram
Create standalone HTML files containing SVG architecture diagrams in a dark, technical aesthetic. The style is "cyberpunk-engineering" β dark slate backgrounds, colored layer boundaries, monospace typography, and glowing accents. Every diagram produced with this skill should look like it belongs in the same design system.
When to Use
This skill applies when creating technical architecture diagrams that need:
Core Design Philosophy
The design language communicates hierarchy through color temperature and opacity rather than size alone. Each architectural layer gets a unique hue. Cards within layers use the layer's color at low opacity for fills and full saturation for strokes. Text hierarchy is maintained through a strict 5-level grayscale system. The overall feeling should be "a well-lit control room at night" β dark but highly readable.
File Structure
Always produce a single standalone HTML file with embedded and inline SVG. No external dependencies except the Google Fonts link for JetBrains Mono. The SVG uses a viewBox for responsive scaling.
[Diagram Title]
Design Token Summary
Read references/design-tokens.md for the complete token specification. Key tokens:
| Token | Value | Usage |
|-------|-------|-------|
| Background | #020617 | Page and SVG background |
| Card Fill | #0f172a | All card/box backgrounds |
| Grid/Border | #1e293b | Subtle grid lines, card borders |
| Text L1 (title) | #f8fafc | Main titles only |
| Text L2 (heading) | #e2e8f0 | Section headings, step labels |
| Text L3 (body) | #94a3b8 | Body text, descriptions |
| Text L4 (muted) | #64748b | Secondary info, captions |
| Text L5 (ghost) | #475569 | Footnotes, de-emphasized |
Layer Color System
Each architectural layer is assigned a dedicated hue. When creating a new diagram, map your layers to these colors in order of visual priority:
| Role | Color | Hex | Typical Use |
|------|-------|-----|-------------|
| Product/Presentation | Pink | #f472b6 | Top-level user-facing layer |
| Channel/Access | Cyan | #22d3ee | Entry points, routing |
| Orchestrator/Core | Orange | #fb923c | Central coordination |
| Domain/Service | Purple | #a78bfa | Business domain modules |
| Capability/Tools | Green | #34d399 | Infrastructure capabilities |
| Memory/State | Yellow | #fbbf24 | State, caching, memory |
| Platform/Cross-cut | Rose | #fb7185 | Cross-cutting concerns |
| Safety/Security | Red | #ef4444 | Security boundaries |
| Steps/Flow | Sky Blue | #0ea5e9 | Numbered execution steps |
| Gateway | Light Blue | #38bdf8 | API gateways, auth |
Component Patterns
Read references/component-patterns.md for the full component library. Key patterns:
Layer Boundary
{emoji} {Layer Name}
{description}
Card Component
{emoji} {Title}
{description}
{metadata}
Numbered Step Circle
{N}
{Step Name}
Flow Arrows
LLM Execution Zone (Dashed Boundary)
Typography Rules
'JetBrains Mono', 'PingFang SC', monospace#f8fafc#94a3b8#64748b#475569SVG Conventions
0 0 1420 1400) for detail; the SVG scales responsively via width: 100%; height: auto#1e293b stroke at 0.5 opacityrx="12" for layer boundaries, rx="8" for cards, rx="6" for small items, rx="4" for tags/chips β neutral (#64748b), orange, cyan variantslinearGradient for special zones (orchestrator, LLM domain) β always subtle (0.02β0.15 opacity)stroke-dasharray="6,3" for LLM zones, stroke-dasharray="4,3" for placeholder/expandable areasSummary Cards (Below Diagram)
Include a grid of summary cards below the SVG for key architectural decisions:
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.card { background: #0f172a; border: 1px solid #1e293b; border-radius: 10px; padding: 18px 20px; }
Each card has a colored dot matching its layer, a title, and bullet points.
Header Pattern
Always include a header with a pulsing cyan dot and subtitle:
.header h1::before {
content: '';
width: 8px; height: 8px;
border-radius: 50%;
background: #22d3ee;
animation: pulse 2s infinite;
}
Checklist
Before finalizing any diagram, verify:
#020617, not black or dark gray#0f172a fill with colored overlay#0ea5e9 filled circles with white textrx values follow the size convention (12/8/6/4)#475569 at 10px