Token导航 LogoToken导航TokenDH.com
图像处理操作浏览器clawhub未标认证来源可访问clear审计提醒

mermaid-image-exportMermaid 图像 export

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

3,120

周安装

125

GitHub Stars

公开资料未说明

下载量

1,010
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mermaid-image-export(Mermaid 图像 export)
来源仓库:https://github.com/smallnest/mermaid-image-export
安装命令:
openclaw skills install mermaid-image-export
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install mermaid-image-export

简介

调用 mermaid-cli 将图表导出为 PNG/SVG/PDF 高质量图像。

  • 便于在文档、演示文稿中嵌入清晰矢量或位图格式图表。
  • 自动处理临时文件清理与格式转换流水线。
  • 安装命令:openclaw skills install mermaid-image-export。
  • 需确保系统已安装 mermaid-cli 且 PATH 配置正确。

SKILL.md

name
mermaid-image-export
description
Mermaid diagram image export using mermaid-cli. When Claude needs to export Mermaid diagrams as high-quality images (PNG, SVG, PDF) for documentation, presentations, print materials, or web embedding. Uses mermaid-cli with Puppeteer-based rendering for pixel-perfect outputs.

Mermaid CLI Image Export Skill

Professional image export skill for Mermaid diagrams using mermaid-cli. Converts Mermaid code into high-quality PNG, SVG, and PDF images suitable for documentation, presentations, and print materials.

Quick Start

Prerequisites

# Check if Node.js is installed
node --version

# Check if npm is installed
npm --version

Installation Check

python scripts/install_mermaid_cli.py --check

Basic Usage

Export a Mermaid diagram to PNG:

python scripts/export_mermaid_image.py diagram.mmd -o output.png

Export to SVG:

python scripts/export_mermaid_image.py diagram.mmd -f svg -o diagram.svg

Batch export multiple files:

python scripts/export_mermaid_image.py *.mmd -d outputs/

Core Features

Supported Formats

  • PNG: Raster image, ideal for web and documents
  • SVG: Vector image, scalable without quality loss
  • PDF: Document format for printing and sharing

Quality Controls

  • Resolution scaling (--scale)
  • Background color (--background)
  • Width and height constraints (--width, --height)
  • Custom CSS styling (--css)

Theme Support

  • All Mermaid built-in themes: default, forest, dark, neutral
  • Custom theme configuration (--config)
  • Dark/light mode switching

Batch Processing

  • Export multiple diagrams at once
  • Progress tracking and error handling
  • Consistent settings across all exports

Workflow

1. Environment Setup

Ensure Node.js and mermaid-cli are installed:

npm install -g @mermaid-js/mermaid-cli

2. Diagram Creation

Create Mermaid diagrams using standard syntax.

3. Image Export

Use appropriate format based on needs:

  • Web/Docs: PNG or SVG
  • Print: PDF or high-resolution PNG
  • Development: Quick PNG previews

4. Integration

Embed exported images in:

  • README documentation
  • Presentation slides
  • Technical papers
  • API documentation
  • Blog posts

Comparison with Termaid

FeatureTermaidMermaid-CLI Export
OutputASCII terminalPNG/SVG/PDF images
DependenciesPure PythonNode.js + Puppeteer
Use CaseTerminal previewProfessional export
QualityTerminal-friendlyPrint-ready
SpeedInstantRequires browser

Advanced Usage

Custom Configuration

# Custom CSS
python scripts/export_mermaid_image.py diagram.mmd --css custom.css -o output.png

# Specific theme
python scripts/export_mermaid_image.py diagram.mmd -t dark -o output.png

# High resolution
python scripts/export_mermaid_image.py diagram.mmd --scale 2.0 -o output.png

Automation

# CI/CD integration
python scripts/export_mermaid_image.py docs/*.mmd -d generated/

# Documentation generation
find . -name "*.mmd" -exec python scripts/export_mermaid_image.py {} -o images/{}.png \;

Troubleshooting

Common Issues

  1. Node.js not installed: Install Node.js from nodejs.org
  2. mermaid-cli not found: Run npm install -g @mermaid-js/mermaid-cli
  3. Browser errors: Ensure Chrome/Chromium is installed
  4. Memory issues: Reduce image size or resolution

Performance Tips

  • Use lower resolution for quick previews
  • Cache frequently used diagrams
  • Batch process multiple diagrams
  • Consider using SVG for scalability

Examples

See assets/examples/ for complete examples:

  • Basic export workflow
  • Configuration examples
  • Template diagrams

References

Complete documentation in references/:

  • overview.md: Skill overview
  • installation.md: Installation guide
  • usage.md: Usage instructions
  • formats.md: Format specifications
  • troubleshooting.md: Problem solving

Note: This skill requires Node.js and mermaid-cli installation. For terminal-only rendering without dependencies, use the termaid skill.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.31%
按下载量换算761

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills