generate-image

Generate images from text prompts using Qwen-Image (Dashscope). Saves output as local PNG files. Requires DASHSCOPE_API_KEY. Use deliver_artifacts to send generated images to IM chat.

1,592 stars

Best use case

generate-image is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Generate images from text prompts using Qwen-Image (Dashscope). Saves output as local PNG files. Requires DASHSCOPE_API_KEY. Use deliver_artifacts to send generated images to IM chat.

Teams using generate-image should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/generate-image/SKILL.md --create-dirs "https://raw.githubusercontent.com/openakita/openakita/main/skills/system/generate-image/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/generate-image/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How generate-image Compares

Feature / Agentgenerate-imageStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Generate images from text prompts using Qwen-Image (Dashscope). Saves output as local PNG files. Requires DASHSCOPE_API_KEY. Use deliver_artifacts to send generated images to IM chat.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# generate_image - 文生图(Qwen-Image)

使用通义百炼 Qwen-Image 系列模型(如 `qwen-image-max`)根据提示词生成图片,并自动下载保存为本地 PNG 文件。

## 前置条件

- 环境变量:`DASHSCOPE_API_KEY`(与通义其它模型共用)
- 可选:`DASHSCOPE_IMAGE_API_URL`
  - 北京地域(默认):`https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation`
  - 新加坡地域:`https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation`

(API 参考:`https://help.aliyun.com/zh/model-studio/qwen-image-api`)

## 用法

```json
{
  "prompt": "一张极简风格的产品海报,白色背景,中心是一只橘猫的线稿,标题“OPENAKITA”",
  "model": "qwen-image-max",
  "size": "1328*1328",
  "prompt_extend": true,
  "watermark": false
}
```

## 参数

| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| prompt | string | 是 | 正向提示词 |
| model | string | 否 | 模型名,默认 `qwen-image-max` |
| negative_prompt | string | 否 | 反向提示词 |
| size | string | 否 | 分辨率,格式 `宽*高`,默认 `1664*928` |
| prompt_extend | boolean | 否 | 是否开启提示词智能改写,默认 true |
| watermark | boolean | 否 | 是否加水印,默认 false |
| seed | integer | 否 | 随机种子 |
| output_path | string | 否 | 输出路径;不填会落到 `data/generated_images/` |

## 返回值

返回 JSON 字符串,包含:
- `saved_to`: 本地 PNG 路径
- `image_url`: 临时图片 URL(通常 24 小时有效)

## 发送到 IM(可选)

生成后如需发送图片到聊天,请调用 `deliver_artifacts`:

```json
{
  "artifacts": [
    {"type": "image", "path": "data/generated_images/xxx.png", "caption": "生成的图片"}
  ]
}
```

Related Skills

get-image-file

1592
from openakita/openakita

Get local file path of image sent by user. When user sends image, system auto-downloads it. When you need to process user's image or analyze image content.

generate-agents-md

1592
from openakita/openakita

Generate or update AGENTS.md for the current project. Use when user asks to create project guidelines, initialize AGENTS.md, or standardize project conventions.

openakita/skills@image-understanding

1592
from openakita/openakita

Analyze images using Dashscope (Qwen) Vision models for detailed description, OCR text extraction, object recognition, and visual Q&A. Use when the user needs to understand image content via Alibaba Cloud Dashscope API, especially for Chinese-language image analysis and documents.

openakita/skills@image-understander

1592
from openakita/openakita

Analyze images using GPT-4 Vision for detailed description, OCR text extraction, object recognition, and visual Q&A. Use when the user needs to understand image content, extract text from screenshots, identify objects in photos, or ask questions about images via OpenAI GPT-4 Vision API.

jimliu/baoyu-skills@baoyu-image-gen

1592
from openakita/openakita

Generate AI images using multiple providers (OpenAI DALL-E, Google Imagen, DashScope/Tongyi Wanxiang, Replicate). Supports various aspect ratios, quality presets, batch generation, and provider-specific prompt engineering techniques.

jimliu/baoyu-skills@baoyu-cover-image

1592
from openakita/openakita

Generates article cover images with 5 dimensions (type, palette, rendering, text, mood) combining 9 color palettes and 6 rendering styles. Supports cinematic (2.35:1), widescreen (16:9), and square (1:1) aspects. Use when user asks to "generate cover image", "create article cover", or "make cover".

openakita/skills@yuque-skills

1592
from openakita/openakita

Manage Yuque (语雀) knowledge bases, documents, and team collaboration through API integration. Supports personal search, weekly reports, knowledge base management, document CRUD, and group collaboration workflows. Based on yuque/yuque-skills.

openakita/skills@youtube-summarizer

1592
from openakita/openakita

Summarize YouTube videos by extracting transcripts and generating structured notes. Use when the user wants to summarize a YouTube video, extract key points from a talk, create study notes from a lecture, or get timestamps for important moments. Supports multiple URL formats and languages.

openakita/skills@xlsx

1592
from openakita/openakita

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.

openakita/skills@xiaohongshu-creator

1592
from openakita/openakita

Create engaging Xiaohongshu (RED/小红书) content including titles, body text, hashtags, and image style recommendations. Supports multiple content types such as product reviews, tutorials, lifestyle sharing, and shopping guides with platform-specific optimization.

openakita/skills@wechat-article

1592
from openakita/openakita

Create and format WeChat Official Account (公众号) articles with proper Markdown-to-WeChat HTML conversion, rich formatting, cover image guidance, and both API and manual publishing workflows.

openakita/skills@webapp-testing

1592
from openakita/openakita

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.