image-gen

image-gen is a skill for Claude Code from SpillwaveSolutions/image_gen. It costs 96 tokens per session (1,584 once invoked), scanned A, original, MIT.

An image-generation helper for creating cover images, illustrations, and other visual assets for technical articles. It can use configured Imagen, Grok, or Codex image tools.

In plain words
What is it for?
Use it to create article covers, in-article illustrations, and supporting visual assets; it is not intended for Mermaid or PlantUML diagrams.
Why use it?
It provides a defined workflow for producing article visuals and can try another configured image tool when one fails.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the image-gen plugin — 2 skills shipped together

Good fit Use it to create article covers, in-article illustrations, and supporting visual assets; it is not intended for Mermaid or PlantUML diagrams.

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

Made for: Claude Code.

Or install image-gen, the plugin that ships this one along with the rest of its 2 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-gen

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/spillwavesolutions/image_gen/image-gen"><img src="https://agentmods.dev/badge/skills/spillwavesolutions/image_gen/image-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,584 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.00096 $0.01584
Opus 5.5 $0.00038 $0.00634
Sonnet 5.5 $0.00019 $0.00317
Haiku 4.5 $0.00010 $0.00158

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

Security

Grade A, and why

image-gen 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 12d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/api_backends.py, scripts/backends.py, scripts/check_setup.py, …), 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.

portable/skills/image-gen/SKILL.md · 126 lines

How it starts

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

Image Gen

Article image skill. Not the diagram renderer (that is imagen-diagrams).

Paths

All scripts live in scripts/ inside this skill's base directory (shown as "Base directory for this skill" when the skill loads). In every command below, set SKILL to that directory first:

SKILL="<base directory for this skill>"

Write images into the user's project folder when one is connected (for example images/ next to the article). Otherwise write into the working directory and hand the final PNG to the user with the file-sending tool.

Step 0: Check what can run here

python3 "$SKILL/scripts/check_setup.py"

The report lists each backend and ends with usable:. If usable: none, do not try to generate. Write the prompt anyway (step 2 does this automatically) and tell the user in one or two sentences what is missing, using the report's own advice. The usual fixes:

  • Add GEMINI_API_KEY=... (and optionally XAI_API_KEY=...) to ~/.config/spillwave/image-keys.env on the machine that runs the skill. Load the image-gen-setup skill to walk the user through it.
  • HOST BLOCKED in a claude.ai cloud session means the sandbox network does not allow the API domain. An org admin can allow generativelanguage.googleapis.com and api.x.ai, or the user can run the skill from Claude Desktop or Cowork against a folder on their own computer.

Never ask the user to paste an API key into chat. Never print, echo, or log a key.

Backends (auto order)

  1. imagen CLI on PATH (gemini-imagen). Brace policy imagen-cli-vars.
  2. gemini-api: direct REST call when a Google key is configured. No CLI needed. No brace rewrite.
  3. grok-img CLI on PATH. No brace rewrite.
  4. xai-api: direct REST call when an xAI key is configured. No brace rewrite.
  5. codex CLI on PATH (agent adapter; must write the PNG).
  6. None: fail closed. Write <stem>_imagen.prompt.txt, exit 2.

Auto mode tries each usable backend and falls through on failure. --engine-hint imagen means Google (CLI then REST), --engine-hint grok means xAI (CLI then REST), plus gemini, xai, codex for a single backend. Exit codes: 0 ok, 2 no backend, 4 worker produced no image, 5 network blocked.

Read the full file on GitHub · 126 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. 12d ago Changed · -41 lines · +35 tokens per session fe953a80c6c3
  2. 3mo ago First seen · 167 lines · 61 tokens per session scan A 3ac16fb9428f

Subscribe to this mod's changes

image-gen is a skill published in the GitHub repository SpillwaveSolutions/image_gen (2 stars, last pushed 12d ago), licensed MIT. It adds 96 tokens to every session and 1,584 once invoked, about $0.0004 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-gen compared with skills from other repositories

image-gen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-genSpillwaveSolutions/image_genSkill212d agoMITA96Claude Code
program-nord-electro-6chardigio/nord-electro-6-skillSkill22mo agoMITA83Claude Code
documentation-specialistSpillwaveSolutions/document-specialist-skillSkill5825d agononeA159Claude Code
documentation-specialistSpillwaveSolutions/document-specialist-skillSkill5825d agononeA159Claude Code
matrix-communicationnetresearch/matrix-skillSkill6yesterdaynoneA36Claude Code
matrix-administrationnetresearch/matrix-skillSkill6yesterdaynoneA146Claude Code
matrix-announcementnetresearch/matrix-skillSkill6yesterdaynoneA67Claude Code