course-outline-generator

Converts corporate training requirements into structured course outlines and directly outputs well-formatted Word documents for easy delivery and implementation.

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-outline-generator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2278eaec7180efcdca797059e9d8601300c045ee29cce12beb3e7116f232a315. Verify the upstream source and version against https://skillhub.cn/skills/user_6f0d0287/course-outline-generator 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

Converts corporate training requirements into structured course outlines and directly outputs well-formatted Word documents for easy delivery and implementation.

0 Downloads

Introduction source: third_party · user_6f0d0287 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Translation pending; see 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-outline-generator
slug: course-outline-generator
version: 1.0.0
displayName: 课程大纲生成器
description: "将企业培训需求转化为结构化课程大纲,直接输出排版精美的 Word 文档。"

课程大纲生成器

输入

用户提供:

  • 课程背景:企业名称、学员岗位、工作年限、行业
  • 课程需求描述:文字或截图,可能简短抽象,需要你延展
  • 课程目标:企望达到的能力或解决的问题
  • 参考课纲(可选):已验证的成熟课纲,可提取高相关度内容整合

版本产出

每次撰写课纲必须同时输出两个版本,文件名规范为:

  • {企业名称}_{课程名称}_详细版.docx
  • {企业名称}_{课程名称}_精简版.docx

详细版(供 word-to-ppt 技能使用)

完整4级目录大纲,含所有细节内容。必须以参考课纲 docx 为模板(copy+清空内容重写),确保排版完全一致。

排版规范(参考课纲标准):

  1. 模板优先:以中移在线_APP日活增长与用户留存实战运营(详细版).docx 为排版模板,copy 它作为基底(继承边距/行距/字体设置),清空所有段落内容后重写
  2. 字体:全文统一在每个 Run 的 w:rFonts 上显式设置 ascii、eastAsia、hAnsi、cs 四个属性为"微软雅黑"
  3. 行距:全部段落统一使用 w:spacing 的 line=400、lineRule=exact(=20pt精确行距)。封面、收益/特色等如需调整段前段后,通过 before/after 控制,不得使用空段落占位
  4. 封面:
    • 标题:18pt(sz=36)加粗 蓝色 #0070C0,居中
    • 副标题:默认字号加粗,居中
    • 讲师信息:默认字号,居中
    • 各元素间用 space_before 控制间距
  5. 段落缩进(缩进值单位一律用 twips,420 twips = 266700 EMU):
    • 章节标题【】:无缩进,10.5pt 加粗 蓝色 #0070C0,LEFT
    • 大纲一级:left=-420, first=420(悬挂缩进),10.5pt 加粗 蓝色 #0070C0,LEFT,outline_level=0
    • 大纲二级:left=-420, first=420(悬挂缩进),10.5pt 加粗 黑色 #000000,outline_level=1
    • 大纲三级:first=420(首行缩进),10.5pt,outline_level=2
    • 大纲四级:left=420, first=420(左缩进+首行缩进),10.5pt,outline_level=3
    • 正文(含案例/实战/收益):first=420(首行缩进),10.5pt
    • 工具注释:left=840(双重缩进),9.5pt 灰色 #808080
  6. 案例/实战:蓝色 #0070C0 加粗「案例:」「实战演练:」前缀 + 正文
  7. 收益:加粗关键词 + 正文
  8. 特色:加粗关键词 + 正文,行距 line=420
  9. 导航窗格:大纲各级别设置 w:outlineLvl 属性(0~3对应一~四级目录)
  10. 生成后逐段比对参考文档的格式参数,确保行距、字号、颜色、缩进一致
  11. 不要在课纲末尾加"课程总结"模块,大纲主体结束即止

避坑点(生成 docx 时的常见错误)

以下是实际项目中被坑过的问题,生成前必须逐条自查。

⚠️ 坑1:OpenXML 行距/间距/缩进值的单位不是 EMU,是 twips

现象:生成的 docx 打开后页数远超预期(如 40 页内容变成 407 页)。

