drawio
Skill0 starsChanged 17 days agoMITView on GitHub
浏览器内 drawio 图表绘制与编辑工作台:形状/连线/样式编辑、.drawio 文件读写(统一文件视图)、PNG/SVG 导出;AI 可直接编写 .drawio XML 并用页面指令打开编辑
25 other projects use a version of this.
Adopted by
Most recently taken up by
- h-wata/claude-skillstheir own version, first seen Nov 8, 2026
- shreeve1/Claude-Coworktheir own version, first seen Nov 1, 2026
- MakiDevelop/claude-skillstheir own version, first seen Nov 1, 2026
- jackzhaojin/ai-builder-kittheir own version, first seen Nov 1, 2026
- rysk-tanaka/skillstheir own version, first seen Oct 31, 2026
- github/awesome-copilottheir own version, first seen Oct 25, 2026
Used with
Projects with it also use excalidraw and handoff.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
lookfreeSkillexcalidraw
Generate architecture diagrams as .excalidraw files from codebase analysis. Use when the user asks to create architecture diagrams, system diagrams, visualize codebase structure, or generate excalidraw files.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 4 projects that use this
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- github/awesome-copilot★ 41ksame name
- sparklabx/drawio-ai-kit★ 657same name
- Chanw-research/claude-code-paper-writing★ 42same name
- scarr05/claude-skills-pub★ 16same name
- soujava/agent-skills★ 10same name
- roeyw5/claude-code-guide★ 9same name
- akiojin/skills★ 8same name
- MakiDevelop/claude-skills★ 3same name
- norandom/Skills★ 3same name
- ikkeseb/skills★ 2same name
15 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- blenderSkill
- browserSkill
- createSkill
- cuaSkill
- helloSkill
- office_studioSkill
- play_with_aiSkill
- ppt_studioSkill
- vhtmlSkill
- video_studioSkill
The file
Files
DrawIO 绘图台
是什么
零后端的浏览器绘图工作台:drawio 文件格式(.drawio XML)双向兼容,离线可用(内核为
maxgraph——drawio 上游 mxGraph 的官方现代版)。文件经统一 $fs 文件视图读写
(云端 UFS / 浏览器本地 / 主机三端),支持绘制、编辑、样式、撤销重做、缩放平移、
网格吸附、导出(.drawio / PNG / SVG)。
能力边界(v1):
- 官方 stencil 图标集(AWS/K8s/UML 成套图标)不渲染——退化为矩形(文件不损坏)
- 多页
.drawio只编辑第一页,其余页面保存时原样保留 - 渲染形状集、样式键、边标记的准确清单见
references/shapes.md
什么时候用
- 用户要「画个图」(流程图 / 架构图 / 思维导图 / 网络图 / ER / 时序图…)→ 你直接写
.drawioXML 文件,再drawio_open打开展示给用户 - 用户给了现成
.drawio文件要看/改 →drawio_open;或用户改完后你 fs 读同一文件 - 用户想自己画 → 把页面打开给他
操作方式(AI 标准流程)
- 打开页面:
open /skills/cloud/{skill_id}(skill_id取自 skill 列表;url_prefix同前缀,用于资源与 API) - 探测指令:使用
open返回的events查看drawio_*;需要重新查看时执行不带窗口前缀的list - 出图:fs 工具直接写
.drawio文件(默认目录/u/{uid}/drawio/;先读references/xml-authoring.md,本文末尾有快速骨架) - 展示/刷新:
drawio_open --path <页面 $fs 路径>——写完文件页面不会自动感知,必须调它 (用户手动改过文件的场景同理)。云端文件在 fs 工具里是/u/{uid}/...,传给页面指令时改成/cloud/u/{uid}/... - 导出成图:
drawio_export --format png|svg --path <输出路径> - 页面是用户的编辑舞台:用户可随时改图并保存;你 fs 读文件即拿到最新内容
典型流程(用户说「画一个 XX 架构图」):
- 读
references/diagram-types.md选图形套路 + 本文速记规则 - fs 写
/u/{uid}/drawio/xx-架构图.drawio(JSON 无关;就是 XML 文本,2 空格缩进) drawio_open --path /cloud/u/{uid}/drawio/xx-架构图.drawio打开给用户看- 一两句话总结;后续用户说「改成 YY」→ fs 读 → 改 → 写回 →
drawio_open刷新
指令表
返回统一为 {content: "<JSON 字符串>"}:成功 {ok: true, ...},失败 {ok: false, error}。
argv 形如 ["--path", "/cloud/u/admin/drawio/x.drawio"](--key val 成对)。指令的 --path / --dir 都使用页面 $fs 完整树路径,不要直接照抄 fs 工具的云端物理路径。
| 指令 | 说明 | 参数 | 返回 |
drawio_status | 页面与文档状态(唯一未就绪也可调用) | 无 | {ok, ready, viewport:{w,h}, path, name, dirty, vertices, edges, scale, selection} |
drawio_list | 列出目录下 .drawio/.xml 文件 | --dir(可选,默认当前文档目录/云端默认目录) | {ok, dir, items:[{name, path, dir, size, mod_time}]} |
drawio_open | 打开文件到画布(有未保存改动且已有路径时先自动保存) | --path(必填) | {ok, path, name} |
drawio_new | 新建空白图(丢弃当前内容) | 无 | {ok} |
drawio_save | 保存当前图 | --path(可选;新文档未保存过必填) | {ok, path, bytes} |
drawio_export | 导出 PNG/SVG 文件(AI/自动化专用;页面按钮的导出为浏览器下载) | --format png|svg、--path(均必填) | {ok, format, path} |
drawio_get_xml | 当前图 XML 全文 | 无 | 内容即 mxfile XML 文本(非 JSON) |
drawio_fit | 视图适应窗口 | 无 | {ok} |
页面交互(人类操作,了解即可)
形状面板点击/拖拽放置 → 拖动连接点拉线 → 双击形状改文本 → 右侧属性面板调样式;
右键拖动平移、滚轮缩放;Ctrl/Cmd+S 保存、Z 撤销、Shift+Z 重做、A 全选、C/X/V
复制剪切粘贴、Delete 删除。顶部按钮:打开 / 另存为走平台文件选择器($fs.pickFiles /
$fs.pickSavePath,与 /fs 管理器同一棵三端树),导出 PNG/SVG 为浏览器下载(不写入 $fs)。
响应式:窗口宽度变化自适应(@container 查询)。工具栏按钮按需自动换行;窗口较窄
(≤860px)时形状/属性面板收为左右抽屉,由工具栏右侧的两个图标按钮开合(画布占满全宽);
画布尺寸随窗口实时重算。
文件与格式约定
- 位置:默认目录
/u/{uid}/drawio/(约定,非强制——页面文件对话框支持统一的/cloud、/page、/{host_id}三端路径);文件名用中文/英文均可,建议语义化 - 格式:
<mxfile>包<mxGraphModel>(未压缩);读取压缩文件 (compressed="true",raw-deflate/zlib + base64)没有问题;导出默认不压缩 - 写出规范(必读):
references/xml-authoring.md。速记:id="0"、id="1"根单元格必写;形状 id 从"2"起递增;parent="1"- 边必须带
<mxGeometry relative="1" as="geometry" />子元素 - 坐标取 10 的整数倍;
html=1;
换行;XML 注释禁--
- 快速骨架:
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="NDrawio" version="24">
<diagram name="Page-1">
<mxGraphModel grid="1" gridSize="10" page="1" pageWidth="850" pageHeight="1100">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="2" value="服务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="100" y="100" width="160" height="60" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>references 索引(按需读取)
| 文件 | 内容 |
references/xml-authoring.md | XML 编写规范:骨架、形状/容器/边、颜色表、布局规范(出图前必读) |
references/diagram-types.md | 图形类型套路:流程图/架构/C4/思维导图/泳道/时序/ER/网络 |
references/shapes.md | 形状词汇表 + 渲染边界(哪些形状稳定渲染、哪些退化) |
references/style-presets.md | 5 套配色预设(default/dark/corporate/colorblind-safe/handdrawn) |
references/presets/*.json | 预设的完整定义(palette/roles/shapes/edges),可 fs 直读 |
注意
- 页面指令仅在页面打开时就绪;
drawio_status的ready:false表示尚未就绪(先open) - 写完/改完文件后必须
drawio_open让画布刷新 - 用户正在画布上编辑时(未保存),
drawio_new会丢弃其改动(UI 侧有确认,指令侧直接执行)—— 尊重用户的未保存改动,避免在用户编辑时强行重载
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

