Slide Deck Generator
Transform content into professional slide deck with comprehensive outlines and generated slide images.
Usage
# From markdown file
/baoyu-slide-deck path/to/article.md
# With style preference
/baoyu-slide-deck path/to/article.md --style corporate
/baoyu-slide-deck path/to/article.md --style playful
/baoyu-slide-deck path/to/article.md --style technical
# With audience specification
/baoyu-slide-deck path/to/article.md --audience beginners
/baoyu-slide-deck path/to/article.md --audience executives
# With language
/baoyu-slide-deck path/to/article.md --lang zh
/baoyu-slide-deck path/to/article.md --lang en
# Outline only (no image generation)
/baoyu-slide-deck path/to/article.md --outline-only
# Direct content input
/baoyu-slide-deck
[paste content]
Options
| Option |
Description |
--style <name> |
Visual style preset (see Style Gallery) |
--audience <type> |
Target audience level |
--lang <code> |
Output language (en, zh, etc.) |
--slides <number> |
Target slide count (max 20) |
--outline-only |
Generate outline only, skip image generation |
Style Gallery
| Style |
Description |
editorial (Default) |
Clean, sophisticated, minimalist |
corporate |
Professional, trustworthy, polished |
technical |
Precise, data-driven, analytical |
playful |
Bold, energetic, engaging |
minimal |
Ultra-clean, zen-like, focused |
storytelling |
Narrative-driven, cinematic, immersive |
warm |
Cozy, healing, hand-drawn illustration style |
retro-flat |
Flat vector illustration with retro palette |
notion |
Minimalist hand-drawn line art, intellectual |
Detailed style definitions: references/styles/<style>.md
Auto Style Selection
When no --style is specified, analyze content for style signals:
| Content Signals |
Selected Style |
| AI, coding, tech, digital, algorithm, data |
technical |
| Business, strategy, investment, corporate |
corporate |
| Personal story, journey, narrative, emotion |
storytelling |
| Simple, zen, focus, essential, one idea |
minimal |
| Fun, creative, workshop, educational |
playful |
| Research, analysis, thought leadership |
editorial |
| Wellness, healing, cozy, self-care, lifestyle, comfort |
warm |
| Tutorial, explainer, how-to, beginner, product, guide |
retro-flat |
| Knowledge, concept, productivity, SaaS, notion, intellectual |
notion |
Audience Presets
| Audience |
Approach |
beginners |
Step-by-step, more context, simpler visuals |
intermediate |
Balanced detail, some assumed knowledge |
experts |
Dense information, technical depth, less hand-holding |
executives |
High-level insights, key metrics, strategic focus |
general |
Accessible language, broad appeal, clear takeaways |
File Management
With Article Path
path/to/
├── article.md
└── slide-deck/
├── outline.md
├── prompts/
│ ├── 01-cover.md
│ ├── 02-content-1.md
│ └── ...
├── 01-cover.png
├── 02-content-1.png
└── ...
Without Article Path
./baoyu-slide-deck-outputs/YYYY-MM-DD/[topic-slug]/
├── outline.md
├── prompts/
│ ├── 01-cover.md
│ └── ...
├── 01-cover.png
└── ...
Workflow
Step 1: Analyze Content & Select Style
- Read source content
- If
--style specified, use that style
- Otherwise, analyze content for style signals
- Extract key information:
- Core narrative and key messages
- Important data points and statistics
- Logical flow and structure
- Target audience signals
Step 2: Generate Outline
Create outline with STYLE_INSTRUCTIONS block and slide specifications.
Outline Format:
# Slide Deck Outline: [Topic]
**Source**: [source file or "Direct input"]
**Style**: [selected style]
**Audience**: [target audience]
**Language**: [output language]
**Slide Count**: N slides
**Generated**: YYYY-MM-DD HH:mm
---
<STYLE_INSTRUCTIONS>
Design Aesthetic: [Overall style description]
Background Color: [Description and Hex Code]
Primary Font: [Font name for Headlines]
Secondary Font: [Font name for Body copy]
Color Palette:
Primary Text Color: [Hex Code]
Primary Accent Color: [Hex Code]
Visual Elements: [Lines, shapes, imagery style, etc.]
</STYLE_INSTRUCTIONS>
---
## Slide 1: [Descriptive Title]
**Position**: Cover
**Filename**: 01-cover.png
// NARRATIVE GOAL
[Storytelling purpose within the overall arc]
// KEY CONTENT
Headline: [Main message - narrative, not "Title: Subtitle" format]
Sub-headline: [Supporting context]
Body:
- [Key point 1 with specific data from source]
- [Key point 2 with specific data from source]
// VISUAL
[Detailed description of imagery, charts, graphics, or abstract visuals]
// LAYOUT
[Composition, hierarchy, spatial arrangement, focus points]
---
## Slide 2: [First Content]
...
## Slide N: [Back Cover]
...
Required Slide Structure:
- Slide 1: Cover Slide (poster-style, heroic typography)
- Slides 2-N-1: Content slides (consistent internal style)
- Slide N: Back Cover (closing statement, not "Thank You")
Step 3: Save Outline
Save outline as outline.md in target directory.
If --outline-only flag is set, stop here.
Step 4: Create Prompt Files
For each slide, create a style-specific prompt file.
Prompt Format:
Slide theme: [slide title]
Style: [style name]
Position: [cover/content/back-cover]
Visual composition:
- Main visual: [style-appropriate description from VISUAL section]
- Layout: [from LAYOUT section]
- Decorative elements: [style-specific decorations]
Color scheme:
- Background: [style background color]
- Primary text: [style text color]
- Accent: [style accent color]
Text content:
- Headline: [headline text]
- Sub-headline: [sub-headline if any]
- Body points: [bullet points if any]
Style notes: [specific style characteristics to emphasize]
Step 5: Generate Images
For each slide, generate using:
/baoyu-gemini-web --promptfiles [SKILL_ROOT]/skills/baoyu-slide-deck/prompts/system.md [TARGET_DIR]/prompts/01-cover.md --image [TARGET_DIR]/01-cover.png
Generation flow:
- Generate images sequentially
- After each image, output progress: "Generated X/N"
- On failure, auto-retry once
- If retry fails, log reason, continue to next
Step 6: Completion Report
Slide Deck Generated!
Topic: [topic]
Style: [style name]
Audience: [audience]
Location: [directory path]
Slides: N total
- 01-cover.png ✓ Cover
- 02-content-1.png ✓ Content
- 03-content-2.png ✓ Content
- ...
- 0N-back-cover.png ✓ Back Cover
Outline: outline.md
[If any failures]
Failed:
- 0X-slide-name.png: [failure reason]
Notes
Design Philosophy
- Deck is designed for reading and sharing, not live presentation
- Structure should be self-explanatory without a presenter
- Include enough context for visuals to be understood standalone
- Err on the side of audience having more expertise than expected
Content Rules
- Maximum 20 slides per deck
- Every data point must trace to source material
- All details in prompts - image generator has no access to source
Style Rules
- Avoid AI-generated clichés ("It wasn't just X, it was Y")
- Use narrative headlines, not "Title: Subtitle" format
- Cover and Back Cover should be visually distinct (poster-style)
- Back Cover should be meaningful closure, not "Thank You" or "Questions?"
Prohibited
- Never include photorealistic images of prominent individuals
- Never include placeholder slides for author name, date, etc.
Image Generation
- Image generation typically takes 10-30 seconds per slide
- Auto-retry once on generation failure
- Use cartoon alternatives for sensitive public figures
- Output language matches content language
- Maintain style consistency across all slides
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---56# Slide Deck Generator78Transform content into professional slide deck with comprehensive outlines and generated slide images.910## Usage1112```bash13# From markdown file14/baoyu-slide-deck path/to/article.md1516# With style preference17/baoyu-slide-deck path/to/article.md --style corporate18/baoyu-slide-deck path/to/article.md --style playful19/baoyu-slide-deck path/to/article.md --style technical2021# With audience specification22/baoyu-slide-deck path/to/article.md --audience beginners23/baoyu-slide-deck path/to/article.md --audience executives2425# With language26/baoyu-slide-deck path/to/article.md --lang zh27/baoyu-slide-deck path/to/article.md --lang en2829# Outline only (no image generation)30/baoyu-slide-deck path/to/article.md --outline-only3132# Direct content input33/baoyu-slide-deck34[paste content]35```3637## Options3839| Option | Description |40|--------|-------------|41| `--style <name>` | Visual style preset (see Style Gallery) |42| `--audience <type>` | Target audience level |43| `--lang <code>` | Output language (en, zh, etc.) |44| `--slides <number>` | Target slide count (max 20) |45| `--outline-only` | Generate outline only, skip image generation |4647## Style Gallery4849| Style | Description |50|-------|-------------|51| `editorial` (Default) | Clean, sophisticated, minimalist |52| `corporate` | Professional, trustworthy, polished |53| `technical` | Precise, data-driven, analytical |54| `playful` | Bold, energetic, engaging |55| `minimal` | Ultra-clean, zen-like, focused |56| `storytelling` | Narrative-driven, cinematic, immersive |57| `warm` | Cozy, healing, hand-drawn illustration style |58| `retro-flat` | Flat vector illustration with retro palette |59| `notion` | Minimalist hand-drawn line art, intellectual |6061Detailed style definitions: `references/styles/<style>.md`6263## Auto Style Selection6465When no `--style` is specified, analyze content for style signals:6667| Content Signals | Selected Style |68|----------------|----------------|69| AI, coding, tech, digital, algorithm, data | `technical` |70| Business, strategy, investment, corporate | `corporate` |71| Personal story, journey, narrative, emotion | `storytelling` |72| Simple, zen, focus, essential, one idea | `minimal` |73| Fun, creative, workshop, educational | `playful` |74| Research, analysis, thought leadership | `editorial` |75| Wellness, healing, cozy, self-care, lifestyle, comfort | `warm` |76| Tutorial, explainer, how-to, beginner, product, guide | `retro-flat` |77| Knowledge, concept, productivity, SaaS, notion, intellectual | `notion` |7879## Audience Presets8081| Audience | Approach |82|----------|----------|83| `beginners` | Step-by-step, more context, simpler visuals |84| `intermediate` | Balanced detail, some assumed knowledge |85| `experts` | Dense information, technical depth, less hand-holding |86| `executives` | High-level insights, key metrics, strategic focus |87| `general` | Accessible language, broad appeal, clear takeaways |8889## File Management9091### With Article Path9293```94path/to/95├── article.md96└── slide-deck/97 ├── outline.md98 ├── prompts/99 │ ├── 01-cover.md100 │ ├── 02-content-1.md101 │ └── ...102 ├── 01-cover.png103 ├── 02-content-1.png104 └── ...105```106107### Without Article Path108109```110./baoyu-slide-deck-outputs/YYYY-MM-DD/[topic-slug]/111├── outline.md112├── prompts/113│ ├── 01-cover.md114│ └── ...115├── 01-cover.png116└── ...117```118119## Workflow120121### Step 1: Analyze Content & Select Style1221231. Read source content1242. If `--style` specified, use that style1253. Otherwise, analyze content for style signals1264. Extract key information:127 - Core narrative and key messages128 - Important data points and statistics129 - Logical flow and structure130 - Target audience signals131132### Step 2: Generate Outline133134Create outline with `STYLE_INSTRUCTIONS` block and slide specifications.135136**Outline Format**:137138```markdown139# Slide Deck Outline: [Topic]140141**Source**: [source file or "Direct input"]142**Style**: [selected style]143**Audience**: [target audience]144**Language**: [output language]145**Slide Count**: N slides146**Generated**: YYYY-MM-DD HH:mm147148---149150<STYLE_INSTRUCTIONS>151Design Aesthetic: [Overall style description]152Background Color: [Description and Hex Code]153Primary Font: [Font name for Headlines]154Secondary Font: [Font name for Body copy]155Color Palette:156 Primary Text Color: [Hex Code]157 Primary Accent Color: [Hex Code]158Visual Elements: [Lines, shapes, imagery style, etc.]159</STYLE_INSTRUCTIONS>160161---162163## Slide 1: [Descriptive Title]164165**Position**: Cover166**Filename**: 01-cover.png167168// NARRATIVE GOAL169[Storytelling purpose within the overall arc]170171// KEY CONTENT172Headline: [Main message - narrative, not "Title: Subtitle" format]173Sub-headline: [Supporting context]174Body:175- [Key point 1 with specific data from source]176- [Key point 2 with specific data from source]177178// VISUAL179[Detailed description of imagery, charts, graphics, or abstract visuals]180181// LAYOUT182[Composition, hierarchy, spatial arrangement, focus points]183184---185186## Slide 2: [First Content]187...188189## Slide N: [Back Cover]190...191```192193**Required Slide Structure**:1941. **Slide 1**: Cover Slide (poster-style, heroic typography)1952. **Slides 2-N-1**: Content slides (consistent internal style)1963. **Slide N**: Back Cover (closing statement, not "Thank You")197198### Step 3: Save Outline199200Save outline as `outline.md` in target directory.201202If `--outline-only` flag is set, stop here.203204### Step 4: Create Prompt Files205206For each slide, create a style-specific prompt file.207208**Prompt Format**:209210```markdown211Slide theme: [slide title]212Style: [style name]213Position: [cover/content/back-cover]214215Visual composition:216- Main visual: [style-appropriate description from VISUAL section]217- Layout: [from LAYOUT section]218- Decorative elements: [style-specific decorations]219220Color scheme:221- Background: [style background color]222- Primary text: [style text color]223- Accent: [style accent color]224225Text content:226- Headline: [headline text]227- Sub-headline: [sub-headline if any]228- Body points: [bullet points if any]229230Style notes: [specific style characteristics to emphasize]231```232233### Step 5: Generate Images234235For each slide, generate using:236237```bash238/baoyu-gemini-web --promptfiles [SKILL_ROOT]/skills/baoyu-slide-deck/prompts/system.md [TARGET_DIR]/prompts/01-cover.md --image [TARGET_DIR]/01-cover.png239```240241Generation flow:2421. Generate images sequentially2432. After each image, output progress: "Generated X/N"2443. On failure, auto-retry once2454. If retry fails, log reason, continue to next246247### Step 6: Completion Report248249```250Slide Deck Generated!251252Topic: [topic]253Style: [style name]254Audience: [audience]255Location: [directory path]256Slides: N total257258- 01-cover.png ✓ Cover259- 02-content-1.png ✓ Content260- 03-content-2.png ✓ Content261- ...262- 0N-back-cover.png ✓ Back Cover263264Outline: outline.md265266[If any failures]267Failed:268- 0X-slide-name.png: [failure reason]269```270271## Notes272273### Design Philosophy274- Deck is designed for **reading and sharing**, not live presentation275- Structure should be self-explanatory without a presenter276- Include enough context for visuals to be understood standalone277- Err on the side of audience having **more expertise** than expected278279### Content Rules280- Maximum 20 slides per deck281- Every data point must trace to source material282- All details in prompts - image generator has no access to source283284### Style Rules285- Avoid AI-generated clichés ("It wasn't just X, it was Y")286- Use narrative headlines, not "Title: Subtitle" format287- Cover and Back Cover should be visually distinct (poster-style)288- Back Cover should be meaningful closure, not "Thank You" or "Questions?"289290### Prohibited291- Never include photorealistic images of prominent individuals292- Never include placeholder slides for author name, date, etc.293294### Image Generation295- Image generation typically takes 10-30 seconds per slide296- Auto-retry once on generation failure297- Use cartoon alternatives for sensitive public figures298- Output language matches content language299- Maintain style consistency across all slides