diagrams
Installation
SKILL.md
Diagrams
Generate diagrams from structured JSON → SVG (and optionally PNG).
Quick Start
-
Install elkjs in the target directory (if not already present):
cd <project>/docs/diagrams && npm init -y && npm install elkjs # Set "type": "module" in package.json -
Write ELK JSON files describing the diagram (see schema below)
-
Render:
# Single file node <skill-dir>/scripts/render-elk.mjs diagram.json output.svg