📦 Slide Generation

v1.0.0

生成 Marp teaching slides from source content for teachers. Use when: (1) Generating Marp-compatible markdown slides from a .md file or folder for teachi...

0· 14·0 当前·0 累计
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
medium confidence
The 技能's description, file manifest, and 运行time instructions largely line up with a Marp slide 生成器, but there are small inconsistencies and vague behaviors (missing 记录o as设置, remote resource 导入s, unclear handling of externally-hosted images) that deserve attention before 安装ing.
评估建议
This 技能 应用ears to be a strAIghtforward Marp slide 生成器, but before 安装ing or 运行ning it: (1) 验证 that you will provide the source .md files and all referenced images locally (the 技能 expects to copy images to 输出). The manifest references a 记录o path (as设置s/images/记录o.png) that is not present — either provide that as设置 or 更新 the rules to avoid broken headers. (2) Decide whether the 代理 is allowed to fetch remote as设置s: theme SCSS 导入s external CDNs and some example slides reference remote images; the 技能....
详细分析 ▾
用途与能力
Name/description match the actual instructions: converting .md source files into Marp-compatible markdown slides using provided theme rules. The 技能 does not 请求 unusual 凭证s or 安装s. Minor mismatch: 技能.md / rules expect a source 记录o at as设置s/images/记录o.png (and instruct copying it to 输出), but the file manifest does not include as设置s/images/记录o.png; example pages contAIn remote image URLs which the 技能's 'copy images' rule doesn't explicitly explAIn how to handle.
指令范围
运行time instructions tell the 代理 to read all source .md files, load references/*.md, 创建 输出 folders, and copy any used images to the 输出 images/ folder. That is coherent for a 转换器, but the instructions are vague about externally-hosted images (examples and theme files reference remote URLs) — copying such images would require network 下载s. The 技能.md also forbids 添加ing external content ('Content must come ONLY from source files') while theme files include @导入 of external CSS/fonts; this 创建s ambi图形界面ty about allowed network fetches and what counts as 'source'.
安装机制
Instruction-only 技能 with no 安装 spec and no declared required binaries — minimal 安装ation risk. Nothing in the package will be written to disk by an 安装er step prior to 代理 运行time (the 代理's own actions will 创建 输出 folders as per the instructions).
凭证需求
No 环境 variables, 凭证s, or config paths are required. The 技能 does not 请求 unrelated secrets or elevate privileges. This is proportionate to the 状态d purpose.
持久化与权限
always is false and there is no 安装-time persistence or modification of other 技能s/configs. The 技能 relies on 运行time file reads/writes within the project workspace, which is expected for a 转换器.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install slide-generation
镜像加速npx clawhub@latest install slide-generation --registry https://cn.longxiaskill.com

技能文档

幻灯片生成技能 按 AM Blue Course 主题与流程规则,将源内容生成 Marp 幻灯片。

快速开始

  • 识别源:读取全部 .md 文件(或文件夹内全部 .md)
  • 读参考:先加载 references/rules.md 与 references/marp-guide.md
  • 设计结构:按源内容规划幻灯片章节
  • 生成:输出符合 Marp 格式的 .md 文件

输入模式 单文件 用户:生成关于“记忆与检索”的幻灯片,基于第八章.md → 读取 第八章.md,生成幻灯片

多文件/文件夹 用户:把这个文件夹里的内容整合成一组教学幻灯片 → 读取文件夹内全部 .md,按主题/章节合并,生成统一幻灯片

多源处理

  • 按主题或章节顺序合并
  • 去重
  • 冲突时取更新或更全面的版本

输出目标 用户指定路径(如 chapter8/memory-slide.md)时:

  • 创建输出文件夹(chapter8/)
  • 复制所有用到的图片至 chapter8/images/
  • 将幻灯片 markdown 写入 chapter8/memory-slide.md

图片路径映射 源路径:../images/xxx.png → 输出路径:./images/xxx.png 复制源图片到输出 images/ 文件夹

Marp YAML 头(必须) --- marp: true size: 16:9 theme: am_blue_course paginate: true headingDivider: [2,3] footer: '敬业乐群' ---

必需幻灯片结构

  • 封面(首页)
###### [副标题] # [主标题] @PresenterName

  • 目录(第二页)

本节内容

  • 内容页
  • 主标题用 ##(headingDivider 自动分页)
  • 内容密集时加 或
  • 图片过宽/过高避免左右分栏,优先全宽

核心规则 必须遵守 ✅ 仅使用源文件内容,不引入外部知识 ✅ 保留源图片并复制到输出 images/ ✅ 使用 logo.png 作为页头图(输出路径:images/logo.png) ✅ 按用户指定填写演示者姓名与邮箱 ✅ 行内数学公式用 $...$ ✅ 代码可转伪代码助理解 ✅ 小节编号用 2.2 而非 10.2.2;去掉章前缀

禁止 ❌ 使用主题未定义的 class ❌ 使用过渡页 ❌ 手动 --- 分页 ❌ 编号写成 10.2.2 ❌ 生成新图片,仅用源图片

布局决策

  • 宽图(宽高比 <1:1):全宽,无分栏
  • 高图(宽高比 >1:1):可左右分栏
  • 方图:灵活
  • 表格:全宽或右对齐
  • 代码块:全宽,可 tinytext
  • 图文混排:用 cols-2(五五分)或 cols-2-64(六四分)

图片缩放 !#c w:700 或 !#c h:300

栏布局示例 cols-2(五五分):

左栏
右栏

cols-2-64(六四分,图左):

右栏文字

fig-top(图上文下):

文字

可用 class 参考 assets/example_file/AwesomeMarp_blue.md 与 assets/example_file/slide.md

页面:cols-2, cols-2-64, cols-2-73, cols-2-46, cols-2-37, cols-3, rows-2, pin-3 字号:tinytext, smalltext, largetext, hugetext 特殊:toc_a, cover_c, fig-top, fglass, caption, fixedtitleA, fixedtitleB 引用块:bq-purple, bq-blue, bq-green, bq-red, bq-black

图片处理

  • 扫描源文件 ![]() 语法
  • 复制图片至输出 images/
  • 引用路径改为相对输出位置:![](images/filename.png)
  • 原始路径如 ../images/8-figures/8-1.png → images/8-1.png
  • 主题 logo 用 images/logo.png(从 assets/images/logo.png 复制)

多源合成

  • 先通读所有源,掌握全貌
  • 识别重复主题
  • 去重合并
  • 按章节结构整合
数据来源ClawHub ↗ · 中文优化:龙虾技能库