drawio-diagrams

Create draw.io diagrams from structured data with Python scripts.

Updated May 19, 2026
One-click install
npx skills add https://github.com/monforje/.opencode --skill drawio-diagrams-monforje
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drawio-diagrams
Source: https://github.com/monforje/.opencode/tree/main/skills/drawio-diagrams
Command: npx skills add https://github.com/monforje/.opencode --skill drawio-diagrams-monforje

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires drawio, graphviz, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of creating and visualizing professional diagrams like flowcharts, architecture diagrams, entity-relationship diagrams (ERD), and more using draw.io.

Core Features & Use Cases

  • Diagram Generation: Generate diagrams including flowcharts, architecture, ERD, UML, sequence diagrams, network topology, ML model figures, and mind maps.
  • draw.io Integration: Leverages draw.io's native .drawio XML format and allows exporting to various formats like PNG, SVG, PDF, and JPG.
  • AI Enhancements: Combines drawio-skill's scripts for shape search, AI logos, code visualization, and auto-layout with MCP inline rendering.
  • Use Case: Create a high-quality flowchart for a project workflow by utilizing this Skill to automatically generate the diagram from structured data.

Quick Start

Generate a flowchart for a project workflow using the drawio-diagrams skill with the provided JSON data file 'project_flowchart.json'.

Frequently Asked Questions about drawio-diagrams

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate an ER diagram or flowchart from structured data?

To generate a flowchart or ER diagram from structured data, this Skill uses Python scripts to automate diagram creation and manipulation. It processes structured inputs to build professional diagrams natively within the draw.io XML format.

Does draw.io diagram generation require installing specific command-line tools?

Yes, draw.io diagram generation requires the draw.io CLI for exporting files and the Graphviz dependency for auto-layout functionality. These tools must be installed in your environment to enable automated export and layout features.

Can I export draw.io XML diagrams to SVG or PNG format?

You can export draw.io XML diagrams to SVG, PNG, PDF, and JPG formats. The export process leverages the draw.io CLI to convert native diagram files into standard image and document formats for external visualization.

What is the best way to visualize project workflows and code architecture?

The best way to visualize project workflows and code architecture is using automated diagramming with Graphviz auto-layout. This approach combines shape search and code visualization to generate architecture, UML, and sequence diagrams.

How do I customize UML and network topology diagrams with auto-layout?

You customize UML and network topology diagrams by utilizing the Skill's built-in Python scripts and Graphviz auto-layout. This provides a range of styles, shapes, and AI logos for diagram customization and professional visualization.

Why does draw.io auto-layout fail to render complex ML model figures?

Auto-layout rendering issues for complex ML model figures or mind maps typically occur if the Graphviz dependency or draw.io CLI is improperly configured. Correct environment setup is required to process advanced visualization workflows.