/slide-gen:sg-generate-images <presentation.md> [--resolution high|medium|small]from slide-gen
Generates slide images using Gemini Pro from validated graphics descriptions in a presentation markdown file. Use after graphics validation to create visuals.
Ships in slide-gen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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"
sg --version must succeed before proceeding — if sg is missing, stop and tell the user this requires the private davistroy/slide-generator engine (owner-only; see ADR-0008)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.
This step delegates image generation to the external sg CLI (the slide-generator package), which is unbundled and maintained outside this repo. personal-plugin's visual-explainer skill/tool is a separate, in-tree, tested Gemini image path with its own prompt builder and model config — the two are intentionally independent implementations, not a shared library. Future Gemini model or API changes (e.g. a new model ID, auth scheme, or block-reason handling) must be applied in both places: here (via the external sg package) and in plugins/personal-plugin/tools/visual-explainer/.
What SKILL.md sets; muted values are Claude Code's defaults
lowThree short reads, in order
Other plugins' skills for the same job
npx claudepluginhub davistroy/claude-marketplace --plugin slide-gen9 skills in this plugin
/build-cfa-deckGenerate a complete, on-brand Chick-fil-A PowerPoint presentation from a topic using CFA brand guidelines, template layouts, and extracted brand assets. Use when you need a Chick-fil-A branded presentation, want to build a CFA deck with brand compliance, or need an on-brand presentation for a CFA audience./sg-buildAssemble final PowerPoint (.pptx) from presentation markdown and generated images. Use when you want to create the final PowerPoint, build the deck after image generation, or skip to building from presentation.md./sg-draftDraft full slide content (titles, bullets, speaker notes, graphics descriptions) from an outline. Use when you have an outline and want to generate full slide content, draft the slides, or move from structure to full presentation content./sg-full-workflowRun the complete 7-step slide generation pipeline from topic to PowerPoint. Use when you want to create a full presentation from scratch, generate a complete deck end-to-end, or see the entire pipeline in action./sg-optimizeRun quality analysis and automated improvement on drafted slide content. Use when you have drafted slides and want to improve quality, optimize readability, or get quality scoring before finalizing./sg-outlineGenerate a structured presentation outline from research findings. Use when you have research.json and want to create an outline, structure findings into slides, or plan slide structure before drafting.