← 返回 Skills 市场
bovinphang

Drawio Studio

作者 Bovin Phang · GitHub ↗ · v2.7.0 · MIT-0
cross-platform ✓ 安全检测通过
38
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fec-drawio-studio
功能描述
Use when creating editable technical diagrams with draw.io / diagrams.net sources, including architecture diagrams, ERD, UML, sequence diagrams, flowcharts,...
使用说明 (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。

安全使用建议
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.
能力标签
cryptorequires-walletrequires-oauth-tokenrequires-sensitive-credentials
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fec-drawio-studio
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fec-drawio-studio 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug fec-drawio-studio
版本 2.7.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Drawio Studio 是什么?

Use when creating editable technical diagrams with draw.io / diagrams.net sources, including architecture diagrams, ERD, UML, sequence diagrams, flowcharts,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。

如何安装 Drawio Studio?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fec-drawio-studio」即可一键安装,无需额外配置。

Drawio Studio 是免费的吗?

是的,Drawio Studio 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Drawio Studio 支持哪些平台?

Drawio Studio 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Drawio Studio?

由 Bovin Phang(@bovinphang)开发并维护,当前版本 v2.7.0。

💬 留言讨论