/tools-plugin:generate-imagefrom tools-plugin
Generates images via Gemini 3 Pro Image from text prompts with configurable aspect ratio, resolution, and up to 5 reference images. Useful for artwork, product photos, and mockups.
Ships in tools-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate images using Google's Nano Banana Pro (Gemini 3 Pro Image) model.
| Use this skill when... | Use imagemagick-conversion instead when... |
|---|---|
| Producing a brand-new image from a text prompt | Converting, resizing, or compressing an existing image |
| Generating cinematic, product, or portrait artwork | Building thumbnails or batch-processing many files |
| Mixing up to five reference images into a new render | Applying deterministic transforms (rotate, crop, format) |
| Use this skill when... | Use mermaid-diagrams or d2-diagrams instead when... |
|---|---|
| The output is a photographic or illustrative image | The output is a flowchart, sequence, or architecture diagram |
| Quality settings (1K/2K/4K) and aspect ratio matter | Diagram-as-code rendering would be more maintainable |
Parse these from $ARGUMENTS. The prompt is the quoted string (or, if
unquoted, every token before the first -- flag):
$ARGUMENTS is empty, ask the user for one and stop.1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9) - default: 16:91K, 2K, 4K) - default: 2KThe script reads GOOGLE_API_KEY or GEMINI_API_KEY from its environment. It may be exported, or injected into the one command by a secret manager (fnox exec --only GEMINI_API_KEY -- <cmd>, op run -- <cmd>). Check an exported key:
echo "API Key: ${GOOGLE_API_KEY:+SET}${GEMINI_API_KEY:+SET}"
If not set, get one from: https://aistudio.google.com/apikey
/generate-image "A beautiful mountain landscape at sunset"
/generate-image "Product photo on white background" --aspect 1:1 --resolution 4K
/generate-image "Portrait photo" --aspect 3:4
/generate-image "Cinematic scene" --aspect 21:9
/generate-image "Similar style" --reference existing_image.png
Parse arguments from $ARGUMENTS (see Parameters):
--aspect (default 16:9), --resolution (default 2K),
each --reference <path> (at most 5), and --output <path> if givenBuild and execute the command, substituting the parsed values for the
<...> slots. Add one --reference <path> per reference image and
--output <path> only when given:
uv run python .claude/scripts/nano_banana_pro.py "<prompt>" \
--aspect <ratio> \
--resolution <size> \
--reference <path>
Report results:
Default output: ./generated/image_YYYYMMDD_HHMMSS.png
Custom output with --output:
/generate-image "Scene" --output custom_name.png
Reference images help maintain consistency:
When using references, describe the relationship:
Maximum 5 reference images per generation.
| Use Case | Ratio |
|---|---|
| Square/Instagram | 1:1 |
| Portrait | 3:4, 9:16 |
| Landscape | 16:9 |
| Ultrawide | 21:9 |
| Photo | 3:2, 4:3 |
| Use Case | Resolution |
|---|---|
| Preview | 1K |
| Standard | 2K |
| High quality | 4K |
GOOGLE_API_KEY or GEMINI_API_KEY, or inject it into the command with a secret managerWhat SKILL.md sets; muted values are Claude Code's defaults
haikulow18 skills in this plugin
/apptainerApptainer: run OCI images as rootless batch jobs with --nv GPU passthrough and digest-pinned SIFs. Use when running a CUDA tool without Docker, podman lacks GPU support, or a pull fills root./binary-analysisBinary analysis: strings, binwalk, hexdump, xxd, file, objdump. Use when identifying unknown files, extracting strings, hunting credentials, or entropy analysis./cli-smoke-recipesCLI smoke recipes: expose pure-function modules via subcommands with a bulk-smoke justfile recipe. Use when designing data-transform modules or authoring smoke tests./d2-diagramsGenerate diagrams from text using D2 with automatic layouts and themes. Use when creating architecture diagrams, flowcharts, decision trees, sequence flows, or ERDs./deps-installDeps install: auto-detect package manager (uv, bun, npm, yarn, pnpm, cargo, go) and run the right install. Use when installing deps or syncing lockfiles./fd-file-findingfd fast file finding: smart defaults, gitignore-aware, parallel. Use when searching for files by name, extension, or pattern across directories.npx claudepluginhub laurigates/claude-plugins --plugin tools-pluginOther plugins' skills for the same job