image-gen
Skill4 starsChanged 9 months agoMITView on GitHub
Generate images from text prompts using the OpenAI Images API (DALL-E 3) via curl. Supports single and batch generation with configurable size and quality. Use when user says "generate an image", "create a picture of", "make an image of", or "batch generate images".
- Reads credentials
26 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- t0ddharris/compound-marketingtheir own version, first seen Oct 5, 2026
- Sma1lboy/rovetheir own version, first seen Oct 4, 2026
- tymoshenko-dmytro/marketing-agent-kittheir own version, first seen Oct 1, 2026
- notque/vexjoy-agenttheir own version, first seen Sep 26, 2026
- suitedaces/dorabottheir own version, first seen Sep 22, 2026
- ksprashu/agent-skill-forgetheir own version, first seen Sep 10, 2026
Used with
Projects with it also use video-gen and paid-ads.
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.
buildoakSkillvideo-gen
Video generation via fal.ai -- from quick one-off clips to multi-scene productions with keyframes, state tracking, and assembly. 10+ models including Kling 3.0, Veo 3.1, Sora 2, LTX-2.3. Two modes: light (fire-and-forget) and project (structured pipeline with gates).
Also in 3 projects that use this
silvainfmSkillpaid-ads
When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ad copy,' 'ad creative,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' or 'audience targeting.' This skill covers campaign strategy, ad creation, audience targeting, and optimization.
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- ZDStudios/AIOS★ 412% same
Wrote their own version · 25
- peterkrueck/Claude-Code-Development-Kit★ 1.4ksame name
- notque/vexjoy-agent★ 424same name
- suitedaces/dorabot★ 245same name
- wpsnote/wpsnote-skills★ 179same name
- Sma1lboy/rove★ 147same name
- bozhouDev/bozhou-skills★ 78same name
- marswaveai/skills★ 78same name
- LocalSymmetry/lofn★ 23same name
- crealwork/ai-marketing-kit★ 18same name
- buildoak/fieldwork-skills★ 15same name
15 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 repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- apple-notesSkill
- apple-remindersSkill
- bear-notesSkill
- brainstormSkill
- cameraSkill
- content-creatorSkill
- context-healthSkill
- daily-briefingSkill
- deep-readSkill
- draft-messageSkill
- emailSkill
- gh-issuesSkill
- gif-searchSkill
- github-opsSkill
- google-workspaceSkill
- hue-lightsSkill
- imessageSkill
- memory-managerSkill
- migrate-openclawSkill
- notionSkill
- obsidianSkill
- password-managerSkill
- pdf-editorSkill
- peekabooSkill
- placesSkill
- podcast-makerSkill
- quick-researchSkill
- rss-monitorSkill
- security-auditSkill
- session-logsSkill
- setupSkill
- skill-creatorSkill
- slack-opsSkill
- smart-bedSkill
- sonosSkill
- speech-to-textSkill
- spotifySkill
- summarizeSkill
- task-trackerSkill
- text-to-speechSkill
- things-macSkill
- tmux-controlSkill
- trelloSkill
- trend-scoutSkill
- video-extractSkill
- weatherSkill
- whatsappSkill
- x-twitterSkill
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 18 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 28
No CLI install needed — uses curl and jq (pre-installed on macOS/Linux).
- Very specific: line 110
Always check that OPENAI_API_KEY is set: [[ -z "$OPENAI_API_KEY" ]] && echo "OPENAI_API_KEY not set"
- Distinctive: line 111
Never print the API key value in output
- Very specific: line 112
Default to dall-e-3, size 1024x1024, quality standard unless specified
- Very specific: line 113
Always download images to workspace/ directory.
- Very specific: line 116
Check API response for errors: jq '.error' before using the URL
“Common” is measured: kept by at least 6 in 10 of the 18 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
Image Gen
Generate images from text prompts using the OpenAI Images API (DALL-E 3) via curl.
Requires an OPENAI_API_KEY environment variable.
Prerequisites
No CLI install needed — uses curl and jq (pre-installed on macOS/Linux).
Set up your API key:
export OPENAI_API_KEY="sk-..."
# Or add to ~/.zshrc / ~/.bashrc for persistenceGet a key: https://platform.openai.com/api-keys
Commands
Generate a single image (returns URL):
curl -s https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dall-e-3",
"prompt": "A serene mountain lake at sunset, photorealistic",
"n": 1,
"size": "1024x1024",
"quality": "standard"
}' | jq -r '.data[0].url'Generate HD image:
curl -s https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"dall-e-3","prompt":"<prompt>","n":1,"size":"1024x1024","quality":"hd"}' \
| jq -r '.data[0].url'Download generated image to file:
URL=$(curl -s https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"dall-e-3","prompt":"<prompt>","n":1,"size":"1024x1024","quality":"standard"}' \
| jq -r '.data[0].url')
curl -s "$URL" -o workspace/image-output.pngBatch generate (loop):
PROMPTS=("prompt one" "prompt two" "prompt three")
for i in "${!PROMPTS[@]}"; do
URL=$(curl -s https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"dall-e-3\",\"prompt\":\"${PROMPTS[$i]}\",\"n\":1,\"size\":\"1024x1024\",\"quality\":\"standard\"}" \
| jq -r '.data[0].url')
curl -s "$URL" -o "workspace/image-$i.png"
echo "Saved workspace/image-$i.png"
doneSize Options
| Size | Use Case |
1024x1024 | Square (default, social media) |
1792x1024 | Landscape (banners, thumbnails) |
1024x1792 | Portrait (stories, posters) |
Usage Examples
Generate a social media card image:
# Prompt + download to workspace
URL=$(curl -s https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"dall-e-3","prompt":"Minimalist tech blog cover, dark background, glowing circuit pattern, 1080x1080","n":1,"size":"1024x1024","quality":"hd"}' \
| jq -r '.data[0].url')
curl -s "$URL" -o workspace/social-card.pngRules
- Always check that
OPENAI_API_KEYis set:[[ -z "$OPENAI_API_KEY" ]] && echo "OPENAI_API_KEY not set" - Never print the API key value in output
- Default to
dall-e-3, size1024x1024, qualitystandardunless specified - Always download images to
workspace/directory; never just return raw URLs - Name output files descriptively:
workspace/image-<slug>.png - For batch jobs, generate one at a time sequentially to avoid rate limits
- Check API response for errors:
jq '.error'before using the URL - Confirm completion with: "Generated
<N>image(s) → workspace/<filename>" - DALL-E 3 limit is n=1 per request; for multiple images, loop the request
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.

