imagegen

imagegen is a skill for Codex from gvastethecreator/codex-studio. It costs 113 tokens per session (5,928 once invoked), scanned A, a copy of imagegen, MIT.

A tool for generating new images or editing existing bitmap images, such as photos, illustrations, textures, sprites, mockups, logos, and diagrams.

In plain words
What is it for?
Use it to make website and game assets, product mockups, wireframes, logos, infographics, or transparent-background images.
Why use it?
It helps create or modify visual assets when hand-drawing them or editing them manually would take more work.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: reads ~/.codex paths; mentions Codex.

Good fit Use it to make website and game assets, product mockups, wireframes, logos, infographics, or transparent-background images.

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

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/gvastethecreator/codex-studio/imagegen/github.svg)](https://agentmods.dev/skills/gvastethecreator/codex-studio/imagegen)
Your own site
<a href="https://agentmods.dev/skills/gvastethecreator/codex-studio/imagegen"><img src="https://agentmods.dev/badge/skills/gvastethecreator/codex-studio/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/gvastethecreator/codex-studio/imagegen"><img src="https://agentmods.dev/badge/skills/gvastethecreator/codex-studio/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 5,928 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 83% 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.05928
Opus 5.5 $0.00045 $0.02371
Sonnet 5.5 $0.00023 $0.01186
Haiku 4.5 $0.00011 $0.00593

Measured 1mo ago against content hash 8f1a6ed5a95e, 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/image_gen.py, scripts/remove_chroma_key.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

83% identical to imagegen — 148 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/imagegen/SKILL.md · 434 lines

How it starts

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

Image Generation Skill

Attribution: This skill is a derivation of the OpenAI Codex CLI system image-generation skill that ships at ~/.codex/skills/.system/imagegen/ in the upstream Codex CLI. Upstream is distributed under the Apache License, Version 2.0; the full license text is preserved verbatim at skills/imagegen/LICENSE.txt (the Copyright [yyyy] [name of copyright owner] line is the unmodified Apache 2.0 template and refers to the upstream copyright holder, not the Codex Studio project). See THIRD_PARTY_LICENSES.md at the repo root for the consolidated third-party license index.

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, editing, and simple transparent-image requests. Does not require OPENAI_API_KEY.
  • Fallback CLI mode: scripts/image_gen.py CLI. Use when the user explicitly asks for the CLI/API/model path, or after the user explicitly confirms a true model-native transparency fallback with gpt-image-1.5. Requires OPENAI_API_KEY.

Within CLI fallback, the CLI exposes three subcommands:

  • generate
  • edit
  • generate-batch

Rules:

  • Use the built-in image_gen tool by default for normal image generation and editing requests.
  • Do not switch to CLI fallback for ordinary quality, size, or file-path control.
  • If the user explicitly asks for a transparent image/background, stay on built-in image_gen first: prompt for a flat removable chroma-key background, then remove it locally with the installed helper at $CODEX_HOME/skills/.system/imagegen/scripts/remove_chroma_key.py.
  • Never silently switch from built-in image_gen or CLI gpt-image-2 to CLI gpt-image-1.5. Treat this as a model/path downgrade and ask the user before doing it, unless the user has already explicitly requested gpt-image-1.5, scripts/image_gen.py, or CLI fallback.
  • If a transparent request appears too complex for clean chroma-key removal, asks for true/native transparency, or local removal fails validation, explain that true transparency requires CLI gpt-image-1.5 --background transparent --output-format png because gpt-image-2 does not support background=transparent, then ask whether to proceed. Run the CLI fallback only after the user confirms.
  • The word batch by itself does not mean CLI fallback. If the user asks for many assets or says to batch-generate assets without explicitly asking for CLI/API/model controls, stay on the built-in path and issue one built-in call per requested asset or variant.
  • 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.

Read the full file on GitHub · 434 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. 1mo ago Changed 8f1a6ed5a95e
  2. 1mo ago First seen · 434 lines · 113 tokens per session scan A a36f22d5d219

Subscribe to this mod's changes

imagegen is a skill published in the GitHub repository gvastethecreator/codex-studio (16 stars, last pushed 25d ago), licensed MIT. It adds 113 tokens to every session and 5,928 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 83% identical to imagegen, differing in 148 lines, and is treated as a copy.

Related

Other skills, from other repositories

together-ai-inference

Serverless inference, fine-tuning, embeddings, image generation, and batch processing on 200+ open-source models via an OpenAI-compatible API. Use when you need fast, cost-effective access to open-source LLMs without managing infrastructure.

synthetic-sciences/openscience · 55 tokens

stable-diffusion-image-generation

State-of-the-art text-to-image generation with Stable Diffusion models via HuggingFace Diffusers. Use when generating images from text prompts, performing image-to-image translation, inpainting, or building custom diffusion pipelines.

synthetic-sciences/openscience · 50 tokens

crossgen-artist

Use CrossGen to plan and execute image generation, editing, inpainting, model selection, media-aware job monitoring, Gallery inspection, and asset export through MCP or its JSON CLI.

Bliveren/CrossGen · 41 tokens

atet

Use Atet to create, generate, record, edit, and render visual media with a local CLI and coding agent. Trigger for AI image or video generation, screen, camera, microphone, or system-audio recording, non-destructive video editing, silence and filler-word removal, captions or subtitles, speaker framing, screen zooms…

hraness/atet · 125 tokens

query-kb

Load scoped repository context, then search and navigate a hraness/kb Markdown vault with hybrid text retrieval, exact metadata, bounded links and typed relationships, backlinks, whole-vault graph reports, and optional Git provenance. Use when an agent needs the applicable repository instructions, rationale, prior…

hraness/atet · 83 tokens

save-url-kb

Capture public or signed-in web content into a local Markdown knowledge base as an auditable source bundle with local assets. Use when the user asks to clip, save, scrape, or archive an article, social post or thread, GitHub or Discourse discussion, feed, inbox, private document, WhatsApp conversation, YouTube page…

hraness/atet · 111 tokens