---
name: Image Generation
slug: image-generation-5
category: AI Engineering
description: Image Generation calls generate_image when a user wants to create, draw, or revise an image. It supports text-to-image prompts and reference images from user attachments or URLs.
github: "https://github.com/wecode-ai/Wegent/tree/main/backend/init_data/skills/wegent-image-generation"
language: TypeScript
stars: 712
forks: 125
install: "npx degit https://github.com/wecode-ai/Wegent/tree/main/backend/init_data/skills/wegent-image-generation ~/.claude/skills/wegent-image-generation"
installs_to: ~/.claude/skills/wegent-image-generation
source_path: backend/init_data/skills/wegent-image-generation/SKILL.md
collection_size: 18
category_size: 2451
collection_url: "https://dirskills.com/collections/wecode-ai/Wegent"
added: 2026-08-23T05:20:33.033Z
last_synced: 2026-08-23T05:20:33.033Z
canonical_url: "https://dirskills.com/skills/image-generation-5"
---

# Image Generation

Image Generation calls generate_image when a user wants to create, draw, or revise an image. It supports text-to-image prompts and reference images from user attachments or URLs.

**Install:**

```bash
npx degit https://github.com/wecode-ai/Wegent/tree/main/backend/init_data/skills/wegent-image-generation ~/.claude/skills/wegent-image-generation
```

## README

# Image Generation

Call `generate_image` when the user asks for an image.

- Put the complete visual description in `prompt`.
- Use `reference_images` only when the user supplied image attachments or URLs.
- Pass attachment IDs, not local sandbox paths.
- Default to one image unless the user explicitly asks for multiple images.
- The tool saves generated images as task attachments and returns image blocks. Do not create a duplicate card.
- If the tool returns `error`, explain it once and do not retry unchanged parameters.
