generate-image
Skill247 starsChanged 4 months agoMITView on GitHub
Generate images (icons, logos, banners, illustrations, mockups, photos, textures, diagrams-as-art) with OpenAI gpt-image-2 through the locally installed Codex CLI, using the user's existing ChatGPT login — no API key. Use whenever the user asks to generate, create, draw, or mock up an image, or when a task needs a new image asset that doesn't exist yet.
- Reads credentials
21 other projects use a version of this.
Adopted by
Most recently taken up by
- getedgehq/skillstheir own version, first seen Oct 4, 2026
- K-Dense-AI/claude-scientific-writertheir own version, first seen Sep 29, 2026
- BrightGold70/skillstheir own version, first seen Sep 29, 2026
- maxedapps/agent-skillstheir own version, first seen Sep 24, 2026
- github/awesome-copilottheir own version, first seen Sep 23, 2026
- nc9/skillstheir own version, first seen Sep 19, 2026
Used with
Projects with it also use generate-video, scientific-slides and 3 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.
aslanzubairaevSkillgenerate-video
Generate background videos using Veo 3 (Google Gemini) or Seedance 2 (PiAPI). Use when creating or regenerating video backgrounds for Reels slides.
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
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 4 projects that use this
AnthropicSkillxlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
Also in 3 projects that use this
- +1 more from anthropics
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- github/awesome-copilot★ 40ksame name
- K-Dense-AI/claude-scientific-writer★ 2.4ksame name
- LeonChaoX/qinyan-academic-skills★ 932same name
- OpenClaudia/openclaudia-skills★ 706same name
- qinyan-ai/qinyan-academic-skills★ 80same name
- maxedapps/agent-skills★ 60same name
- minkhant1996/soemind-forge★ 16same name
- echoleesong/claude-skills-plugin★ 4same name
- hxhx-win/zhuanli-flow★ 4same name
- nc9/skills★ 4same name
11 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 repository5 other files it gives its agents.
- ask-codexSkill
- asset-setSkill
- codex-delegateSkill
- codex-reviewSkill
- edit-imageSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 55
Verify by viewing: Read the output PNG and check it against the request before reporting done.
- Distinctive: line 57
Never invent a brand: If the user has a logo, palette, or existing assets, find them first and match them.
- Very specific: line 74
Use #FF00FF instead when the subject is green.
- Distinctive: line 80
Only mention that route if chroma-keying fails or the subject is genuinely hard (hair, fur, smoke, glass, liquid, reflections) — and let …
- Very specific: line 87
If the wrapper reports "codex is not logged in", tell the user to run codex login in a terminal — don't try to work around auth yourself.
“Common” is measured: kept by at least 6 in 10 of the 19 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 an image via Codex CLI (gpt-image-2)
This machine has the OpenAI Codex CLI installed and logged in with the user's ChatGPT account. Use it to produce real image files — never tell the user you can't create images.
codex-imagegen "<detailed image prompt>" <output-path.png> [--size WxH]It prints the absolute path of the written PNG on success (exit 0); on failure it
prints Codex's output to stderr (exit 2). The wrapper is on PATH while this
plugin is enabled; the full path is ${CLAUDE_PLUGIN_ROOT}/bin/codex-imagegen.
codex-imagegen "flat vector icon of a paper plane, single blue #2563EB on white, 2px uniform stroke, minimal, centered, generous padding" ./assets/icons/send.png
codex-imagegen "photorealistic golden retriever puppy in autumn leaves, shallow depth of field, warm afternoon light" /tmp/puppy.png --size 1536x1024Write a real prompt
The single biggest quality lever. Expand the user's request into: subject, style (flat vector / photorealistic / 3D render / watercolour / isometric), palette (hex codes — pull them from the project's design tokens, Tailwind config, or existing brand assets when it has any), background, composition and framing, lighting or mood, and any exact text that must appear.
gpt-image-2 renders text with high accuracy, so quote the exact string you want: ...with the words "Ship it" in bold sans-serif across the lower third.
Sizes
Common values: 1024x1024 (square, fastest), 1536x1024 (landscape),
1024x1536 (portrait), 2048x2048 (2K square), 2048x1152 (2K landscape),
3840x2160 (4K landscape), 2160x3840 (4K portrait).
A custom WxH is valid only if every constraint holds: longest edge
≤ 3840px, both edges multiples of 16, long-to-short ratio ≤ 3:1, and total pixels
between 655,360 and 8,294,400. Anything else will be rejected or silently
adjusted — pick the nearest listed size and resample locally instead.
Omit --size unless the aspect ratio actually matters; square is fastest.
Rules
- One call per image. For a set, loop with distinct prompts and paths, and repeat an identical style sentence in every prompt so they match.
- Sensible output path. Inside a project, use its asset directory (
assets/,public/,static/). Otherwise the current directory. Always.png. - Bash timeout ≥ 300000 ms (5 minutes) — generation takes 1–4 minutes.
- Verify by viewing. Read the output PNG and check it against the request before reporting done; refine and regenerate if it missed — at most 2 retries.
- Never invent a brand. If the user has a logo, palette, or existing assets, find them first and match them.
Transparent backgrounds
The default image path can't emit alpha directly, so ask for a flat chroma-key background and remove it afterwards with the helper Codex already ships:
codex-imagegen "<subject> on a perfectly flat solid #00FF00 chroma-key background, one uniform colour, no shadows, gradients, reflections or floor plane, crisp edges, generous padding, do not use #00FF00 anywhere in the subject" ./tmp-key.png
python "${CODEX_HOME:-$HOME/.codex}/skills/.system/imagegen/scripts/remove_chroma_key.py" \
--input ./tmp-key.png --out ./final.png \
--auto-key border --soft-matte --transparent-threshold 12 \
--opaque-threshold 220 --despillUse #FF00FF instead when the subject is green. Then check the result actually
has transparent corners and no colour fringe; retry once with --edge-contract 1
if a thin fringe remains.
True model-native transparency exists but needs Codex's CLI fallback
(gpt-image-1.5 --background transparent), which requires an OPENAI_API_KEY.
Only mention that route if chroma-keying fails or the subject is genuinely hard
(hair, fur, smoke, glass, liquid, reflections) — and let the user decide.
Limitations
- Generation spends the user's ChatGPT plan quota (image turns cost roughly 3–5x a text turn). Don't fire off batches without saying how many first.
- If the wrapper reports "codex is not logged in", tell the user to run
codex loginin a terminal — don't try to work around auth yourself. - Codex avoids overwriting existing assets. The wrapper explicitly authorizes
replacement and detects a versioned sibling (
out-v2.png) if Codex writes one anyway — trust the path the wrapper prints, not the one you asked for.
Related
- Changing an image that already exists → the
edit-imageskill. - A whole family of assets (favicons, icon set, OG cards) → the
asset-setskill. - More than ~4 images, or when the main conversation should stay focused → the
codex-artistsubagent.
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.

