mindflow

Converts 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 "思维导图"

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "mindflow" with this command: npx skills add newtoolai/mindflow

Text to Mind Map Skill

This skill converts user-input text, Markdown files, or Txt files into mind map images.

Dependency Installation

# Using npm
npm install markmap-cli markmap-lib markmap-render puppeteer

# Using bun
bun install markmap-cli markmap-lib markmap-render puppeteer

Workflow

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]

Step 1: text-to-markdown

Use LLM to convert input content into mind map Markdown format according to the following rules:

Rule Specifications:

  • Extract Core Content: Extract key points from broadcast scripts with high information density, concise and clear, without omitting important points
  • Reduce Hallucinations: Generated content must come from the input broadcast script; do not fabricate, rewrite, exaggerate, flatter, omit, or produce hallucinations
  • Strictly Follow Node Hierarchy: Only one root node, subsequent nodes progress by hierarchy levels
  • Support All Basic Markdown Syntax: Bold, code, links, and LaTeX formulas can be embedded in node text
  • Output Format Compliance: Strictly follow the format below; do not output any other extraneous content
  • Use Appropriate Emoji: Use relevant emojis appropriately to enhance visual expression, but avoid excessive use
  • Content Limit: Ensure output content is limited to 300 tokens
  • Hierarchy Limit: Mind map generates maximum 4 levels (root node counts as level 1)

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$

Step 2: markdown-to-html

Use markmap command to convert Markdown to HTML:

markmap --offline --no-open --no-toolbar -o <html_file> <markdown_file>

Step 3: html-to-image

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:

ParameterDescription
-t jpgOutput format is png (default)
--auto-fitAuto-detect mindmap content size and adapt dimensions
input-htmlInput HTML file path
output-imageOutput image path

Execution Steps

  1. Read user-input text content or file path
  2. Call LLM to convert content into mind map Markdown format according to the rules above
  3. Save the generated Markdown to a temporary file (e.g., /tmp/mindmap.md)
  4. Execute markmap --offline --no-open --no-toolbar -o <html_file> <markdown_file> to generate HTML
  5. Execute node (or bun) scripts/html-to-image.js --auto-fit <html_file> <output-image> to generate PNG image
  6. Inform user of the output image path | If user uses openclaw, send the image to the user as a file

Input Types

  • Directly input text content
  • .md file path
  • .txt file path

Output

  • Generated mind map image file (default: PNG format)

Examples

Example 1:

  • User Input: "How to learn React"
  • Output: PNG image of React learning path mind map

Example 2:

  • User Input: "Help me convert this markdown file to a mind map: /path/to/notes.md"
  • Output: PNG image of mind map corresponding to notes.md content

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Gigo Lobster Resume

🦞 GIGO · gigo-lobster-resume: 续跑入口:v2 stable 当前会清理旧 checkpoint 并从头重跑;保留此 slug 作为旧 checkpoint 兼容入口。 Triggers: 继续试吃 / 恢复评测 / resume tasting / continue lobster...

Registry SourceRecently Updated
General

YiHui CONTEXT MODE

context-mode is an MCP server that saves 98% of your context window by sandboxing tool outputs. It routes large file reads, shell outputs, and web fetches th...

Registry SourceRecently Updated
General

xinyi-drink

Use when users ask about 新一好喝/新一咖啡 drinks, stores, menu, activities, Skill用户大礼包, today drink recommendations, afternoon tea, feeling sleepy, or personalized...

Registry SourceRecently Updated
General

vedic-destiny

吠陀命盘分析中文入口。用于完整命盘研判、命主盘 Rashi chart 与九分盘 Navamsha chart 联读、既往事件回看、出生时间稳定度判断、事业主题、婚姻主题、时空盘专题,以及基于 Jagannatha Hora PDF、星盘截图或文本命盘数据的系统拆盘。当用户提到完整星盘、事业方向、婚姻问题、关系窗...

Registry SourceRecently Updated