image-generation
Skill2 starsChanged 58 days agoMITView on GitHub
Generate images from a text description by delegating to the codex CLI agent, which has a native image-generation model. Use this whenever the user wants to CREATE, generate, make, draw, render, design, or produce a picture, image, illustration, logo, icon, mascot, avatar, banner, hero image, background, poster, sticker, concept art, product shot, mockup, social / OG / thumbnail image, or any visual ASSET that must end up as an actual image file on disk — even when they don't say the word "image" (e.g. "make me a logo for my coffee shop", "I need a hero graphic for the landing page", "draw a cute robot for the app"). Also use it to EDIT or restyle an existing image (provide it as a reference). Every run writes the final PNG to an exact output path the caller specifies — that delivered file is the whole point. Do NOT use this for reading/describing an existing image, for data charts/graphs (write code instead), or for Figma/diagram work.
63 other projects use a version of this.
Adopted by
Most recently taken up by
- wlu-Q/AIagent-Small-officetheir own version, first seen Nov 29, 2026
- hex/claude-image-generationtheir own version, first seen Nov 27, 2026
- FerroxLabs/muragetheir own version, first seen Nov 18, 2026
- arbrain-ai/arbraintheir own version, first seen Nov 15, 2026
- hoveychen/claw-fleettheir own version, first seen Nov 10, 2026
- danielgwilson/luxintheir own version, first seen Nov 8, 2026
Used with
Projects with it also use gift-evaluator, Podcast Generate 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.
dav-niu474Skillgift-evaluator
The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.
Also in 5 projects that use this
dav-niu474SkillPodcast Generate
Generate podcast episodes from user-provided content or by searching the web for specified topics. If user uploads a text file/article, creates a dual-host dialogue podcast (or single-host upon request). If no content is provided, searches the web for information about the user-specified topic and generates a podcast. Duration scales with content size (3-20 minutes, ~240 chars/min). Uses z-ai-web-dev-sdk for LLM script generation and TTS audio synthesis. Outputs both a podcast script (Markdown) and a complete audio file (WAV).
Also in 5 projects that use this
huang-x-hSkillVideo Generation
Implement AI-powered video generation capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to generate videos from text prompts or images, create video content programmatically, or build applications that produce video outputs. Supports asynchronous task management with status polling and result retrieval.
Also in 6 projects that use this
huang-x-hSkillVLM
Implement vision-based AI chat capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze images, describe visual content, or create applications that combine image understanding with conversational AI. Supports image URLs and base64 encoded images for multimodal interactions.
Also in 6 projects that use this
- +1 more from huang-x-h
- +7 more from dav-niu474
Other versions63 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 63
- bytedance/deer-flow★ 86ksame name
- zhayujie/chatgpt-on-wechat★ 48ksame name
- zhayujie/CowAgent★ 48ksame name
- jjyaoao/HelloAgents★ 3.2ksame name
- stophobia/deerflow2.0-enhanced★ 821same name
- langchain-ai/design-agent★ 780same name
- claude-office-skills/skills★ 433same name
- sonichi/sutando★ 396same name
- shinpr/mcp-image★ 191same name
- HybridAIOne/hybridclaw★ 165same name
53 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
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 54 edited versions we read keep these.
2
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
- Very specific: line 30
Every generation MUST specify an absolute --output path, and the job is not done until a valid image file exists there.
- Distinctive: line 68
Show the result: Read the output file back to confirm it matches the brief, then tell the user the path.
- Very specific: line 91
One asset per run: Ask for a single final image unless the user wants variations.
- Distinctive: line 93
Text-in-image is hard: If the user needs legible words baked in, say so explicitly in the prompt and verify the result carefully — consider …
“Common” is measured: kept by at least 6 in 10 of the 54 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 Generation (via codex)
Why this exists
You (Claude) can't render pixels, but the codex CLI agent has a built-in image-generation
tool. This skill makes you the harness: you turn the user's intent into a clean spec, hand it
to codex, and guarantee the resulting image lands at a specific path on disk. codex writes images
into its own internal store (~/.codex/generated_images/...); the user almost never wants it
there, so the contract of this skill is: the image always arrives at the --output path you
choose. A bundled script enforces that contract so you don't have to re-derive the plumbing.
The one thing that matters: the output path
Every generation MUST specify an absolute --output path, and the job is not done until a valid
image file exists there. The bundled script (scripts/generate_image.py) drives codex and then
independently verifies the file — if codex didn't place it, the script recovers the freshly
generated PNG from codex's internal store and copies it over. Trust the script's exit code and
JSON, but if you ever generate images another way, still confirm the file exists at the path.
Workflow
- Pin down the spec. From the user's request, assemble three things:
- Subject (
--prompt): what to depict, concretely. Describe the scene, subject, framing, mood. Specific beats vague ("a corner coffee shop at golden hour with people seated outside" beats "a coffee shop"). - Style / brand guidelines (
--style): the look — medium (photo, flat vector, 3D render, watercolor…), palette (name hex codes if the user has brand colors), lighting, texture, and hard constraints like "no text" or "transparent-feel background". This is where brand kits go. - Output path (
--output): an absolute path ending in.png. If the user didn't give one, pick a sensible location (their project's assets dir, or ask if truly ambiguous) — never skip it.
- Subject (
- Pick orientation (
--size):square,portrait, orlandscape(or an explicitWxHlike1536x1024). Match the asset's use —landscapefor hero/banner,portraitfor posters,squarefor logos/avatars/social tiles. Run the script. Replace
<SKILL_DIR>with this skill's base directory (Claude Code shows it when the skill loads; for a personal install it is~/.claude/skills/image-generation). On Windows, ifpython3is not found, usepythonorpyinstead.python3 "<SKILL_DIR>/scripts/generate_image.py" \ --prompt "<subject>" \ --style "<style / brand guidelines>" \ --size landscape \ --output /absolute/path/to/asset.pngIt prints progress to stderr and, on success, a JSON line to stdout:
{"status": "success", "output": "...", "bytes": 3166389, "dimensions": "1536x1024", "source": "codex"}. Exit code0= a valid image is at--output;2= failure (read the stderr tail for codex's error).- Show the result. Read the output file back to confirm it matches the brief, then tell the
user the path. If it's off (wrong subject, ignored a constraint), refine the
--prompt/--styleand run again — image models respond well to more specific, concrete direction.
Editing or restyling an existing image
Pass the source image(s) as references; codex uses them as visual input:
python3 "<SKILL_DIR>/scripts/generate_image.py" \
--prompt "Put this product on a marble kitchen counter in soft morning light" \
--reference /path/to/product.png \
--output /path/to/product_on_counter.png--reference is repeatable (e.g., one image for the subject, one for the style to transfer).
Writing good specs (this drives quality more than anything)
- Be concrete and visual. Name the subject, the setting, the camera/framing, the time of day, the mood. Models fill vague prompts with averages; specifics give you intent.
- Put brand rules in
--style. Palette (with hex), typography feel, "flat/minimal/photoreal", texture, and especially negative constraints ("no text", "no people", "no harsh shadows"). - One asset per run. Ask for a single final image unless the user wants variations; then run
multiple times to different
--outputpaths. - Text-in-image is hard. If the user needs legible words baked in, say so explicitly in the prompt and verify the result carefully — consider adding text in post instead.
When NOT to use this skill
- The user wants you to read, describe, or analyze an existing image → just view it.
- They want a chart, graph, or data visualization → generate it with code (matplotlib, a JS charting lib, etc.), not an image model.
- They want Figma designs or diagrams → use the Figma / diagram skills.
Deeper mechanics & troubleshooting
codex's invocation details, sandbox/auth notes, the internal generated_images layout, the
fallback-recovery logic, and codex's own image use-case taxonomy (edits, compositing, style
transfer, etc.) live in references/codex-image-generation.md. Read it if a run fails, if you
need an edit mode beyond plain generation, or if you want to call codex directly without the script.
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.

