codex-image SKILL.md skillA
codex-image from openminis/minisskills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add openminis/minisskills/codex-image@git:20260422.094f765Pins git:20260422.094f765 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- openminis/minisskills
- Path
codex-image/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260422.094f765, committed Apr 22, 2026
- First version recorded
- Apr 22, 2026
- Size
- 4,251 bytes
- Repository stars
- 584
- License
- MIT
Generate images using OpenAI's Codex backend API with gpt-image-2 tool. Use when the user asks to generate images via Codex, ChatGPT image generation, or gpt-image-2. Triggers on "codex image", "codex generate", "gpt-image", "chatgpt generate image". Token is auto-fetched from chatgpt.com session — no manual token setup needed.
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 Generation Generate images via `chatgpt.com/backend-api/codex/responses` using the `image_generation` tool (gpt-image-2). ## Requirements - A ChatGPT account (token is fetched automatically via browser session) - No manual token setup needed — the skill handles auth automatically ## Auth Token Resolution (in order) 1. `--token` argument (CLI only) 2. `CODEX_IMAGE_TOKEN` environment variable 3. `--token-file` argument (CLI only) 4. `~/.chatgpt_auth.json` cache (valid for 8 hours) 5. **Auto login flow** — fetches from `https://chatgpt.com/api/auth/session` via `minis-browser-use`: - If already logged in → token extracted and saved to cache immediately - If not logged in → opens `chatgpt.com/auth/login` in the browser, then polls every 10s in a new tab for up to 5 minutes - On success → saves token to `~/.chatgpt_auth.json` (chmod 600, token + timestamp only) - **Token is never printed to stdout or logs** — it stays in the cache file only ## Usage ### Text-to-image ```bash python3 scripts/codex_image.py "a cute rabbit on a light background" \ --output rabbit.png \ --model gpt-5.4 \ --effort low ``` ### Image-to-image / reference image ```bash …
Read the whole file at its exact version.
How to install
mdr add openminis/minisskills/codex-image@sha256:2ffe4029bb45523dThe line at the top of this page pins the label git:20260422.094f765, 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.
[](https://markdownregistry.com/a/art_munzrboa74wbg3i3)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, all committed on Apr 22, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260422.094f765 latest | 2026-04-22 | 094f765 | 4,251 B | A | view · diff |
| git:20260422.c406011 | 2026-04-22 | c406011 | 3,538 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4251 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
openminis/minisskills · 584 stars · license MIT · pushed 2026-10-26 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_munzrboa74wbg3i3 GET https://markdownregistry.com/api/v1/resolve?ref=openminis/minisskills/codex-image GET https://markdownregistry.com/api/v1/blob/2ffe4029bb45523d773077c75318c28ebd5fc8626c5d3d7ce279b51da2aaa931
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.
More from openminis/minisskills
Every file in openminis/minisskills