根因:用 python-docx 分析参考模板时,paragraph_format.line_spacing 返回的是 EMU 值(如 254000),但直接写入 OpenXML 的 w:line / w:before / w:after / w:firstLine 等属性时,这些属性期望的单位是 twips(1/20 点)。

换算关系:

1 twip = 1/20 pt
1 EMU = 1/914400 英寸
1 twip = 635 EMU
twips = EMU / 635

典型案例:

# 错误写法 —— EMU 值直接写入 XML,导致行距变成 4.5 米/行:
spacing.set('{w}line', '254000')   # 254000 twips = 12700pt → 每行约4.5米

# 正确写法 —— 先转换为 twips:
spacing.set('{w}line', str(254000 // 635))   # = 400 twips = 20pt  ✓

常用值速查表:

参数 python-docx 返回 (EMU) 应写入 XML 的值 (twips) 换算后对应 pt
正文行距 line 254000 400 20pt
封面行距 line 266700 420 21pt
首行缩进 firstLine 266700 420 ~2个中文字符
副标题段前距 before 152400 240 12pt
讲师段前距 before 304800 480 6pt
讲师段后距 after 76200 120 6pt

唯一例外:w:sz(字号)是 half-pts,w:pgSz 的 w:w/w:h 是 twips,与上述规则一致。

自查清单(生成后务必验证):

  1. 打开 docx,页数是否合理?(197段内容 ≈ 15-20 页,非 400+ 页)
  2. 抽取任意一段,检查 w:spacing 的 w:line 值是否 ≤ 420(而非 ≥ 254000)

⚠️ 坑2:讲师信息段落不要设置 sz=0

现象:讲师信息段落字体大小为 0pt,文字不可见。

根因:封面讲师信息在参考模板中 size=None(继承默认字号),不是 0pt。当用 Pt(font_size_emu / 12700) 计算且 font_size_emu=0 时,Pt(0) 会写入 sz=0,导致文字不可见。

正确做法:讲师信息段落不显式设置字号,让它继承模板默认值:

# 错误:
set_font(run, size=Pt(0))   # sz=0 → 文字不可见

# 正确:
set_font(run)   # 不传 size 参数,继承默认字号

精简版(供客户查看审核)

精简版保留课程全貌但去掉细节,便于客户快速浏览课程结构来判断是否采购。

保留内容(从详细版提炼,需精简呈现):

  • ✅ 课程标题、副标题、讲师信息
  • ✅ 课程背景(浓缩为 1-2 段,去掉宏观趋势展开和层层递进,保留核心痛点 + 解决方案 + 预期效果)
  • ✅ 课程收益(每个收益点保留 1 行标题摘要,去掉 2-4 条详细描述)
  • ✅ 课程特色(每个特色保留 1 句要点,去掉大段说明)
  • ✅ 课程对象(精简为岗位名称列表 + 经验要求)
  • ✅ 课程时间

删除/精简规则:

  1. 目录层级:保留 4级(一、 (一)、1、 ①)
  2. 大纲内容:
    • 每个章节/模块:保留模块开头的引言/介绍段落
    • 每个子标题下:简化所有展开说明文字
    • 案例:保留企业名称和结果数字(如"某运营商APP咨询转化率从12%提升到38%"),简化详细过程描述
    • 工具/方法论:仅列出名称,去掉定义和用法说明
    • 实战演练:仅保留标题和产出物指向,去掉具体操作步骤
    • 模型框架:仅保留名称引用,去掉理论展开
  3. 结构:章节编号 + 标题即可,标题下无额外子段落说明
  4. 排版:简洁排版,需模板继承,黑体标题 + 宋体正文,需精细的行距/缩进控制
  5. 文件:独立 docx 文件,不得与详细版混在同一文档中。文件名后缀 _精简版.docx

大纲撰写规则

1. 目录层级

  • 至少4级,编号格式:一、(一) 1. (1) ①

2. 每章必备

  • 核心理论/方法论讲解
  • 案例:标注为「案例:xxx」
  • 实战演练:标注为「实战演练:xxx」,需有明确产出物

3. 工具方法论

每个章节嵌入行业公认的工具/方法论/模型:

  • 战略类:波特五力、PESTLE、SWOT、颠覆式创新、蓝海战略
  • 产品类:设计思维、JTBD、SCAMPER、$APPEALS、KANO、MVP、PMF、用户体验地图
  • 数据类:用户画像、RFM模型、漏斗分析、留存分析、归因分析
  • 管理类:敏捷、Scrum、精益、OKR
  • 营销类:STP、AARRR、增长黑客
  • AI工具:DeepSeek、提示词工程、AI内容生成

工具需与内容强相关,可根据客户行业情况和产品情况补充匹配的工具/方法论/模型,可穿插简要定义说明。

4. 逻辑结构

章节按「认知→方法→工具→实战→复盘」递进。

5. 各板块撰写要点

  • 标题:和详细版保持一致
  • 背景:和详细版保持一致
  • 收益:和详细版保持一致
  • 特色:和详细版保持一致
  • 对象:和详细版保持一致

6. 案例与行业适配

  • 优先用学员所在行业案例(如通信行业用华为/三大运营商案例)
  • 实战优先用学员企业真实项目作为素材

执行流程

  1. 需求解析:提炼关键词,判断知识领域归属
  2. 课程定位:确定标题、天数、学员画像
  3. 知识体系构建:梳理知识模块,匹配工具方法论,确定逻辑顺序
  4. 大纲撰写:先撰写完整大纲(按内容规则,确保4级目录+每章案例实战+工具覆盖),然后据此精简出客户审查版
  5. 输出 Word:
    • 详细版:用 python-docx 生成 docx,以参考课纲 docx 为模板(copy+清空内容重写),排版完全模仿参考课纲的字体/行距/缩进/颜色
    • 精简版:用 python-docx 生成精简骨架的 docx(仅 1-2 级标题,无说明文字,简洁排版)
  6. 归档保存:生成文件后,将文件保存到 D:\01 企业培训项目\00 大纲和课表\01 2026年\ 目录下。先读取该目录下已有文件夹的最大数字编号,在此基础上 +1 作为新文件夹的编号。文件夹命名规范为 {数字编号} {企业名称} {课程名称}。将 Word(详细版+精简版)和 PPT(如有)都放入该文件夹。所有文件命名规范为 {企业名称}_{课程名称}_版本.扩展名。
  7. 转 PDF:将详细版 docx 转换为 PDF。使用 LibreOffice 或 PowerShell COM 组件将详细版 Word 文档转为 PDF,输出文件名规范为 {企业名称}_{课程名称}_详细版.pdf,与 docx 文件放在同一归档文件夹中。转换完成后验证 PDF 文件是否正常生成。

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

Highlights

  • 解决企业培训课程设计效率低、格式不统一的核心痛点
  • 直接输出排版精美的 Word 文档,显著提升培训内容生产效率
Trigger Precision95/100

Highlights

  • 触发描述清晰完整,边界明确,覆盖典型使用场景
Structure and Standards85/100

Areas to improve

  • 文档过长 Reported severity: Minor

    SKILL.md 内容约 1800 行,虽结构完整但维护成本较高

    Recommendation: 建议将排版规范、避坑点等细节拆分为独立参考文档,主文件保留核心流程

Highlights

  • Phase/步骤清晰,有明确出口条件与端到端示例
  • frontmatter 完整,涵盖输入、产出、规则与流程
Execution Reliability88/100

Areas to improve

  • 外部模板依赖未说明 fallback Reported severity: Minor

    详细版生成依赖特定参考课纲 docx 模板,但未说明模板缺失时的处理机制

    Recommendation: 建议补充模板缺失时的默认排版规则或自动创建基础模板的逻辑

Highlights

  • 工具来源明确,参数换算规则详细(EMU 与 twips 转换)
  • 覆盖主要异常场景(如行距单位错误、字体大小为 0)
  • 不可逆操作有路径规范与命名规则
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.