drawio — for Claude Code drawio, community, for Claude Code, ide skills, ## mxCell要素 ### 矩形(Rectangle), ### 角丸矩形(Rounded Rectangle), ### 楕円(Ellipse), ### ひし形(Diamond), ### テキスト(Text Only), ## 矢印・コネクタ ### 基本の矢印

v1.0.0

关于此技能

适用场景: Perfect for AI Coding Agents needing advanced diagram creation and editing capabilities in XML format. 本地化技能摘要: Create and edit draw.io diagrams in XML format. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

功能特性

Draw.io Diagram Skill
draw.ioファイル(.drawio)をXML形式で直接作成・編集するためのスキル。
<mxfile host="app.diagrams.net" modified="2024-01-01T00:00:00.000Z" agent="Claude" version="21.0.0"
<diagram name="Page-1" id="page-1"
<mxCell id="1" parent="0" /

# 核心主题

akiojin akiojin
[5]
[0]
更新于: 4/6/2026

技能概览

先看适用场景、限制条件和安装路径,再决定是否继续深入。

适用场景: Perfect for AI Coding Agents needing advanced diagram creation and editing capabilities in XML format. 本地化技能摘要: Create and edit draw.io diagrams in XML format. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

核心价值

推荐说明: Empowers agents to generate and edit diagrams in XML format, supporting load balancing and automatic model distribution, using draw.io files (.drawio) with features like mxCell elements for shapes and connectors, and mxGeometry for layout control.

适用 Agent 类型

适用场景: Perfect for AI Coding Agents needing advanced diagram creation and editing capabilities in XML format.

赋予的主要能力 · drawio

适用任务: Creating flowcharts with rectangles and rounded rectangles
适用任务: Generating diagrams with ellipses and diamonds
适用任务: Editing existing draw.io files for efficient workflow management

! 使用限制与门槛

  • 限制说明: Requires XML parsing capabilities
  • 限制说明: Limited to draw.io file format (.drawio)

关于来源内容

The section below is adapted from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

drawio 是什么?

适用场景: Perfect for AI Coding Agents needing advanced diagram creation and editing capabilities in XML format. 本地化技能摘要: Create and edit draw.io diagrams in XML format. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

如何安装 drawio?

运行命令:npx killer-skills add akiojin/llmlb/drawio。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

drawio 适用于哪些场景?

典型场景包括:适用任务: Creating flowcharts with rectangles and rounded rectangles、适用任务: Generating diagrams with ellipses and diamonds、适用任务: Editing existing draw.io files for efficient workflow management。

drawio 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

drawio 有哪些限制?

限制说明: Requires XML parsing capabilities;限制说明: Limited to draw.io file format (.drawio)。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add akiojin/llmlb/drawio。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    drawio 已启用,可立即在当前项目中调用。

! 来源说明

此页面仍可作为安装与查阅参考。继续使用前,请结合上方适用场景、限制条件和上游仓库说明一起判断。

Upstream Repository Material

The section below is adapted from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.

Upstream Source

drawio

本地化技能摘要: Create and edit draw.io diagrams in XML format. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

SKILL.md
Readonly
Upstream Repository Material
The section below is adapted from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.
Upstream Source

Draw.io Diagram Skill

draw.ioファイル(.drawio)をXML形式で直接作成・編集するためのスキル。

XML基本構造

xml
1<mxfile host="app.diagrams.net" modified="2024-01-01T00:00:00.000Z" agent="Claude" version="21.0.0"> 2 <diagram name="Page-1" id="page-1"> 3 <mxGraphModel dx="1000" dy="600" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0" defaultFontFamily="Noto Sans JP"> 4 <root> 5 <mxCell id="0" /> 6 <mxCell id="1" parent="0" /> 7 <!-- 図形要素をここに追加 --> 8 </root> 9 </mxGraphModel> 10 </diagram> 11</mxfile>

mxCell要素

矩形(Rectangle)

xml
1<mxCell id="rect-1" value="ラベル" style="rounded=0;whiteSpace=wrap;html=1;fontFamily=Noto Sans JP;fontSize=18;" vertex="1" parent="1"> 2 <mxGeometry x="100" y="100" width="120" height="60" as="geometry" /> 3</mxCell>

角丸矩形(Rounded Rectangle)

xml
1<mxCell id="rounded-1" value="ラベル" style="rounded=1;whiteSpace=wrap;html=1;fontFamily=Noto Sans JP;fontSize=18;arcSize=20;" vertex="1" parent="1"> 2 <mxGeometry x="100" y="100" width="120" height="60" as="geometry" /> 3</mxCell>

