Back to list
JimLiu

baoyu-slide-deck

by JimLiu

1,908🍴 244📅 Jan 23, 2026

SKILL.md


name: baoyu-slide-deck description: 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".

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:

  1. Determine this SKILL.md file's directory path as SKILL_DIR
  2. Script path = ${SKILL_DIR}/scripts/<script-name>.ts
  3. Replace all ${SKILL_DIR} in this document with the actual path

Script Reference:

ScriptPurpose
scripts/merge-to-pptx.tsMerge slides into PowerPoint
scripts/merge-to-pdf.tsMerge slides into PDF

Options

OptionDescription
--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 (recommended: 8-25, max: 30)
--outline-onlyGenerate outline only, skip image generation

Slide Count Guidance:

Content LengthRecommended Slides
Short (< 1000 words)5-10
Medium (1000-3000 words)10-18
Long (3000-5000 words)15-25
Very Long (> 5000 words)20-30 (consider splitting)

Maximum 30 slides per deck. For longer content, split into multiple decks.

Audience Guidelines

Design decisions should adapt to target audience. Use --audience to set.

AudienceContent DensityVisual StyleTerminologySlides
beginnersLowFriendly, illustrativePlain language8-15
intermediateMediumBalanced, structuredSome jargon OK10-20
expertsHighData-rich, preciseTechnical terms12-25
executivesMedium-HighClean, impactfulBusiness language8-12
generalMediumAccessible, engagingMinimal jargon10-18

Audience-Specific Principles

Beginners:

  • One concept per slide
  • Visual metaphors over abstract diagrams
  • Step-by-step progression
  • Generous whitespace

Experts:

  • Multiple data points per slide acceptable
  • Technical diagrams with precise labels
  • Assume domain knowledge
  • Dense but organized information

Executives:

  • Lead with insights, not data
  • "So what?" on every slide
  • Decision-enabling content
  • Bottom-line upfront (BLUF)

Style Selection Principles

Content-First Approach:

  1. Analyze content topic, mood, and industry before selecting
  2. Consider target audience expectations
  3. Match style to subject matter (not personal preference)

Quick Reference by Content Type:

Content TypeRecommended Styles
Technical/Architectureblueprint, intuition-machine
Educational/Tutorialssketch-notes, chalkboard
Corporate/Businesscorporate, minimal
Creative/Artisticvector-illustration, watercolor
Product/SaaSnotion, bold-editorial
Scientific/Researchscientific, editorial-infographic

Note: Full style specifications in references/styles/<style>.md

Available Styles

StyleDescriptionBest For
blueprint (Default)Technical schematics, grid textureArchitecture, system design
chalkboardBlack chalkboard, colorful chalkEducation, tutorials, classroom
notionSaaS dashboard, card-based layoutsProduct demos, SaaS, B2B
bold-editorialMagazine cover, bold typography, darkProduct launches, keynotes
corporateNavy/gold, structured layoutsInvestor decks, proposals
dark-atmosphericCinematic dark mode, glowing accentsEntertainment, gaming
editorial-infographicMagazine explainers, flat illustrationsTech explainers, research
fantasy-animationGhibli/Disney style, hand-drawnEducational, storytelling
intuition-machineTechnical briefing, bilingual labelsTechnical docs, academic
minimalUltra-clean, maximum whitespaceExecutive briefings, premium
pixel-artRetro 8-bit, chunky pixelsGaming, developer talks
scientificAcademic diagrams, precise labelingBiology, chemistry, medical
sketch-notesHand-drawn, warm & friendlyEducational, tutorials
vector-illustrationFlat vector, retro & cuteCreative, children's content
vintageAged-paper, historical stylingHistorical, heritage, biography
watercolorHand-painted textures, natural warmthLifestyle, wellness, travel

Auto Style Selection

Content SignalsSelected Style
tutorial, learn, education, guide, intro, beginnersketch-notes
classroom, teaching, school, chalkboard, blackboardchalkboard
architecture, system, data, analysis, technicalblueprint
creative, children, kids, cute, illustrationvector-illustration
briefing, academic, research, bilingual, infographic, conceptintuition-machine
executive, minimal, clean, simple, elegantminimal
saas, product, dashboard, metrics, productivitynotion
investor, quarterly, business, corporate, proposalcorporate
launch, marketing, keynote, bold, impact, magazinebold-editorial
entertainment, music, gaming, creative, atmosphericdark-atmospheric
explainer, journalism, science communicationeditorial-infographic
story, fantasy, animation, magical, whimsicalfantasy-animation
gaming, retro, pixel, developer, nostalgiapixel-art
biology, chemistry, medical, pathway, scientificscientific
history, heritage, vintage, expedition, historicalvintage
lifestyle, wellness, travel, artistic, naturalwatercolor
Defaultblueprint

