image-generation

image-generation is a skill for Claude Code from guinacio/claude-image-gen. It costs 65 tokens per session (1,626 once invoked), scanned A, original, MIT.

A tool for generating professional bitmap images with Google Gemini. Bitmap images are pixel-based files such as PNGs and JPGs.

In plain words
What is it for?
Use it to create hero images, illustrations, cover images, diagrams, section graphics, onboarding art, empty states, and error-page visuals in selected aspect ratios.
Why use it?
It provides visual assets when a website, presentation, landing page, or application needs an image but none is available.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the media-pipeline plugin — 3 skills, 1 MCP server shipped together

Good fit Use it to create hero images, illustrations, cover images, diagrams, section graphics, onboarding art, empty states, and error-page visuals in selected aspect ratios.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add guinacio/claude-image-gen
Claude Code
/plugin install media-pipeline

Made for: Claude Code.

Or install media-pipeline, the plugin that ships this one along with the rest of its 3 skills, 1 MCP server.

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/guinacio/claude-image-gen/image-generation/github.svg)](https://agentmods.dev/skills/guinacio/claude-image-gen/image-generation)
Your own site
<a href="https://agentmods.dev/skills/guinacio/claude-image-gen/image-generation"><img src="https://agentmods.dev/badge/skills/guinacio/claude-image-gen/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/guinacio/claude-image-gen/image-generation"><img src="https://agentmods.dev/badge/skills/guinacio/claude-image-gen/image-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,626 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.00065 $0.01626
Opus 5 $0.00032 $0.00813
Sonnet 5 $0.00013 $0.00325
Haiku 4.5 $0.00006 $0.00163

Measured 10d ago against content hash 862cf1ab75a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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 · 189 lines

How it starts

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

Image Generation Skill

Generate professional AI images using Google Gemini via the bundled CLI script.

When to Invoke This Skill

Invoke immediately when:

Web Development

  • Hero sections without images
  • Feature illustrations needed
  • Placeholder images in code (placeholder.jpg, stock-photo.png)
  • Empty visual sections (<section class="hero"> without images)
  • Landing pages and marketing sites

Presentations & Documents

  • Cover images and headers
  • Conceptual diagrams
  • Section dividers

Applications

  • Onboarding illustrations
  • Empty state graphics
  • Error page visuals

Using the CLI

Run the bundled CLI script via bash:

node "${CLAUDE_PLUGIN_ROOT}/mcp-server/build/cli.bundle.js" \
  --prompt "Your detailed image description" \
  --output "./path/to/output.png" \
  --aspect-ratio "16:9"

Parameters

Flag Required Default Description
--prompt, -p Yes - Detailed image description
--output, -o No auto-generated Output file path
--aspect-ratio, -a No 1:1 1:1, 16:9, 9:16, 4:3, 3:4, 2:3, 3:2
--model, -m No provider default Model to use; routes the provider (gpt-image*/dall-e* → OpenAI, others → Gemini)
--reference-images, -r No - Reference image paths (PNG/JPEG/WebP, repeatable or comma-separated, max 5)
--mask No - PNG mask marking the region to repaint; OpenAI only, requires --reference-images
--background, -b No provider default auto, transparent or opaque; OpenAI only. gpt-image-2 refuses transparent and is rejected before the request is sent
--output-format, -f No provider default png, jpeg or webp; OpenAI only
--output-dir, -d No current directory Output directory

Environment Variables

Variable Required Description
GEMINI_API_KEY At least one of GEMINI_API_KEY / OPENAI_API_KEY Your Gemini API key
OPENAI_API_KEY At least one of GEMINI_API_KEY / OPENAI_API_KEY Your OpenAI API key
GEMINI_DEFAULT_MODEL No Preferred default Gemini model
OPENAI_DEFAULT_MODEL No Preferred default OpenAI model (default: gpt-image-2)
IMAGE_PROVIDER No gemini or openai — provider used when --model is omitted
MEDIA_PIPELINE_LOG_LEVEL No Logging level for stderr diagnostics

Read the full file on GitHub · 189 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 189 lines · 65 tokens per session scan A 862cf1ab75a2

Subscribe to this mod's changes

image-generation is a skill published in the GitHub repository guinacio/claude-image-gen (62 stars, last pushed yesterday), licensed MIT. It adds 65 tokens to every session and 1,626 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

weave-brainstorm-and-refine

Use when asked to brainstorm then refine, generate ideas then improve, or explore alternatives and synthesize the best one across passes.

tony/skills · 34 tokens

weave-brainstorm

Use when a creative prompt, design question, or open-ended problem needs multiple independent adversarial ideas.

tony/skills · 26 tokens

find-engineering-firm

Use whenever the user wants to find, shortlist, vet, or enrich US engineering firms — civil, structural, MEP, mechanical, electrical, geotechnical, transportation, environmental, and manufacturing. For real-world engineering (buildings, infrastructure, manufacturing) — NOT software engineering. Triggers on "find civil…

nostrband/ServiceGraph · 209 tokens

find-service-providers

Use whenever the user wants to find, shortlist, vet, enrich, or research US professional-services firms — law, marketing, consulting, accounting, IT services, architecture, engineering, HR, PR, design, and similar B2B service providers. Triggers on requests like "find me a PPC agency in California", "shortlist three…

nostrband/ServiceGraph · 220 tokens

find-ai-consultancy

Use whenever the user wants to find, shortlist, vet, or enrich US AI/ML/data consulting firms (consultancies) — AI/ML development, MLOps, generative AI / LLM apps (RAG, chatbots, agents), computer vision, NLP, recommendation systems, data engineering, BI/analytics. Triggers on "find an AI/ML consulting firm to build…

nostrband/ServiceGraph · 244 tokens

find-cpa-firm

Use whenever the user wants to find, shortlist, vet, or enrich US accounting and tax firms (CPA firms) — financial-statement audit, SOC 1/2 audit, corporate tax, bookkeeping for businesses, advisory/fractional CFO, M&A diligence, 409A valuations, R&D tax credits, IPO readiness, sales-and-use tax. Triggers on "find me…

nostrband/ServiceGraph · 238 tokens