skills/modelscope.cn/stack-diagram

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.py and share.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

  1. Settle the content (nodes, groups, edges)
  2. Fetch icons — scripts/fetch_icons.py
  3. Plan coordinates — read references/geometry.md
  4. Build the HTML from assets/template.html — scripts/build.py
  5. Render a PNG and look at it before delivering
  6. Deliver in the requested format(s)
  7. Optionally share it to the public gallery
Installs
1
First Seen
14 days ago