Skip to content
Presentations
Skill

/slides-grab-image

Image-native presentation pipeline usable in Codex and Claude Code. Generate whole-slide raster images one slide at a time with slides-grab image, passing the reference template page as --reference so the model copies the layout and style and only swaps the content. Use when

From plugin
slides-grab
1.2k7 skills2 agents

Claude Code

$ npx -y skills add nomadamas/slides-grab --skill slides-grab-image --agent claude-code

SKILL.md

slides-grab-image.SKILL.md
name: slides-grab-image
description: Image-native presentation pipeline usable in Codex and Claude Code. Generate whole-slide raster images one slide at a time with slides-grab image, passing the reference template page as --reference so the model copies the layout and style and only swaps the content. Use when visual fidelity to an existing template matters more than editable text.
metadata:
  short-description: Image-native pipeline — per-slide raster generation with template reference

slides-grab Image Skill

Generate whole-slide raster images where the generated PNG **is** the slide. Each slide is generated individually with `slides-grab image`, passing the matching reference template page image(s) via `--reference` so the model reproduces the template's layout, colors, fonts, and density — only swapping in the new slide's content. Use this pipeline when the user wants to match an existing corporate template, filled deck, or brand form visually.

Mode signal

The plan stage records `mode: image-native` in `slide-outline.md`. The user typically provides a reference template (PPTX, PDF, HTML examples) and says "make slides in this form."

Core rule: reference-guided per-slide generation

  • **Generate one slide at a time** with `slides-grab image`. Do NOT use `slides-grab generate-images` (the batch command auto-assembles garbage prompts from markdown and produces inconsistent output).
  • **Always pass at least one reference template page image** via `--reference <path>` (repeatable). The reference page(s) must be the same slide-type (cover, content, closing) from the source template. The model must copy the reference's layout, color bands, typography hierarchy, whitespace, and density — only the text content and any embedded photos change.
  • The prompt must explicitly instruct: *"Follow the reference image's layout, composition, color palette, and typography hierarchy exactly. Keep the same band positions, spacing, and visual rhythm. Only replace the text content and photos with the new slide's content below."*
  • Pass any real photos/assets to embed as additional `--reference` images so the model can place them into the template layout.

Prompt structure (use this pattern)

slides-grab image \
  --prompt "Follow the reference image layout exactly — same color bands, same typography hierarchy, same spacing and density. This is a [cover/content/closing] slide. Replace the text with: Title: '<new title>'. Body: '<new body text>'. Bullets: <bullet list>. Keep the template's visual style, fonts, and color palette. Render all text sharp and legible. 16:9, 720pt × 405pt." \
  --slides-dir <path> \
  --reference <template-page-cover.png> \
  --reference <real-photo-to-embed.png>

Key prompt principles:

  • **Describe the content to inject**, not the visual design — the reference image defines the design.
  • Name the slide type (cover, content, closing, stat) so the model picks the right reference density.
  • List the exact title, body, and bullets as literal strings the model should render.
  • If embedding real photos, name them in the prompt ("place photo-1 in the left grid cell") and pass them as `--reference`.
  • Require sharp, legible, correctly spelled text.

Workflow

Stage 1 — Plan (template-driven dense outline)

Use the installed **slides-grab-plan** skill with image-native outline density rules. 1. Take topic, audience, and tone. 2. If the user provides a reference template/PDF/PPTX, import it with `slides-grab import-template --input <path>`. Also render the template pages to PNG (e.g. `pdftoppm -png -r 150 <input>.pdf <prefix>`) and store under `<slides-dir>/.slides-grab/template-previews/`. These page renders are the `--reference` images for Stage 2. 3. **Read the template pages in order** (page-01, page-02, ...). For each page, identify its layout type and information density — how many text blocks, data points, bullets, captions, and visual elements it carries. This is the critical step: the outline must match the template's per-slide density, not write a thin HTML-style summary. 4. **Write a dense outline**: one outline slide per template page, carrying the full content the user wants — titles, subtitles, body paragraphs, full bullet lists, stat values, table data, captions, and image placement notes — at the volume the template page demonstrates. Image-native slides are single rasters with no HTML structure limits, so they hold more text and data per slide than semantic HTML. Do not under-fill. 5. Tag each outline slide with `template-page: NN` so Stage 2 knows which reference image to pass. 6. Record `mode: image-native` and `style: template-pack` in `slide-outline.md` meta. 7. Present outline, revise until approved.

Stage 2 — Design (per-slide image generation)

1. Read approved `slide-outline.md`. For each slide, read its `template-page: NN` tag and pick that exact template page render from `.slides-grab/template-previews/page-NN.png` as the primary `--reference`. If the slide has no tag, pick 1–2 layout-similar pages by slide type (cover, content, stat, closing). 2. For each slide, run `slides-grab image` with:

  • `--prompt` containing ALL the content from the outline for that slide — the full title, subtitle, body paragraphs, every bullet, every stat value, every caption — not a summary. Precede the content with "Follow the reference image layout exactly — same color bands, same typography hierarchy, same spacing and density. Only replace the text content with the content below."
  • `--reference` pointing to the matching template page render(s)
  • `--reference` for any real photos to embed (member photos, product shots, logos)
  • `--slides-dir <path>` and `--name slide-XX` (so the output is `assets/slide-XX.png`)
  • `--image-native` so the command also writes the editor-compatible `slide-XX.html` wrapper and `.slides-grab/image-native/slide-XX.json` regeneration metadata
  • `--provider codex` (default; reuses `~/.codex/auth.json`, r
Read more
@nomadamas
Ships withslides-grab

Best harness + editor + linter for generating slides in Claude Code / Codex - Claude Design Open Source Alternative

1.2k7 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.2k
Star history of nomadamas/slides-grab on GitHub, a chart by star-history.com

Other skills on slides-grab.

slides-grab-design

slides-grab-design

Stage 2 design skill usable in Codex and Claude Code. Generate and iterate slide-XX.html files in the selected slides workspace.

slides-grab-export

slides-grab-export

Stage 3 conversion skill usable in Codex and Claude Code. Convert approved HTML slides to PDF or per-slide PNG reliably, and to…

slides-grab-html

slides-grab-html

HTML-mode presentation pipeline usable in Codex and Claude Code. Build semantic slide-XX.html files, generate bespoke hero/accent…

slides-grab-plan

slides-grab-plan

Stage 1 planning skill usable in Codex and Claude Code. Build and iterate slide-outline.md until explicit user approval.

slides-grab

slides-grab

End-to-end presentation workflow usable in Codex and Claude Code. Routes the user request to the HTML-mode or image-native-mode…

More skills from other plugins.

slidev

slidev

Create and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations,…

slidev2w50k
@slidevjs@slidevjsInstall Skill
ppt-image-first

ppt-image-first

Build presentation plans for PPT / slides / decks through a conversation-first workflow, then propose multiple visual directions…

@nyxtides@nyxtidesInstall Skill
agent-reach

agent-reach

Self-contained multi-platform internet search and read skill. Zero external dependencies — calls upstream tools (curl+Jina, gh,…

@zengwenliang416@zengwenliang416Install Skill

Questions about slides-grab-image.

Which coding agents can use slides-grab-image?
slides-grab-image installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.