course-exam-prep-assistant

Automated end-of-term review assistant for undergraduate courses. Trigger keywords include course material compilation, end-term review prep, and exam-point extraction. Supports batch import of PDF lecture materials, PPTs (exported to PDF), and Word class notes; automatically filters blank pages, watermarks, ads, and duplicate pages; extracts chapter-wise core concepts, definitions, formulas, and short-answer exam points; generates concise memorization outlines and auto-generates multiple-choice questions; finally merges and formats into a standard Word document. Intended for undergraduate final-review scenarios.

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-exam-prep-assistant" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7b2b5dd775444e8bde35b2d44ad0dd381a435ff881f014d766657247ea8a0be0. Verify the upstream source and version against https://skillhub.cn/skills/user_b491475b/course-exam-prep-assistant 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

Automated end-of-term review assistant for undergraduate courses. Trigger keywords include course material compilation, end-term review prep, and exam-point extraction. Supports batch import of PDF lecture materials, PPTs (exported to PDF), and Word class notes; automatically filters blank pages, watermarks, ads, and duplicate pages; extracts chapter-wise core concepts, definitions, formulas, and short-answer exam points; generates concise memorization outlines and auto-generates multiple-choice questions; finally merges and formats into a standard Word document. Intended for undergraduate final-review scenarios.

0 Downloads

Introduction source: third_party · user_b491475b · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: course-exam-prep-assistant
description: >
  【课程课件自动整编备考助手】高校本科生期末复习备考全流程自动化工具。
  触发关键词:课件整编、期末整理备考资料、考点提炼、期末复习、考试重点整理、备考提纲。
  支持批量导入PDF课件、PPT导出PDF、Word课堂笔记,自动过滤空白页/水印/广告/重复页,
  分章节提取核心概念、定义、公式、简答题考点,生成精简背诵提纲并自动出配套选择题,
  最终合并排版为标准Word文档。适用于本科生期末集中复习场景。

课程课件自动整编备考助手

概述

本 Skill 实现从原始课件到期末复习资料的完整自动化流程。输入多份 PDF/Word 课件与课堂笔记,输出一份排版规范的 Word 复习文档,包含:

  • 精简背诵提纲(按章节组织、标题层级分明)
  • 配套选择题练习题(自动根据知识点生成、附带答案)

触发条件

当用户消息包含以下任一关键词组合时触发本 Skill:

  • "课件整编" / "整编课件"
  • "期末整理备考资料" / "期末复习资料整理"
  • "考点提炼" / "提炼考点"
  • "整理复习提纲" / "整理期末重点"
  • "课程资料整理" / "课程复习"

完整工作流

工作流总览

用户输入 & 文件导入  →  Step1: 文档预处理  →  Step2: 考点提取  →  Step3: 提纲与出题  →  Step4: Word输出

Step 1: 文档预处理与导入

目标:接收用户上传的文件,完成清洗和标准化。

操作步骤:

  1. 接收文件:提示用户提供需要处理的文件路径(PDF课件、PPT导出的PDF、Word课堂笔记)。支持以下格式:

    • .pdf — 课件PDF、PPT导出PDF
    • .docx / .doc — Word课堂笔记
  2. 运行预处理脚本:

    python scripts/main_pipeline.py --step preprocess --input <文件目录或文件列表>

    该脚本自动调用 pdf_processor.py 和 docx_processor.py 完成:

    • 过滤空白页(内容占比 < 5% 的页面)
    • 去除水印文字层
    • 剔除广告页和无关配图
    • 检测并移除重复页面(基于文本相似度 > 95%)
    • 统一编码和文本提取
  3. 输出:每份文件生成对应的清洗后 .txt 临时文件,存放于临时工作目录。

容错处理:

  • 文件损坏 → 弹窗提示 ⚠️ 文件 [文件名] 已损坏,已跳过该文件,继续处理其余文件
  • 格式不兼容 → 弹窗提示 ⚠️ 文件 [文件名] 不支持该格式,已跳过
  • 读取超时(30秒超时) → 弹窗提示 ⚠️ 文件 [文件名] 读取超时,已跳过,继续

Step 2: 分章节考点提取

目标:对每份清洗后的文档按章节解析,提取核心考点。

操作步骤:

  1. 运行考点提取脚本:

    python scripts/main_pipeline.py --step extract --input <预处理后的txt目录>
  2. 提取规则(由 content_extractor.py 执行):

    • 章节识别:通过正则匹配 第X章、Chapter X、§、数字编号标题等模式
    • 核心概念:提取章节首段定义性语句、加粗/标题化术语
    • 专业定义:识别 "XX是指"、"定义"、"XX指的是"、"所谓XX" 等模式
    • 公式:识别 LaTeX 公式、行内公式、编号公式
    • 简答题考点:识别 "特点"、"分类"、"原因"、"意义"、"作用"、"区别"、"联系" 等考点信号词
    • 剔除冗余:移除过渡句、举例详述、故事性叙述、重复解释
  3. 输出:JSON 格式的考点结构化数据,按章节分组。

