# image-generation

This skill creates illustrations, diagrams, and other visuals for articles and docs. It chooses between Codex, OpenAI API, and Gemini paths.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 4000 installs
- Author: zc277584121
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/zc277584121/marketing-skills/tree/HEAD/skills/image-generation/SKILL.md
- Updated: 2026-08-28
- HTML: https://affpapa.org/en/nevibecode/skills/zc277584121-image-generation

## What it does

The skill creates raster visuals for blog posts, technical writing, and documentation. Ask for a concept illustration, an architecture diagram, or a visual explanation of a workflow. In Codex, the built-in route is the best first option because it does not need `OPENAI_API_KEY` when `image_gen` is available.

Outside Codex, the skill runs `scripts/generate_image.py`. With `auto`, the script tries OpenAI through `OPENAI_API_KEY`, then switches to Gemini with `GEMINI_API_KEY` if the first route cannot generate the image. You can set the provider, model, aspect ratio, image size, and style prefix. The script defaults to English prompts, a `16:9` ratio, `1K` output, and a clean minimalist style.

API generation requires the matching provider key. The Codex route depends on access to the built-in `image_gen`; when that tool is unavailable, the workflow falls back to the script and checks the provider credentials.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add zc277584121/marketing-skills --skill image-generation -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/image-generation/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/image-generation/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add zc277584121/marketing-skills --skill image-generation -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/image-generation/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add zc277584121/marketing-skills --skill image-generation -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/image-generation/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install zc277584121/marketing-skills image-generation
```

2. **Manually: put the files in place**
- File: `.github/skills/image-generation/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add zc277584121/marketing-skills --skill image-generation -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/zc277584121/marketing-skills --path skills/image-generation
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/image-generation/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add zc277584121/marketing-skills --skill image-generation -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/zc277584121/marketing-skills/tree/HEAD/skills/image-generation/SKILL.md

## When to use it
- create an illustration for an article
- draw an architecture diagram
- prepare a visual for documentation
- switch generation from OpenAI to Gemini
- set an image ratio and size

## Example prompts
- Create an illustration for the article about vector search and save it as `images/vector-search.png`.
- Draw a system architecture diagram with arrows showing data flow and use a `16:9` canvas.
- Generate the image through an API at `2K` size, using a clean technical illustration style.

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [grill-me](https://affpapa.org/en/nevibecode/skills/grill-me.md) — skill · 1424476 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [grilling](https://affpapa.org/en/nevibecode/skills/grilling.md) — skill · 979543 installs
- [codebase-design](https://affpapa.org/en/nevibecode/skills/codebase-design.md) — skill · 850344 installs

## Other versions with the same name
- [image-generation · bytedance](https://affpapa.org/en/nevibecode/skills/bytedance-image-generation.md) — 2900 installs
- [image-generation · claude-office-skills](https://affpapa.org/en/nevibecode/skills/image-generation.md) — 5600 installs
- [image-generation · postplusai](https://affpapa.org/en/nevibecode/skills/postplusai-image-generation.md) — 703 installs

From the same set: [zc277584121/marketing-skills](https://affpapa.org/en/nevibecode/by/zc277584121/marketing-skills.md) — 9 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
