Token导航 LogoToken导航

Agent Skill · 运维和基础设施

draw-io(绘制 io)

draw-io 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

draw-io 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描已通过,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 1,667。

总安装 442周安装 19GitHub Stars 27下载 155核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:draw-io(绘制 io)
来源仓库:https://github.com/ekusiadadus/draw-mcp
仓库路径:skills/draw-io
安装命令:
npx skills add https://github.com/ekusiadadus/draw-mcp --skill draw-io
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/ekusiadadus/draw-mcp --skill draw-io

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

draw-io 生成符合 draw.io XML 规范的图表文件,确保跨平台渲染一致性。适用于架构图、流程图和数据结构可视化场景。提供 23 项验证规则保证输出质量,支持 PNG 导出。使用前需了解 mxfile 结构和 diagram 元素组织方式。

draw-io 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/draw-io

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ekusiadadus/draw-mcp --skill draw-io;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

draw-io 怎么安装?

在终端执行 npx skills add https://github.com/ekusiadadus/draw-mcp --skill draw-io。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

draw-io 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

draw-io 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

draw-io 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

draw-io 用的人多吗?

公开数据是累计安装 442 次,近一周安装 19 次,下载 155 次,GitHub 27 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

draw-io 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
draw-io

绘制 io · 本页

44227调用外部服务MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

draw.io XML Generation Specification v2.0

1. Scope

This specification defines the rules for AI-generated draw.io XML files. It ensures consistent, high-quality output that renders correctly in draw.io desktop, web, and PNG export. Rules are categorized as:

  • MUST (Severity: ERROR) — Violations break rendering or structure
  • SHOULD (Severity: WARNING) — Violations degrade quality
  • INFORMATIONAL (Severity: INFO) — Suggestions for best practices

All rules are enforced by the draw-mcp-validate CLI tool with 23 validation rules.

2. Structural Rules (MUST)

2.1 File Hierarchy

mxfile > diagram > mxGraphModel > root > mxCell...

Every file MUST follow this hierarchy. The mxfile element is the root.

2.2 Root Cells

Two root cells MUST always be present:

<mxCell id="0"/>
<mxCell id="1" parent="0"/>

Cell id="0" is the invisible root. Cell id="1" is the default layer with parent="0".

2.3 Parent References

Every mxCell with a parent attribute MUST reference an existing cell id. Orphaned references cause rendering failures.

2.4 Vertex/Edge Exclusivity

A cell MUST NOT have both vertex="1" and edge="1". It is either a shape or a connection, never both.

2.5 Edge Geometry

Edge mxGeometry MUST have relative="1":

<mxCell id="e1" edge="1" parent="1" source="a" target="b"
  style="edgeStyle=orthogonalEdgeStyle;">
  <mxGeometry relative="1" as="geometry"/>
</mxCell>

2.6 Unique IDs

All mxCell elements MUST have unique id attributes.

2.7 XML Well-Formedness

  • MUST NOT use -- inside XML comments (illegal per XML spec)
  • MUST escape special characters in attribute values: &, <, >, "

3. Style String Rules (MUST)

3.1 Format

Style strings use key=value; pairs with a trailing semicolon:

style="rounded=1;whiteSpace=wrap;html=1;fontFamily=Noto Sans JP;fontSize=18;"

3.2 Boolean Values

Boolean style keys MUST use 0 or 1, never true or false:

<!-- CORRECT -->
style="rounded=1;html=1;"

<!-- WRONG -->
style="rounded=true;html=false;"

3.3 fontFamily on All Text

Every cell with a value attribute MUST include fontFamily=FontName; in its style:

<mxCell id="a" value="Label"
  style="rounded=1;fontFamily=Noto Sans JP;fontSize=18;"
  vertex="1" parent="1"/>

3.4 Font Size

Minimum font size is 14px (MUST). Recommended size is 18px (SHOULD).

3.5 Known Keys

Use only valid draw.io style keys. Common typos (e.g., storkeColor for strokeColor) are detected and flagged.

4. Layout Rules (SHOULD)

4.1 Grid Alignment

Align node positions to a 10px grid (multiples of 10).

4.2 Node Spacing

  • Minimum spacing: 60px between nodes
  • Recommended: 200px horizontal, 120px vertical

4.3 Edge Final Segment

The final straight segment of an edge MUST be at least 20px for arrowheads to render cleanly.

5. Edge Routing (SHOULD)

5.1 Z-Order

Edges SHOULD be declared before vertices in XML for correct Z-order (arrows behind shapes):

<root>
  <mxCell id="0"/><mxCell id="1" parent="0"/>
  <!-- EDGES FIRST -->
  <mxCell id="e1" edge="1" .../>
  <!-- VERTICES AFTER -->
  <mxCell id="a" vertex="1" .../>
