course-mindmap-generator

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

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "course-mindmap-generator":https://skillpi.com/zh/skills/deepskill-d7b8e2120e8b8732237124ea0aecc90e7ff541c73d49cdde6d3f7a6317da7676。安装前核对上游来源和版本:https://skillhub.cn/skills/user_6bf83527/course-mindmap-generator2025112283。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

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

0 下载

介绍来源: third_party · user_6bf83527 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
将高校课堂课件(PPT/Word)自动转化为结构化思维导图Word文档,文档采用标准 Heading 1~4标题样式,可直接导入XMind生成思维导图。涵盖文件验证、内容提取、 知识点层级分析、Word文档生成的完整工作流程。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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.

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

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

亮点

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

亮点

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

待提升项

  • description写错位置 原报告严重程度:轻微

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

    改进建议:将description内容移至顶层frontmatter,保持规范一致性

亮点

  • 工具来源明确(python-pptx/python-docx)
  • 覆盖主要异常场景(文件不存在/空文件/格式错误等)
  • 中文路径处理方案具体可行
  • AI增强模式提供兜底方案
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

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

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。