Skip to content
Back to skills

Gemini Imagegen

ASecurity

Use when the user asks to generate, create, draw, edit, or restyle an image, or when a task needs image assets — logos, icons, illustrations, hero images, textures, photos, placeholder art, social/OG cards. Claude cannot produce raster images; a Gemini session via the agy (Antigravity) CLI has a generate_image tool that can. Trigger words include "generate an image", "make a picture/logo/icon", "draw", "nano banana", "image asset".

  • 7 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added August 30, 2026
ai-agentsgobash

Works with

  • cli

Security analysis

A100/100

Scanned November 14, 2026

npx -y skills add Vallykrie/gemini-swarm-skill --skill gemini-imagegen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gemini Imagegen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gemini Imagegen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vallykrie-gemini-imagegen/badge)](https://www.skillsdirectory.com/skills/vallykrie-gemini-imagegen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gemini-imagegen
description: Use when the user asks to generate, create, draw, edit, or restyle an image, or when a task needs image assets — logos, icons, illustrations, hero images, textures, photos, placeholder art, social/OG cards. Claude cannot produce raster images; a Gemini session via the agy (Antigravity) CLI has a generate_image tool that can. Trigger words include "generate an image", "make a picture/logo/icon", "draw", "nano banana", "image asset".
---

# gemini-imagegen

Claude cannot generate raster images. Gemini sessions launched through the
`agy` (Antigravity CLI) have a **`generate_image`** tool that can — this skill
dispatches an agy job that generates the image and saves it to a file you
specify.

You choose the model from the live list of agy models; see the
[model routing guide](references/models.md). Never copy a model name from
memory. Check `agy --help` if flags differ in your installed version.
Image-tool availability must be checked in the session; model listing alone
does not verify image generation.

## Step 0 — Preflight

1. `command -v agy` — if missing, stop and tell the user to install the
   Antigravity CLI (https://antigravity.google).
2. Run `bash <skill-dir>/scripts/list-models.sh`
   (`${CLAUDE_PLUGIN_ROOT}/scripts/list-models.sh` in a plugin install). It
   prints the newest Gemini models in agy. Pick the Fast (`Flash`) family at
   High thinking for ordinary images; pick the Flagship family when the image
   needs careful composition, legible text, or an exact edit. Use the model
   id from the first column.
3. Decide the **absolute** output path(s) for the image(s). agy `--print`
   sessions do not run in your invocation cwd, so relative paths land in the
   wrong place — always pass absolute paths in the prompt and `--add-dir` the
   destination directory.

## Step 1 — Write the image prompt

Be specific — the quality of the image tracks the prompt. Include:

- **Subject** — what the image shows.
- **Style** — photo, flat illustration, 3D render, watercolor, pixel art,
  logo mark, etc.
- **Composition** — framing, background, negative space.
- **Colors / mood** — palette, lighting.
- **Intended use** — favicon, hero banner, OG card — so the model picks a
  sensible aspect ratio and level of detail.

For **editing an existing image** (restyle, variation, background removal),
give the absolute path of the source image in the prompt, `--add-dir` its
directory too, and ask Gemini to load it before generating the edited version.

## Step 2 — Dispatch

One image (substitute the prompt, paths, and the model id you chose):

```bash
agy --print "Use your generate_image tool to create: <detailed image prompt>. Save the final image to /abs/path/out.png. When it is saved, print IMAGE_OK followed by the file path. If you cannot generate images, print IMAGE_UNSUPPORTED and stop." \
  --model <model id from list-models.sh> \
  --print-timeout 5m \
  --add-dir /abs/path \
  --dangerously-skip-permissions --sandbox
```

- `--dangerously-skip-permissions --sandbox` lets the job write the file
  without an approval TTY (there is none in `--print` mode). If the user runs
  you in review mode and objects to auto-approval, ask before dispatching.
- **Multiple images:** dispatch them in parallel, one agy job per image —
  either background several of the above commands, or reuse the gemini-swarm
  dispatcher (`scripts/dispatch.sh`) with one `NN-slug.prompt.md` per image
  (`MODEL: <model id>` header; the dispatcher checks it against the live
  list). Never generate sequentially.

## Step 3 — Verify and deliver

1. Check the output: file exists, non-zero size, `IMAGE_OK` in stdout.
2. **Look at the image** (read/view the file) — confirm it actually matches
   the request before claiming success.
3. Wrong or off-brief result → refine the prompt (state what to change) and
   re-dispatch; for small revisions, include the previous image as a source
   to edit.
4. Deliver: send/show the file to the user, or wire it into the project
   (HTML `<img>`, README, app asset) if that was the task.

## Common mistakes

| Mistake | Fix |
|---------|-----|
| Relative output path | agy print jobs don't run in your cwd — absolute paths only, plus `--add-dir`. |
| Claiming success from exit code alone | View the image; models sometimes save a wrong or blank file. |
| Generating N images in one sequential session | One parallel agy job per image. |
| Trying to generate the image yourself (SVG "art", ASCII, base64) when the user wanted a real image | That's the failure this skill exists to prevent — dispatch to Gemini. |
| Telling the user "I can't generate images" | You can't, but Gemini via agy can. Use this skill instead of refusing. |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.