course-mindmap-generator

An automated tool to generate course knowledge mind maps for higher education. It converts classroom PPT or Word materials into a structured Word document formatted for one-click import into XMind. It recognizes chapter structure, extracts core points, distinguishes major chapters, subsections, and detailed exam points, and generates hierarchical Heading-style titles in the Word document. Supports pptx/ppt/docx/doc; non-courseware formats are intercepted with a prompt. Use when a user uploads course materials and wants a mind map, knowledge structure diagram, or outline.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "course-mindmap-generator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d7b8e2120e8b8732237124ea0aecc90e7ff541c73d49cdde6d3f7a6317da7676. Verify the upstream source and version against https://skillhub.cn/skills/user_6bf83527/course-mindmap-generator2025112283 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

An automated tool to generate course knowledge mind maps for higher education. It converts classroom PPT or Word materials into a structured Word document formatted for one-click import into XMind. It recognizes chapter structure, extracts core points, distinguishes major chapters, subsections, and detailed exam points, and generates hierarchical Heading-style titles in the Word document. Supports pptx/ppt/docx/doc; non-courseware formats are intercepted with a prompt. Use when a user uploads course materials and wants a mind map, knowledge structure diagram, or outline.

0 Downloads

Introduction source: third_party · user_6bf83527 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Python path (managed, isolated):** Required packages:** `python-pptx`, `python-docx` (installed in the managed venv above) If venv doesn't exist:
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: course-mindmap-generator
description: "高校课程知识点思维导图自动化生成工具。将课堂课件PPT或Word自动转化为适配XMind一键导入的结构化Word思维导图文档。识别章节结构、提取核心知识点、区分大章节小节和细分考点,按层级生成Heading标题样式的Word文档。此技能应在用户上传PPT或Word课件并希望生成思维导图、知识结构图、知识点大纲时使用。支持pptx/ppt/docx/doc格式,非课件格式自动拦截提示。"
agent_created: true

Course Mindmap Generator

Overview

将高校课堂课件(PPT/Word)自动转化为结构化思维导图Word文档,文档采用标准 Heading 1~4标题样式,可直接导入XMind生成思维导图。涵盖文件验证、内容提取、 知识点层级分析、Word文档生成的完整工作流程。

Workflow

Step 1: File Validation

验证上传文件是否为合法课件格式。

Supported formats:

  • PPT: .pptx .ppt .ppsx .potx
  • Word: .docx .doc .wps .wpt

Validation order (critical):

  1. File existence → if missing: report "文件不存在"
  2. Extension check → if not PPT/Word: report "请上传课件Word或PPT文件"
  3. Empty file check → if 0 bytes: report "文件无效:文件为空"

If user uploads an image (PNG/JPG/screenshot), do NOT attempt to recognize image content — directly respond: "请上传课件Word或PPT文件"

Step 2: Content Extraction

Extract text content from the courseware.

For PPT files — use scripts/mindmap_workflow.py or python-pptx directly:

  • Copy file to temp path first (Chinese path encoding workaround on Windows)
  • Validate file is valid zip (PPTX header starts with PK)
  • Iterate slides, extract text from all shapes and tables
  • Record font size for each paragraph (used for title detection)
  • Filter noise: page numbers, headers/footers, author info, formula fragments

For Word files — use python-docx:

  • Copy to temp path, extract all paragraph text

Chinese path handling: python-pptx and python-docx may fail on Chinese paths. Always copy the source file to a temp ASCII path before processing:

import shutil, os
tmp = os.path.join(os.environ.get('TEMP', '/tmp'), '_workflow_tmp' + ext)
shutil.copy2(src, tmp)
# process tmp, then remove
os.remove(tmp)

Step 3: Content Sufficiency Check

Verify the extracted content has enough material to generate a meaningful mindmap. Minimum threshold: 3 slides/paragraphs with non-empty text. If insufficient, report "文件无效:文档内容过少,无法提取有效知识点"

Step 4: Knowledge Structure Analysis

Analyze extracted content to build a hierarchical structure:

  • Level 1 (Chapter): 第X章, §14.1 patterns
  • Level 2 (Section): 一、, 二、 Chinese numbered headings
  • Level 3 (Knowledge Point): 1., 2. Arabic numbered items, 【例X】
  • Level 4 (Sub-point): detailed points under each knowledge point

See references/knowledge_structure_rules.md for the full regex patterns, filtering rules, and font-size heuristics.

