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.
npx skills add SpillwaveSolutions/image_gen --skill image-gen-setupgit clone --depth 1 https://github.com/SpillwaveSolutions/image_genWrote 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.
[](https://agentmods.dev/skills/spillwavesolutions/image_gen/image-gen-setup)<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.
<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>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.
| Model | Per session | Once 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 |
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 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 BLOCKEDis expected. Tell the user plainly that generation needs either an org admin to allowgenerativelanguage.googleapis.comandapi.x.aiin 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"(installsgemini-imagen, pins Nano Banana 2). List models with--list-models. - Grok image CLI (Node 20.19+):
npm install -g grok-image-cli, thengrok-img auth login. - Codex: the user's own install; the adapter asks Codex to write the PNG.
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.
- 12d ago First seen · 59 lines · 78 tokens per session scan B e651234c3ea1
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.
image-gen-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| image-gen-setupSpillwaveSolutions/image_gen | Skill | 2 | 12d ago | MIT | B | 78 | Claude Code |
| program-nord-electro-6chardigio/nord-electro-6-skill | Skill | 2 | 2mo ago | MIT | A | 83 | Claude Code |
| documentation-specialistSpillwaveSolutions/document-specialist-skill | Skill | 58 | 25d ago | none | A | 159 | Claude Code |
| documentation-specialistSpillwaveSolutions/document-specialist-skill | Skill | 58 | 25d ago | none | A | 159 | Claude Code |
| matrix-communicationnetresearch/matrix-skill | Skill | 6 | yesterday | none | A | 36 | Claude Code |
| matrix-administrationnetresearch/matrix-skill | Skill | 6 | yesterday | none | A | 146 | Claude Code |
| matrix-announcementnetresearch/matrix-skill | Skill | 6 | yesterday | none | A | 67 | Claude Code |