What problem does it solve?
The Skill simplifies the process of creating and managing draw.io diagrams by enabling diagram generation through code, eliminating the need for manual creation or editing of draw.io files.
Core Features & Use Cases
- Diagram Generation: Automatically create diagrams in draw.io native format from code.
- File Export: Export diagrams in various formats (PNG, SVG, PDF) with embedded diagram XML for easy editing.
- Use Case: Ideal for documenting processes, software architecture, and flowcharts in code, reducing manual efforts and ensuring consistency across all documents.
Quick Start
Use the drawio skill to generate a diagram of a simple process, saved as 'process_flow.drawio', with the following XML:
<mxGraphModel>
<root>
<mxCell id="0"/>
<mxCell id="1" value="Start" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="0"/>
<mxCell id="2" value="Process 1" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="0"/>
<mxCell id="3" value="End" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="0"/>
<mxCell id="4" value="" style="edgeStyle=orthogonalEdgeStyle;html=1;" edge="1" source="1" target="2" parent="0"/>
<mxCell id="5" value="" style="edgeStyle=orthogonalEdgeStyle;html=1;" edge="1" source="2" target="3" parent="0"/>
</root>
</mxGraphModel>