OpenParable
Skip to content
← Back to skills

Slide Images

Documents
slide-images

Slide Images is an Agent Skill for documents published in the BuilderIO/agent-native repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Image generation workflow -- generate-image, image-search, logo-lookup scripts. Style reference patterns.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/BuilderIO/agent-native/blob/HEAD/templates/slides/.agents/skills/slide-images/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/slide-images, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Slide Images

Images for slides are generated or sourced via three scripts. The agent delegates image generation through the agent chat for conversational follow-up.

Scripts

ScriptPurposeExample
generate-imageGenerate images (Gemini/OpenAI/auto)pnpm action generate-image --prompt "hero image" --model auto --count 3
image-searchSearch Google Images via Custom Search APIpnpm action image-search --query "Acme logo transparent" --count 5
logo-lookupGet company logo URL via Logo.dev APIpnpm action logo-lookup --domain acme.com
image-gen-statusCheck configured image providerspnpm action image-gen-status

Image Generation Flow

The standard workflow for generating slide images:

  1. User clicks "Image" in the editor or asks the agent
  2. Agent runs pnpm action generate-image --prompt "..." --count 3
  3. Agent shows variations to the user in chat
  4. User picks a favorite
  5. Agent writes the chosen image into the slide content
  6. User can follow up: "make it darker", "try a different angle"

generate-image Options

--prompt              Image description (required)
--model               Provider: gemini | openai | auto (default: auto — tries both)
--slide-content       HTML content of the current slide
--deck-id             Deck ID to load full deck text as context
--slide-id            Slide ID within the deck
--reference-image-urls  Comma-separated URLs of extra reference images
--count               Number of variations (default: 1)
--output              Output file path prefix

Default style reference images from shared/api.ts are always included.

Logo Lookup

Two options for company logos:

Option 1: Logo.dev API (best quality, requires LOGO_DEV_TOKEN):

pnpm action logo-lookup --domain acme.com

Option 2: Google Image Search (fallback):

pnpm action image-search --query "Acme logo transparent" --count 5

Important Rules

  • Always include style references for visual consistency
  • Use .fmd-img-placeholder divs in slides before real images are generated
  • Never use web_search or manual URL guessing for images
  • After inserting an image, update the deck via the API