这是非官方技能,只做轻量意图路由,提示词规则版权归阿里 Qwen 团队;需要 Agent 支持 skills.sh 标准 Markdown 技能,否则要手动把 skills/qwen-image-2-1-prompter 目录复制或软链到对应技能路径;默认输出交互式解析与可复制提示词块,要 JSON 需明确要求 API 格式
qwen-image-2.1-skill
iamyokiApache-2.0活跃维护把 Qwen-Image-2.1 的文生图和多图编辑提示词按阿里官方规范自动改写优化,让 AI Agent 出图更准。
🎨 Agentic skill for Qwen-Image-2.1: Rewrites and optimizes text-to-image and multi-image editing prompts using official Alibaba specifications. Compatible with skills.sh and all AI agents.
npx skills add iamyoki/qwen-image-2.1-skillREADME 未说明;本技能只做提示词改写,不本地跑模型,实际生图/改图需在 Qwen-Image-2.1 侧完成
给 AI Agent 用的 Qwen-Image-2.1 提示词改写技能,按阿里官方规范把口语需求转成可用的生图与改图提示词
把 Qwen-Image-2.1 的文生图和多图编辑提示词按阿里官方规范自动改写优化,让 AI Agent 出图更准。
核心能力
- 按官方 8 步规范把简短需求改写成约 400–500 词英文描述段落
- 强制观察者视角、8–14 个空间位置短语与独立光照句
- 改图时做属性解耦,未改动内容零属性泄漏
- 用双轨语言区分描述性散文与图中要渲染的文字
- 支持 <image1>/<image2> 多图条件标记与画布比例继承
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
qwen-image-2.1-skill

