← 返回 Skills 市场
Mermaid 转飞书图片 Canvas 渲染版
作者
icesumer-lgtm
· GitHub ↗
· v2.0.1
· MIT-0
340
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install mermaid-to-feishu
功能描述
自动将 Mermaid 代码通过浏览器 Canvas 渲染为 PNG 图片并上传发送到飞书对话,实现图表可视化展示。
安全使用建议
This skill appears to do what it says — render Mermaid and send images to Feishu — but take these precautions before installing:
- Confirm the skill actually needs Feishu app_id/app_secret and only grant an app with the minimal permissions required; prefer using a short-lived token or app with limited scope.
- The registry metadata does NOT declare the required env vars; treat that as a red flag and verify SKILL.md before supplying credentials.
- Avoid storing app_secret in plaintext under ~/.agents/skills unless you control the machine and understand the file's permissions; prefer environment variables or a secure secret store if available.
- Review any scripts (send-mermaid.py or similar) placed in your ~/.agents/skills directory before running them — the SKILL.md shows subprocess usage and file writes which can be abused if modified.
- If possible, run initial tests in a sandboxed agent environment and monitor network requests to ensure images are only uploaded to Feishu and no unexpected external endpoints are contacted.
- If you are unsure, ask the skill author for an updated manifest that declares required env vars and provides a signed/hosted script or code repository for review.
功能分析
Type: OpenClaw Skill
Name: mermaid-to-feishu
Version: 2.0.1
The mermaid-to-feishu skill bundle is designed to render Mermaid diagrams into images and send them to Feishu (Lark) via its API. The skill provides two legitimate workflows: using the OpenClaw browser tool for Canvas-based rendering and a Python script (send-mermaid.py) that utilizes mermaid-cli (mmdc). The code snippets and instructions in SKILL.md are consistent with the stated purpose, using standard libraries like requests for Feishu API interaction (open.feishu.cn) and tempfile for secure intermediate file handling. No evidence of data exfiltration, unauthorized execution, or malicious prompt injection was found.
能力评估
Purpose & Capability
The described capability (render Mermaid → PNG → upload to Feishu) is coherent with the instructions: browser-based Canvas rendering or mermaid-cli and calls to Feishu API are appropriate. However, the registry metadata lists no required environment variables or credentials while SKILL.md explicitly requires FEISHU_APP_ID, FEISHU_APP_SECRET and a receive_id (or a config file). That mismatch is an incoherence that should be resolved before trusting the skill.
Instruction Scope
SKILL.md instructs the agent to create HTML/markdown files, run a browser tool to open file:// paths and take snapshots, and optionally run a local mermaid-cli via subprocess. Those actions are within the skill's stated purpose. The instructions also tell the agent to write a config file under ~/.agents/skills/... containing app secrets (or read them from env vars). Writing and reading secrets from a user-home config file broadens the scope and should be treated carefully.
Install Mechanism
This is an instruction-only skill with no install spec or code files to execute from the registry. Optional guidance to install mermaid-cli via npm is standard. No remote arbitrary download/extract operations are specified in the manifest.
Credentials
The SKILL.md requires Feishu credentials (app_id, app_secret, receive_id) to call Feishu APIs — that is proportionate to the task. The concern is registry/manifest omission: the skill metadata does not declare these required env vars. Also SKILL.md suggests storing app secrets in a plaintext JSON under the user's home directory, which increases risk of credential exposure if not handled securely.
Persistence & Privilege
The skill is not set to always:true and is user-invocable only. It instructs placing scripts/config under ~/.agents/skills which is typical for user-installed skills. It does not request system-wide privileges or modification of other skills.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install mermaid-to-feishu - 安装完成后,直接呼叫该 Skill 的名称或使用
/mermaid-to-feishu触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
修复安全问题:config.json 改用占位符,添加到.clawhubignore
v2.0.0
更新为 Browser/Canvas 渲染方案,飞书不支持直接渲染 Mermaid
v1.0.0
Initial release of Nano Banana Pro image generation & editing skill.
- Generate or edit images using Google's Gemini 3 Pro Image API.
- Supports text-to-image and image-to-image workflows with selectable 1K, 2K, or 4K resolution.
- Includes clear command usage, filename generation conventions, and prompt templates.
- Guides for common issues and preflight checks.
- Output: saves PNG images in the current user directory and displays the path.
元数据
常见问题
Mermaid 转飞书图片 Canvas 渲染版 是什么?
自动将 Mermaid 代码通过浏览器 Canvas 渲染为 PNG 图片并上传发送到飞书对话,实现图表可视化展示。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 340 次。
如何安装 Mermaid 转飞书图片 Canvas 渲染版?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install mermaid-to-feishu」即可一键安装,无需额外配置。
Mermaid 转飞书图片 Canvas 渲染版 是免费的吗?
是的,Mermaid 转飞书图片 Canvas 渲染版 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Mermaid 转飞书图片 Canvas 渲染版 支持哪些平台?
Mermaid 转飞书图片 Canvas 渲染版 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Mermaid 转飞书图片 Canvas 渲染版?
由 icesumer-lgtm(@icesumer-lgtm)开发并维护,当前版本 v2.0.1。
推荐 Skills