楕円(Ellipse)

xml
1<mxCell id="ellipse-1" value="ラベル" style="ellipse;whiteSpace=wrap;html=1;fontFamily=Noto Sans JP;fontSize=18;" vertex="1" parent="1"> 2 <mxGeometry x="100" y="100" width="120" height="80" as="geometry" /> 3</mxCell>

ひし形(Diamond)

xml
1<mxCell id="diamond-1" value="条件" style="rhombus;whiteSpace=wrap;html=1;fontFamily=Noto Sans JP;fontSize=18;" vertex="1" parent="1"> 2 <mxGeometry x="100" y="100" width="100" height="100" as="geometry" /> 3</mxCell>

テキスト(Text Only)

xml
1<mxCell id="text-1" value="テキスト" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontFamily=Noto Sans JP;fontSize=18;" vertex="1" parent="1"> 2 <mxGeometry x="100" y="100" width="120" height="30" as="geometry" /> 3</mxCell>

矢印・コネクタ

基本の矢印

xml
1<mxCell id="arrow-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontFamily=Noto Sans JP;fontSize=14;" edge="1" parent="1" source="rect-1" target="rect-2"> 2 <mxGeometry relative="1" as="geometry" /> 3</mxCell>

ラベル付き矢印

xml
1<mxCell id="arrow-2" value="ラベル" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;fontFamily=Noto Sans JP;fontSize=14;" edge="1" parent="1" source="rect-1" target="rect-2"> 2 <mxGeometry relative="1" as="geometry" /> 3</mxCell>

点線矢印

xml
1<mxCell id="arrow-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;fontFamily=Noto Sans JP;fontSize=14;" edge="1" parent="1" source="rect-1" target="rect-2"> 2 <mxGeometry relative="1" as="geometry" /> 3</mxCell>

スタイル設定ガイド

フォント設定(必須)

  1. mxGraphModeldefaultFontFamily="Noto Sans JP"を設定
  2. すべてのテキスト要素fontFamily=Noto Sans JP;を明示的に追加

推奨設定

項目推奨値説明
fontSize18標準の1.5倍、視認性向上
日本語テキスト幅30-40px/文字レイアウト計算用
矢印とラベル間隔20px以上重なり防止

色設定

fillColor=#ffffff;      # 塗りつぶし色
strokeColor=#000000;    # 枠線色
fontColor=#333333;      # 文字色

よく使う色

用途色コード
白背景#ffffff
薄い青#dae8fc
薄い緑#d5e8d4
薄い黄#fff2cc
薄い赤#f8cecc
薄いグレー#f5f5f5

配置ルール

XMLの記述順 = 描画順

  • 先に書いたものが背面に配置される
  • 矢印は図形より先(XMLの先頭側)に記述して最背面に配置

推奨構造

xml
1<root> 2 <mxCell id="0" /> 3 <mxCell id="1" parent="0" /> 4 5 <!-- 1. 矢印・コネクタ(最背面) --> 6 <mxCell id="arrow-1" ... edge="1" ... /> 7 <mxCell id="arrow-2" ... edge="1" ... /> 8 9 <!-- 2. 図形(中間) --> 10 <mxCell id="rect-1" ... vertex="1" ... /> 11 <mxCell id="rect-2" ... vertex="1" ... /> 12 13 <!-- 3. テキストラベル(最前面) --> 14 <mxCell id="text-1" ... vertex="1" ... /> 15</root>

PNG変換

drawio CLIコマンド

bash
1drawio -x -f png -s 2 -t -o output.png input.drawio
オプション説明
-xエクスポートモード
-f pngPNG形式
-s 22倍スケール(高解像度)
-t透明背景
-o出力ファイル指定

検証チェックリスト

作成後、以下を確認:

  • mxGraphModelにdefaultFontFamilyが設定されているか
  • 全テキスト要素にfontFamilyが明示的に設定されているか
  • fontSizeは18px程度か(視認性)
  • 矢印がXMLの先頭側に配置されているか(最背面)
  • 矢印とラベルの間隔は20px以上か
  • 日本語テキストの幅は十分か(30-40px/文字)
  • PNG出力で視覚確認したか

テンプレート

基本テンプレートは templates/basic.drawio を参照。

相关技能

寻找 drawio 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

本地化技能摘要: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

333.8k
0
AI

widget-generator

Logo of f
f

本地化技能摘要: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat. It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf

149.6k
0
AI

flags

Logo of vercel
vercel

本地化技能摘要: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

本地化技能摘要: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review. It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
开发者工具