Draw.io Skill

v1.0.1

Create and edit draw.io diagrams through the configured drawio MCP server, including flowcharts, architecture diagrams, ML model diagrams, Chinese labels, an...

0· 293·2 current·2 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for yyq2024/drawio-skill.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Draw.io Skill" (yyq2024/drawio-skill) from ClawHub.
Skill page: https://clawhub.ai/yyq2024/drawio-skill
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install drawio-skill

ClawHub CLI

Package manager switcher

npx clawhub@latest install drawio-skill
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk9741ve6mtjnjbx1fd2bmfw86n838j0k
293downloads
0stars
2versions
Updated 1mo ago
v1.0.1
MIT-0

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.

Comments

Loading comments...