baoyu-slide-deck
它能做什么
这项技能制作一份为阅读和分享而设计的演示文稿,而不是用于现场演讲。适合需要根据书面材料快速制作幻灯片的人。
适用场景
- ✓当你需要根据一篇文章或笔记制作幻灯片的时候。
- ✓当你希望幻灯片适合在社交媒体分享或在线阅读的时候。
- ✓当你想在制作幻灯片之前规划好大纲和风格的时候。
技能链接
https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-slide-deck/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据我关于远程团队习惯的文章,制作一套幻灯片。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体先编写带有风格说明的大纲,然后以相同的视觉风格将每张幻灯片生成为图片。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Slide Deck Generator
Decks are designed for reading and sharing (self-explanatory slides, logical scroll flow, social-media-friendly), not live presentation — this drives every layout and density decision.
User Input Tools
When this skill prompts the user, follow this tool-selection rule (priority order):
- Prefer built-in user-input tools exposed by the current agent runtime — e.g.,
AskUserQuestion,request_user_input,clarify,ask_user, or any equivalent. - Fallback: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.
- Batching: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.
Concrete AskUserQuestion references below are examples — substitute the local equivalent in other runtimes.
Image Generation Tools
Resolve the image backend in this order:
- User names a backend in the current message → use it.
preferred_image_backendinEXTEND.mdnames a backend available now → use it.askmeans ask every run.- Auto-select (preference
auto, unset, or the pinned backend is unavailable), first match wins:- Codex
imagegenskill is in your available skills → you are in Codex and MUST use it:Skillwithskill: "imagegen", passing the prompt file's content plus output path and aspect ratio. It outranks non-native skills such asbaoyu-image-gen. - Codex via
codex exec(codex-imagegen): no nativeimagegen, but thecodexCLI is onPATHwith an activecodex login→baoyu-image-gen --provider codex-cli(preferred), or the bundled wrapper if baoyu-image-gen is unavailable. Load references/codex-imagegen.md only for this branch. - Cursor
GenerateImage→ use it (outranks non-native skills). It has no aspect-ratio parameter, so state the aspect ratio / dimensions in thedescriptionprompt; it saves to a tool-managed location, so copy the file to the expected output path (e.g.,outputs/.../NN-xxx.png). Reference images go inreference_image_paths. - Other runtime-native image tool (e.g., Hermes
image_generate) → use it the same way. - Exactly one non-native backend installed (e.g.,
baoyu-image-gen) → use it. - Several non-native backends → ask the user once, batched with other initial questions.
- Codex
- None available → tell the user and ask how to proceed.
⛔ Raster only: never substitute SVG, HTML/CSS, canvas, or other code-based rendering for a raster image, even for diagram-like content. If no raster backend resolves, go to step 4.
⛔ No bitmap text patching: never use ImageMagick, Pillow, Canvas, SVG, HTML/CSS, OCR scripts, or any other overlay to cover, rewrite, erase, stroke, or replace slide titles, bullets, or any other text inside an already generated slide image. Regenerate from a corrected prompt, simplify the slide's on-image text, or ask the user which imperfect candidate to keep.
Prompt file (hard): before invoking any backend, write each image's full, final prompt to its own file under prompts/ (NN-slide-[slug].md) and pass that file (or its content) to the backend. It is the reproducibility record and lets you switch backends without rewriting prompts.
Change the pinned backend via ## Changing Preferences below. Tool names above are examples; use the local equivalent in other runtimes.
Batch Generation Policy
After every prompt file for the current generation group is saved and verified, generate slide images in batches by default:
- Use the backend's native batch / multi-task interface if it exists. Each task keeps its own prompt file, output path, aspect ratio, session ID, and direct reference images.
- Else, if the runtime can issue parallel tool calls, dispatch up to
generation_batch_sizeslide images at a time (default4). An explicit request in the current message (e.g.--batch-size 4, "并行4张一起生成") overrides EXTEND.md. - Else generate sequentially.
Rules:
- Never start the first batch until all selected slide prompt files exist on disk.
- Retry failed items once without regenerating successful items.
- Do not use subagents merely to parallelize image rendering; use them only for separate prompt iteration or creative exploration.
- Merge PPTX/PDF only after all selected slide images are generated.
Confirmation P
常见问题
这份演示文稿是用来现场演讲的吗?
不是。该技能把幻灯片设计成可以独立看懂、像滚动阅读一样的形式,更适合分享。
输出是什么?
输出是根据大纲生成的一组单独的幻灯片图片。
它能使用特定风格吗?
能。大纲中包含风格说明,可以使幻灯片的视觉效果保持一致。
详情
作者的原始描述
Generates professional slide deck images from content. Creates outlines with style instructions, then generates individual slide images. Use when user asks to "create slides", "make a presentation", "generate deck", "slide deck", or "PPT".
repo: JimLiu/baoyu-skills
热度
- GitHub 星标
- 27k
- 排名
- #9963
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …