AI Agent Hub
Back to skills
Document Mind Map Generator icon

Document Mind Map Generator

Knowledge Management Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_966d65df/mindmapgenerator according to https://skillhub.cn/install/skillhub.md.

About this skill

What It Solves

Use it when you have an .epub, .pdf, .docx, .md, or .txt file and need a readable, structured map instead of a raw document dump. It turns a long source into a reproducible pipeline: extract text, infer outline, render an interactive mind map. This avoids manually copying headings, reorganizing hierarchy, and hand-building an interactive diagram across formats.

Workflow And Capabilities

  • Input handling: accepts a single file or a directory; for directories it lists candidate documents and asks for confirmation when multiple text files are present.
  • Text extraction: uses scripts/extract_text.py; .epub is parsed with zipfile, .txt and .md are read directly, while .pdf and .docx require their Python libraries.
  • Outline generation: produces a Markdown outline from level 1 to level 4 headings, and converts lists, tables, and quote blocks into map nodes. The goal is to extract argument structure and actionable points, not just duplicate a table of contents.
  • Mind map build: scripts/build_mindmap.py converts the outline into nested data and injects it into assets/mindmap_template.html, producing an offline HTML + SVG file.
  • Interaction: supports click collapse/expand, wheel zoom, drag panning, view reset, and PNG export at 2x clarity.

Usage Boundaries

Best for turning existing documents into readable structural maps, not for generating a new topic from scratch without source material. If PDF or DOCX extraction dependencies are missing, the skill asks for installation or plain text input. With multiple documents in a directory, confirm the target file first. On Windows with Chinese paths, prefer the hosted Python runtime and quote paths containing spaces.

Use Cases

  • Extract text from an uploaded ebook, build a chapter outline and a collapsible HTML mind map for reviewing the book structure.
  • Pick the main .md or .docx file from a folder and create a tree mind map to brief the team on key points.
  • Turn a research PDF into a hierarchical outline and interactive mind map that highlights core arguments and actionable points.
  • Convert project docs into an HTML mind map with PNG export for offline preview and meeting appendices.

Best For

  • Editor compiling long documents: needs to break papers or manuals into chapter flow and highlight key points.
  • Instructor preparing training materials: needs to convert lecture notes into a collapsible mind map for class.
  • Product or operations docs owner: needs to turn requirements or SOPs into a tree map for cross-team alignment.
  • Personal knowledge manager: wants to generate offline interactive mind maps from ebooks or document folders.