Slide Deck Generator
Transform content into professional slide deck images with flexible style options.
Usage
/baoyu-slide-deck path/to/content.md
/baoyu-slide-deck path/to/content.md --style sketch-notes
/baoyu-slide-deck path/to/content.md --audience executives
/baoyu-slide-deck path/to/content.md --lang zh
/baoyu-slide-deck path/to/content.md --slides 10
/baoyu-slide-deck path/to/content.md --outline-only
/baoyu-slide-deck # Then paste content
Script Directory
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR
- Script path =
${SKILL_DIR}/scripts/<script-name>.ts
- Replace all
${SKILL_DIR} in this document with the actual path
Script Reference:
| Script |
Purpose |
scripts/merge-to-pptx.ts |
Merge slides into PowerPoint |
scripts/merge-to-pdf.ts |
Merge slides into PDF |
Options
| Option |
Description |
--style <name> |
Visual style (see Style Gallery) |
--audience <type> |
Target audience: beginners, intermediate, experts, executives, general |
--lang <code> |
Output language (en, zh, ja, etc.) |
--slides <number> |
Target slide count |
--outline-only |
Generate outline only, skip image generation |
Style Gallery
| Style |
Description |
Best For |
blueprint (Default) |
Technical schematics, grid texture |
Architecture, system design |
chalkboard |
Black chalkboard, colorful chalk |
Education, tutorials, classroom |
notion |
SaaS dashboard, card-based layouts |
Product demos, SaaS, B2B |
bold-editorial |
Magazine cover, bold typography, dark |
Product launches, keynotes |
corporate |
Navy/gold, structured layouts |
Investor decks, proposals |
dark-atmospheric |
Cinematic dark mode, glowing accents |
Entertainment, gaming |
editorial-infographic |
Magazine explainers, flat illustrations |
Tech explainers, research |
fantasy-animation |
Ghibli/Disney style, hand-drawn |
Educational, storytelling |
intuition-machine |
Technical briefing, bilingual labels |
Technical docs, academic |
minimal |
Ultra-clean, maximum whitespace |
Executive briefings, premium |
pixel-art |
Retro 8-bit, chunky pixels |
Gaming, developer talks |
scientific |
Academic diagrams, precise labeling |
Biology, chemistry, medical |
sketch-notes |
Hand-drawn, warm & friendly |
Educational, tutorials |
vector-illustration |
Flat vector, retro & cute |
Creative, children's content |
vintage |
Aged-paper, historical styling |
Historical, heritage, biography |
watercolor |
Hand-painted textures, natural warmth |
Lifestyle, wellness, travel |
Auto Style Selection
| Content Signals |
Selected Style |
| tutorial, learn, education, guide, intro, beginner |
sketch-notes |
| classroom, teaching, school, chalkboard, blackboard |
chalkboard |
| architecture, system, data, analysis, technical |
blueprint |
| creative, children, kids, cute, illustration |
vector-illustration |
| briefing, academic, research, bilingual, infographic, concept |
intuition-machine |
| executive, minimal, clean, simple, elegant |
minimal |
| saas, product, dashboard, metrics, productivity |
notion |
| investor, quarterly, business, corporate, proposal |
corporate |
| launch, marketing, keynote, bold, impact, magazine |
bold-editorial |
| entertainment, music, gaming, creative, atmospheric |
dark-atmospheric |
| explainer, journalism, science communication |
editorial-infographic |
| story, fantasy, animation, magical, whimsical |
fantasy-animation |
| gaming, retro, pixel, developer, nostalgia |
pixel-art |
| biology, chemistry, medical, pathway, scientific |
scientific |
| history, heritage, vintage, expedition, historical |
vintage |
| lifestyle, wellness, travel, artistic, natural |
watercolor |
| Default |
blueprint |
Design Philosophy
This deck is designed for reading and sharing, not live presentation:
- Each slide must be self-explanatory without verbal commentary
- Structure content for logical flow when scrolling
- Include all necessary context within each slide
- Optimize for social media sharing and offline reading
File Management
Output Directory
Each session creates an independent directory named by content slug:
slide-deck/{topic-slug}/
├── source-{slug}.{ext} # Source files (text, images, etc.)
├── outline.md
├── outline-{style}.md # Style variant outlines
├── prompts/
│ └── 01-slide-cover.md, 02-slide-{slug}.md, ...
├── 01-slide-cover.png, 02-slide-{slug}.png, ...
├── {topic-slug}.pptx
└── {topic-slug}.pdf
Slug Generation:
- Extract main topic from content (2-4 words, kebab-case)
- Example: "Introduction to Machine Learning" →
intro-machine-learning
Conflict Resolution
If slide-deck/{topic-slug}/ already exists:
- Append timestamp:
{topic-slug}-YYYYMMDD-HHMMSS
- Example:
intro-ml exists → intro-ml-20260118-143052
Source Files
Copy all sources with naming source-{slug}.{ext}:
source-article.md (main text content)
source-diagram.png (image from conversation)
source-data.xlsx (additional file)
Multiple sources supported: text, images, files from conversation.
Workflow
Step 1: Analyze Content
- Save source content (if pasted, save as
source.md)
- Follow
references/analysis-framework.md for deep content analysis
- Determine style (use
--style or auto-select from signals)
- Detect languages (source vs. user preference)
- Plan slide count (
--slides or dynamic)
Step 2: Generate Outline Variants
- Generate 3 style variant outlines based on content analysis
- Follow
references/outline-template.md for structure
- Save as
outline-{style}.md for each variant
Step 3: User Confirmation
Single AskUserQuestion with all applicable options:
| Question |
When to Ask |
| Style variant |
Always (3 options + custom) |
| Language |
Only if source ≠ user language |
After selection:
- Copy selected
outline-{style}.md to outline.md
- Regenerate in different language if requested
- User may edit
outline.md for fine-tuning
If --outline-only, stop here.
Step 4: Generate Prompts
- Read
references/base-prompt.md
- Combine with style instructions from outline
- Add slide-specific content
- Save to
prompts/ directory
Step 5: Generate Images
- Select available image generation skill
- Generate session ID:
slides-{topic-slug}-{timestamp}
- Generate each slide with same session ID
- Report progress: "Generated X/N"
Step 6: Merge to PPTX and PDF
npx -y bun ${SKILL_DIR}/scripts/merge-to-pptx.ts <slide-deck-dir>
npx -y bun ${SKILL_DIR}/scripts/merge-to-pdf.ts <slide-deck-dir>
Step 7: Output Summary
Slide Deck Complete!
Topic: [topic]
Style: [style name]
Location: [directory path]
Slides: N total
- 01-slide-cover.png ✓ Cover
- 02-slide-intro.png ✓ Content
- ...
- {NN}-slide-back-cover.png ✓ Back Cover
Outline: outline.md
PPTX: {topic-slug}.pptx
PDF: {topic-slug}.pdf
Slide Modification
See references/modification-guide.md for:
- Edit single slide workflow
- Add new slide (with renumbering)
- Delete slide (with renumbering)
- File naming conventions
References
| File |
Content |
references/analysis-framework.md |
Deep content analysis for presentations |
references/outline-template.md |
Outline structure and STYLE_INSTRUCTIONS format |
references/modification-guide.md |
Edit, add, delete slide workflows |
references/content-rules.md |
Content and style guidelines |
references/base-prompt.md |
Base prompt for image generation |
references/styles/<style>.md |
Full style specifications |
Notes
- Image generation: 10-30 seconds per slide
- Auto-retry once on generation failure
- Use stylized alternatives for sensitive public figures
- Maintain style consistency via session ID
Extension Support
Custom styles and configurations via EXTEND.md.
Check paths (priority order):
.baoyu-skills/baoyu-slide-deck/EXTEND.md (project)
~/.baoyu-skills/baoyu-slide-deck/EXTEND.md (user)
If found, load before Step 1. Extension content overrides defaults.
1---2name: baoyu-slide-deck3description: Generate professional slide deck images from content. Creates comprehensive outlines with style instructions, then generates individual slide images. Use when user asks to "create slides", "make a presentation", "generate deck", or "slide deck".4---5
6# Slide Deck Generator
7
8Transform content into professional slide deck images with flexible style options.
9
10## Usage
11
12```bash
13/baoyu-slide-deck path/to/content.md
14/baoyu-slide-deck path/to/content.md --style sketch-notes
15/baoyu-slide-deck path/to/content.md --audience executives
16/baoyu-slide-deck path/to/content.md --lang zh
17/baoyu-slide-deck path/to/content.md --slides 10
18/baoyu-slide-deck path/to/content.md --outline-only
19/baoyu-slide-deck # Then paste content
20```
21
22## Script Directory
23
24**Important**: All scripts are located in the `scripts/` subdirectory of this skill.
25
26**Agent Execution Instructions**:
271. Determine this SKILL.md file's directory path as `SKILL_DIR`
282. Script path = `${SKILL_DIR}/scripts/<script-name>.ts`
293. Replace all `${SKILL_DIR}` in this document with the actual path
30
31**Script Reference**:
32| Script | Purpose |
33|--------|---------|
34| `scripts/merge-to-pptx.ts` | Merge slides into PowerPoint |
35| `scripts/merge-to-pdf.ts` | Merge slides into PDF |
36
37## Options
38
39| Option | Description |
40|--------|-------------|
41| `--style <name>` | Visual style (see Style Gallery) |
42| `--audience <type>` | Target audience: beginners, intermediate, experts, executives, general |
43| `--lang <code>` | Output language (en, zh, ja, etc.) |
44| `--slides <number>` | Target slide count |
45| `--outline-only` | Generate outline only, skip image generation |
46
47## Style Gallery
48
49| Style | Description | Best For |
50|-------|-------------|----------|
51| `blueprint` (Default) | Technical schematics, grid texture | Architecture, system design |
52| `chalkboard` | Black chalkboard, colorful chalk | Education, tutorials, classroom |
53| `notion` | SaaS dashboard, card-based layouts | Product demos, SaaS, B2B |
54| `bold-editorial` | Magazine cover, bold typography, dark | Product launches, keynotes |
55| `corporate` | Navy/gold, structured layouts | Investor decks, proposals |
56| `dark-atmospheric` | Cinematic dark mode, glowing accents | Entertainment, gaming |
57| `editorial-infographic` | Magazine explainers, flat illustrations | Tech explainers, research |
58| `fantasy-animation` | Ghibli/Disney style, hand-drawn | Educational, storytelling |
59| `intuition-machine` | Technical briefing, bilingual labels | Technical docs, academic |
60| `minimal` | Ultra-clean, maximum whitespace | Executive briefings, premium |
61| `pixel-art` | Retro 8-bit, chunky pixels | Gaming, developer talks |
62| `scientific` | Academic diagrams, precise labeling | Biology, chemistry, medical |
63| `sketch-notes` | Hand-drawn, warm & friendly | Educational, tutorials |
64| `vector-illustration` | Flat vector, retro & cute | Creative, children's content |
65| `vintage` | Aged-paper, historical styling | Historical, heritage, biography |
66| `watercolor` | Hand-painted textures, natural warmth | Lifestyle, wellness, travel |
67
68## Auto Style Selection
69
70| Content Signals | Selected Style |
71|-----------------|----------------|
72| tutorial, learn, education, guide, intro, beginner | `sketch-notes` |
73| classroom, teaching, school, chalkboard, blackboard | `chalkboard` |
74| architecture, system, data, analysis, technical | `blueprint` |
75| creative, children, kids, cute, illustration | `vector-illustration` |
76| briefing, academic, research, bilingual, infographic, concept | `intuition-machine` |
77| executive, minimal, clean, simple, elegant | `minimal` |
78| saas, product, dashboard, metrics, productivity | `notion` |
79| investor, quarterly, business, corporate, proposal | `corporate` |
80| launch, marketing, keynote, bold, impact, magazine | `bold-editorial` |
81| entertainment, music, gaming, creative, atmospheric | `dark-atmospheric` |
82| explainer, journalism, science communication | `editorial-infographic` |
83| story, fantasy, animation, magical, whimsical | `fantasy-animation` |
84| gaming, retro, pixel, developer, nostalgia | `pixel-art` |
85| biology, chemistry, medical, pathway, scientific | `scientific` |
86| history, heritage, vintage, expedition, historical | `vintage` |
87| lifestyle, wellness, travel, artistic, natural | `watercolor` |
88| Default | `blueprint` |
89
90## Design Philosophy
91
92This deck is designed for **reading and sharing**, not live presentation:
93- Each slide must be **self-explanatory** without verbal commentary
94- Structure content for **logical flow** when scrolling
95- Include **all necessary context** within each slide
96- Optimize for **social media sharing** and offline reading
97
98## File Management
99
100### Output Directory
101
102Each session creates an independent directory named by content slug:
103
104```
105slide-deck/{topic-slug}/
106├── source-{slug}.{ext} # Source files (text, images, etc.)
107├── outline.md
108├── outline-{style}.md # Style variant outlines
109├── prompts/
110│ └── 01-slide-cover.md, 02-slide-{slug}.md, ...
111├── 01-slide-cover.png, 02-slide-{slug}.png, ...
112├── {topic-slug}.pptx
113└── {topic-slug}.pdf
114```
115
116**Slug Generation**:
1171. Extract main topic from content (2-4 words, kebab-case)
1182. Example: "Introduction to Machine Learning" → `intro-machine-learning`
119
120### Conflict Resolution
121
122If `slide-deck/{topic-slug}/` already exists:
123- Append timestamp: `{topic-slug}-YYYYMMDD-HHMMSS`
124- Example: `intro-ml` exists → `intro-ml-20260118-143052`
125
126### Source Files
127
128Copy all sources with naming `source-{slug}.{ext}`:
129- `source-article.md` (main text content)
130- `source-diagram.png` (image from conversation)
131- `source-data.xlsx` (additional file)
132
133Multiple sources supported: text, images, files from conversation.
134
135## Workflow
136
137### Step 1: Analyze Content
138
1391. Save source content (if pasted, save as `source.md`)
1402. Follow `references/analysis-framework.md` for deep content analysis
1413. Determine style (use `--style` or auto-select from signals)
1424. Detect languages (source vs. user preference)
1435. Plan slide count (`--slides` or dynamic)
144
145### Step 2: Generate Outline Variants
146
1471. Generate 3 style variant outlines based on content analysis
1482. Follow `references/outline-template.md` for structure
1493. Save as `outline-{style}.md` for each variant
150
151### Step 3: User Confirmation
152
153**Single AskUserQuestion with all applicable options:**
154
155| Question | When to Ask |
156|----------|-------------|
157| Style variant | Always (3 options + custom) |
158| Language | Only if source ≠ user language |
159
160After selection:
161- Copy selected `outline-{style}.md` to `outline.md`
162- Regenerate in different language if requested
163- User may edit `outline.md` for fine-tuning
164
165If `--outline-only`, stop here.
166
167### Step 4: Generate Prompts
168
1691. Read `references/base-prompt.md`
1702. Combine with style instructions from outline
1713. Add slide-specific content
1724. Save to `prompts/` directory
173
174### Step 5: Generate Images
175
1761. Select available image generation skill
1772. Generate session ID: `slides-{topic-slug}-{timestamp}`
1783. Generate each slide with same session ID
1794. Report progress: "Generated X/N"
180
181### Step 6: Merge to PPTX and PDF
182
183```bash
184npx -y bun ${SKILL_DIR}/scripts/merge-to-pptx.ts <slide-deck-dir>
185npx -y bun ${SKILL_DIR}/scripts/merge-to-pdf.ts <slide-deck-dir>
186```
187
188### Step 7: Output Summary
189
190```
191Slide Deck Complete!
192
193Topic: [topic]
194Style: [style name]
195Location: [directory path]
196Slides: N total
197
198- 01-slide-cover.png ✓ Cover
199- 02-slide-intro.png ✓ Content
200- ...
201- {NN}-slide-back-cover.png ✓ Back Cover
202
203Outline: outline.md
204PPTX: {topic-slug}.pptx
205PDF: {topic-slug}.pdf
206```
207
208## Slide Modification
209
210See `references/modification-guide.md` for:
211- Edit single slide workflow
212- Add new slide (with renumbering)
213- Delete slide (with renumbering)
214- File naming conventions
215
216## References
217
218| File | Content |
219|------|---------|
220| `references/analysis-framework.md` | Deep content analysis for presentations |
221| `references/outline-template.md` | Outline structure and STYLE_INSTRUCTIONS format |
222| `references/modification-guide.md` | Edit, add, delete slide workflows |
223| `references/content-rules.md` | Content and style guidelines |
224| `references/base-prompt.md` | Base prompt for image generation |
225| `references/styles/<style>.md` | Full style specifications |
226
227## Notes
228
229- Image generation: 10-30 seconds per slide
230- Auto-retry once on generation failure
231- Use stylized alternatives for sensitive public figures
232- Maintain style consistency via session ID
233
234## Extension Support
235
236Custom styles and configurations via EXTEND.md.
237
238**Check paths** (priority order):
2391. `.baoyu-skills/baoyu-slide-deck/EXTEND.md` (project)
2402. `~/.baoyu-skills/baoyu-slide-deck/EXTEND.md` (user)
241
242If found, load before Step 1. Extension content overrides defaults.