Step 3: 提纲生成与配套出题

目标:将考点转化为背诵提纲,并自动生成选择题。

操作步骤:

  1. 运行提纲生成脚本:

    python scripts/main_pipeline.py --step generate --input <考点JSON文件>
  2. 提纲生成规则(由 outline_builder.py 执行):

    • 每个考点浓缩为 1-3 句核心表述
    • 公式单独列出并编号
    • 定义类考点使用 "术语:定义内容" 格式
    • 按原章节顺序排列,保持层级结构
  3. 选择题生成规则(由 exam_generator.py 执行):

    • 每个章节至少生成 3 道单选题
    • 题型:4选1 单项选择题
    • 干扰项策略:同类概念混淆、常见误区、相近数值
    • 每题附带正确答案标注
    • 输出格式:
      【第X章 章节名】
      1. 题目内容?
         A. 选项一  B. 选项二  C. 选项三  D. 选项四
         答案:X

Step 4: Word 文档合并排版

目标:将提纲和习题合并为一篇标准 Word 文档。

操作步骤:

  1. 运行文档生成脚本:

    python scripts/main_pipeline.py --step output --input <提纲与习题数据> --output <输出文件名.docx>
  2. 排版规则(由 outline_builder.py 执行):

    • 文档标题:一级标题,居中,黑体 18pt
    • 章节标题:二级标题(Heading 2),黑体 16pt
    • 考点子标题:三级标题(Heading 3),黑体 14pt
    • 正文:宋体 12pt,1.5 倍行距
    • 公式:独立段落,居中对齐,Consolas 字体
    • 选择题:选项字母加粗,宋体 12pt
    • 答案部分:红色字体标注
  3. 文档结构:

    封面/标题页
    ├── 第一部分:背诵提纲
    │   ├── 第1章 XXX
    │   │   ├── 1.1 核心概念
    │   │   ├── 1.2 重点定义
    │   │   ├── 1.3 公式汇总
    │   │   └── 1.4 简答题考点
    │   ├── 第2章 XXX
    │   └── ...
    └── 第二部分:配套练习题
        ├── 第1章 选择题
        ├── 第2章 选择题
        └── ...
        └── 参考答案

错误处理统一规范

所有错误均遵循"弹窗提示 + 跳过继续"原则,绝不中断整个工作流:

错误类型 处理方式
文件损坏/无法打开 弹窗提示,跳过该文件,继续处理其余
格式不支持 弹窗提示,跳过该文件
读取超时(30s) 弹窗提示,跳过当前文件
单文件无有效内容 记录警告,标记为空文件,继续
全部文件无效 最终汇总提示 ❌ 所有文件均无法处理,请检查文件
文档生成失败 保留已生成的提纲JSON和习题JSON,提示用户手动处理

资源文件

scripts/ — 可执行处理脚本

文件 功能
main_pipeline.py 主入口,编排四步流程
pdf_processor.py PDF 预处理(清洗、过滤)
docx_processor.py Word 文档处理
content_extractor.py 分章节考点提取
exam_generator.py 选择题自动生成
outline_builder.py Word 提纲排版输出

references/ — 参考文档

文件 内容
workflow_detail.md 每步详细实现逻辑与正则模式库

使用示例对话:

用户:"帮我把这些课件整编成期末复习资料"(附带文件路径)

助手:按照 Step 1→4 依次执行,每步反馈进度。最终输出 Word 文件路径并使用 present_files 展示。

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 Value95/100

Highlights

  • 直接解决高校本科生期末复习的核心痛点,功能完整闭环
  • 支持多种文件格式输入,自动化处理流程高效实用
  • 生成标准化Word文档,极大提升复习效率
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含多种常见表达变体
  • 边界清晰,不易与其他Skill混淆
  • 关键词组合设计合理,触发准确率高
Structure and Standards85/100

Areas to improve

  • 缺少When to Use章节 Reported severity: Minor

    文档结构完整但未明确设置When to Use使用场景说明章节

    Recommendation: 建议在概述后增加When to Use章节,明确说明适用场景和使用时机

Highlights

  • 四步工作流划分清晰,每步目标明确
  • 包含完整的使用示例对话
  • 文档结构层次分明,排版规范
Execution Reliability88/100

Areas to improve

  • 脚本路径引用需确认 Reported severity: Minor

    引用了scripts/目录下的多个脚本文件,需确认这些文件是否实际存在

    Recommendation: 请确保所有引用的脚本文件(main_pipeline.py等)都已包含在Skill包中

Highlights

  • 错误处理机制完善,采用弹窗提示+跳过继续原则
  • 覆盖主要异常场景(文件损坏、格式不支持、读取超时等)
  • 参数配置明确,执行流程可靠
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.

Not specified in the source documentation.

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