diagram-generator - 生成和编辑各种图表(drawio、mermaid、excalidraw)
v1.1.1提供基于自然语言描述的图表生成与编辑能力,支持 drawio、mermaid、excalidraw 等多种格式的流程图、时序图、类图、ER 图、思维导图、架构图、网络拓扑等,默认将文本图表保存至项目根目录的 diagrams/{format}/,支持自定义路径并自动创建目录,图表渲染在独立的 mcp-diagram-generator 服务器上,降低 token 消耗并保证输出一致性。
36· 2.0万·201 当前·208 累计
下载技能包
最后更新
2026/4/22
此技能需要访问外网资源,可能需要科学上网
安全扫描
OpenClaw
安全
medium confidence该技能的请求和指令与用于委派文件创建的外部 'mcp-diagram-generator' 服务器保持内部一致,但推荐的 npx 自动下载步骤会引入供应链风险,启用前应进行审查。
评估建议
技能仅在项目的 diagrams/{format}/ 目录下写入纯文本图表文件,不会影响系统其他位置。所有渲染在独立的 mcp-diagram-generator 服务器上执行,本地流程完全隔离,生成的 drawio、mermaid、excalidraw 文件为纯文本且不含可执行代码。但仍需确认外部依赖来源可信,建议检查输出目录权限、定期清理生成文件,并确保 MCP 服务器的安装来源可靠。...详细分析 ▾
✓ 用途与能力
The name/description (generate & edit drawio/mermaid/excalidraw) matches the instructions: it builds JSON specs and calls an MCP server to produce files. No unrelated credentials, binaries, or config paths are requested.
✓ 指令范围
SKILL.md confines actions to creating JSON specs, validating them against the included schema, and calling the mcp-diagram-generator MCP server. It only references project-local output paths and a per-skill config file (.diagram-config.json). There are no instructions to read unrelated system files or exfiltrate data.
ℹ 安装机制
There is no built-in installer in the skill (instruction-only). The doc recommends configuring an MCP server to be auto-started via 'npx -y mcp-diagram-generator' — this will download and run code from the npm registry. That is a normal convenience but is a supply-chain risk (npm package code executes locally). If you prefer, the skill also documents running a local node path for development.
✓ 凭证需求
The skill requests no environment variables, no credentials, and no config paths. The declared requirements match the instructions (the only external dependency is the MCP server). There are no unexplained SECRET/TOKEN/KEY requests.
✓ 持久化与权限
The skill is not always-enabled and does not request elevated agent privileges. It will create a local .diagram-config.json and directories under the project (diagrams/{format}/) — behavior consistent with its purpose.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.1.12026/2/3
小幅更新,改进文档并提升描述清晰度。 新增用户支持联系方式。 强化英文描述,使功能和使用方式更易理解。 功能和代码未变更,保持原有行为。
● 可疑
安装命令
点击复制官方npx clawhub@latest install diagram-generator
镜像加速npx clawhub@latest install diagram-generator --registry https://cn.longxiaskill.com 镜像可用
国内专用npm install -g mcp-diagram-generator --registry=https://registry.npmmirror.com
npx --registry=https://registry.npmmirror.com mcp-diagram-generator
本土化适配说明
使用前需要通过 npm 安装或运行 mcp-diagram-generator。推荐使用国内 npm 镜像以提升下载速度。注意 npx 自动下载步骤可能带来供应链风险,请确认来源可信后再执行。