Optional layout hints for individual slides. Specify in outline's // LAYOUT section.

Slide-Specific Layouts

LayoutDescriptionBest For
title-heroLarge centered title + subtitleCover slides, section breaks
quote-calloutFeatured quote with attributionTestimonials, key insights
key-statSingle large number as focal pointImpact statistics, metrics
split-screenHalf image, half textFeature highlights, comparisons
icon-gridGrid of icons with labelsFeatures, capabilities, benefits
two-columnsContent in balanced columnsPaired information, dual points
three-columnsContent in three columnsTriple comparisons, categories
image-captionFull-bleed image + text overlayVisual storytelling, emotional
agendaNumbered list with highlightsSession overview, roadmap
bullet-listStructured bullet pointsSimple content, lists

Infographic-Derived Layouts

LayoutDescriptionBest For
linear-progressionSequential flow left-to-rightTimelines, step-by-step
binary-comparisonSide-by-side A vs BBefore/after, pros-cons
comparison-matrixMulti-factor gridFeature comparisons
hierarchical-layersPyramid or stacked levelsPriority, importance
hub-spokeCentral node with radiating itemsConcept maps, ecosystems
bento-gridVaried-size tilesOverview, summary
funnelNarrowing stagesConversion, filtering
dashboardMetrics with charts/numbersKPIs, data display
venn-diagramOverlapping circlesRelationships, intersections
circular-flowContinuous cycleRecurring processes
winding-roadmapCurved path with milestonesJourney, timeline
tree-branchingParent-child hierarchyOrg charts, taxonomies
icebergVisible vs hidden layersSurface vs depth
bridgeGap with connectionProblem-solution

Usage: Add Layout: <name> in slide's // LAYOUT section to guide visual composition.

Layout Selection Tips

Match Layout to Content:

Content TypeRecommended Layouts
Single narrativebullet-list, image-caption
Two conceptssplit-screen, binary-comparison
Three itemsthree-columns, icon-grid
Process/Stepslinear-progression, winding-roadmap
Data/Metricsdashboard, key-stat
Relationshipshub-spoke, venn-diagram
Hierarchyhierarchical-layers, tree-branching

Layout Flow Patterns:

PositionRecommended Layouts
Openingtitle-hero, agenda
MiddleContent-specific layouts
Closingquote-callout, key-stat

Common Mistakes to Avoid:

  • ✗ Using 3-column layout for 2 items (leaves columns empty)
  • ✗ Stacking charts/tables below text (use side-by-side instead)
  • ✗ Image layouts without actual images
  • ✗ Quote layouts for emphasis (use only for real quotes with attribution)

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

Visual Hierarchy Principles

PrincipleDescription
Focal PointONE dominant element per slide draws attention first
Rule of ThirdsPosition key elements at grid intersections
Z-PatternGuide eye: top-left → top-right → bottom-left → bottom-right
Size ContrastHeadlines 2-3x larger than body text
Breathing RoomMinimum 10% margin from all edges

Content Density

Professional presentations balance information density with clarity.

LevelDescriptionUse When
HighMultiple data points, detailed charts, dense textExpert audience, technical reviews, data-driven decisions
MediumKey points with supporting details, moderate visualsGeneral business, mixed audiences
LowOne main idea, large visuals, minimal textBeginners, keynotes, emotional impact

High-Density Principles (McKinsey-style):

  • Every element earns its space
  • Data speaks louder than decoration
  • Annotations explain insights, not describe data
  • White space is strategic, not filler
  • Information hierarchy guides the eye

Density by Slide Type:

Slide TypeRecommended Density
Cover/TitleLow
Agenda/OverviewMedium
Content/AnalysisMedium-High
Data/MetricsHigh
Quote/ImpactLow
Summary/TakeawayMedium

Color Selection

Content-First Approach:

  1. Analyze content topic, mood, and industry
  2. Consider target audience expectations
  3. Match palette to subject matter (not defaults)
  4. Ensure strong contrast for readability

Quick Palette Guide:

Content TypeRecommended Palettes
Technical/ArchitectureBlues, grays, blueprint tones
Educational/FriendlyWarm colors, earth tones
Corporate/ProfessionalNavy, gold, structured palettes
Creative/ArtisticBold colors, unexpected combinations
Scientific/MedicalClean whites, precise color coding

