返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
d

drawio-generator

Generate draw.io diagrams from Mermaid, XML, or CSV code. Use this skill when the user requests any visual diagram including flowcharts, UML diagrams, ERD, architecture diagrams, mind maps, timelines, org charts, network topology, wireframes, BPMN, or any other visual representation. The skill creates a markdown link that opens the diagram in draw.io.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
807
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

drawio-generator

# Draw.io Diagram Generator Generate interactive draw.io diagrams that users can open and edit in their browser. ## Supported Diagram Types Draw.io supports virtually any diagram type: - **Standard**: Flowcharts, org charts, mind maps, timelines, Venn diagrams - **Software**: UML (class, sequence, activity, use case), ERD, architecture diagrams - **Cloud/Infrastructure**: AWS, Azure, GCP, Kubernetes, network topology - **Engineering**: Electrical circuits, digital logic, P&ID, floor plans - **Business**: BPMN, value streams, customer journeys, SWOT - **UI/UX**: Wireframes, mockups, sitemaps - **And more**: Infographics, data flows, decision trees, etc. ## Format Selection Guide | Format | Best For | |--------|----------| | **Mermaid** | Flowcharts, sequences, ERD, Gantt, state diagrams, class diagrams | | **CSV** | Hierarchical data (org charts), bulk import from spreadsheets | | **XML** | Complex layouts, precise positioning, custom styling, icons, shapes | ## How to Use ### Step 1: Determine the best format for the diagram - Use **Mermaid** for most standard diagrams (flowcharts, sequence diagrams, ERD) - Use **CSV** for hierarchical data like org charts - Use **XML** when you need precise control over positioning or custom shapes ### Step 2: Generate the diagram code Write the diagram code in the chosen format (see examples below). ### Step 3: Execute the Python script Run the script `scripts/generate_drawio_url.py` (relative to this SKILL.md file) to create the markdown link. ## Format Templates ### Mermaid ``` graph TD A[Start] --> B{Decision} B -->|Yes| C[Action] B -->|No| D[End] ``` ### XML (draw.io native) ```xml <mxGraphModel> <root> <mxCell id="0"/> <mxCell id="1" parent="0"/> <mxCell id="2" value="Box" style="rounded=1;fillColor=#d5e8d4;" vertex="1" parent="1"> <mxGeometry x="100" y="100" width="120" height="60" as="geometry"/> </mxCell> </root> </mxGraphModel> ``` ### CSV (hierarchical data) ``` # label: %name% # style: rounded=1;whiteSpace=wrap;html=1; # connect: {"from":"manager","to":"name","invert":true} # layout: auto name,manager CEO, CTO,CEO CFO,CEO ``` ## CRITICAL: XML Well-Formedness When generating draw.io XML, the output **must** be well-formed XML: - **NEVER use double hyphens (`--`) inside XML comments.** Use single hyphens or rephrase (e.g., `<!-- Order 1 to OrderItem -->` not `<!-- Order 1 --- OrderItem -->`) - Escape special characters in attribute values (`&amp;`, `&lt;`, `&gt;`, `&quot;`) ## Script Usage The script `generate_drawio_url.py` is located in the `scripts/` subdirectory relative to this SKILL.md file. Execute it with command-line arguments: ```bash python scripts/generate_drawio_url.py -t mermaid -c "graph TD\n A --> B" python scripts/generate_drawio_url.py --type xml --code "<mxGraphModel>...</mxGraphModel>" python scripts/generate_drawio_url.py -t csv -c "name,manager\nCEO,\nCTO,CEO" ``` **Arguments:** - `-t, --type`: Diagram type (required), choices: `mermaid`, `xml`, `csv` - `-c, --code`: Diagram code content (required) The script outputs a markdown link: `[点击查看图表](<URL>)` Present the markdown link directly to the user.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 drawio-generator-1776288383 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 drawio-generator-1776288383 技能

通过命令行安装

skillhub install drawio-generator-1776288383

下载

⬇ 下载 drawio-generator v1.0.0(免费)

文件大小: 3.37 KB | 发布时间: 2026-4-16 16:08

v1.0.0 最新 2026-4-16 16:08
- Initial release of drawio-generator.
- Generate draw.io diagrams from Mermaid, XML, or CSV code.
- Supports a wide range of diagrams: flowcharts, UML, ERD, architecture, org charts, network topology, wireframes, and more.
- Provides guidance on selecting the appropriate format (Mermaid, XML, CSV) for different diagram types.
- Includes usage instructions and format templates.
- Outputs a markdown link that opens the diagram directly in draw.io for editing.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部