codex-image SKILL.md skillA

codex-image from mishagavura/claude-code-image-generation is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add mishagavura/claude-code-image-generation/codex-image@git:20260930.9476ea7

Pins git:20260930.9476ea7 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
mishagavura/claude-code-image-generation
Path
skills/codex-image/SKILL.md
Versions recorded
1
Latest version
git:20260930.9476ea7, committed Sep 30, 2026
Size
2,703 bytes
Repository stars
5
License
MIT

Generate or edit raster images (photos, illustrations, mockups, hero images, product shots, bitmap icons, transparent cutouts) with OpenAI GPT Image 2 by triggering the local Codex CLI, billed to the user's ChatGPT subscription — no API key needed. Use when the user says "generate an image", "make a picture/illustration/mockup", "use codex / gpt image / gpt-image-2", "edit this image", "remove the background", or a project needs a bitmap asset. Not for video, SVG, or graphics better built in…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# codex-image

Runs Codex CLI non-interactively. Codex calls its built-in `image_gen` tool (GPT Image 2) and the
script copies the result to the path you choose. Each call takes roughly 30–90 seconds.

The script is `gen.sh` in this skill's base directory (shown when the skill loads), referred to below as `<skill-dir>`.

## Command

```bash
<skill-dir>/gen.sh -o <out.png> [options] "<prompt>"
```

| Option | Meaning |
|---|---|
| `-o PATH` | Output file (required). Put project assets inside the project; otherwise use a temp/scratch folder. |
| `-n N` | 1–4 variants → `out-1.png`, `out-2.png`, … |
| `-r FILE` | Reference image for style/composition (repeatable) |
| `-e FILE` | Image to edit — only what the prompt asks changes |
| `-t` | Transparent background |
| `-a square\|portrait\|landscape` | Aspect ratio |

Prints the saved absolute path(s). Never overwrites: an existing name gets a time suffix.
Give the Bash call a timeout of at least 300000 ms (600000 for `-n 3` or `-n 4`). For several different
images, run separate commands in parallel instead of describing them all in one prompt — parallel runs are safe.

## Workflow
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add mishagavura/claude-code-image-generation/codex-image@sha256:d31f823ac99a0728

The line at the top of this page pins the label git:20260930.9476ea7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_eu5zjcpi7vsczo7q.svg)](https://markdownregistry.com/a/art_eu5zjcpi7vsczo7q)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Sep 30, 2026.

versioncommittedcommitsizeaudit
git:20260930.9476ea7 latest2026-09-30 9476ea7 2,703 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2703 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

mishagavura/claude-code-image-generation · 5 stars · license MIT · pushed 2026-09-30 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_eu5zjcpi7vsczo7q
GET https://markdownregistry.com/api/v1/resolve?ref=mishagavura/claude-code-image-generation/codex-image
GET https://markdownregistry.com/api/v1/blob/d31f823ac99a0728e3a2ab64ee0ab857bf183426879c434fe9ae6891c292de56

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

Other files named codex-image

codex-image SKILL.md skill
openminis/minisskills · codex-image/SKILL.md · Generate images using OpenAI's Codex backend API with gpt-image-2 tool. Use when the user asks to generate images via…
git:20260422.094f765 · audit A · 567 stars
codex-image SKILL.md skill
lykhoyda/ask-llm · packages/llm-mcp/skills/codex-image/SKILL.md · Earlier name of the ask-llm-codex-image skill; use when the user invokes /codex-image.
git:20261002.162238f · audit A · 18 stars

Browse by kind, by grade A, or by owner.