Note: Full color specs in references/styles/<style>.md

Typography Principles

ElementTreatment
HeadlinesBold, 2-3x body size, narrative style
Body TextRegular weight, readable size
CaptionsSmaller, lighter weight
Data LabelsMonospace for technical content
EmphasisUse bold or color, not underlines

Font Recommendations

Fonts for AI-generated slides. Specify in prompts for consistent rendering.

English Fonts:

FontStyleBest For
LiterSans-serif, geometricModern, clean, technical
HedvigLettersSansSans-serif, distinctiveBrand-forward, creative
OranienbaumHigh-contrast serifElegant, classical
SortsMillGoudyClassical serifTraditional, readable
CodaRound sans-serifFriendly, approachable

Chinese Fonts:

FontStyleBest For
MiSansModern sans-serifClean, versatile, screen-optimized
Noto Sans SCNeutral sans-serifStandard, multilingual
siyuanSongtiRefined Song typefaceElegant, editorial
alimamashuheitiGeometric sans-serifCommercial, structured
LXGW BrightSong-Kai hybridWarm, readable

Multilingual Pairing:

Use CaseEnglishChinese
TechnicalLiterMiSans
EditorialOranienbaumsiyuanSongti
FriendlyCodaLXGW Bright
CorporateHedvigLettersSansalimamashuheiti

Consistency Requirements

ElementGuideline
SpacingConsistent margins and padding throughout
ColorsMaximum 3-4 colors per slide, palette consistent across deck
TypographySame font families and sizes for same content types
Visual LanguageRepeat patterns, shapes, and treatments

Visual Elements Reference

Quick reference for visual treatments. Full specs in style definitions.

Background Treatments

TreatmentDescriptionBest For
Solid colorSingle background colorClean, minimal
Split backgroundTwo colors, diagonal or verticalContrast, sections
GradientSubtle vertical or diagonal fadeModern, dynamic
TexturedPattern or texture overlayCharacter, style

Typography Treatments

TreatmentDescriptionBest For
Size contrast3-4x difference headline vs bodyImpact, hierarchy
All-caps headersUppercase with letter spacingAuthority, structure
Monospace dataFixed-width for numbers/codeTechnical, precision
Hand-drawnOrganic, imperfect letterformsFriendly, approachable

Geometric Accents

ElementDescriptionBest For
Diagonal dividersAngled section separatorsEnergy, movement
Corner bracketsL-shaped framesFocus, framing
Circles/hexagonsShape frames for imagesModern, tech
Underline accentsThick lines under headersEmphasis, hierarchy

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:

  1. Extract main topic from content (2-4 words, kebab-case)
  2. 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

  1. Save source content (if pasted, save as source.md)
  2. Follow references/analysis-framework.md for deep content analysis
  3. Determine style (use --style or auto-select from signals)
  4. Detect languages (source vs. user preference)
  5. Plan slide count (--slides or dynamic)

Step 2: Generate Outline Variants

  1. Generate 3 style variant outlines based on content analysis
  2. Follow references/outline-template.md for structure
  3. Save as outline-{style}.md for each variant

Step 3: User Confirmation

Single AskUserQuestion with all applicable options:

QuestionWhen to Ask
Style variantAlways (3 options + custom)
LanguageOnly 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

  1. Read references/base-prompt.md
  2. Combine with style instructions from outline
  3. Add slide-specific content
  4. If Layout: specified in outline, include layout guidance in prompt:
    • Reference layout characteristics for image composition
    • Example: Layout: hub-spoke → "Central concept in middle with related items radiating outward"
  5. Save to prompts/ directory

Step 5: Generate Images

  1. Select available image generation skill
  2. Generate session ID: slides-{topic-slug}-{timestamp}
  3. Generate each slide with same session ID
  4. 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

FileContent
references/analysis-framework.mdDeep content analysis for presentations
references/outline-template.mdOutline structure and STYLE_INSTRUCTIONS format
references/modification-guide.mdEdit, add, delete slide workflows
references/content-rules.mdContent and style guidelines
references/base-prompt.mdBase prompt for image generation
references/styles/<style>.mdFull 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):

  1. .baoyu-skills/baoyu-slide-deck/EXTEND.md (project)
  2. ~/.baoyu-skills/baoyu-slide-deck/EXTEND.md (user)

If found, load before Step 1. Extension content overrides defaults.

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 1000以上

+15
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon