← Back to Skills Marketplace
bovinphang

Drawio Studio

by Bovin Phang · GitHub ↗ · v2.7.0 · MIT-0
cross-platform ✓ Security Clean
38
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fec-drawio-studio
Description
Use when creating editable technical diagrams with draw.io / diagrams.net sources, including architecture diagrams, ERD, UML, sequence diagrams, flowcharts,...
README (SKILL.md)

可编辑技术图表工作流

Purpose

生成、校验和导出可继续编辑的 draw.io / diagrams.net 技术图表。

Procedure

  1. 判断图表路线

    • 需要长期维护在 Markdown 中的简单图,优先 Mermaid。
    • 需要官方图标、泳道、复杂布局、层/标签/元数据、可编辑 PNG/SVG/PDF 或 .drawio 源时,使用本工作流。
    • 需要快速浏览器打开或分享时,用 diagram-url.mjs 生成 URL;需要本地可审计交付时,始终保存 .drawio 源。
    • 用户已经有 Mermaid 或 CSV 内容时,可用 diagram-url.mjs --create --type mermaid|csv 交给 diagrams.net 导入;需要长期维护或精确形状时,再转成 XML。
    • 如果当前宿主已经配置 draw.io MCP App/Tool,可把它作为预览或编辑入口;本 skill 不要求安装 MCP server。
    • 需要照片、海报、视觉概念或位图编辑时,走图片生成路线。
  2. 建立图表规格

    • 明确图表类型、受众、输出格式、节点清单、关系、层级分组和保存位置。
    • 用户指定 ERD、UML、Sequence、Architecture、ML/DL 或 Flowchart 时,读取 diagram-patterns.md
    • 需要选择 XML、Mermaid、CSV、容器、层、标签、metadata 或暗色模式策略时,读取 xml-and-mermaid.md
    • 需要特定厂商/云/网络/流程图形状时,运行 shape-query.mjs;需要 AI、数据库或基础设施品牌符号时,运行 brand-symbols.mjs
  3. 生成 .drawio

  4. 校验和预览

    • 每次生成 .drawio 后运行:
      node skills/fec-drawio-studio/scripts/diagram-lint.mjs diagram.drawio --format markdown
      
    • 若本机有 draw.io desktop CLI,导出预览 PNG 时不要嵌入 XML,并控制宽度:
      drawio -x -f png --width 2000 -o diagram.png diagram.drawio
      
    • 若 CLI 不可用,用 diagram-url.mjs 生成 diagrams.net viewer/editor URL;严格离线或数据驻留敏感时先读取 data-residency.md
  5. 交付最终产物

    • 保存 .drawio 源文件和用户需要的 PNG/SVG/PDF/JPG。
    • 最终 PNG 若使用 draw.io -e 嵌入 XML,导出后运行:
      node skills/fec-drawio-studio/scripts/png-embed-fix.mjs diagram.drawio.png
      
    • 报告源文件、导出文件、校验结果和无法自动验证的外部依赖。

Tool Resources

工具脚本共享 studio-core.mjs。离线查询使用 shape-index.jsonbrand-icons.json,样式预设资源包括 schema.jsondefault.jsoncorporate.jsonhanddrawn.json

Constraints

  • 不把 draw.io 用作普通图片模型;文本密集或结构化图必须保留可编辑源。
  • 不猜测复杂 shape=mxgraph.* 样式;优先用形状查询工具获取官方样式。
  • 不为 draw.io 工作流引入 MCP server 运行时依赖;MCP App/Tool 只作为用户环境已有时的可选互操作入口。
  • Mermaid/CSV URL 是导入捷径,不替代 .drawio 源文件、lint 和可编辑交付。
  • 不在预览 PNG 中嵌入 XML;嵌入只用于最终交付。
  • Graphviz、draw.io desktop 和联网品牌图标都是可选外部能力;缺失时必须降级而不是反复重试。
  • 品牌图标和第三方形状索引遵循 THIRD_PARTY_NOTICES.md 中的来源与许可说明。
  • 参考外部 draw.io MCP 生态时,只吸收路线、约束和互操作经验,不复制其服务实现或长篇提示词。

Expected Output

交付可编辑 .drawio 源和所需导出格式,并给出结构校验结果。图表应节点完整、连线可追踪、标签不截断、布局不重叠,外部工具缺失时提供可打开的 diagrams.net fallback。

Usage Guidance
This looks acceptable to install based on the supplied evidence. As with any skill, review what it asks the agent to do before use, and only provide credentials or private data when the skill’s purpose clearly requires it.
Capability Tags
cryptorequires-walletrequires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
No purpose-mismatched capability was supported by the supplied scanner context or inspected workspace evidence.
Instruction Scope
No prompt-injection indicators, hidden role changes, or output-format manipulation signals were reported for the target artifact.
Install Mechanism
No risky install behavior, bundled executable concern, or package-install anomaly was identified from the supplied evidence.
Credentials
No credential, session, broad local-data, or sensitive-environment access concern was reported or substantiated.
Persistence & Privilege
No background persistence, privilege escalation, destructive automation, or unbounded mutation authority was substantiated.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fec-drawio-studio
  3. After installation, invoke the skill by name or use /fec-drawio-studio
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.7.0
fec-drawio-studio 2.7.0 introduces detailed technical workflow documentation and resource references. - Added comprehensive SKILL.md with workflow for creating, validating, and exporting editable draw.io/diagrams.net technical diagrams. - Clarified decision routes for diagram generation, best practices for formats, and toolchain guidance. - Defined tool resource usage, validation/lint steps, and export requirements. - Specified constraints against using draw.io for non-diagram images and clarified downgrade behavior when external tools are missing. - Included full step-by-step instructions for efficient technical diagram collaboration and maintenance.
Metadata
Slug fec-drawio-studio
Version 2.7.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Drawio Studio?

Use when creating editable technical diagrams with draw.io / diagrams.net sources, including architecture diagrams, ERD, UML, sequence diagrams, flowcharts,... It is an AI Agent Skill for Claude Code / OpenClaw, with 38 downloads so far.

How do I install Drawio Studio?

Run "/install fec-drawio-studio" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Drawio Studio free?

Yes, Drawio Studio is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Drawio Studio support?

Drawio Studio is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Drawio Studio?

It is built and maintained by Bovin Phang (@bovinphang); the current version is v2.7.0.

💬 Comments