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.
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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/generate-image/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How generate-image Compares
| Feature / Agent | generate-image | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/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
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
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
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
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
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
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
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
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
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
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
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
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.