← 返回 Skills 市场
qizha

Drawio Generator.Bak

作者 qizha · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
125
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install drawio-generator-bak
功能描述
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, a...
使用说明 (SKILL.md)

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)

\x3CmxGraphModel>
  \x3Croot>
    \x3CmxCell id="0"/>
    \x3CmxCell id="1" parent="0"/>
    \x3CmxCell id="2" value="Box" style="rounded=1;fillColor=#d5e8d4;" vertex="1" parent="1">
      \x3CmxGeometry x="100" y="100" width="120" height="60" as="geometry"/>
    \x3C/mxCell>
  \x3C/root>
\x3C/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., \x3C!-- Order 1 to OrderItem --> not \x3C!-- Order 1 --- OrderItem -->)
  • Escape special characters in attribute values (&, <, >, ")

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:

python scripts/generate_drawio_url.py -t mermaid -c "graph TD\
    A --> B"
python scripts/generate_drawio_url.py --type xml --code "\x3CmxGraphModel>...\x3C/mxGraphModel>"
python scripts/generate_drawio_url.py -t csv -c "name,manager\
CEO,\
CTO,CEO"

Arguments:

  • -t, --type: Diagram type (required), choices: mermaid, xml, csv
  • -c, --code: Diagram code content (required)

The script outputs a markdown link: [点击查看图表](\x3CURL>)

Present the markdown link directly to the user.

安全使用建议
This skill appears to do what it says: it takes diagram text, compresses and encodes it, and builds a URL that opens in the official diagrams.net web app. Before installing, consider: (1) source/origin is unknown and _meta.json metadata differs from registry metadata — if provenance matters, verify the author. (2) Do not include secrets or private credentials inside diagram text: the generated URL encodes your content and opening the link in a browser will send that data to diagrams.net. (3) Review and run the small Python script locally (it’s short and readable) rather than running untrusted binaries. If you need stronger assurance, ask the publisher for a homepage or signed release, or reimplement the URL-generation logic from the provided script yourself.
功能分析
Type: OpenClaw Skill Name: drawio-generator-bak Version: 1.0.0 The skill is a legitimate utility for generating draw.io diagram URLs from Mermaid, XML, or CSV code. The Python script (scripts/generate_drawio_url.py) performs standard compression and encoding to construct a valid URL for app.diagrams.net, and the instructions in SKILL.md are consistent with this purpose without any signs of malicious intent or prompt injection.
能力评估
Purpose & Capability
The skill's name, description, SKILL.md, and included script all align: they take Mermaid/XML/CSV and produce a draw.io URL. Minor metadata mismatches exist (registry owner/slug vs. _meta.json ownerId/slug and missing homepage/source), which are administrative/integrity concerns but do not change the technical behavior.
Instruction Scope
SKILL.md limits runtime actions to asking the agent/user to run the provided Python script and present the resulting markdown link. It does not instruct reading unrelated files, environment variables, or sending data to other endpoints beyond the draw.io web app.
Install Mechanism
There is no install spec (instruction-only plus a small local script). No downloads or package installs are requested and nothing is written to disk by the skill itself beyond what the user runs locally.
Credentials
The skill requests no environment variables or credentials, and the script does not attempt to read secrets or external configs.
Persistence & Privilege
always is false and the skill does not request persistent presence or modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install drawio-generator-bak
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /drawio-generator-bak 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of drawio-generator skill. - Generate draw.io diagrams from Mermaid, XML, or CSV code. - Supports a wide range of diagram types including flowcharts, UML, ERD, org charts, network topology, wireframes, and more. - Detailed format selection guide and usage instructions provided. - Includes templates and guidelines for each supported format. - Outputs a markdown link to open and optionally edit the generated diagram in draw.io.
元数据
Slug drawio-generator-bak
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Drawio Generator.Bak 是什么?

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, a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 125 次。

如何安装 Drawio Generator.Bak?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install drawio-generator-bak」即可一键安装,无需额外配置。

Drawio Generator.Bak 是免费的吗?

是的,Drawio Generator.Bak 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Drawio Generator.Bak 支持哪些平台?

Drawio Generator.Bak 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Drawio Generator.Bak?

由 qizha(@qizha)开发并维护,当前版本 v1.0.0。

💬 留言讨论