imagegen

imagegen is a skill for Codex from EthanYoQ/Skill-hub. It costs 113 tokens per session (3,463 once invoked), scanned A, a copy of imagegen, MIT.

Instructions for generating or editing raster images, such as photos, illustrations, mockups, and other bitmap files. It specifies when to use the built-in image-generation tool and when a command-line fallback is allowed.

In plain words
What is it for?
Use it when creating new image assets, editing existing images, or making visual variants for a project.
Why use it?
It gives an agent a consistent process for image tasks and prevents it from choosing the wrong image-generation method.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it when creating new image assets, editing existing images, or making visual variants for a project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ethanyoq/skill-hub/imagegen
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 EthanYoQ/Skill-hub --skill imagegen
Clone the repo
git clone --depth 1 https://github.com/EthanYoQ/Skill-hub

Made for: 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 imagegen

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/imagegen"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/imagegen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,463 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 86% copy Near-identical to another mod 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.00113 $0.03463
Opus 5.5 $0.00045 $0.01385
Sonnet 5.5 $0.00023 $0.00693
Haiku 4.5 $0.00011 $0.00346

Measured 3mo ago against content hash 826d05b806d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

imagegen 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/image_gen.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.

Origin

This is a copy

86% identical to imagegen — 68 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/07-media-content/imagegen/SKILL.md · 280 lines

How it starts

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

Image Generation Skill

Generates or edits images for the current project (for example website assets, game assets, UI mockups, product mockups, wireframes, logo design, photorealistic images, or infographics).

Top-level modes and rules

This skill has exactly two top-level modes:

  • Default built-in tool mode (preferred): built-in image_gen tool for normal image generation and editing. Does not require OPENAI_API_KEY.
  • Fallback CLI mode (explicit-only): scripts/image_gen.py CLI. Use only when the user explicitly asks for the CLI path. Requires OPENAI_API_KEY.

Within the explicit CLI fallback only, the CLI exposes three subcommands:

  • generate
  • edit
  • generate-batch

Rules:

  • Use the built-in image_gen tool by default for all normal image generation and editing requests.
  • Never switch to CLI fallback automatically.
  • If the built-in tool fails or is unavailable, tell the user the CLI fallback exists and that it requires OPENAI_API_KEY. Proceed only if the user explicitly asks for that fallback.
  • If the user explicitly asks for CLI mode, use the bundled scripts/image_gen.py workflow. Do not create one-off SDK runners.
  • Never modify scripts/image_gen.py. If something is missing, ask the user before doing anything else.

Built-in save-path policy:

  • In built-in tool mode, Codex saves generated images under $CODEX_HOME/* by default.
  • Do not describe or rely on OS temp as the default built-in destination.
  • Do not describe or rely on a destination-path argument (if any) on the built-in image_gen tool. If a specific location is needed, generate first and then move or copy the selected output from $CODEX_HOME/generated_images/....
  • Save-path precedence in built-in mode:
    1. If the user names a destination, move or copy the selected output there.
    2. If the image is meant for the current project, move or copy the final selected image into the workspace before finishing.
    3. If the image is only for preview or brainstorming, render it inline; the underlying file can remain at the default $CODEX_HOME/* path.
  • Never leave a project-referenced asset only at the default $CODEX_HOME/* path.
  • Do not overwrite an existing asset unless the user explicitly asked for replacement; otherwise create a sibling versioned filename such as hero-v2.png or item-icon-edited.png.

Read the full file on GitHub · 280 lines

Files

What ships with it

10 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. 3mo ago First seen · 280 lines · 113 tokens per session scan A 826d05b806d5

Subscribe to this mod's changes

imagegen is a skill published in the GitHub repository EthanYoQ/Skill-hub (12 stars, last pushed 2d ago), licensed MIT. It adds 113 tokens to every session and 3,463 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to imagegen, differing in 68 lines, and is treated as a copy.

Related

imagegen compared with skills from other repositories

imagegen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
imagegenEthanYoQ/Skill-hubSkill122d agoMITA113Codex
wikiSethGammon/CitadelSkill9433d agoMITA56Claude Code
escalation-governanceathola/claude-night-marketSkill358yesterdayMITA19Claude Code
agent-workflow-playbookGingiris-1031/gingiris-skillsSkill9213d agoMITA83Claude Code, Codex
ecom-socialkangise/ecommerce-ai-skillsSkill1247d agoCC0-1.0A60Claude Code, Codex
ecom-customer-servicekangise/ecommerce-ai-skillsSkill1247d agoCC0-1.0A49Claude Code, Codex
ecom-pricingkangise/ecommerce-ai-skillsSkill1247d agoCC0-1.0A35Claude Code, Codex