Smart Drawio logo

Smart Drawio

Community
yunshenwuchuxun
smart-drawio

根据文字、代码或可读取的参考图创建、修改并交付可编辑的 Draw.io 科研结构图、系统架构图或流程图;也用于校验、修复和统一现有 .drawio 图表样式。用户指定其他图表格式时遵循该格式。

Overview

Publisheryunshenwuchuxun
Repositorysmart-drawio-next
Skill namesmart-drawio
Stars
366
Forks
48
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by yunshenwuchuxun on GitHub. Read the source before you install it.

Installation

Install the Smart Drawio AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/yunshenwuchuxun/smart-drawio-next/tree/main/skills/smart-drawio
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yunshenwuchuxun/smart-drawio-next.git /tmp/smart-drawio-next
mkdir -p .claude/skills
cp -r /tmp/smart-drawio-next/skills/smart-drawio .claude/skills/smart-drawio
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Smart Drawio in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Smart Drawio on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Smart Drawio is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Smart Drawio

交付完整、未压缩的 mxGraph XML,保存为用户可继续编辑的 .drawio 文件。本 Skill 自包含;MCP 是可选增强,不要求启动网站、安装完整 CLI 或另配生成模型。

工作方式

  1. 从需求中确定节点、关系、分组和主阅读方向。保留用户提供的术语、数量和业务含义;资料没有给出的实验结果不填成事实。创建 XML 或修改已有文件前,按需读 格式与修改规则。

  2. 用助手自身模型构造 XML。需要模板时复制并改造 科研结构图 或 分支流程图。已有图默认保留未涉及的 ID、节点位置、连线和页面;用户要求重排时再调整布局。

  3. 有 Smart Drawio MCP 时,按 MCP 工具选择 调用校验及可选样式操作。没有 MCP 时,用本目录内的 Python 3 标准库脚本校验:

    bash
    python3 "<已安装的 skill 目录>/scripts/validate_drawio.py" "<待交付文件>.drawio"

    将占位符换成实际路径。脚本只读文件,输出 JSON;退出码 0 表示通过、1 表示失败、2 表示当前格式或环境不支持。它检查 XML、基础 mxGraph 结构及逐页引用,不验证渲染布局,也不等同于 MCP 的完整校验。

  4. 校验失败时保留原文件,修正副本并重新校验。XML 截断优先补全缺失内容;仅在用户要求修复或已授权恢复时裁掉残缺尾部,并说明删掉了什么。压缩页面需先通过可用的 Draw.io 编辑器另存为未压缩 XML;本 Skill 的离线脚本不解压页面。

  5. 检查 交付质量,由助手把最终 XML 写入用户指定目录或当前工作区的 .drawio 文件,返回可点击的文件链接。MCP 返回 XML 不代表文件已经写入磁盘。需要预览、PNG/SVG/PDF 时使用当前可用的 Draw.io 渲染或导出能力;没有渲染器时交付可编辑文件并说明尚未视觉检查。

科研、架构和流程表达

  • 科研图:区分输入、模块、输出和训练/辅助关系;沿用论文定义的符号,必要时提供图例和单位。
  • 架构图:按职责、服务或部署边界分组;箭头表达明确的数据或调用方向,标签注明关键协议或载荷。
  • 流程图:判断节点的出口标明条件,分支能回到主流程或明确结束;避免用装饰箭头代替业务关系。

模板是通用结构示例,不代表特定模型、产品架构或期刊格式保证。只读取与当前任务相关的参考资料;不修改用户的 MCP 配置或发布图表到外部服务。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Smart Drawio AI skill do?

根据文字、代码或可读取的参考图创建、修改并交付可编辑的 Draw.io 科研结构图、系统架构图或流程图;也用于校验、修复和统一现有 .drawio 图表样式。用户指定其他图表格式时遵循该格式。

Why use Smart Drawio on TypingMind?

Because you install it once and use it with any model. Smart Drawio is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Smart Drawio in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/yunshenwuchuxun/smart-drawio-next/tree/main/skills/smart-drawio. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Smart Drawio?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Smart Drawio?

As many as you like. As long as a model supports skills, you can use Smart Drawio with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Smart Drawio AI skill free?

Yes. It is published on GitHub by yunshenwuchuxun under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