Renders a CARTO Workflow JSON as a Unicode box-art DAG diagram in the terminal
Display a CARTO Workflow as a Unicode DAG diagram directly in the terminal. Useful for:
Run once to install the dependency (@hpcc-js/wasm-graphviz):
bash .claude/skills/render-workflow-diagram/setup.sh
Render any workflow JSON file:
node .claude/skills/render-workflow-diagram/render-workflow.mjs <workflow.json>
Or pipe from stdin:
cat workflow.json | node .claude/skills/render-workflow-diagram/render-workflow.mjs
The script outputs plain text to stdout. Since the Bash tool result is not visible to the user, you must copy the output and present it inside a fenced code block in your response:
```
<paste the script output here>
```
This preserves the Unicode box-drawing alignment in the terminal.
@hpcc-js/wasm-graphviz to compute a Sugiyama/layered layout via the dot engine Commercial Hotspot Analysis
───────────────────────────
┌──────────────────┐ ┌──────────────────┐
│ Read Table │ │ Read Table │
│ (readtable) │ │ (readtable) │
└────────┬─────────┘ └────────┬─────────┘
│ │
▼ ▼
┌──────────────────┐ ┌──────────────────┐
│ Spatial Filter │────▶│ Enrich │
│ (spatialfilter) │ │ (enrich) │
└────────┬─────────┘ └────────┬─────────┘
│ │
▼ ▼
┌──────────────────────────────┐
│ Group By │
│ (groupby) │
└──────────────────────────────┘