gemini-imagegen

gemini-imagegen is a skill for Claude Code from Vallykrie/gemini-swarm-skill. It costs 107 tokens per session (1,030 once invoked), scanned A, original, MIT.

A guide for creating or editing raster images through Gemini sessions launched with the Antigravity command-line tool.

In plain words
What is it for?
Use it for website image assets such as logos, icons, illustrations, hero images, textures, photos, and social-media preview cards.
Why use it?
It gives the coding agent a defined process for writing detailed image prompts, choosing safe file paths, and checking the generated files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the gemini-swarm plugin — 2 skills, 2 commands, 1 agent shipped together

Good fit Use it for website image assets such as logos, icons, illustrations, hero images, textures, photos, and social-media preview cards.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vallykrie/gemini-swarm-skill/gemini-imagegen
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Vallykrie/gemini-swarm-skill --skill gemini-imagegen
Clone the repo
git clone --depth 1 https://github.com/Vallykrie/gemini-swarm-skill

Made for: Claude Code.

Or install gemini-swarm, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gemini-imagegen

README.md
[![agentmods](https://agentmods.dev/badge/skills/vallykrie/gemini-swarm-skill/gemini-imagegen/github.svg)](https://agentmods.dev/skills/vallykrie/gemini-swarm-skill/gemini-imagegen)
Your own site
<a href="https://agentmods.dev/skills/vallykrie/gemini-swarm-skill/gemini-imagegen"><img src="https://agentmods.dev/badge/skills/vallykrie/gemini-swarm-skill/gemini-imagegen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gemini-imagegen

Your own site · 80×15
<a href="https://agentmods.dev/skills/vallykrie/gemini-swarm-skill/gemini-imagegen"><img src="https://agentmods.dev/badge/skills/vallykrie/gemini-swarm-skill/gemini-imagegen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,030 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.01030
Opus 5 $0.00053 $0.00515
Sonnet 5 $0.00021 $0.00206
Haiku 4.5 $0.00011 $0.00103

Measured 11d ago against content hash cb9748456271, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

gemini-imagegen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/gemini-imagegen/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Verified against agy 1.0.15 (model Gemini 3.1 Pro (High), tool name generate_image). Re-check agy --help if flags seem wrong.

Step 0 — Preflight

  1. command -v agy — if missing, stop and tell the user to install the Antigravity CLI (https://antigravity.google).
  2. 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 (verified command shape — adapt prompt and paths):

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 "Gemini 3.1 Pro (High)" \
  --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: Gemini 3.1 Pro (High) header). Never generate sequentially.

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 81 lines · 107 tokens per session scan A cb9748456271

Subscribe to this mod's changes

gemini-imagegen is a skill published in the GitHub repository Vallykrie/gemini-swarm-skill (6 stars, last pushed 23d ago), licensed MIT. It adds 107 tokens to every session and 1,030 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

nanobanana-adc

Generate images with Google's Nano Banana Pro (Gemini 3 Pro Image) using Application Default Credentials (ADC) or a GEMINIAPIKEY. Use this when the user asks to create, generate, draw, or render an image via Google / Vertex AI / Gemini.

hummer98/nanobanana-adc · 60 tokens

alive:demo

Generate a believable, lived-in ALIVE world from a free-text persona description (custom path) or a deterministic sandbox preset. Routes the create/list/activate/deactivate/delete/status surface and orchestrates the 5-stage subagent generation pipeline.

alivecontext/alive · 52 tokens

chatgpt-cli

Drives ChatGPT from the terminal via cli-web-chatgpt — ask questions, generate and download images, list and view conversations, browse models, and manage OpenAI SSO auth. Use when the user wants to ask ChatGPT something, generate images with ChatGPT, or browse their ChatGPT conversations from the command line. Prefer…

ItamarZand88/CLI-Anything-WEB · 84 tokens

pexels-cli

Searches and downloads free stock photos and videos from Pexels via the cli-web-pexels command-line tool — keyword search with orientation/size/color filters, photo and video details, downloads, photographer profiles, and collections. Use when the user asks about Pexels, free or royalty-free stock photos and videos…

ItamarZand88/CLI-Anything-WEB · 94 tokens

unsplash-cli

Searches and downloads free Unsplash photos via the cli-web-unsplash command-line tool — keyword search with orientation/color filters, photo details (EXIF, location, tags), downloads, random photos, topics, collections, and photographer profiles. Use when the user asks about Unsplash, free stock photos, or wants to…

ItamarZand88/CLI-Anything-WEB · 94 tokens

youtube-cli

Searches YouTube and fetches video transcripts via the cli-web-youtube command-line tool — video search, video details (views, duration, description, keywords), trending by category, channel info, and timestamped transcripts/captions with language selection and translation. Use when the user asks about YouTube…

ItamarZand88/CLI-Anything-WEB · 105 tokens