</root>

5.2 Orthogonal Style

Use edgeStyle=orthogonalEdgeStyle for right-angle connectors. Add rounded=1 for cleaner bends.

5.3 jettySize

Use jettySize=auto for better port spacing on orthogonal edges.

5.4 jumpStyle

For crossing edges, use jumpStyle=arc or jumpStyle=gap to show crossings clearly.

5.5 Waypoints

Add explicit waypoints when edges would overlap:

<mxGeometry relative="1" as="geometry">
  <Array as="points">
    <mxPoint x="300" y="150"/>
  </Array>
</mxGeometry>

5.6 Connection Points

Use exitX/exitY and entryX/entryY (values 0-1) to control which side of a node an edge connects to. Spread connections across different sides to prevent overlap.

6. Containers (SHOULD)

6.1 Group Container

Invisible grouping with no visual border:

<mxCell id="grp1" style="group;" vertex="1" parent="1">
  <mxGeometry x="100" y="100" width="300" height="200" as="geometry"/>
</mxCell>

6.2 Swimlane Container

Visible title bar, ideal for service boundaries:

<mxCell id="svc1" value="User Service"
  style="swimlane;startSize=30;fillColor=#dae8fc;strokeColor=#6c8ebf;fontFamily=Noto Sans JP;fontSize=16;"
  vertex="1" parent="1">
  <mxGeometry x="100" y="100" width="300" height="200" as="geometry"/>
</mxCell>

Swimlanes SHOULD specify startSize for the title bar height.

6.3 Custom Container

Any shape acting as a container:

style="rounded=1;container=1;pointerEvents=0;"

Containers (except swimlanes) SHOULD include pointerEvents=0; to prevent connection capture.

6.4 Children Coordinates

Children MUST use relative coordinates within their parent container:

<!-- Child at (20, 40) relative to container origin -->
<mxCell id="child" vertex="1" parent="svc1">
  <mxGeometry x="20" y="40" width="120" height="60" as="geometry"/>
</mxCell>

Children SHOULD not extend beyond parent container bounds.

6.5 Collapsible

Consider adding collapsible=1 for interactive containers (INFO).

7. Layers (SUPPORTED)

Layers are additional cells with parent="0" (like cell id="1"):

<mxCell id="0"/>
<mxCell id="1" parent="0"/>                    <!-- Default layer -->
<mxCell id="layer-bg" value="Background" parent="0"/>  <!-- Custom layer -->
<mxCell id="layer-fg" value="Foreground" parent="0"/>  <!-- Custom layer -->

Assign elements to layers via parent="layerId". Layer cells do not require fontFamily.

8. Export Modes (INFORMATIONAL)

8.1 Transparent Background

Set page="0" on mxGraphModel for transparent background in PNG export.

8.2 PNG Verification

Always verify diagrams with PNG export:

drawio -x -f png -s 2 -t -o output.png input.drawio

8.3 Embed Diagram

For portable files, consider type="embed" on mxfile.

9. Japanese Text (SHOULD)

  • Allocate 30-40px width per Japanese character
  • Use Noto Sans JP as default font for cross-platform compatibility
  • Set defaultFontFamily="Noto Sans JP" on mxGraphModel

10. Validation

CLI Usage

# Validate a file (text output, warning+ severity)
draw-mcp-validate diagram.drawio

# JSON output
draw-mcp-validate diagram.drawio --format json

# Errors only
draw-mcp-validate diagram.drawio --severity error

# Multiple files
draw-mcp-validate *.drawio

Rule Summary (23 rules)

ModuleRulesSeverity
structureroot-cells, hierarchy, vertex-edge-exclusivity, parent-reference, unique-idsERROR
styletrailing-semicolon (W), boolean-values (E), typo (W), font-family (E)Mixed
edgez-order (W), relative (E), arrowhead-segment (W), node-spacing (W)Mixed
containerpointer-events (W), children-bounds (W), swimlane-start-size (W), collapsible (I)Mixed
textjapanese-width (W), html-escape (W), font-size (E/W)Mixed
exportpage-setting (W), embed-diagram (I)Mixed

Quick Decision Guide

NeedApproach
Custom styling, precise positioning, Japanese textXML (this skill)
Simple flowchart, sequence, ER diagramMermaid.js via MCP
Inline preview in chatMCP App Server (mcp.draw.io/mcp)

Supporting Files

平台分布

Claude Code

29.26%
按下载量换算45

OpenCode

23.87%
按下载量换算37

Gemini CLI

17.58%
按下载量换算27

Cursor

10.82%
按下载量换算17

Antigravity

8.39%
按下载量换算13

windsurf

3.38%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills