image-generation

image-generation is a skill for Claude Code from shaharsha/claude-skills. It costs 107 tokens per session (2,838 once invoked), scanned A, original, MIT.

A skill for creating visual assets such as logos, icons, interface mockups, hero images, and product images with OpenAI or Google image models.

In plain words
What is it for?
Use it to create, design, mock up, render, or illustrate images, and to improve prompts for image generation.
Why use it?
It helps choose a suitable image model and turn a design brief into an image-generation prompt.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; positional $N argument.

Part of the brand-and-visuals plugin — 4 skills shipped together , and of shaharsha-skills

Good fit Use it to create, design, mock up, render, or illustrate images, and to improve prompts for image generation.

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

Made for: Claude Code.

Or install brand-and-visuals, the plugin that ships this one along with the rest of its 4 skills.

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/shaharsha/claude-skills/image-generation/github.svg)](https://agentmods.dev/skills/shaharsha/claude-skills/image-generation)
Your own site
<a href="https://agentmods.dev/skills/shaharsha/claude-skills/image-generation"><img src="https://agentmods.dev/badge/skills/shaharsha/claude-skills/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/shaharsha/claude-skills/image-generation"><img src="https://agentmods.dev/badge/skills/shaharsha/claude-skills/image-generation.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 2,838 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.02838
Opus 5 $0.00053 $0.01419
Sonnet 5 $0.00021 $0.00568
Haiku 4.5 $0.00011 $0.00284

Measured 11d ago against content hash c6cb445af402, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/gemini-image.sh, scripts/openai-image.sh, scripts/rembg.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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 · 166 lines

How it starts

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

Image Generation

Two model families, three jobs.

Models covered

Model ID Family Strengths Default cost
gpt-image-2 OpenAI (ChatGPT Images 2.0) New default. Best-in-class text in any language, near-total prompt adherence, agentic layout reasoning, neutral color accuracy, fast $0.006 / $0.053 / $0.211 per 1024² at low/medium/high
gemini-3.1-flash-image-preview Google (Nano Banana 2 Flash) Cheap throwaway exploration; strongest 0.5K preview tier ~$0.07 / image (1K)
gemini-3-pro-image-preview Google (Nano Banana Pro) Hyper-realistic portraiture & cinematic lifestyle; character-lock across up to 14 reference images; multi-turn chat editing ~$0.13 / image (2K), ~$0.24 / image (4K)

Released 2026-04-21: gpt-image-2 took #1 across every Image Arena category by +242 points over Nano Banana 2 — the largest gap in Arena history. It dethrones gpt-image-1.5 everywhere except native transparent backgrounds, which we now handle via scripts/rembg.sh.

The three jobs of this skill

  1. Pick the model for the asset and brief. See reference/model-selection.md.
  2. Write the prompt following the model's house rules. The two providers have OPPOSITE prompt structures — get this wrong and outputs degrade badly:
    • OpenAI gpt-image-2 wants labeled segments / line breaks, accepts negative prompts, and rewards explicit constraints. Read reference/openai-gpt-image-2.md.
    • Gemini wants narrative paragraphs, negative phrasing actively backfires (rewrite "no people" as "empty street"), aspect ratio goes in imageConfig not in the prompt text. Read reference/gemini-image.md.
  3. Run the API via the bundled scripts. See scripts/README.md.

Default model selection — the 30-second rule

Hyper-realistic human face or cinematic portrait?
  YES → Gemini Pro 4K.
  NO  ↓

Need 5+ reference images for character-lock / brand-consistent variants?
  YES → Gemini Pro (up to 14 refs with role-assignment).
  NO  ↓

Throwaway exploration where you'll discard half the outputs?
  YES → Gemini Flash 1K or 2K. Promote the keeper to gpt-image-2 high.
  NO  ↓

Everything else → gpt-image-2 at quality=high.
  └── Transparent PNG needed? Generate on flat-white backdrop + scripts/rembg.sh.
       See reference/transparent-backgrounds.md.

Read the full file on GitHub · 166 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 · 166 lines · 107 tokens per session scan A c6cb445af402

Subscribe to this mod's changes

image-generation is a skill published in the GitHub repository shaharsha/claude-skills (5 stars, last pushed 13d ago), licensed MIT. It adds 107 tokens to every session and 2,838 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

html-ppt-zhangzara-retro-zine

A neighborhood zine on the disappearing corner shops — portraits, voices, and what a block loses when they close. Built as a decision-grade story deck for community, local readers.

nexu-io/open-design · 49 tokens

html-ppt-zhangzara-studio

A photography studio's portfolio-and-rate deck — the signature work, the process, and the packages that win the brief. Built as a decision-grade design craft deck for prospective clients.

nexu-io/open-design · 47 tokens

motion-frames

A single-frame motion-design composition with looping CSS animations — rotating type ring, animated globe, ticking timer, parallax labels. Renders as a hero video poster you can hand straight to HyperFrames or any keyframe-based exporter. Use when the brief asks for "motion design", "animated hero", "loop", "video…

nexu-io/open-design · 91 tokens

webgl-halftone-drift

A self-contained WebGL2 hero: a flowing field screened through a rotated halftone dot grid into a duotone print aesthetic; move the cursor to bend the drift.

nexu-io/open-design · 44 tokens

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

motion-graphics

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI…

heygen-com/hyperframes · 139 tokens