← 返回 Skills 市场
xx235300

mermaid-canvas

作者 xx235300 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
76
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install mermaid-canvas
功能描述
Render Mermaid code into PNG images supporting all 27 Mermaid 11 chart types, with optional upload to Feishu docs, requiring no API keys.
安全使用建议
This skill appears to be what it claims — it generates PNGs from Mermaid — but proceed with caution. Things to check before installing or using it: - Feishu upload: The skill advertises optional Feishu integration but declares no Feishu credentials. Confirm how upload is implemented in your OpenClaw environment (does it call a platform feishu_doc_media tool that already has credentials?). Do not supply unrelated secrets to this skill; instead verify the platform-level Feishu integration. - Remote resources and data exfiltration: The generated HTML loads mermaid from jsdelivr and the script uses securityLevel: 'loose'. That allows more permissive HTML/JS in the rendering page and could execute content embedded in diagrams. The fallback sends the diagram (base64-encoded) to mermaid.ink. Avoid rendering diagrams that contain sensitive information (passwords, API keys, private system details) because that data could be transmitted or executed remotely. - Hardening suggestions: If you control the environment, prefer serving mermaid locally (avoid CDN), set securityLevel to a stricter option (if available), or sanitize diagram text before rendering. Require an explicit, reviewed implementation for Feishu upload that documents how credentials are used. - Operational note: The script returns an HTML path and expects the platform 'browser' tool to load and snapshot it — confirm that the browser environment is sandboxed and that snapshots do not leak local files or agent secrets. If you can get answers about how Feishu uploads are implemented and can accept the runtime use of external CDNs/APIs (or replace them with offline alternatives), the skill is usable. If you need to render sensitive diagrams, do not use the default CDN/fallback without hardening.
功能分析
Type: OpenClaw Skill Name: mermaid-canvas Version: 1.0.0 The skill provides Mermaid diagram rendering functionality but contains a high-risk configuration and external data transmission. Specifically, both SKILL.md and scripts/mermaid_render.py initialize Mermaid with 'securityLevel: loose', which is a known vulnerability that allows for XSS or potential remote execution within the browser environment used for rendering. Additionally, the script includes a fallback mechanism that exfiltrates diagram code to an external third-party API (https://mermaid.ink) if local rendering fails. While these behaviors are technically aligned with the stated purpose, the combination of a weakened security sandbox and external data transmission warrants a suspicious classification.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
The skill's code and instructions align with the stated purpose (generate PNGs from Mermaid). However the SKILL.md advertises '飞书集成' (Feishu upload) and 'zero API keys' while the package declares no Feishu credentials; the code mentions feishu_doc_media only in docstrings and the upload functions are unimplemented stubs, so the Feishu integration is not fully specified. Relying on platform-provided Feishu tools (which may carry credentials) is plausible but not declared explicitly, creating a transparency gap.
Instruction Scope
Runtime instructions generate a local HTML that loads mermaid from jsdelivr CDN and ask the agent to use a browser tool to navigate and snapshot that HTML. The HTML sets mermaid.initialize({securityLevel: 'loose'}), which weakens sanitization and can allow embedded HTML/script in diagrams. The fallback uses mermaid.ink (an external API) by base64-encoding the diagram and fetching a PNG. Both behaviors involve sending user diagram content to external endpoints and executing remote JS in the browser context — reasonable for rendering but raises exfiltration/XSS risks if diagrams contain malicious payloads or sensitive data.
Install Mechanism
No install spec — instruction-only plus a helper script. No archives or downloads beyond the runtime loading of external CDN resources (jsdelivr and mermaid.ink) at render time. Low install-time risk.
Credentials
Skill declares no required environment variables or primary credential. That is coherent for standalone rendering. The claimed Feishu upload is not backed by declared Feishu credentials; it likely expects the agent/platform to provide an existing feishu_doc_media tool or credentials. If the platform does not provide those, Feishu upload won't work; if it does, the skill will gain access to whatever credentials that platform tool exposes. The skill itself does not request unrelated secrets.
Persistence & Privilege
Skill does not request persistent 'always' inclusion or write system-wide config. It writes temporary HTML files to the OS temp directory for rendering, which is expected and proportionate.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mermaid-canvas
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mermaid-canvas 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Mermaid-canvas v1.0.0 — initial release: - New skill to render Mermaid diagrams as PNG images directly in-browser. - No API key required; works fully client-side. - Supports 27 official diagram types from Mermaid 11 (flowchart, sequence, ER, Gantt, mindmap, etc.). - Integrated with Feishu for direct image uploads to documents. - Auto-detects diagram type based on user prompt for ease of use. - Includes usage examples, supported types table, safe syntax rules, and troubleshooting tips.
元数据
Slug mermaid-canvas
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

mermaid-canvas 是什么?

Render Mermaid code into PNG images supporting all 27 Mermaid 11 chart types, with optional upload to Feishu docs, requiring no API keys. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 76 次。

如何安装 mermaid-canvas?

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

mermaid-canvas 是免费的吗?

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

mermaid-canvas 支持哪些平台?

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

谁开发了 mermaid-canvas?

由 xx235300(@xx235300)开发并维护,当前版本 v1.0.0。

💬 留言讨论