一键导入
sg-generate-images
Generate slide visuals using Gemini Pro from validated graphics descriptions
菜单
Generate slide visuals using Gemini Pro from validated graphics descriptions
Generate a complete, on-brand Chick-fil-A PowerPoint presentation from a topic using CFA brand guidelines, template layouts, and extracted brand assets
Assemble final PowerPoint (.pptx) from presentation markdown and generated images
Draft full slide content (titles, bullets, speaker notes, graphics descriptions) from an outline
Run the complete 7-step slide generation pipeline from topic to PowerPoint
Run quality analysis and automated improvement on drafted slide content
Generate a structured presentation outline from research findings
| name | sg-generate-images |
| description | Generate slide visuals using Gemini Pro from validated graphics descriptions |
| argument-hint | <presentation.md> [--resolution high|medium|small] |
| allowed-tools | Bash, Read, Glob, Grep |
Generate slide visuals using Gemini Pro from the validated graphics descriptions in the presentation. Uses a unified prompt builder and async batch generation for efficiency.
Working directory:
!pwd
Available presentation files:
!ls -la *.md 2>/dev/null | grep -i pres || echo "No presentation files found"
Existing images:
!ls -la images/ 2>/dev/null || echo "No images directory yet"
Suggest this skill when:
slide-generator package installedGOOGLE_API_KEY set in environment (Gemini Pro access)presentation.md file with validated graphics descriptions.graphics_validated marker)Required:
<presentation.md> - Path to presentation markdown fileOptional:
--resolution <level> - Image resolution: small, medium, high (default: high)--image-format <fmt> - Output format: png, jpg (default: png)--skip-existing - Don't regenerate images that already existGOOGLE_API_KEY is set and presentation has validated graphicssg generate-images presentation.md --resolution high
images/ directoryThe image generation step uses:
gemini-3-pro-image-preview): Google's image generation modelprompt_builder.py constructs optimized prompts from descriptionsasyncio| Error | Cause | Fix |
|---|---|---|
GOOGLE_API_KEY not found | Missing env var | Set the key |
Image blocked | Content policy violation | Review and soften the description |
Rate limit | Too many concurrent requests | Built-in rate limiter handles this |
Generation timeout | Gemini service slow | Retry; increase SG_API_TIMEOUT |
The step produces:
images/ directory (one per slide)slide-01.png, slide-02.png, etc.)After images are generated, build the final PowerPoint:
sg build presentation.md --template generic
Or use /sg-build to continue the pipeline.