baoyu-slide-deck
What it does
This skill builds a presentation designed to be read and shared, rather than presented live. It is for people who need a deck quickly from written material.
When to use it
- ✓When you need a slide deck from an article or notes.
- ✓When you want slides designed for sharing on social media or reading online.
- ✓When you want a planned outline and style before the slides are made.
Skill link
https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-slide-deck/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Create a slide deck from my article about remote team habits.”
5 new skills a week. 1 minute to read.
How it works
Your agent writes an outline with style instructions, then generates each slide as an image in the same visual style.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Is the deck meant for live presenting?
No. The skill designs slides to be self-explanatory and read as a scroll, which suits sharing.
What is the output?
The output is a set of individual slide images created from the outline.
Can it use a specific style?
Yes. The outline includes style instructions, which keep the slides visually consistent.
Details
Original description by the author
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
Popularity
- GitHub stars
- 27k
- Ranking position
- #9963
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
release-skills
27kGuides your agent through a release for any project: bumping the version, updating changelogs and publishing a GitHub release or tag.
baoyu-article-illustrator
27kHelps your agent add illustrations to an article by finding the spots that need visuals and creating images in one consistent style.
baoyu-comic
27kShows your agent how to create an educational comic with panels, art styles and tones, such as a biography or a tutorial.
baoyu-compress-image
27kLets your agent shrink image files by converting them to WebP or PNG with automatic tool selection, so they load faster.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.