generate-image
Skill1 starsChanged 6 months agoMITView on GitHub
Generate images using OpenAI's gpt-image-2 model, or the codex CLI's built-in image_gen when no OpenAI API key is set
- Reads credentials
37 other projects use a version of this.
Adopted by
Most recently taken up by
- lancy69/skillstheir own version, first seen Nov 8, 2026
- oivanfelipe/claude-skillstheir own version, first seen Nov 8, 2026
- BrightGold70/skillstheir own version, first seen Nov 8, 2026
- K-Dense-AI/claude-scientific-writertheir own version, first seen Nov 7, 2026
- MakiDevelop/claude-skillstheir own version, first seen Nov 1, 2026
- getedgehq/skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use edit-image, scientific-slides and 6 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.
SamurAIGPTSkilledit-image
Edits an existing image using natural language instructions via MuAPI. Use when the user wants to modify, change, transform, or retouch an existing image.
Also in 3 projects that use this
ZanderRussSkillscientific-slides
Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.
Also in 3 projects that use this
nicepkgSkillteam
根据任务快速组建临时 AI Agent 团队协作。自动从 .claude/agents/ 中选择最合适的成员组队。
Also in 3 projects that use this
AnthropicSkillpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.
Also in 5 projects that use this
AnthropicSkillpdf
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Also in 4 projects that use this
SentrySkillskill-creator
Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.
Also in 5 projects that use this
- +1 more from anthropics
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- github/awesome-copilot★ 41ksame name
- K-Dense-AI/claude-scientific-writer★ 2.6ksame name
- LeonChaoX/qinyan-academic-skills★ 910same name
- OpenClaudia/openclaudia-skills★ 731same name
- ansari-project/codev★ 298same name
- cluesmith/codev★ 298same name
- Sateezg/codex-bridge★ 248same name
- DojoCodingLabs/remotion-superpowers★ 153same name
- happycapy-ai/Happycapy-skills★ 137same name
- qinyan-ai/qinyan-academic-skills★ 80same name
27 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.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cmux-close-browser-surfacesSkill
- docker-desktopSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Create images from text prompts using the scripts/generate-image.py script.
- Very specific: line 22
Use .png for images needing transparency (icons, logos)
- Very specific: line 23
Use .jpg for photos
- Very specific: line 24
Use .webp for smaller file size
- Very specific: line 53
Read-only is enough — image_gen writes into $CODEX_HOME itself, not through the shell.
- Distinctive: line 69
If neither is available the script exits 1 and says so.
“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Generate Image
Create images from text prompts using the scripts/generate-image.py script.
Usage
./scripts/generate-image.py "prompt" [output_file]
./scripts/generate-image.py --backend codex "prompt" [output_file]
./scripts/generate-image.py -i photo1.png -i photo2.jpg "prompt" [output_file]Parameters
- prompt (required): Description of the image to generate
- output_file (optional): Output path. Defaults to
image.png- Use
.pngfor images needing transparency (icons, logos) - Use
.jpgfor photos - Use
.webpfor smaller file size
- Use
- -i / --image (optional, repeatable): a reference image to base the result on, e.g. profile photos to turn into illustrated characters. The codex backend passes each one to
codex exec -iand sends the prompt on stdin, because-itakes several values and would swallow a positional prompt as one more image path. The API backend switches to theimages/editsendpoint and uploads them as multipartimage[]fields. - --backend (optional):
auto(default),api, orcodex
When to use
- User asks for an image, icon, logo, illustration
- Visual content would help explain something
- User explicitly requests image generation
Backends
The script picks a backend automatically, preferring codex:
| Backend | Selected when | Notes |
codex | Default, whenever codex is on PATH | Runs codex exec and lets codex's built-in image_gen tool do the work. Codex uses its own credentials, so it keeps working when the OpenAI account has no credits. Takes ~30s because it's a full agent turn. |
api | Fallback, when codex isn't installed | Direct call to the OpenAI Images API with gpt-image-2. Honors .png/.jpg/.webp natively. Takes a few seconds, but returns a 429 once the account is out of credits. |
Codex is primary because the OpenAI key hit You have no credits remaining mid-task, which turned one image into two runs. Codex bills through its own auth and didn't care.
Force either one with --backend api / --backend codex.
How the codex fallback works
- Snapshots
$CODEX_HOME/generated_images(default~/.codex). - Runs
codex exec --sandbox read-onlywith a prompt that pins codex to its built-inimage_gentool and forbids theOPENAI_API_KEY-dependent CLI fallback described in$CODEX_HOME/skills/.system/imagegen/SKILL.md. Read-only is enough —image_genwrites into$CODEX_HOMEitself, not through the shell. - Diffs the snapshot and copies the newest new file to
output_file. The filesystem diff is the source of truth, not the path codex prints. image_genalways returns PNG, so a.jpgdestination is re-encoded withsipsand.webpwithcwebp. Ifcwebpisn't installed the PNG bytes are copied as-is and the script warns.
Requirements
Either:
OPENAI_API_KEY(orOPENAI_API_KEY_IG) set — uses the API directly, or- the
codexCLI onPATH, authenticated, with theimage_generationfeature enabled (codex features list | grep image_generation→stable true).
If neither is available the script exits 1 and says so. Runs on Python 3.9+ (macOS system Python included).
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.