Important: Automatic rule-based extraction often produces fragmented results for physics/math PPTs (formulas get split into pieces). For best quality, use AI-enhanced mode: manually analyze the PPT content, construct a structured JSON, then feed it to the workflow script via --ai parameter.

Step 5: Word Document Generation

Generate the mindmap Word document with proper heading styles for XMind import.

Heading style mapping:

  • Heading 1 → Chapter (一级章节)
  • Heading 2 → Section (二级小节)
  • Heading 3 → Knowledge Point (三级知识点)
  • Heading 4 → Sub-point (四级细分考点)

Document title and import instructions use Normal style (not imported by XMind).

Using the script:

# Auto-analysis mode
python scripts/mindmap_workflow.py <课件路径> [输出路径]

# AI-enhanced mode (recommended for complex courseware)
python scripts/mindmap_workflow.py <课件路径> <输出路径> --ai <结构JSON>

Step 6: XMind Import

Instruct user to import the generated Word document into XMind:

  1. Open XMind
  2. File → Import → select the Word document
  3. Heading styles auto-map to mindmap hierarchy

Environment Setup

Python path (managed, isolated):

C:\Users\HUAWEI\.workbuddy\binaries\python\envs\default\Scripts\python.exe

Required packages: python-pptx, python-docx (installed in the managed venv above)

If venv doesn't exist:

"C:\Users\HUAWEI\.workbuddy\binaries\python\versions\3.13.12\python.exe" -m venv "C:\Users\HUAWEI\.workbuddy\binaries\python\envs\default"
"C:\Users\HUAWEI\.workbuddy\binaries\python\envs\default\Scripts\pip.exe" install python-pptx python-docx

AI-Enhanced Mode

For complex courseware (physics, math with formulas), automatic rule-based extraction produces poor results. Use AI-enhanced mode:

  1. Extract raw PPT content first
  2. AI analyzes content and constructs a structured JSON:
    {
      "章节标题": {
        "小节标题": {
          "知识点": ["细分考点1", "细分考点2"]
        }
      }
    }
  3. Save JSON, then run:
    python scripts/mindmap_workflow.py <课件> <输出> --ai <结构.json>

This produces much higher quality mindmaps because AI can:

  • Reconstruct fragmented formulas into complete knowledge points
  • Identify logical groupings not marked by explicit numbering
  • Filter noise more effectively than regex rules

Exception Handling Summary

Scenario Response
Image file (PNG/JPG) "请上传课件Word或PPT文件"
PDF/TXT/CSV/other "请上传课件Word或PPT文件"
File not found "文件不存在:{path}"
Empty file (0 bytes) "文件无效:文件为空"
Insufficient content "文件无效:文档内容过少,无法提取有效知识点"
Corrupt PPTX "文件格式损坏或非标准PPT格式"

Resources

scripts/

  • mindmap_workflow.py — Complete automation workflow script with file validation, content extraction, knowledge structure analysis, and Word document generation. Supports both auto-analysis and AI-enhanced modes.

references/

  • knowledge_structure_rules.md — Regex patterns for chapter/section detection, noise filtering rules, font-size heuristics, XMind import specifications, and supported file format reference.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决高校课件转思维导图的明确痛点,功能闭环完整
  • 支持PPT/Word双格式,覆盖主流课件类型
  • 提供AI增强模式提升复杂课件处理质量
Trigger Precision90/100

Highlights

  • 触发场景描述清晰:上传课件并希望生成思维导图
  • 支持格式列举完整(pptx/ppt/docx/doc)
  • 非课件格式拦截逻辑明确
Structure and Standards95/100

Highlights

  • 6个步骤划分清晰,每步有明确目标和操作说明
  • 包含端到端脚本调用示例
  • frontmatter 完整,文档结构规范
Execution Reliability88/100

Areas to improve

  • description写错位置 Reported severity: Minor

    顶层frontmatter中description为空,实质描述内容位于skill_body内部

    Recommendation: 将description内容移至顶层frontmatter,保持规范一致性

Highlights

  • 工具来源明确(python-pptx/python-docx)
  • 覆盖主要异常场景(文件不存在/空文件/格式错误等)
  • 中文路径处理方案具体可行
  • AI增强模式提供兜底方案
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Python path (managed, isolated):** Required packages:** `python-pptx`, `python-docx` (installed in the managed venv above) If venv doesn't exist:

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.