Install
openclaw skills install mindflowConverts text, Markdown files, or Txt files into mind map images. Use this skill when users want to generate mind maps/brain maps from articles, broadcast scripts, notes, or any text content. Supports specifying output format and resolution. This skill should be triggered whenever text needs to be converted into image-based mind maps, regardless of whether users explicitly mention "mind map" or "思维导图"
openclaw skills install mindflowThis skill converts user-input text, Markdown files, or Txt files into mind map images.
# Using npm
npm install markmap-cli markmap-lib markmap-render puppeteer
# Using bun
bun install markmap-cli markmap-lib markmap-render puppeteer
Input Content → text-to-markdown → markdown-to-html → html-to-image → Output Image
→ [If user uses openclaw, send the image to the user as a file]
Use LLM to convert input content into mind map Markdown format according to the following rules:
Rule Specifications:
Output Format:
# Root Node (must have exactly one)
## Level 2 Node
### Level 3 Node
- List items are also supported
- **Bold**, `code`, [link](url)
- $LaTeX formula$
Use markmap command to convert Markdown to HTML:
markmap --offline --no-open --no-toolbar -o <html_file> <markdown_file>
Use html-to-image.js to convert HTML to image (default: jpg format):
node (or bun) scripts/html-to-image.js --auto-fit <input-html> <output-image>
Parameter Specifications:
| Parameter | Description |
|---|---|
-t jpg | Output format is png (default) |
--auto-fit | Auto-detect mindmap content size and adapt dimensions |
input-html | Input HTML file path |
output-image | Output image path |
/tmp/mindmap.md)markmap --offline --no-open --no-toolbar -o <html_file> <markdown_file> to generate HTMLnode (or bun) scripts/html-to-image.js --auto-fit <html_file> <output-image> to generate PNG image.md file path.txt file pathExample 1:
Example 2: