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-gengit 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)<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.
<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>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.00096 | $0.01584 |
| Opus 5.5 | $0.00038 | $0.00634 |
| Sonnet 5.5 | $0.00019 | $0.00317 |
| Haiku 4.5 | $0.00010 | $0.00158 |
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.
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.
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 optionallyXAI_API_KEY=...) to~/.config/spillwave/image-keys.envon the machine that runs the skill. Load theimage-gen-setupskill to walk the user through it. HOST BLOCKEDin a claude.ai cloud session means the sandbox network does not allow the API domain. An org admin can allowgenerativelanguage.googleapis.comandapi.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)
imagenCLI on PATH (gemini-imagen). Brace policyimagen-cli-vars.gemini-api: direct REST call when a Google key is configured. No CLI needed. No brace rewrite.grok-imgCLI on PATH. No brace rewrite.xai-api: direct REST call when an xAI key is configured. No brace rewrite.codexCLI on PATH (agent adapter; must write the PNG).- 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.
What ships with it
9 files 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.
- references/backends.md 2.6 KB
- references/models.md 989 B
- references/prompting_guide.md 2.8 KB
- scripts/api_backends.py 9.2 KB runs code
- scripts/backends.py 5.8 KB runs code
- scripts/check_setup.py 3.0 KB runs code
- scripts/generate.py 11 KB runs code
- scripts/install_imagen.py 3.1 KB runs code
- scripts/models.py 2.2 KB runs code
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 Changed · -41 lines · +35 tokens per session fe953a80c6c3
- 3mo ago First seen · 167 lines · 61 tokens per session scan A 3ac16fb9428f
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.
image-gen compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| image-genSpillwaveSolutions/image_gen | Skill | 2 | 12d ago | MIT | A | 96 | 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 |