fmg-html-ppt
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 "fmg-html-ppt" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4ed99dd6350b8213afeb2a44363d2fdd729ad1d61bef755a98ebde964bb01749. Verify the upstream source and version against https://skillhub.cn/skills/user_73cb5b59/fmg-html-ppt 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
General lesson-slide pipeline: convert “one sentence / uploaded lesson docx / text / textbook images / any related materials” into an interactive single-file HTML5 lesson, then convert it to a directly presentable .pptx. The HTML stage is handled by an "interactive lesson designer" and the PPT stage is handled by slidep (tencent-pptx engine). Trigger phrases include: make slides, interactive slides, slides to PPT, lesson to PPT, HTML to PPT, one-sentence slides, text to slides.
Introduction source: third_party · user_73cb5b59 · 1.2.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: fmg-html-ppt
displayName: 互动课件生成+转PPT(一句话/教案/课文/图片→HTML→PPTX)
version: 1.2.0
description: >
通用课件流水线:把「一句话 / 上传教案docx / 课文文本 / 教材图片 / 任意相关资料」先变成
互动式单文件 HTML5 课件,再转成可直接演示的 .pptx。
触发词:做课件、互动课件、课件转PPT、教案转PPT、HTML转PPT、一句话出课件、课文生成课件。
HTML 阶段由「互动课件设计师」专家/技能负责,PPT 阶段由 slidep(tencent-pptx 底层引擎)负责。
agent_created: true互动课件生成 + 转 PPT(fmg-html-ppt)
一条龙:任意输入 → 互动 HTML 课件 → PPT 课件。 核心思路:AI 直接出的 PPT 往往不好看、不实用;先产出互动 HTML(视觉与交互都可控), 再把它结构化转成 PPTX,美观度和信息密度都更稳。
用到的专家与技能(与历史操作一致)
| 阶段 | 专家 / 技能 | 作用 |
|---|---|---|
| Phase 2 生成 HTML | 互动课件设计师(interactive-courseware-designer) | 负责互动 HTML 课件的内容与交互设计 |
| Phase 2 兜底方法 | fmg-hdkc(单文件 HTML5 互动课件) |
TeachAny 基础设施不可用时的等价实现 |
| Phase 3 转 PPTX | slidep(tencent-pptx 技能底层引擎) | 把 .slide(JSX DSL) 编译为 .pptx |
执行时:Phase 2 先
@skill:互动课件设计师产出互动 HTML;Phase 3 用本 skill 的scripts/build_slides.py+ slidep 把 HTML 结构转成 PPTX。
何时使用
- 用户说「帮我做个《X》课件 / 互动课件」「把教案转成 PPT」「课文生成课件」。
- 输入可以是:一句话、教案 docx、课文文本、教材图片、任意混合资料。
- 想要「既美观又实用」的课件,而不是干巴巴的静态 PPT。
工作流(三阶段,不可跳过)
Phase 1 — 输入规范化(入口分流)
详见 references/intake.md。把任意输入收敛成「课件规格」:
- 一句话:抽课文名/年级/学科 → WebSearch 补课文原文(或让用户贴)→ 默认小学低段新授 + 全套互动。
- 教案 docx:
python scripts/extract_docx.py 教案.docx抽文本 → 提炼骨架(目标/重难点/环节/生字/作业)。 - 课文文本:按「导入—初读—精读—难点—总结—作业」切分,识别角色对话/寓意句/对比。
- 教材图片:用 Read 工具直接读图(多模态 OCR+理解)提取标题/生字表/插图/课后题。
- 混合资料:并集去重,统一产出规格。
收敛产物 =
meta+ 生字表/脉络/角色/难点/讨论/金句/作业 + 一份pages.json。
Phase 2 — 生成互动 HTML 课件
- 加载并执行 互动课件设计师 技能,按其 4-Phase 流程产出单文件 HTML5 互动课件 (大字号/卡通/游戏化 + 课堂互动 + 教师锦囊)。
- 必含互动模块(低段刚需,来自 fmg-hdkc 方法论): 趣味识字闯关、写字小法官、故事脉络、分角色朗读(TTS)、难点可视化、讨论投票、词语排序、知识树、分层作业。
- 产出桥接物
pages.json:HTML 按「逻辑页」组织(每页一个主题)。AI 据此把每页抽成pages.json的一个对象(字段见下,type决定版式),作为 Phase 3 的输入。pages.json是 HTML 与 PPT 共用的骨架——改 PPT 排版时不用重做 HTML,只改这个 JSON。 - 校验:提取
<script>用node --check验证 JS 语法;控制台无报错;TTS 用 try/catch 降级。
Phase 3 — HTML → PPTX
- 结构化:
pages.json每页对应一个type(cover/intro/cards/writing/flow/read/compare/quote/claims/sort/tree/homework/text)。 - 批量生成 .slide:
python scripts/build_slides.py pages.json --out slides该脚本内置 12 种版式模板,自动规避三类坑(见
references/slidep_dsl.md)。 - 校验:
python scripts/validate_slides.py slides - 编译为 PPTX(需 MCP 后端 localhost:39099 在线):
slidep start --project <dir> --filename "课件名.pptx" # 等待 daemon 把 slides/ 编译进 pptx 后: slidep stop --project <dir> - 校验 PPTX:用 python-pptx 核对页数 = slides 文件数,无明显空页。
pages.json 字段速查(type → 字段)
| type | 关键字段 |
|---|---|
cover |
title, subtitle, tags[], desc, emoji |
intro |
title, subtitle, desc, bullets[] |
cards |
title, subtitle, hint, items[{zi,py,ci}], note |
writing |
title, subtitle, hint, items[{zi,struct,strokes}] |
flow |
title, subtitle, steps[] |
read |
title, subtitle, roles[{name,emoji,line,color}] |
compare |
title, subtitle, items[{who,result,reason,color}] |
quote |
title, subtitle, text, by |
claims |
title, subtitle, items[{txt,agree(bool),why}] |
sort |
title, subtitle, hint, items[{word,label}] |
tree |
title, subtitle, trunk, branches[{icon,title,sub,color}], leaves[] |
homework |
title, subtitle, items[] |
text |
title, subtitle, body |
完整示例见 references/slidep_dsl.md 与各 .slide 文件(本 skill 自带 templates/ 样例)。
设计系统
详见 references/palette.md:米白底 #FAF7F2 + 橙 #FF9F43/绿 #4EC07A/蓝 #5AA9E6/粉 #EF6F9B,
微软雅黑,大圆角大字号,儿童明快风。封面用 linear-gradient(135deg,#FFD93D,#FF9F43 40%,#6BCB77)。
五大必踩坑(slidep DSL,已验证)
- 禁
flex简写 → 用flexShrink/flexGrow/flexBasis。 - 禁
calc()→ 用固定高或 flex。 <Box>不能进<svg>→ svg 内用<Text>/<text>。- 数组 map 块两条铁律(最易炸):
<Box key={i}>的 style 必须多行;整段必须以))}收尾(少}会留未闭合表达式,报Unterminated regexp literal)。 .slide必须 LF;node --check对.slide无效,校验用validate_slides.py/slidep validate。 (build_slides.py已自动规避全部;手改 .slide 时务必照references/slidep_dsl.md执行。)
依赖路径
- slidep 可执行:
C:/Users/Administrator/.workbuddy/binaries/node/versions/22.22.2/slidep.cmd - slidep 包:
C:/Users/Administrator/.workbuddy/binaries/node/versions/22.22.2/node_modules/@tencent/slidep/ - managed node:
C:/Users/Administrator/.workbuddy/binaries/node/versions/22.22.2/node.exe - managed python:
C:/Users/Administrator/.workbuddy/binaries/python/envs/default/Scripts/python.exe(含 python-pptx)
交付物清单
| 文件 | 说明 |
|---|---|
<课题>互动课件.html |
可直接浏览器放映的互动课件 |
pages.json |
课件页面描述(HTML 与 PPT 共用骨架) |
slides/*.slide |
slidep DSL 源文件(保留供迭代) |
<课题>课件.pptx |
最终 PPT 交付物 |
DESIGN.md / STORY.md |
配色与叙事结构(可选,便于复用) |
Current listing version
1.2.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供从多种输入生成互动课件并转 PPT 的完整流水线,解决教师实际痛点
- 功能闭环,涵盖输入规范化、HTML 生成、PPTX 转换三阶段
Highlights
- 触发词覆盖全面且精准,能有效匹配用户课件制作需求
Highlights
- 三阶段工作流清晰,步骤详细,包含端到端示例和字段说明
- frontmatter 完整,文档结构良好,便于理解和执行
Highlights
- 工具来源明确,参数正确,覆盖主要异常处理
- 提供多阶段校验机制确保输出质量
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.
-
Administrator or elevated privileges
Elevate only when necessary. Keep protection and certificate validation enabled and avoid broad system access.
Mentioned in main document · lines 106, 107, 108, 109
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.