stack-diagram
Installation
SKILL.md
stack-diagram
Produces engineering-drawing-style architecture diagrams: real logos on white tiles, labeled group boxes (like cloud-vendor VPC diagrams), orthogonal arrows with monospace labels, on a cool graph-paper background. One self-contained HTML file is the source of truth; PNG / TSX / artifact are derived from it.
Requirements
- Python 3.9+ (standard library only for
fetch_icons.py,build.pyandshare.py) - Network access to the icon sources (svgl.app, raw.githubusercontent.com, cdn.jsdelivr.net, aws.amazon.com and d1.awsstatic.com for AWS icons, services.google.com for Google Cloud icons, learn.microsoft.com and arch-center.azureedge.net for Azure icons, plus the brand's own site or repo for
name=URL) when fetching icons - Playwright + Chromium for
render_png.py:pip install playwright && python3 -m playwright install --with-deps chromium
Workflow
- Settle the content (nodes, groups, edges)
- Fetch icons —
scripts/fetch_icons.py - Plan coordinates — read
references/geometry.md - Build the HTML from
assets/template.html—scripts/build.py - Render a PNG and look at it before delivering
- Deliver in the requested format(s)
- Optionally share it to the public gallery