codex-image
Skill5 starsChanged 2 months agoMITView on GitHub
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 code.
- Installs packages
20 other projects use a version of this.
Adopted by
Most recently taken up by
- bugrackm/My-Agent-System-and-Skillstheir own version, first seen Nov 29, 2026
- Willian8021743/windows-ai-toolkittheir own version, first seen Nov 29, 2026
- Aaryan6/skillstheir own version, first seen Nov 29, 2026
- muend/orchestration-skillstheir own version, first seen Nov 15, 2026
- lwmxiaobei/xiaobei-skillstheir own version, first seen Nov 15, 2026
- qwwiwi/codex-gpt-image-2-subscriptiontheir own version, first seen Nov 5, 2026
Used with
Projects with it also use contact-vcard-extractor, free-tts and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenMinisSkillcontact-vcard-extractor
Extract contact information from text, chat logs, web pages, screenshots, business card photos, and QR codes/OCR results; clean names, phone numbers, email addresses, companies, job titles, addresses, and websites; generate vCard/.vcf files; and guide users to import them into iOS Contacts or share them with others. Trigger words include: extract contacts, save to contacts, generate vCard/.vcf, business card recognition, add contacts from images/screenshots/text, share contacts, and export contacts.
Also in 3 projects that use this
OpenMinisSkillfree-tts
Free text-to-speech (edge-tts), with no API key or registration required. Converts text to MP3 audio files. Trigger this skill when the user says "read aloud," "text-to-speech," "TTS," "generate audio," "read it," "read it out loud," "say it," "play it," or in any scenario where text needs to be converted to speech for playback.
Also in 3 projects that use this
- +10 more from OpenMinis
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- OpenMinis/MinisSkills★ 638same name
- lwmxiaobei/xiaobei-skills★ 163same name
- revfactory/skills★ 160same name
- wjb127/codex-image★ 64same name
- qwwiwi/codex-gpt-image-2-subscription★ 9same name
- xntj-ai/codex-image★ 9same name
- basejb/skills★ 5same name
- qwwiwi/agentos-skills-public★ 4same name
- Axieon/codex-image★ 3same name
- Aaryan6/skills★ 1same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Files
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
<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
- Turn the request into a clear prompt: subject, style/medium, composition, lighting, palette, exact text in quotes, and what to avoid. Keep the user's specifics; add detail only when the ask is vague.
- Run
gen.sh. - Look at the output image and check it matches (subject, spelling of any text, framing). If it's off,
rerun with one targeted prompt change, or use
-eon the result for a small fix. - Report the saved path(s) and the final prompt. If the image is for a project, reference it from the code.
Troubleshooting
codex CLI not found→ the user needsnpm i -g @openai/codex.Codex is not logged in→ the user runscodex loginand signs in with ChatGPT.No image was generated→ the ChatGPT plan's image limit may be used up, or the prompt was refused. Say so; don't retry in a loop.-toutput can have semi-transparent blotches. Check it; if dirty, regenerate on a plain white background without-tand remove the background separately.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

