image-gen-setup

image-gen-setup is a skill for Claude Code from SpillwaveSolutions/image_gen. It costs 78 tokens per session (770 once invoked), scanned B, original, MIT.

A setup and troubleshooting guide for image generation with Gemini's Nano Banana and xAI's Grok Imagine. It covers API keys, optional command-line tools, network access, and a setup check.

In plain words
What is it for?
Use it to configure image-generation access, check an installation, troubleshoot API connectivity, and understand where keys must be stored.
Why use it?
It helps identify whether image generation is configured correctly and explains common problems such as missing keys or blocked network hosts.

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 configure image-generation access, check an installation, troubleshoot API connectivity, and understand where keys must be stored.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spillwavesolutions/image_gen/image-gen-setup
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-setup
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-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/spillwavesolutions/image_gen/image-gen-setup"><img src="https://agentmods.dev/badge/skills/spillwavesolutions/image_gen/image-gen-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 770 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00078 $0.00770
Opus 5.5 $0.00031 $0.00308
Sonnet 5.5 $0.00016 $0.00154
Haiku 4.5 $0.00008 $0.00077

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

Security

Grade B, and why

image-gen-setup scanned grade B with 1 finding 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.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 600 ~/.config/spillwave/image-keys.env
portable/skills/image-gen-setup/SKILL.md · 59 lines

How it starts

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

Image Gen Setup

Get at least one image backend working, then prove it with a check. The image-gen skill's scripts live in the sibling folder ../image-gen/scripts/ relative to this skill's base directory.

IMG="<base directory for this skill>/../image-gen/scripts"
python3 "$IMG/check_setup.py"

Decide where the skill runs

  • Claude Desktop or Cowork with a folder on the user's computer: keys live on that computer. Use that machine's shell when one is available.
  • claude.ai cloud session (web, mobile, Projects): the sandbox resets and blocks API hosts by default. A key file there does not persist, and HOST BLOCKED is expected. Tell the user plainly that generation needs either an org admin to allow generativelanguage.googleapis.com and api.x.ai in network settings, or a run from Claude Desktop/Cowork. Do not keep retrying.

Keys (preferred path, no CLI install)

Never ask the user to paste a key into chat, and never write a key the user typed into chat into a file. Have the user create the file themselves. Give them the command for their OS:

macOS / Linux:

mkdir -p ~/.config/spillwave
printf 'GEMINI_API_KEY=paste-key-here\n' >> ~/.config/spillwave/image-keys.env
chmod 600 ~/.config/spillwave/image-keys.env

Windows (PowerShell):

New-Item -ItemType Directory -Force "$HOME\.config\spillwave" | Out-Null
Add-Content "$HOME\.config\spillwave\image-keys.env" "GEMINI_API_KEY=paste-key-here"

Add XAI_API_KEY=... on its own line for Grok Imagine. Keys come from https://aistudio.google.com/apikey (Gemini) and https://console.x.ai (xAI). Environment variables GEMINI_API_KEY, GOOGLE_API_KEY, and XAI_API_KEY also work, as does a file named by SPILLWAVE_IMAGE_KEYS.

After the user says the file exists, rerun check_setup.py. Success is a usable: line that lists gemini-api or xai-api with no HOST BLOCKED.

Optional CLIs

Only if the user wants them; the REST backends do not need them.

  • Imagen CLI: python3 "$IMG/install_imagen.py" (installs gemini-imagen, pins Nano Banana 2). List models with --list-models.
  • Grok image CLI (Node 20.19+): npm install -g grok-image-cli, then grok-img auth login.
  • Codex: the user's own install; the adapter asks Codex to write the PNG.

Read the full file on GitHub · 59 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 First seen · 59 lines · 78 tokens per session scan B e651234c3ea1

Subscribe to this mod's changes

image-gen-setup is a skill published in the GitHub repository SpillwaveSolutions/image_gen (2 stars, last pushed 12d ago), licensed MIT. It adds 78 tokens to every session and 770 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-18.

Related

image-gen-setup compared with skills from other repositories

image-gen-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-gen-setupSpillwaveSolutions/image_genSkill212d agoMITB78Claude 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