Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By nathanonnv1.1.1MITIn 1 marketplace
Generates images through the Codex CLI's built-in $imagegen and saves them into your project, then clears each run's generated_images cache folder. Needs the Codex CLI and an OpenAI/ChatGPT account login.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
image-generation, featured-image, blog-images, thumbnails, illustrations, cache-cleanup, media, image ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Generate images with the Codex CLI's built-in $imagegen skill, save them into the project, and remove each run's generated_images cache folder so storage stays flat.
Version 1.1.1 · Works with: Needs Codex · SKILL.md
Generate images with Codex's built-in $imagegen and keep them out of your cache.
Generates images (featured images, illustrations, thumbnails, blog visuals) through the Codex CLI and saves them into your project. With no --dest and no dest in a project config, images go to .codex-imagegen/output/ under the nearest folder that has a .codex-imagegen/ directory, or under the current directory when there is none. Once an image is confirmed at the destination, the run's $CODEX_HOME/generated_images/<session-id>/ folder (named after that run's Codex session id) is removed. No other folder is touched. Runs into different destinations are safe; two runs into the same destination at the same time are not, so don't do that. --report and --sweep handle folders left over from past sessions.
No model ID ships with the skill. Model and reasoning effort resolve per key, highest priority first: --model/--effort flags, the CODEX_IMAGEGEN_MODEL/CODEX_IMAGEGEN_EFFORT environment variables, the nearest <project>/.codex-imagegen/config.toml, shallower configs up the tree, the machine profile $CODEX_HOME/imagegen.config.toml, then the Codex default. A project that sets only model keeps the effort, size and style it inherits from shallower files.
Every generation run prints a resolution trace that names the model, effort and destination and where each came from. --dry-run checks the model and effort against the Codex model catalog, prints the trace, the exact codex exec arguments and the composed prompt, then stops without creating any files or folders.
Project config is parsed line by line and never sourced. It accepts only a closed list of keys ([codex]: model, model_reasoning_effort, model_verbosity, service_tier; [imagegen]: size, style, dest) and stops with exit code 4 on anything else. A destination that comes from a config file or a marker must resolve inside its own project, so a cloned repository cannot redirect writes through a symlink. A path you pass with --dest is not restricted.
Slash command: /codex-imagegen (npx or manual install), /codex-imagegen:codex-imagegen (marketplace install).
/codex-imagegen A minimalist line-art lighthouse, square 1024x1024, as hero.png
With a marketplace install, use /codex-imagegen:codex-imagegen instead.
The text model only writes the prompt and calls Codex's built-in image tool. A small, cheap model is a good fit for that. Without a machine profile, runs use the Codex default model, which is usually the larger workhorse model.
The setting stays with image generation. The skill applies the profile with codex exec -p imagegen, so your other Codex work (codex review, codex exec) keeps its usual model.
Model names change, so check the current catalog:
codex debug models
Pick a small or fast model from the list, and an effort that this model lists under supported_reasoning_levels. In November 2026, for example, gpt-6-luna was in the catalog as "Fast and affordable model for easier tasks" and listed efforts up to max.
Create ~/.codex/imagegen.config.toml (or $CODEX_HOME/imagegen.config.toml if you set CODEX_HOME). With the example model from step 1:
model = "gpt-6-luna"
model_reasoning_effort = "max"
The file is a regular Codex profile that Codex itself layers in via -p imagegen, so other Codex keys in it (for example service_tier, or model_verbosity = low|medium|high) take effect too.
Use double-quoted strings and keep the keys at the top of the file. The profile also accepts single quotes, but project config files accept only double quotes, so double quotes work everywhere. The script stops reading the profile at the first [table] header and skips unquoted values.
Ask your agent for a dry run, or run the script yourself:
bash <skill-dir>/scripts/codex-imagegen.sh --dry-run "test image"
The trace should show the profile as the source:
MODEL=gpt-6-luna
MODEL_SOURCE=profile:/home/you/.codex/imagegen.config.toml
EFFORT=max
EFFORT_SOURCE=profile:/home/you/.codex/imagegen.config.toml
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub nathanonn/agent-skills --plugin codex-imagegenPlugins from other owners that cover similar ground