Install
openclaw skills install @nellyxiaolong-cmyk/drawio-to-htmlConvert drawio/diagrams.net flowchart and diagram files into self-contained HTML pages with embedded SVG rendering. Use when the user uploads or mentions a .drawio file and wants to convert it to HTML, view it in a browser, or share it as a web page. Triggers on phrases like "drawio转html", "流程图转网页",
openclaw skills install @nellyxiaolong-cmyk/drawio-to-htmlConvert drawio/diagrams.net XML files into standalone HTML pages with embedded SVG.
.drawio files (diagrams.net / draw.io native format)mxGraphModel XML structure.html files with embedded SVGGet the file path from the user or workspace context.
Execute the bundled Python script:
python3 scripts/drawio2html.py <input.drawio> [output.html]
If output.html is omitted, the script defaults to <input>.html in the same directory.
Tell the user:
| drawio Style | SVG Output |
|---|---|
rounded=1 / arcSize | Rounded rectangle (pill or soft rounded) |
rhombus | Diamond (decision nodes) |
| default | Rectangle with slight corner radius |
<diagram> element is rendered if multiple existThe conversion logic lives in scripts/drawio2html.py. It is a pure-Python script with no external dependencies beyond the standard library (xml.etree, re, sys, os).