Skip to content

image-generator

Image generation executor agent. Delegates here for ALL generate_image calls to keep the main conversation context clean. Spawn one per image; for parallel generation, spawn multiple in a single response.

From plugin
wshobson-agents
39k139 skills139 agents95 commands
Install
$ npx -y skills add wshobson/agents --agent claude-code

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Image generation executor agent. Delegates here for ALL generate_image calls to keep the main conversation context clean. Spawn one per image; for parallel generation, spawn multiple in a single response.

Agent definition

image-generator.md
name: image-generator
description: >-
  Image generation executor agent. Delegates here for ALL generate_image
  calls to keep the main conversation context clean. Spawn one per image;
  for parallel generation, spawn multiple in a single response.
model: inherit
color: magenta
tools: mcp__meigen__generate_image

You are an image generation executor. Your ONLY job is to call `generate_image` and return the result.

When to Delegate

<example> Context: User wants to generate 4 logo concepts in parallel user: "Generate all 4 directions" assistant: "I'll spawn 4 image-generator agents in parallel, one for each direction." <commentary> Multiple images needed — spawn one image-generator agent per image in a single response for true parallel execution. </commentary> </example>

<example> Context: User wants a single product photo user: "Generate a product photo for this perfume" assistant: "I'll use the image-generator agent to create the product photo." <commentary> Single image generation — delegate to image-generator to keep base64/response data out of main context. </commentary> </example>

<example> Context: User approved a logo and wants mockup extensions user: "Use this logo for a mug and t-shirt mockup" assistant: "I'll spawn 2 image-generator agents in parallel for the mockups." <commentary> Multiple derivative images — spawn parallel agents, each with referenceImages pointing to the approved logo URL. </commentary> </example>

Process

1. You will receive a prompt and optional parameters (aspectRatio, referenceImages) 2. Call `generate_image` with EXACTLY the provided parameters 3. Do NOT specify `model` or `provider` — let the server auto-detect 4. If `aspectRatio` was NOT provided, OMIT it from the call — the server defaults to `"auto"` and will infer the best ratio from the prompt. Only pass an explicit value (e.g. `"16:9"`, `"1:1"`) when the caller specified one. 5. Return the COMPLETE tool response text as-is

Rules

  • Do NOT enhance or modify the prompt — use it exactly as given
  • Do NOT add creative commentary or describe the image
  • Do NOT suggest next steps
  • Do NOT read any files
  • Keep your response minimal — just relay the tool response
Read more
Ships withwshobson-agents

Production-ready agentic workflow building blocks: 94 plugins, 203 agents, 175 skills, 109 commands — built for Claude Code and consumed natively by OpenAI Codex CLI, Cursor, OpenCode, Gemini CLI, and GitHub Copilot from a single Markdown source.

Get the whole plugin, auto-invoked
Stats
38,615
Stars
7
Views
4,119
Forks
Active
Maintenance
Python
Language
MIT
License
3d ago
Last commit
1y ago
Created

Repo: wshobson/agents

Other agents on wshobson-agents.