← 返回
未分类

Mindflow

📄✨ 根据输入文本或上传文件生成精美的思维导图 🧠🎨
matrix
未分类 community v1.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 264
下载
💾 58
安装
2
版本
#latest

概述

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 to generate HTML
  5. Execute node (or bun) scripts/html-to-image.js --auto-fit 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

版本历史

共 2 个版本

  • v1.0.1 Initial release 当前
    2026-04-01 15:26 安全 安全
  • v1.0.0 Initial release
    2026-04-01 14:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 330 📥 93,512
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 429 📥 116,634
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 216 📥 47,117