image-generation

image-generation is a skill for Claude Code, Codex from JimothySnicket/gemini-image-mcp. It costs 18 tokens per session (2,100 once invoked), scanned A, original, MIT.

A skill that tells an agent how to generate and edit images through Google Gemini using an MCP image server. It also describes continuing an image-editing session across multiple requests.

In plain words
What is it for?
Creating visual assets, editing existing images, refining results over several turns, and saving outputs in an organized way.
Why use it?
It provides a defined workflow for turning image requests into generated or revised files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Creating visual assets, editing existing images, refining results over several turns, and saving outputs in an organized way.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jimothysnicket/gemini-image-mcp/image-generation
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 JimothySnicket/gemini-image-mcp --skill image-generation
Clone the repo
git clone --depth 1 https://github.com/JimothySnicket/gemini-image-mcp

Made for: Claude Code, Codex.

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 image-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/jimothysnicket/gemini-image-mcp/image-generation/github.svg)](https://agentmods.dev/skills/jimothysnicket/gemini-image-mcp/image-generation)
Your own site
<a href="https://agentmods.dev/skills/jimothysnicket/gemini-image-mcp/image-generation"><img src="https://agentmods.dev/badge/skills/jimothysnicket/gemini-image-mcp/image-generation/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 image-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/jimothysnicket/gemini-image-mcp/image-generation"><img src="https://agentmods.dev/badge/skills/jimothysnicket/gemini-image-mcp/image-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,100 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.00018 $0.02100
Opus 5.5 $0.00007 $0.00840
Sonnet 5.5 $0.00004 $0.00420
Haiku 4.5 $0.00002 $0.00210

Measured 1mo ago against content hash ffc3f7cc73bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

image-generation 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 1mo 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/image-generation/SKILL.md · 169 lines

How it starts

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

Image Generation Skill

You have access to Google Gemini image generation via the generate_image MCP tool.

When to Use

Generate images when the user:

  • Asks for an image, illustration, or visual asset
  • Needs a hero image, placeholder, icon, or background for a project
  • Asks to edit, modify, or iterate on an existing image
  • Mentions creating visual content of any kind

How to Use

Call the generate_image tool. The behaviour depends on the parameters:

Text-to-Image (no input images)

{
  "prompt": "A modern dashboard UI with dark theme and blue accent colours",
  "aspectRatio": "16:9",
  "resolution": "2K",
  "filename": "dashboard-hero",
  "subfolder": "landing-page"
}

Image Editing (with input images)

{
  "prompt": "Change the background to a sunset over water",
  "images": ["./src/assets/hero.png"],
  "aspectRatio": "16:9"
}

Multi-Turn Refinement

The tool returns a sessionId with every response. Pass it back to continue editing:

{
  "prompt": "Make the colours warmer and add more contrast",
  "sessionId": "session-1711929600000-a1b2c3"
}

This preserves the conversation history so the model remembers what it generated.

Output Organization

  • Use filename to give images meaningful names (e.g. hero-banner instead of gemini-1711929600000-a1b2c3)
  • Use subfolder to group related assets (e.g. landing-page, blog-posts)
  • Duplicate filenames are auto-versioned: hero.png, hero-v2.png, hero-v3.png
  • When generating assets for a project, save them directly to the project's asset directory using outputDir

Image Processing (process_image)

Use process_image for local, free operations that don't need AI:

Common Pipelines

Subject on a specific background (canvas approach — recommended): Create a solid colour canvas with process_image, then feed it to generate_image as input. Gemini places the subject with correct lighting and reflections — no chroma key needed.

// Step 1: generate_image with a canvas image as input
{
  "prompt": "Place a yellow rubber duck on this background. Product photography, studio lighting, centered.",
  "images": ["./canvas-white.png"],
  "filename": "duck-on-white"
}

This is better than chroma key for yellow, green, or glass/reflective subjects.

Read the full file on GitHub · 169 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. 1mo ago Changed · +9 lines ffc3f7cc73bb
  2. 2mo ago First seen · 160 lines · 18 tokens per session scan A f3634614d26f

Subscribe to this mod's changes

image-generation is a skill published in the GitHub repository JimothySnicket/gemini-image-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 2,100 once invoked, about $0.0001 per session on Opus 5.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

image-generation compared with skills from other repositories

image-generation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-generationJimothySnicket/gemini-image-mcpSkill21mo agoMITA18Claude Code, Codex
ai-studio-imagesickn33/agentic-awesome-skillsSkill49kyesterdayMITA38Claude Code
google-antigravity-sdkgoogle-antigravity/antigravity-sdk-pythonSkill4.0k10d agoApache-2.0A53Claude Code, Codex
conductor-new-trackgemini-cli-extensions/conductorSkill3.8k2mo agoApache-2.0A26Claude Code, Codex
conductor-reviewgemini-cli-extensions/conductorSkill3.8k2mo agoApache-2.0A27Claude Code, Codex
conductor-setupgemini-cli-extensions/conductorSkill3.8k2mo agoApache-2.0A36Claude Code, Codex
gemini-delegationathola/claude-night-marketSkill348todayMITA35Claude Code