chatgpt-imagegen
Skill5 starsChanged 12 days agoMITView on GitHub
Generates or edits raster images through OpenAI's Image API. Use for text-to-image work, reference-based edits, masks, transparent assets, and product or editorial visuals.
- Reads credentials
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- zhouycheng/skillstheir own version, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- zhouycheng/skills★ 1same name
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 repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architecture-knowledge-baseSkill
- audio-transcribeSkill
- better-uiSkill
- brainstormingSkill
- broSkill
- coding-standardsSkill
- decision-roomSkill
- deslopifySkill
- domain-modelingSkill
- frontend-designSkill
- gemini-ttsSkill
- goalSkill
- readbackSkill
- rephraseSkill
- reply-broSkill
- setup-goalSkill
- skill-cleanerSkill
- strunk-writing-qualitySkill
- technical-writingSkill
- tech-specSkill
- tool-installSkill
- type-breakdownSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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
- Very specific: line 11
Use the bundled chatgpt-img CLI for generation and edits.
- Very specific: line 79
Use --help and edit --help for the complete interface.
- Distinctive: line 87
Check the process exit status.
- Distinctive: line 92
Never expose API keys. Error output may include safe request metadata, but it must not include prompt contents or credentials.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ChatGPT Image Generation
Use the bundled chatgpt-img CLI for generation and edits. Resolve its path relative to this SKILL.md.
Setup
python3 -m pip install -r <skill-directory>/requirements.txt
export OPENAI_API_KEY='...'OPENCODE_OPENAI_API_KEY is accepted as a fallback. CHATGPT_IMAGE_DEFAULT overrides the default model.
Image requests cost money. Confirm scope before generating many images or using high quality repeatedly.
Generate
<skill-directory>/scripts/chatgpt-img \
'A linocut illustration of a lighthouse in heavy rain' \
./lighthouse.png \
--size 1536x1024 \
--quality highEdit
Single reference:
<skill-directory>/scripts/chatgpt-img edit \
./portrait.png \
'Use warm editorial lighting; preserve identity, pose, and clothing' \
./portrait-edited.png \
--quality highMultiple references:
<skill-directory>/scripts/chatgpt-img \
--input ./portrait.png \
--input ./moodboard.png \
'Apply the moodboard lighting and palette while preserving the portrait identity' \
./portrait-styled.pngOptional masked edit:
<skill-directory>/scripts/chatgpt-img edit \
./input.png \
'Replace the masked background with a cloudy coastline' \
./output.png \
--mask ./mask.pngImportant options
--model: defaults togpt-image-2.5-sunburst, the newest model. It accepts--background transparent.gpt-image-2rejects transparent backgrounds, so pass--model gpt-image-2only when you need it--size: supported dimensions orauto--quality: GPT Image usesauto,low,medium, orhigh--background:auto,transparent, oropaque--format:png,jpeg, orwebp--compression:0through100for JPEG/WebP--num: number of outputs--input: repeatable reference image for edit mode--mask: optional edit mask--input-fidelity: supported by selected older GPT Image models, notgpt-image-2
Use --help and edit --help for the complete interface.
Prompting edits
State both the change and the invariants. For example, name the identity, geometry, text, logos, pose, camera angle, or materials that must remain unchanged. Describe lighting, palette, composition, and finish positively instead of relying on long negative lists.
Verification
- Check the process exit status.
- Confirm every expected output file exists and is non-empty.
- Report exact paths and any revised prompt returned by the API.
- Inspect the image with an available viewer when visual verification is part of the task.
Never expose API keys. Error output may include safe request metadata, but it must not include prompt contents or credentials.
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.

