Generate draw.io diagrams programmatically using Python. Creates flowcharts, architecture diagrams, tree structures, network diagrams, and more. Use when the user requests a .drawio file, diagram, flowchart, or visual documentation.
100
Does it follow best practices?
Validation for skill structure
Tree diagram with auto-layout
Uses drawpyo library
0%
100%
PEP 723 shebang
100%
100%
PEP 723 script block
0%
100%
Correct drawpyo version
0%
100%
Python version constraint
0%
100%
Uses TreeDiagram class
0%
100%
NodeObject with parent
0%
80%
Calls auto_layout
0%
100%
Output path /mnt/user-data/outputs/
0%
0%
Script produces .drawio file
100%
100%
Without context: $0.3985 · 1m 25s · 21 turns · 27 in / 5,332 out tokens
With context: $0.9432 · 2m 21s · 34 turns · 5,310 in / 7,883 out tokens
Flowchart helper script and uv run usage
Uses create_flowchart.py
0%
100%
Uses uv run
0%
100%
JSON has id field
100%
100%
JSON has type field
100%
100%
JSON has label field
100%
100%
Decision nodes use yes/no branches
100%
100%
Linear steps use next field
100%
100%
CLI argument order correct
0%
100%
Output path /mnt/user-data/outputs/
0%
0%
Flowchart file produced
100%
100%
Without context: $0.8970 · 3m 20s · 37 turns · 42 in / 11,906 out tokens
With context: $0.5848 · 1m 11s · 23 turns · 3,603 in / 4,475 out tokens
Custom architecture diagram with Object and Edge styling
Uses drawpyo library
0%
100%
PEP 723 script block
0%
100%
Correct drawpyo version in deps
0%
100%
Python version constraint
0%
100%
Uses Object or object_from_library
0%
100%
Uses Edge for connections
0%
100%
Applies styling with apply_style_string
0%
100%
Style strings end with semicolons
0%
100%
Output path /mnt/user-data/outputs/
0%
0%
Script runnable with uv run
0%
100%
Diagram file produced
100%
100%
Without context: $0.2531 · 1m 4s · 13 turns · 18 in / 3,697 out tokens
With context: $0.3414 · 58s · 15 turns · 5,291 in / 3,161 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.