qwen-wanx-image
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "qwen-wanx-image":https://skillpi.com/zh/skills/deepskill-bcd62aa8034f84efd2dd76e539b4181aa1e2991cc1938de63a8ccd35c022005a。安装前核对上游来源和版本:https://skillhub.cn/skills/user_46180358/wanx-img。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
使用 WanX(阿里巴巴的文生图模型)生成或编辑图像。
介绍来源: third_party · user_46180358 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: wanx-img
description: Generate or edit images using WanX (Alibaba's text-to-image model)
allowed-tools: Read, BashOverview
This skill provides commands for generating and editing images using the WanX model from Alibaba.
Workflow
- decide user's intent: whether to generate a new image, or edit given images
- decide which version of visual LLM will be used, use the highest version by default, if it's not availiable or rejected by provider, then downgrade to other version
- if user provides images urls/paths, you don't need to read the files but only pass them to scripts
- if user specify size of image in pixel number, pass it to scripts, or if user specify aspect ratio, convert it to image size and then pass to scripts
- run a proper script to generate or edit images with user input prompt, synchronously by default
- output original prompts, extended actual prompts, size of image, and full urls of generated images (don't miss any parameters from the url for example Signature etc. )
Conversion between ratio and image size
The total number of pixels must be between [12801280, 14401440] and the aspect ratio must be between [1:4, 4:1]. For example, 7682700 meets the requirements. The default value is 12801280.
| aspect ratio | image size |
|---|---|
| 1:1 | 1280*1280 |
| 3:4 | 1104*1472 |
| 4:3 | 1472*1104 |
| 9:16 | 960*1696 |
| 16:9 | 1696*960 |
Available Scripts
wanx2.6-text-to-image-v2-demo.py- Generate images from text prompts, using WanX visual model version 2.6wanx2.6-image-edit-demo.py- Edit images with text prompts, optionally with reference/mask images, using WanX visual model version 2.6wanx2.5-text-to-image-v2-demo.py- Generate images from text prompts, using WanX visual model version 2.5wanx2.5-image-edit-demo.py- Edit images with text prompts, optionally with reference/mask images, using WanX visual model version 2.5wanx2.2-text-to-image-v2-demo.py- Generate images from text prompts, using WanX visual model version 2.2
Setting Up
首次使用时,进入目录并安装依赖:
cd ~/.claude/skills/wanx-img
python3 -m venv ~/.pyenv/versions/py312-ai-rag
source ~/.pyenv/versions/py312-ai-rag/bin/activate
pip install dashscope python-dotenv argparse
cp .env.example .env
后续执行python脚本时,先执行source ~/.pyenv/versions/py312-ai-rag/bin/activate,然后再执行脚本。如果python或python3命令找不到合适的packages,则应用~/.pyenv/versions/py312-ai-rag/bin/python来替代作为执行器。
Usage Examples
-
Use custom prompt to generate image
~/.pyenv/versions/py312-ai-rag/bin/python "./scripts/wanx2.6-text-to-image-v2-demo.py" --prompt "一只可爱的猫咪在花园里玩耍. ar 3:4" --size "960*1280" -
Use synchronous call with custom prompt and negative prompt to generate image
~/.pyenv/versions/py312-ai-rag/bin/python "./scripts/wanx2.6-text-to-image-v2-demo.py" -p "美丽的日落风景" -n "人物" --sync -
Use custom prompt and referencing images to edit image
~/.pyenv/versions/py312-ai-rag/bin/python "./scripts/wanx2.6-image-edit-demo.py" --prompt "参考图1的风格和图2的背景,生成番茄炒蛋" --images http://1.img http://2.img -m http://3.img -b http://4.img -
Use synchronous call with custom prompt to edit iamge
~/.pyenv/versions/py312-ai-rag/bin/python "./scripts/wanx2.6-image-edit-demo.py" -p "参考图1的风格和图2的背景,生成番茄炒蛋" --sync
Requirements
- Python 3.12+
- LLM API credentials configured in demo scripts
- DashScope Python SDK 1.25.8+
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供基于阿里云 WanX 模型的文生图与图生图能力,满足内容创作与设计辅助需求
- 支持多版本模型降级机制,提升服务可用性
亮点
- 触发词精准描述核心功能(Generate or edit images using WanX),边界清晰
亮点
- 文档结构完整,包含完整的工作流、参数说明、示例和依赖说明
- 提供清晰的宽高比与像素尺寸转换表格,便于用户理解
待提升项
-
缺少具体错误处理说明 原报告严重程度:轻微
文档未说明 API 调用失败、网络异常等常见错误的处理方式
改进建议:建议补充常见错误码处理逻辑和重试机制说明
-
依赖外部 .env 配置 原报告严重程度:轻微
执行依赖外部 .env 文件配置 API 凭证,但未说明配置项具体含义及获取方式
改进建议:建议说明 .env 文件中各配置项的含义及如何获取 DashScope API 凭证
亮点
- 工具来源明确(阿里云 WanX 模型),参数说明清晰
- 提供完整的环境配置指引和脚本执行示例
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 48 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 80 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- 1.img
- 2.img
- 3.img
- 4.img
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。