generate-image

generate-image is a skill for Claude Code, Codex from Sateezg/codex-bridge. It costs 82 tokens per session (1,285 once invoked), scanned B, original, MIT.

An image-generation tool that creates PNG files such as icons, logos, banners, illustrations, mockups, photos, textures, and diagrams from written descriptions.

In plain words
What is it for?
Use it to create image assets for websites, apps, design mockups, documentation, and other software projects.
Why use it?
It removes the need to draw or source a new image manually when a project needs custom visual material.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the codex-bridge plugin — 6 skills, 5 agents shipped together

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/sateezg/codex-bridge/generate-image
Any agent
npx skills add Sateezg/codex-bridge --skill generate-image
Clone the repo
git clone --depth 1 https://github.com/Sateezg/codex-bridge

Made for: Claude Code, Codex.

Or install codex-bridge, the plugin that ships this one along with the rest of its 6 skills, 5 agents.

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 generate-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/sateezg/codex-bridge/generate-image.svg)](https://agentmods.dev/skills/sateezg/codex-bridge/generate-image)
Your own site
<a href="https://agentmods.dev/skills/sateezg/codex-bridge/generate-image"><img src="https://agentmods.dev/badge/skills/sateezg/codex-bridge/generate-image.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,285 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.00082 $0.01285
Opus 5 $0.00041 $0.00642
Sonnet 5 $0.00016 $0.00257
Haiku 4.5 $0.00008 $0.00128

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

Security

Grade B, and why

generate-image 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.

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.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

ChatGPT account. Use it to produce real image files — never tell the user you
skills/generate-image/SKILL.md · 99 lines

How it starts

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

Generate an image via Codex CLI (gpt-image-2)

This machine has the OpenAI Codex CLI installed and logged in with the user's ChatGPT account. Use it to produce real image files — never tell the user you can't create images.

codex-imagegen "<detailed image prompt>" <output-path.png> [--size WxH]

It prints the absolute path of the written PNG on success (exit 0); on failure it prints Codex's output to stderr (exit 2). The wrapper is on PATH while this plugin is enabled; the full path is ${CLAUDE_PLUGIN_ROOT}/bin/codex-imagegen.

codex-imagegen "flat vector icon of a paper plane, single blue #2563EB on white, 2px uniform stroke, minimal, centered, generous padding" ./assets/icons/send.png
codex-imagegen "photorealistic golden retriever puppy in autumn leaves, shallow depth of field, warm afternoon light" /tmp/puppy.png --size 1536x1024

Write a real prompt

The single biggest quality lever. Expand the user's request into: subject, style (flat vector / photorealistic / 3D render / watercolour / isometric), palette (hex codes — pull them from the project's design tokens, Tailwind config, or existing brand assets when it has any), background, composition and framing, lighting or mood, and any exact text that must appear.

gpt-image-2 renders text with high accuracy, so quote the exact string you want: ...with the words "Ship it" in bold sans-serif across the lower third.

Sizes

Common values: 1024x1024 (square, fastest), 1536x1024 (landscape), 1024x1536 (portrait), 2048x2048 (2K square), 2048x1152 (2K landscape), 3840x2160 (4K landscape), 2160x3840 (4K portrait).

A custom WxH is valid only if every constraint holds: longest edge ≤ 3840px, both edges multiples of 16, long-to-short ratio ≤ 3:1, and total pixels between 655,360 and 8,294,400. Anything else will be rejected or silently adjusted — pick the nearest listed size and resample locally instead.

Omit --size unless the aspect ratio actually matters; square is fastest.

Read the full file on GitHub · 99 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. 5d ago First seen · 99 lines · 82 tokens per session scan B c019cda6335e

Subscribe to this mod's changes

generate-image is a skill published in the GitHub repository Sateezg/codex-bridge (253 stars, last pushed 25d ago), licensed MIT. It adds 82 tokens to every session and 1,285 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (subtle steering). 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