Loading...
Loading...
Optimize, rewrite, and craft image generation and editing prompts tailored specifically for Alibaba's Qwen-Image-2.1 diffusion model. Use this skill whenever the user wants to generate images with Qwen 2.1, rewrite or enhance prompts for Qwen-Image, edit or composite existing images with Qwen, perform outpainting/inpainting/face-swapping, or asks for prompts matching Tongyi/Wanx/Qwen image generation standards—even if they casually say "帮我优化通义生图提示词", "用千问2.1出图", or "Qwen改图".
npx skill4agent add iamyoki/qwen-image-2.1-skill qwen-image-2-1-prompterflowchart TD
Start["User Prompt / Request"] --> CheckImage{"Is an input image present\nor referenced?"}
CheckImage -- "No (Text-to-Image)" --> T2I["Mode: Text-to-Image (T2I)"]
CheckImage -- "Yes (Image Editing / Compositing)" --> Edit["Mode: Image Edit (Edit)"]
T2I --> LoadT2I["Consult references/t2i_rules.md"]
Edit --> LoadEdit["Consult references/edit_rules.md"]
LoadT2I --> FormatOutput["Determine Output Format (Adaptive)"]
LoadEdit --> FormatOutputreferences/t2i_rules.mdreferences/cheat_sheet.md""wh_ratio3:22:31:116:99:16<image1><image2>references/edit_rules.md<image1><image2>wh_ratioratio_follow""ratio_follow"<imageX>"wh_ratio""wh_ratioratio_follow#### 📋 提示词(可直接复制){"rewritten_prompt": "...", "wh_ratio": "3:2"}{"rewritten_prompt": "...", "wh_ratio": "", "ratio_follow": "<image1>"}scripts/validate_prompt.pyvalidate_prompt.py