In the Skill's Own Terms
Converts an English description or Mermaid source into a diagram triplet: the Mermaid source (.mmd), an editable Excalidraw file (.excalidraw) that opens at excalidraw.com, and rendered SVG + PNG outputs. Rendering is fully offline via a local loopback server — uses the Aside browser when running, otherwise gstack's own headless browser.
Flowcharts (graph LR/TD) and sequence diagrams produce fully editable Excalidraw scenes with real boxes, arrows, and text. Other Mermaid diagram types (state, class, gantt) render to SVG/PNG and export as a single image element in the Excalidraw file — movable and annotatable but not element-editable. The Mermaid source remains the single source of truth for iterating.
What it produces
- A Mermaid source file (.mmd) that serves as the LLM-friendly interchange format and single source of truth.
How It Works
- 01Author Mermaid Source
Write Mermaid matching the user's request. Prefer graph LR for pipelines/flows and graph TD for hierarchies.
- 02Stage the Render Bundle Once per Session
Stage diagram-render.html in gstack's render staging directory under ${TMPDIR:-/tmp}/gstack-render, content-addressed by bundle SHA.
- 03Render the Triplet with One Command
Write the .mmd file, then run gstack-render with the staged bundle.
- 04Show and Deliver
Read the PNG inline so the user sees the diagram. List the triplet paths and note that the .excalidraw file opens at excalidraw.com for editing.