image-generator — субагент для Claude Code: генерация изображений
Передаёт запросы на генерацию изображений инструменту generate_image и возвращает его ответ. Пригодится, когда нужны отдельные или параллельные изображения.
/plugin marketplace add wshobson/agents
/plugin install meigen-ai-design@claude-code-workflowsЧто делает image-generator
image-generator вызывает mcp__meigen__generate_image с полученным промптом и заданными параметрами, затем передаёт полный ответ инструмента. Субагент не меняет промпт, не читает файлы и не добавляет описание результата. Так данные ответа остаются вне основного контекста разговора.
Для каждого изображения запускайте отдельный экземпляр; несколько экземпляров можно создать в одном ответе для параллельной генерации. Можно передать aspectRatio и referenceImages. Если соотношение сторон не задано, субагент опускает этот параметр и оставляет выбор серверу. Для работы требуется инструмент mcp__meigen__generate_image; без него субагент не сможет вызвать генерацию.
Какие задачи решает
- создать изображение по текстовому запросу
- сгенерировать несколько вариантов параллельно
- подготовить мокапы с изображением-референсом
- передать ответ генератора без обработки
Примеры запросов агенту
- Сгенерируй изображение товара по этому описанию.
- Создай четыре варианта логотипа параллельно.
- Подготовь мокапы кружки и футболки, используя это изображение как референс.
Как установить image-generator
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install meigen-ai-design@claude-code-workflows2Вручную: положить файлы
.claude/agents/image-generator.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/image-generator.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/image-generator.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о image-generator
Как установить image-generator в Claude Code?
В Claude Code выполните /plugin marketplace add wshobson/agents и затем /plugin install meigen-ai-design@claude-code-workflows. Файл субагента находится по пути .claude/agents/image-generator.md.
Что делает image-generator?
Вызывает mcp__meigen__generate_image с переданными параметрами и возвращает полный ответ инструмента без изменений.
Как image-generator обрабатывает aspectRatio?
Передаёт aspectRatio, если он задан в запросе. Если параметр не задан, опускает его, чтобы сервер выбрал соотношение сторон.
Исходный текст
image-generator.md · MIT
--- 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
© MeiGen · MIT · wshobson/agents