codex-imagegen

codex-imagegen is a skill for Claude Code, Codex from JunSeo99/claude-skill-codex-imagegen. It costs 156 tokens per session (2,734 once invoked), scanned B, original, MIT.

A Codex skill for creating or editing raster images—bitmap files such as PNG, JPEG, or WebP—using an image-generation model.

In plain words
What is it for?
Generating icons, banners, illustrations, diagrams, hero artwork, social-preview images, and transparent cutouts, then saving and checking the result.
Why use it?
It helps developers produce visual assets when writing HTML, CSS, or vector code would not provide the needed image.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/junseo99/claude-skill-codex-imagegen/skill
Any agent
npx skills add JunSeo99/claude-skill-codex-imagegen --skill skill
Clone the repo
git clone --depth 1 https://github.com/JunSeo99/claude-skill-codex-imagegen

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 codex-imagegen

README.md
[![agentmods](https://agentmods.dev/badge/skills/junseo99/claude-skill-codex-imagegen/skill.svg)](https://agentmods.dev/skills/junseo99/claude-skill-codex-imagegen/skill)
Your own site
<a href="https://agentmods.dev/skills/junseo99/claude-skill-codex-imagegen/skill"><img src="https://agentmods.dev/badge/skills/junseo99/claude-skill-codex-imagegen/skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,734 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00156 $0.02734
Opus 5 $0.00078 $0.01367
Sonnet 5 $0.00031 $0.00547
Haiku 4.5 $0.00016 $0.00273

Measured 5d ago against content hash 76f50cef9dc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

codex-imagegen 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 5d ago.

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

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

Transparent-output prompt core:
skill/SKILL.md · 212 lines

How it starts

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

Codex Imagegen

Overview

Invoke Codex CLI's built-in $imagegen skill to generate images with gpt-image-2. Translate the request into a concrete art direction, run the bundled safe launcher, move or post-process only a validated generated PNG, and visually verify the final asset.

Prerequisites:

  • codex CLI v0.149 or newer, installed and logged in with codex login
  • macOS or Linux
  • Python 3.9 or newer, available as python3

Prompt flow

The Codex agent rewrites prompts into a labeled schema before calling gpt-image-2. A detailed prompt is normalized; a vague prompt is augmented with the agent's own choices. Fill every relevant slot to keep control:

$imagegen
Use case: <slug>
Asset type: <where the asset will be used, final size/aspect>
Primary request: <main ask in one sentence>
Input images: <Image 1: role; Image 2: role>          (only for edits/references)
Scene/backdrop: <environment, time, mood>
Subject: <main subject; for people: crop, pose, gaze, hands, expression>
Style/medium: <photo, illustration, 3D, print process>
Composition/framing: <viewpoint, placement, negative space, hierarchy>
Lighting/mood: <source, direction, temperature>
Color palette: <3-5 named colors or relationships>
Materials/textures: <surface details, grain, imperfections>
Text (verbatim): "<exact copy>"                        (omit if no text)
Constraints: <must keep, must render exactly once, must not change>
Avoid: <watermark, logo, extra text, unwanted styles>

Generate use-case slugs: photorealistic-natural, product-mockup, ui-mockup, infographic-diagram, scientific-educational, ads-marketing, productivity-visual, logo-brand, illustration-story, stylized-concept, historical-scene.

Edit use-case slugs: text-localization, identity-preserve, precise-object-edit, lighting-weather, background-extraction, style-transfer, compositing, sketch-to-render.

For detailed prompting guidance, read references/prompting-guide.md.

Read the full file on GitHub · 212 lines

Files

What ships with it

5 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. 5d ago First seen · 212 lines · 156 tokens per session scan B 76f50cef9dc5

Subscribe to this mod's changes

codex-imagegen is a skill published in the GitHub repository JunSeo99/claude-skill-codex-imagegen (12 stars, last pushed 15d ago), licensed MIT. It adds 156 tokens to every session and 2,734 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

illo

Creates original editorial illustrations where a recurring mascot character performs the idea — one caught scene by default, a hand-built explainer diagram (labeled stages, a fan-out, timeline, loop, or stack) when the structure itself is the point, or a transparent character cutout (pose-only compositing asset, no…

tmchow/illo-skill · 169 tokens

vision-review

免费读图与视觉检查。当用户要分析、识别、检查或描述图片/截图,检查界面或布局的视觉问题(文字重叠、溢出、错位),检测水印/Logo,或把图片内容转成文字时使用。引擎链:智谱 GLM-4V-Flash(免费首选)→ DeepSeek-V4-Flash-Vision-Exp(与主 agent 同 key,付费可选)→ SenseNova / SiliconFlow Qwen3-VL / Google Gemini 备用;key 取自环境变量、/.dsh/.credentials.yaml 或 /.dsh/secrets/media-tools.env,永不写进 skill。.

MJorgin/dsh-media-skills · 150 tokens

media-tools

免费生成图片。当用户要生成图片、插画、头像、背景、banner 等(包括付费图片额度不可用时)使用。优先 SenseNova U1 Fast,其次 SiliconFlow Kolors;key 取自环境变量、/.dsh/.credentials.yaml 或 /.dsh/secrets/media-tools.env,永不写进 skill。.

MJorgin/dsh-media-skills · 77 tokens

local-image-gen

Generate or edit local images using Codex, Grok, or Gemini/Antigravity subscriptions when logged in, with optional API keys for the same models. Use when the user asks to 生图, 画图, 生成图片, 文生图, 改图, 编辑图片, 配图, 插图, 封面, 海报, image generation, image edit, inpaint, gpt-image-2, grok-imagine, nano banana, or wants to pick model…

DandreYang/local-image-gen · 126 tokens

codex-image

Use when asked to generate an image, picture, photo, cover, banner art or illustration (сгенерируй картинку, фоточку, обложку, изображение) using the Codex/ChatGPT subscription — no OPENAIAPIKEY, no per-image billing; supports up to 5 reference images (по референсу, в стиле картинки). Also use when tempted to answer…

qwwiwi/codex-gpt-image-2-subscription · 110 tokens

logo-company

Use when a brand, company or AI-tool logo is needed for a banner, cover, post or composite (найди лого X, иконка Y, логотип Z, add brand icon, логотип компании) — Claude, ChatGPT, Codex, OpenAI, Anthropic, Cursor, Telegram, GitHub, Notion, Gemini, Perplexity, Midjourney or any other brand. Looks up the official SVG in…

qwwiwi/codex-gpt-image-2-subscription · 141 tokens