image-gen

image-gen is a skill for Claude Code, Codex from open-octo/octo-agent. It costs 142 tokens per session (3,158 once invoked), scanned A, original, MIT.

A skill for obtaining image files by generating them with AI, finding openly licensed images online, or cutting separate elements from an image sheet.

In plain words
What is it for?
Use it to generate images from prompts, download suitable openly licensed stock images, or split a generated sheet into individual files.
Why use it?
It brings image creation, sourcing, and basic extraction into one repeatable workflow when a project needs bitmap assets.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to generate images from prompts, download suitable openly licensed stock images, or split a generated sheet into individual files.

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

Made for: Claude Code, Codex.

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/open-octo/octo-agent/image-gen/github.svg)](https://agentmods.dev/skills/open-octo/octo-agent/image-gen)
Your own site
<a href="https://agentmods.dev/skills/open-octo/octo-agent/image-gen"><img src="https://agentmods.dev/badge/skills/open-octo/octo-agent/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/open-octo/octo-agent/image-gen"><img src="https://agentmods.dev/badge/skills/open-octo/octo-agent/image-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,158 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 64
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00142 $0.03158
Opus 5 $0.00071 $0.01579
Sonnet 5 $0.00028 $0.00632
Haiku 4.5 $0.00014 $0.00316

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

internal/skills/defaults/image-gen/SKILL.md · 226 lines

How it starts

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

Image Generation & Sourcing

Produce image files on disk through one of three acquisition paths. This skill is the single home for image acquisition — other skills delegate to it rather than embedding their own copy.

Path Script Output status What it does
AI generation scripts/image_gen.py Generated Text prompt → rendered image via a configured provider backend
Web search scripts/image_search.py Sourced Query → best openly-licensed match downloaded, with attribution recorded
Slice scripts/slice_images.py Generated One generated grid "sheet" → N individual element files

All <skill-dir>/... paths below are relative to this skill's own directory (its absolute path is in the location header injected when the skill loads), not the user's working directory. There is no persistent CWD across terminal calls — pass absolute paths for --output and inputs.

Preflight

  1. Run scripts with uv run — every script carries PEP 723 inline dependency metadata, so uv run <skill-dir>/scripts/<name>.py … auto-installs exactly what that script needs into an ephemeral, cached environment. No pip install, no venv, nothing left behind. uv ships with the octo installer; if it's somehow missing, the fallback is pip install -r <skill-dir>/requirements.txt once, then run the scripts with python3.
  2. Configure a backend for AI generation. Set IMAGE_BACKEND and the provider's own key (e.g. OPENAI_API_KEY) in the process environment, or in a .env file — see <skill-dir>/.env.example for every provider's variables and the .env lookup order. uv run <skill-dir>/scripts/image_gen.py --list-backends prints what's available. Web search (image_search.py) needs no key for CC0/public-domain providers; Pexels/Pixabay use their own keys if you want those sources.

First AI-generation run — backend setup gate (do NOT skip)

Read the full file on GitHub · 226 lines

Files

What ships with it

60 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.

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. 3d ago Changed · +12 lines ae0c5626c122
  2. 10d ago First seen · 214 lines · 142 tokens per session scan A b2b2733fa51e

Subscribe to this mod's changes

image-gen is a skill published in the GitHub repository open-octo/octo-agent (97 stars, last pushed yesterday), licensed MIT. It adds 142 tokens to every session and 3,158 once invoked, about $0.0007 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-30.