Generated 100% via Qwen-Image-2.1 T2I and Edit; this skill is unofficial, providing only lightweight intent routing while strictly adhering to Alibaba's official prompt rewriting system specifications.
A skills.sh-compatible prompt engineering skill for Qwen-Image-2.1, providing out-of-the-box text-to-image (8-step observer prose) and image editing (attribute disentanglement and dual-track language) for autonomous agents and coding assistants.
Official system prompt specifications:
- Text-to-Image (T2I): system_prompt_t2i.txt
- Image Editing (Edit): system_prompt_edit.txt
- Technical Blog: Qwen-Image-2.1 Announcement
⚡ Quick Install
Method 1: Ask Your AI Agent (Recommended / Zero-Setup)
Copy and paste this instruction directly to your AI coding assistant (Claude Code, Cursor, Windsurf, Roo, Trae, etc.):
Please install the Qwen-Image-2.1 prompter skill from https://github.com/iamyoki/qwen-image-2.1-skill or by running `npx skills add iamyoki/qwen-image-2.1-skill`.
Method 2: One-Line CLI (via skills.sh)
npx skills add iamyoki/qwen-image-2.1-skill
Alternatively, copy or symlink the skills/qwen-image-2-1-prompter directory into your agent's skill directory:
| Agent / IDE / Tool | Target Skill Path |
|---|---|
| Claude Code | .claude/skills/qwen-image-2-1-prompter or ~/.claude/skills/ |
| Cursor | .cursor/skills/qwen-image-2-1-prompter or .agents/skills/ |
| Windsurf | .windsurf/skills/qwen-image-2-1-prompter or .agents/skills/ |
| Roo Code / Cline | .roo/skills/qwen-image-2-1-prompter or .cline/skills/ |
| Trae / Copilot Workspace | .trae/skills/qwen-image-2-1-prompter or .agents/skills/ |
| OpenDevin / Devin / Codex | .agents/skills/qwen-image-2-1-prompter |
| Antigravity / Gemini CLI | .agents/skills/qwen-image-2-1-prompter |
| Any Agent with skills.sh standard | Compatible with all autonomous agents supporting standard Markdown skills |
🌟 Key Capabilities
-
Official 8-Step T2I Rewriting:
- Turns terse user requests into a single, cohesive, ~400–500-word English descriptive paragraph.
- Strictly enforces observer perspective, 8–14 border-reaching spatial positional phrases, dedicated lighting sentences, and precise aspect ratios (
wh_ratio). - Rejects empty quality buzzwords (no "8K", "masterpiece").
-
Attribute Disentanglement for Image Editing:
- High-strength edit execution with zero attribute leakage on untouched content.
- Dual language protocol: Decision (A) for descriptive prose (Chinese/English) and Decision (B) for literal text rendered in images.
- Multi-image condition tagging (
<image1>,<image2>, ...) and automatic canvas resolution tracking (ratio_followvswh_ratio). - Specialized rules for outpainting, panoramas, and three-view grid generation.
-
Dual-Track Multi-Modal Adaptation:
- Inspects input images directly in Vision-enabled Agent environments (Claude Code, GPT-4o, Gemini).
- Gracefully infers visual attributes when running in text-only terminal environments.
-
Adaptive Output Presentation:
- Default Interactive Mode: Provides Optimization Breakdown (with aspect ratio) + clean copy-ready Prompt block (
#### 📋 提示词(可直接复制)) + Tweak Suggestions. Omit duplicate JSON to prevent token bloat and reduce generation latency. - API / Pipeline Mode: Outputs pure single-line JSON (
{"rewritten_prompt": "...", "wh_ratio": "..."}) only upon explicit user request for programmatic and ComfyUI pipelines.
- Default Interactive Mode: Provides Optimization Breakdown (with aspect ratio) + clean copy-ready Prompt block (
📂 Repository Structure
qwen-image-2.1-skill/
├── LICENSE # Apache License 2.0
├── CONTEXT.md # Domain modeling glossary & language protocol
├── README.md # Main documentation (English)
├── README_zh.md # Chinese documentation (简体中文)
├── docs/
│ └── adr/ # Architecture Decision Records
└── skills/
└── qwen-image-2-1-prompter/
├── SKILL.md # Core entry point & intent router
├── references/
│ ├── t2i_rules.md # Official 8-step T2I rewriting specification
│ ├── edit_rules.md # Official Edit & multi-image specification
│ └── cheat_sheet.md # Vocabulary lookup (styles, materials, ratios)
└── scripts/
└── validate_prompt.py # Offline developer & CI prompt validator
🚀 Usage Examples
1. Text-to-Image (T2I)
User Input:
"帮我用千问画一张暴雨夜赛博朋克街头的小吃摊,要有浓厚的烟火气和霓虹倒影,电影质感。"
Agent Output (Default Interactive Mode):
💡 提示词优化解析
- 主体概念:暴雨夜赛博朋克街头小吃摊,浓郁烟火气与霓虹电影质感。
- 画幅比例:
16:9(宽银幕电影构图)。 - 构图与光影:小吃摊置于右侧前景,左侧纵深延伸雨夜湿滑街道;暖黄白炽灯与背景青蓝、紫红色霓虹灯形成冷暖侧逆光交织。
📋 提示词(可直接复制)
The image is a wide cinematic photograph of a vibrant food stall nestled into a rain-drenched cyberpunk alleyway at night. In the right foreground, an open-front wooden and stainless steel food cart emits billowing plumes of translucent white steam that catch the glow of suspended warm incandescent bulbs. The middle-aged vendor, wearing a grease-stained dark apron, tends sizzling metal pans loaded with skewers. Across the wet asphalt ground plane in the lower third, puddles reflect distorted vertical stripes of electric cyan, magenta, and amber neon signage. To the left, the narrow alley recedes into the distance under tangled overhead cables and layered vertical holographic advertisements in English and Japanese. Along the upper edge, towering utilitarian concrete facades rise into an inky rain-streaked night sky. The lighting is dominated by high-contrast directional rim lights from ambient neon signs balanced against the warm incandescent glow radiating from the stall. The overall composition is atmospheric and layered, balancing human warmth against cold industrial grit with rich tonal contrast.
🎨 进阶微调建议
- 画幅切换:若作为移动端壁纸,可调整为
9:16竖屏构图。 - 文字招牌:若需在摊位上方加入特定发光招牌,可指定如
"CYBER NOODLES"字样。
(Note: If the user explicitly asks for "API format" or "JSON", the agent outputs strictly: {"rewritten_prompt": "...", "wh_ratio": "16:9"})
2. Multi-Image Editing (Compositing)
User Input:
"把 中的古代汉服换到 中的人物身上,背景和脸不要动。"
Agent Output:
💡 提示词优化解析
- 编辑目标:主体汉服替换,精准属性解耦。
- Canvas 画布:
<image1>(锁定人物五官面部特征与背景环境)。 - 画幅比例:继承
<image1>(ratio_follow: <image1>)。
📋 提示词(可直接复制)
将<image2>中的传统青色刺绣交领汉服替换到<image1>中人物身上,保持<image1>人物的面部五官、发型、姿态表情以及原图背景完全一致,汉服的面料光泽自然贴合<image1>的环境光照。
🎨 进阶微调建议
- 可进一步细化汉服在领口与袖口的刺绣金线细节。
🧪 Developer Testing & Offline Validation
The repository provides an offline schema testing tool for developers and CI pipelines:
[!NOTE] Autonomous agents are configured via
SKILL.mdnever to execute this script in conversational chat. It is strictly reserved for manual developer testing and CI workflows.
Run the bundled test suite:
python skills/qwen-image-2-1-prompter/scripts/validate_prompt.py --test
Validate a custom JSON payload:
python skills/qwen-image-2-1-prompter/scripts/validate_prompt.py "{\"rewritten_prompt\": \"...\", \"wh_ratio\": \"16:9\"}"
📄 License
This project is licensed under the Apache License 2.0. Official prompt rules copyright Alibaba Qwen Team.