fmg-qejx-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-qejx-ppt" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4235534cd26ecff2dc273b2bdbae393225f1fb41bfba8069d3c6b8813d0377e2. Verify the upstream source and version against https://skillhub.cn/skills/user_73cb5b59/fmg-qejx-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
Generate two interactive lesson formats from a teaching-design DOCX plus electronic textbook images: a single-file HTML5 interactive lesson (for student self-directed use) and a .pptx with interactive effects (for classroom projection); both can be used together. Applicable to primary and middle-school subjects; science lessons (e.g. Canton education edition) have been validated. Trigger phrases: generate interactive lesson, convert lesson plan to two formats, lesson+PPTX, Penguin Teacher Assistant lesson, HTML lesson to accompany PPT. Depends on the “Penguin Teacher Assistant” connector (teacher-assistant) to read the teaching-design document and the slidep engine to convert to PPTX.
Introduction source: third_party · user_73cb5b59 · 1.0.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-qejx-ppt
displayName: 企鹅教师助手·双格式互动课件(教案+教材→HTML+PPTX)
version: 1.0.0
description: >
把「教学设计 docx + 电子教材图」一键产出两种格式的互动课件:单文件 HTML5 互动课件(可学生自主操作)
与带互动效果的 .pptx(可课堂投屏讲解),二者配合。适用于小学/初中各学科,科学课(粤教版等)已验证。
触发词:生成互动课件、教案转双格式、课件+PPTX、企鹅教师助手课件、配合 PPT 的 HTML 课件。
依赖「企鹅教师助手」连接器(teacher-assistant)读取教学设计,依赖 slidep 引擎转 PPTX。
agent_created: true企鹅教师助手 · 双格式互动课件(fmg-qejx-ppt)
把一份教学设计 docx + 电子教材截图,变成两种格式的互动课件:
- HTML5 互动课件(单文件、零依赖、双击放映):学生可自主操作实验模拟、投票、填词、TTS 朗读。
- 带互动效果的 PPTX(目录跳转 + 淡入切换):教师课堂投屏讲解,封面可一键打开 HTML 版。
两个版本配合使用:PPT 讲、HTML 练。
何时使用
- 用户给出教学设计 docx + 教材图,说「生成互动课件 / 转成双格式 / 配合 PPT 的 HTML 课件」。
- 已验证科目:粤教版四年级科学上册(空气单元)。其他学科按同样骨架替换内容即可。
输入(调用前确认)
| 输入 | 说明 |
|---|---|
| 教学设计 docx | 由「企鹅教师助手」连接器读取(见 Phase 1) |
| 电子教材图(jpg/png) | 用 Read 工具多模态读图,提取课题/插图/课后题 |
| 输出目录 | 如 H:\四年级上册新版科学\第3课 |
| 课题名 | 用于文件命名,如「第3课风的形成」 |
工作流(六阶段,不可跳步)
Phase 1 — 读取与结构化
- 读 docx:走
tencent-docs-routing→tencent-local-office-edit的edsdk.py。 ⚠️ 要点(都踩过):① 没有doc_get_document_content,用doc_resolve_document_structure(参数mode=full text_preview_length=200 limit=0); ② 教学过程常放在表格里,段落列表看不到 → 先doc_list_tables拿table_id,再doc_get_table_info(内容是block.table.cells[].text)。 也可用本 skill 的scripts/extract_docx.py 教案.docx直接抽纯文本(zip 解析<w:t>)。 - 读教材图:Read 工具直接读图(OCR+理解),提取标题/插图/课后题。
- 产出课件规格:
meta(课题/年级/学科/课时)+ 教学目标 + 重难点 + 环节列表(含提问话术) + 板书 + 分层作业 + 核心实验/现象。
Phase 2 — 生成互动 HTML 课件(单文件)
- 严格照
references/html_courseware_spec.md的八环节骨架写单文件 HTML。 - 科学课互动重点 =「模拟实验 + 变量控制 + 现象→结论」(SVG 状态机 / 白天夜晚切换 / 拖拽填词 / 带解析选择题 / TTS / Hero 知识图)。
- 设计系统走清爽蓝绿(见 spec 一.外壳),CSS 变量 +
clamp()自适应。 - 写出
第N课XX.html。
Phase 3 — 校验 HTML(交付前必做,缺一不可)
python scripts/validate_html.py 第N课XX.html # JS语法 + id引用 + 重复id + </html>结尾
python scripts/smoke_test.py 第N课XX.html # 无头Edge点遍按钮,看 title 的 errs=[]
python scripts/render_preview.py 第N课XX.html --slices 6 # 整页长图切片,逐张 Read 视觉回归
- 修复遮挡/撞车/emoji缺字/对比度后再进下一阶段。
- 校验通过后删除所有
_开头的临时文件。
Phase 4 — 转 PPTX(两条路线任选)
- 路线 A(数据驱动页:目录/卡片/流程/树/作业):写
pages.json→python scripts/build_slides.py pages.json --out slides/(内置 13 种版式,自动规避 slidep 五大坑)。 - 路线 B(复杂 SVG 页:实验箱/海陆风/热岛):AI 直接写
.slide,严格照references/slidep_dsl.md(禁 flex 简写/calc、map 块多行 style+))}、.slide必须 LF)。 - 校验:
python scripts/validate_slides.py slides/ - 编译:
python scripts/build_pptx.py --project <含slides的目录> --filename "第N课XX.pptx"
Phase 5 — 加互动层 PPTX
python scripts/make_interactive_pptx.py "第N课XX.pptx" \
--toc 2 --sections 3,5,7,10,12,15,18 --html "第N课XX.html"
- 每页加「☰ 目录」按钮跳回目录页;目录页各节可点击直达;全部页 fade 切换;封面加「打开网页版」链接 HTML。
Phase 6 — 校验与交付
python-pptx核对页数 = slides 文件数,无明显空页。- 回读超链接/切换数量。
- 交付:
第N课XX.html+第N课XX.pptx+slides/(保留供迭代)。 - 更新本项目
\.workbuddy\memory\工作日志。
slides/ 版式(pages.json 的 type → 内容)
cover / intro / cards / writing / flow / read / compare / quote / claims / sort / tree / homework / text
字段速查见 references/slidep_dsl.md。复杂可视化页(实验/风)用路线 B 手绘 SVG。
五大必踩坑(slidep DSL,已验证)
- 禁
flex简写 → 用flexShrink/flexGrow/flexBasis。2. 禁calc()→ 用固定高或 flex。 <Box>不能进<svg>。4. 数组 map 块铁律:多行数组 +<Box key={i}>style 多行 + 整段))}收尾。.slide必须 LF;node --check对.slide无效,用validate_slides.py/slidep validate。
依赖路径(本机已验证)
- slidep:
C:/Users/Administrator/.workbuddy/binaries/node/versions/22.22.2/node_modules/@tencent/slidep/dist/index.js+ 同目录slidep.cmd - node:
C:/Users/Administrator/.workbuddy/binaries/node/versions/22.22.2/node.exe - python(含 python-pptx/requests/PIL):
C:/Users/Administrator/.workbuddy/binaries/python/envs/default/Scripts/python.exe - Edge(无头截图):
C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe - slidep 编译需 MCP 后端 localhost:39099 在线。
发布此 skill 到 skillhub.cn
python scripts/publish_skillhub.py --token skh_xxx
脚本会自动解析 SKILL.md frontmatter、预检 slug、multipart 上传(见 references/ 与 scripts/)。
交付物清单
| 文件 | 说明 |
|---|---|
第N课XX.html |
单文件互动 HTML 课件(学生自主操作) |
第N课XX.pptx |
带目录跳转+淡入切换的 PPT 课件(教师投屏) |
slides/*.slide |
slidep DSL 源(保留供迭代) |
pages.json(若用路线 A) |
HTML 与 PPT 共用骨架 |
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决教师将教案和教材图转化为双格式互动课件的实际需求
- 已在粤教版科学课验证,具备明确教学场景和实用价值
- 支持小学/初中多学科,适用范围广
Highlights
- 触发词覆盖合理(生成互动课件、教案转双格式等)
- 边界清晰,能准确匹配用户意图
Areas to improve
-
description写错位置 Reported severity: Minor
顶层 frontmatter 中 description 为空,实际描述内容在 skill_body 内部
Recommendation: 将 description 内容移至顶层 frontmatter 字段
-
文档过长 Reported severity: Minor
SKILL.md 内容约 180 行,超出建议的 500 行以内但接近上限
Recommendation: 可考虑将部分详细说明移至 references/ 目录下的独立文档
Highlights
- Phase 划分清晰(六阶段),每阶段有具体步骤和出口条件
- 包含端到端示例和校验机制
- frontmatter 完整,文档结构良好
Highlights
- 工具来源明确(slidep、node、python 路径具体)
- 参数正确,覆盖主要异常(五大必踩坑、校验脚本)
- 不可逆操作有确认机制(交付前校验)
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 87, 88, 89
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.