# /baoyu-slide-deck: Turn an article into a styled slide deck with PPTX and PDF

Source: https://trendhub.net/skills/jimliu-baoyu-skills/baoyu-slide-deck
Skill folder: https://github.com/JimLiu/baoyu-skills/tree/main/skills/baoyu-slide-deck
Pack: Baoyu Skills (https://trendhub.net/skills/jimliu-baoyu-skills)
Works with: Any agent (npx skills), Claude Code, ClawHub / OpenClaw

This skill builds image-based slide decks meant to be read and shared rather than presented live. It analyses your content, asks you to confirm style, audience and slide count, writes an outline and one prompt file per slide, renders the slides through whichever image backend is available, and merges them into PowerPoint and PDF files.

## When to use it

- You want a shareable deck summarising a long article or report.
- You need slides in a consistent visual style, such as blueprint, chalkboard or corporate.
- You want to fix one slide later without regenerating the whole deck.

## How it works

1. **Analyse the content**: The agent classifies the source, detects its language, suggests a preset from keyword signals and estimates a slide count from its length.
2. **Confirm settings**: It asks in one batch about style, audience, slide count and whether to review the outline and prompts, and waits for your answer.
3. **Write outline and prompts**: It saves outline.md, then a prompt file per slide that combines the base prompt, style instructions and layout guidance.
4. **Render in batches**: After every prompt file exists, it generates slide images through the chosen backend, a few at a time, retrying failures once.
5. **Merge the deck**: It runs the bundled scripts to merge the slide images into PPTX and PDF and prints a summary.

## What it steers the agent away from

- Starting image generation before you have confirmed the plan.
- Patching misspelled text in a rendered slide with an image editor instead of regenerating it.
- Swapping in HTML or SVG when no raster image backend is available.

## What it can touch

It writes source, outline, prompt and image files under slide-deck/, calls an image backend that may bill an API account, and runs bun scripts to create PPTX and PDF files.

## Pairs well with

- `/baoyu-diagram`
- `/baoyu-image-gen`

## Questions

### Which image generator does it use?

It uses a backend you name, then one set in EXTEND.md, then a runtime tool such as Codex imagegen or Cursor GenerateImage, then an installed skill like baoyu-image-gen.

### Can I stop before images are made?

Yes. --outline-only stops after the outline and --prompts-only stops after the prompt files.
