← 返回 Skills 市场
yyq2024

Draw.io Skill

作者 yyq2024 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
285
总下载
0
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install drawio-skill
功能描述
Create and edit draw.io diagrams through the configured drawio MCP server, including flowcharts, architecture diagrams, ML model diagrams, Chinese labels, an...
使用说明 (SKILL.md)

Draw.io Skill

Use this skill for all draw.io and diagrams.net work. This skill wraps the configured drawio MCP server; it does not replace the server.

Required workflow

  1. Start the draw.io session first.
  • Call start_session before creating a new diagram or before inspecting or editing a diagram in a fresh session.
  1. Create new diagrams from complete XML.
  • Use create_new_diagram with a full mxGraphModel.
  • Keep the diagram within a single viewport when practical.
  1. Read before editing.
  • Always call get_diagram before edit_diagram.
  • Do not guess cell IDs.
  • Preserve user changes already present in the live session.
  1. Export deliverables.
  • Export .drawio for editable source.
  • Export .svg when the user needs a shareable artifact or when the diagram uses animated connectors.
  1. Report outputs clearly.
  • Tell the user which files were exported and where they were written.

Export naming convention

  • Write exports to the current workspace unless the user specifies a path.
  • Derive a short kebab-case basename from the main topic when possible, such as user-login-flow, payment-architecture, or event-pipeline.
  • If the topic is unclear, use diagram.
  • For Chinese-language outputs, prefer an ASCII basename with a -zh suffix, such as order-flow-zh.
  • For architecture diagrams, prefer -architecture, -topology, or -flow suffixes when they improve clarity.
  • For machine-learning diagrams, prefer model-aware basenames such as lstm-architecture, transformer-blocks, or cnn-pipeline.
  • When exporting both editable and shareable artifacts, keep the same basename for both, such as diagram.drawio and diagram.svg.
  • Avoid spaces and non-ASCII characters in filenames unless the user explicitly requests them.

Language and labeling rules

  • If the request is primarily in Simplified Chinese, reply in Simplified Chinese.
  • If the user wants Chinese labels, legends, or summaries, keep the diagram wording in Simplified Chinese.
  • Keep standard abbreviations and proper nouns in their common form, such as API, Kafka, Redis, Kubernetes, LSTM, CNN, and Transformer.
  • Keep node text short enough to fit inside shapes.

General diagram rules

  • Prefer clear left-to-right or top-to-bottom flow.
  • Use explicit edge routing and waypoints when edges would otherwise overlap.
  • Use titles, legends, and note boxes sparingly.
  • Use color intentionally to separate data flow, control flow, or state.

Architecture-specific rules

  • Identify the major layers first, such as clients, edge, services, data, and external systems.
  • Draw boundaries for environments or trust zones when relevant, such as browser, VPC, cluster, region, or third-party systems.
  • Keep arrows directional and semantically consistent.
  • Label protocols, topics, or data contracts only when they matter to the reader.
  • Use containers for service groups, domains, or infrastructure groups instead of loose boxes.

ML-diagram rules

  • Show the main flow clearly from input to output.
  • Use repeated blocks, grouped containers, and stage labels for model structure.
  • Label tensor shape, sequence length, channel count, or embedding size only when it helps understanding.
  • Use consistent color semantics for inputs, hidden states, attention paths, residual paths, and outputs.
  • For recurrent or temporal models, make state flow visually distinct from data flow.
  • For LSTM and RNN diagrams, separate cell state and hidden state.
  • For Transformer diagrams, distinguish embeddings, attention, feed-forward blocks, residual paths, and normalization.
  • For CNN diagrams, emphasize feature-map progression, pooling, skip paths, and classifier head.

Animated connectors

When the user asks for animated connectors, flowing lines, or moving dashed lines:

  • Add edge styling such as dashed=1;dashPattern=8 4;flowAnimation=1;.
  • Keep arrowheads explicit with endArrow=classic unless the requested style suggests otherwise.
  • Export to .svg because the animation is preserved there.

Setup and recovery

This skill expects the drawio MCP server to already be configured and available.

  • If the server is unavailable, tell the user that the drawio MCP connection needs to be configured or reconnected before continuing.
  • After the connection is restored, restart the Codex session or reload the IDE window if the tools still do not appear.

