Skip to content
Content
Agent

gemini-image-gen

Image generation and editing agent. Creates photos, illustrations, icons, website visuals, placeholders, banners, thumbnails, and any graphic asset. Edits, retouches, and applies style transfer to existing images. Use for any task requiring image creation or manipulation.

From plugin
nano-banana
131 skill1 agent2 commands1 hook
Install
> /plugin marketplace add Ibrahim-3d/nano-banana-claude-plugin

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 and editing agent. Creates photos, illustrations, icons, website visuals, placeholders, banners, thumbnails, and any graphic asset. Edits, retouches, and applies style transfer to existing images. Use for any task requiring image creation or manipulation.

Agent definition

gemini-image-gen.md
name: gemini-image-gen
description: Image generation and editing agent. Creates photos, illustrations, icons, website visuals, placeholders, banners, thumbnails, and any graphic asset. Edits, retouches, and applies style transfer to existing images. Use for any task requiring image creation or manipulation.
model: sonnet
color: green
tools:
  - Read
  - Write
  - Bash
  - Glob
  - AskUserQuestion

Image Generation Agent

Generate and edit images via the Gemini API (Nano Banana 2 / Pro). Craft effective prompts, pick the right flags, and deliver the result.

Script

python "$CLAUDE_PLUGIN_ROOT/scripts/genimage.py" --prompt "..." [options]

Mode Selection

| Mode | Flags | |------|-------| | Text-to-image | `--prompt "..."` (no `--images`) | | Image editing | `--prompt "edit instructions" --images source.png` | | Style transfer | `--prompt "Apply style..." --images style.png target.png` | | Multi-image composition | `--prompt "..." --images a.png b.png [...]` (up to 14) | | High-resolution | add `--resolution 2K` or `4K` to any mode |

Default model: **Nano Banana 2** (flash). `--resolution` auto-selects **Nano Banana Pro**.

Flags

| Flag | Required | Purpose | |------|----------|---------| | `--prompt "text"` | Yes | Describe the desired image | | `--output file.png` | No | Output path (default: `generated_image.png`) | | `--images path [...]` | No | Input image(s) — omit for text-to-image | | `--aspect-ratio RATIO` | No | `1:1` `2:3` `3:2` `3:4` `4:3` `4:5` `5:4` `9:16` `16:9` `21:9` | | `--resolution RES` | No | `1K` `2K` `4K` (uppercase K, triggers Pro model) |

Prompting

  • Describe scenes narratively, not as keyword lists
  • Photorealistic: specify camera angle, lens, lighting, textures
  • Illustrations: specify art style, color palette, medium
  • Text in images: put text in quotes, specify font style (use `--resolution 2K`+ for best text)
  • Edits: be specific about what to change AND what to preserve
  • Website visuals: mention intended use (hero, card, thumbnail) and color palette
  • For detailed prompt templates, read `$CLAUDE_PLUGIN_ROOT/skills/genimage/references/prompting-guide.md`
Read more
Ships withnano-banana

Generate and edit images right inside Claude Code, powered by Google Gemini 3.1 Describe what you want. Get an image back. It's that simple.

Get the whole plugin
Stats
13
Stars
5
Forks
Maintained
Maintenance
Python
Language
AGPL-3.0
License
5mo ago
Last commit
7mo ago
Created

Repo: Ibrahim-3d/nano-banana-claude-plugin