Agent skill · Content & Marketing

image-generation

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.

zhayujie46,176★ · +101/wk · 1 repos on radarProfile →
claude-codecodexships scriptsMIT
Install
npx skills add zhayujie/CowAgent --skill image-generation --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: yes
Path: skills/image-generation/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 46,311 · +135 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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**. Supported models (passed via `model` only when the user asks for a specific one): - **OpenAI** — `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. The path is relative to this skill's `base_dir`. ```bash python <base_dir>/scripts/generate.py '<json_args>' ``` **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. ### Parameters | Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | `prompt` | string | yes | — | Image description | | `image_url` | string / list | no | null | Input image(s) for editing: local file path or URL. Multi-image fusion

What's inside
Steps it walks through
  1. Usage
  2. Parameters
  3. Example — generate
  4. Important: Editing vs Generating
  5. Example — edit (image-to-image)
  6. Output
  7. Setup
  8. Error Handling
  9. Notes
Ships with 1 file
  • scripts/generate.py
Commands it runs
python <base_dir>/scripts/generate.py '<json_args>'
python <base_dir>/scripts/generate.py '{"prompt": "A corgi astronaut floating in space"}'
python <base_dir>/scripts/generate.py '{"prompt": "Isometric miniature city of Shanghai at sunset", "size": "2K", "aspect_ratio": "16:9"}'
python <base_dir>/scripts/generate.py '{"prompt": "Add a Santa hat to the dog", "image_url": "/path/to/dog.png"}'
python <base_dir>/scripts/generate.py '{"prompt": "Combine these characters into a group photo", "image_url": ["/path/a.png", "/path/b.png"]}'
More from CowAgent
All skills →
About this skill
What does the image-generation skill do?

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.

How do I install it?

Run `npx skills add zhayujie/CowAgent --skill image-generation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From zhayujie/CowAgent, a repository with 46,311 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going