
Image Generation
Generates or edits images from text prompts for illustrations, icons, and posters.
Install
npx skills add zhayujie/CowAgent --skill image-generation -g -a claude-code -y- Repository
- zhayujie/CowAgent47.7k
- Category
- Media
- Updated
- 2d ago
- License
- MIT
- Context cost
- Lightabout 1,159 tokens
- Runs scripts
- Yes, review before use
What it does
Generate or edit images from text prompts. Use when the user asks to create, draw, design, or edit an image, illustration, photo, icon, poster, or any visual content.
Image Generation
Generate and edit images using AI models. The script automatically picks a backend based on which API keys are configured, you don't need to specify a model unless the user explicitly names one. Never guess or invent a model: when the user doesn't name one, omit model entirely so the configured default/provider is used.
Supported models (passed via model only when the user asks for a specific one):
- OpenAI,
gpt-image-2.5-flare(recommended default: best quality/latency trade-off),gpt-image-2.5-sunburst(highest editing precision),gpt-image-2,gpt-image-1 - Gemini Nano Banana,
nano-banana-2,nano-banana-pro,nano-banana - Seedream (Volcengine Ark),
seedream-5.0-lite,seedream-4.5 - Qwen (DashScope),
qwen-image-2.0,qwen-image-2.0-pro - MiniMax,
image-01
Usage
Run scripts/generate.py with a JSON argument. Use the absolute <base_dir> path, do NOT cd into the skill directory, since it is a builtin skill and gets reset on restart (anything written there is lost).
python <base_dir>/scripts/generate.py '<json_args>'
Images are saved to the workspace (or the open project dir) under images/, so they persist and stay reachable to the client.
Set bash timeout to at least 600 seconds, as image generation can take 30, 200s per provider, and the script may try multiple providers sequentially. Call it synchronously (do not run it in the background) and wait for its output in the same turn.