Good triggers

  • "Create a system diagram in draw.io"
  • "Create a Chinese-labeled draw.io diagram"
  • "Edit this flowchart"
  • "Export the current diagram as draw.io and svg"
  • "Create a diagram with animated connectors"
  • "Turn this process into a draw.io diagram"
  • "Create a cloud architecture diagram"
  • "Map a deployment topology"
  • "Draw a business process flowchart"
  • "Create an animated LSTM diagram"
  • "Draw a Transformer architecture"
  • "Create a CNN block diagram"
  • "Update the existing draw.io layout and keep the same structure"
  • "Generate a box-and-arrow diagram for this workflow"

Limitations

  • This skill depends on a working drawio MCP server.
  • The editing workflow operates on the live draw.io session state exposed by the MCP tools.
  • This skill does not bundle or install the MCP server by itself.
安全使用建议
This skill appears coherent and self-contained, but before installing or using it: 1) ensure you already have or will configure a trusted drawio MCP server — the skill depends on that server and the README suggests installing @next-ai-drawio/mcp-server via npx (verify the package and source before running npx). 2) Be aware exported files are written to the current workspace by default—confirm your workspace path and permissions. 3) allow_implicit_invocation is enabled in the agent config (normal), so the agent may call the MCP tool autonomously; if you have strict policies about automatic tool use, adjust agent settings. 4) If you plan to use a third-party MCP server, verify its network endpoints and trustworthiness since the skill will interact with that server. Otherwise, the skill's instructions and requirements align with its stated purpose.
功能分析
Type: OpenClaw Skill Name: drawio-skill Version: 1.0.1 The drawio-skill bundle is a legitimate set of instructions and configuration files designed to enable an AI agent to create and edit diagrams using a drawio MCP server. The SKILL.md file contains functional guidelines for diagramming workflows, naming conventions, and specific rules for architecture and machine learning diagrams. The agents/openai.yaml correctly defines the MCP tool dependency, and the README.md provides standard installation instructions, including a setup command for the required MCP server.
能力评估
Purpose & Capability
Name/description match the contents: the SKILL.md instructs the agent how to interact with a drawio MCP server (start_session, get_diagram, create_new_diagram, export, etc.). There are no unrelated credentials, binaries, or services requested that would be inconsistent with a draw.io integration.
Instruction Scope
Runtime instructions stay within the expected scope: they describe MCP commands, diagram creation/edit/export workflows, naming conventions, and language/visual rules. The skill does not instruct the agent to read unrelated files, exfiltrate data, call external endpoints beyond the configured MCP server, or access system secrets.
Install Mechanism
No install spec is provided (instruction-only), so nothing is automatically downloaded or written to disk. The README suggests an optional npx command to add a drawio MCP server, but that is a user action and not executed by the skill itself.
Credentials
The skill declares no required environment variables, no config paths, and no credentials. This is proportionate to an instruction-only skill that expects a pre-configured drawio MCP server.
Persistence & Privilege
always is false and the skill does not request elevated or persistent system privileges. agents/openai.yaml sets allow_implicit_invocation: true (permits autonomous invocation), which is normal for skills and acceptable here given the limited scope and lack of sensitive access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install drawio-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /drawio-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Updated SKILL.md to clarify that drawio MCP server setup is external and must be managed by the user. - Added explicit instructions in SKILL.md for handling unavailable or misconfigured MCP connections. - Simplified the skill description to highlight core capabilities and main diagram types. - Added README.md file.
v1.0.0
首次公开发布。 - 新增统一版 Draw.io Skill,基于已配置的 drawio MCP server - 支持流程图、架构图、机器学习模型图等常见绘图场景 - 支持中文标签与中文输出、动画连接器,以及 svg 导出 - 内置会话启动、编辑前读取、导出命名规范与故障恢复说明。
元数据
Slug drawio-skill
版本 1.0.1
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 2
常见问题

Draw.io Skill 是什么?

Create and edit draw.io diagrams through the configured drawio MCP server, including flowcharts, architecture diagrams, ML model diagrams, Chinese labels, an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 285 次。

如何安装 Draw.io Skill?

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

Draw.io Skill 是免费的吗?

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

Draw.io Skill 支持哪些平台?

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

谁开发了 Draw.io Skill?

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

💬 留言讨论