qwencloud-video-generation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgent setup: If your agent doesn't auto-load skills (e.g. Claude Code), see agent-compatibility.md once per session.
Agent设置: 如果你的Agent不会自动加载技能(例如Claude Code),每个会话首次使用时请查看agent-compatibility.md。
Qwen Video Generation
Qwen视频生成
Generate videos using Wan models. All tasks are asynchronous — submit, then poll until
completion.
This skill is part of qwencloud/qwencloud-ai.
⚠️ Critical Parameter Differences by Mode:
- kf2v (First+Last Frame): Duration is fixed at 5 seconds — other values will fail. Output is silent only.
- Resolution parameter varies: t2v/r2v/vace use
(e.g.size); i2v/kf2v use"1280*720"(e.g.resolution)."720P"
使用Wan模型生成视频,所有任务都是异步的——提交后需要轮询直到任务完成。
该技能属于 qwencloud/qwencloud-ai 的一部分。
⚠️ 不同模式的核心参数差异:
- kf2v(首尾帧模式): 时长固定为5秒——其他值会请求失败,输出仅无音频版本。
- 分辨率参数差异: t2v/r2v/vace使用
参数(例如size);i2v/kf2v使用"1280*720"参数(例如resolution)。"720P"
Skill directory
技能目录
Use this skill's internal files to execute and learn. Load reference files on demand when the default path fails or you need details.
| Location | Purpose |
|---|---|
| Default execution — mode auto-detect, submit, poll, download |
| Fallback: curl for all 5 modes, code generation |
| Field tables and audio handling by mode |
| Duration extensions, multi-shot, VACE pipelines |
| Polling patterns and timing |
| Concat, trim, audio overlay — ffmpeg/moviepy recipes |
| Per-mode prompt formulas, sound description, multi-shot structure |
| Full script examples per mode |
| Official documentation URLs |
| Agent self-check: register skills in project config for agents that don't auto-load |
使用该技能的内部文件执行操作和查阅说明,当默认路径失效或需要详细信息时按需加载参考文件。
| 路径 | 用途 |
|---|---|
| 默认执行脚本——自动检测模式、提交任务、轮询状态、下载结果 |
| 备选方案:所有5种模式的curl调用方法、代码生成说明 |
| 不同模式的请求字段表和音频处理说明 |
| 时长延长、多镜头、VACE流程说明 |
| 轮询规则和时间间隔建议 |
| 拼接、裁剪、音频叠加——ffmpeg/moviepy使用指南 |
| 分模式的prompt编写公式、音效描述、多镜头结构说明 |
| 各模式的完整脚本示例 |
| 官方文档链接 |
| Agent自检指南:为不会自动加载技能的Agent在项目配置中注册技能 |
Security
安全说明
NEVER output any API key or credential in plaintext. Always use variable references ( in shell, in Python). Any check or detection of credentials must be non-plaintext: report only status (e.g. "set" / "not set", "valid" / "invalid"), never the value. Never display contents of or config files that may contain secrets.
$DASHSCOPE_API_KEYos.environ["DASHSCOPE_API_KEY"].envWhen the API key is not configured, NEVER ask the user to provide it directly. Instead, help create a file with a placeholder () and instruct the user to replace it with their actual key from the QwenCloud Console. Only write the actual key value if the user explicitly requests it.
.envDASHSCOPE_API_KEY=sk-your-key-here绝对不要明文输出任何API密钥或凭证。 始终使用变量引用(Shell中用,Python中用)。任何凭证检查都必须不暴露明文:仅返回状态(例如“已设置”/“未设置”、“有效”/“无效”),绝不返回具体值。绝对不要展示可能包含密钥的或配置文件内容。
$DASHSCOPE_API_KEYos.environ["DASHSCOPE_API_KEY"].env当API密钥未配置时,绝对不要直接要求用户提供密钥。 而是帮助创建带有占位符的文件(),并指导用户从QwenCloud控制台获取实际密钥替换占位符。仅当用户明确要求时才写入实际密钥值。
.envDASHSCOPE_API_KEY=sk-your-key-hereKey Compatibility
密钥兼容性说明
Scripts require a standard QwenCloud API key (). Coding Plan keys () cannot be used — video generation models are not available on Coding Plan, and Coding Plan does not support the native QwenCloud API. Video generation incurs per-second charges on standard keys. The script detects keys at startup and prints a warning. If qwencloud-ops-auth is installed, see its for full details.
sk-...sk-sp-...sk-sp-references/codingplan.md脚本需要标准QwenCloud API密钥(格式)。编程计划密钥(格式)无法使用——编程计划不支持视频生成模型,也不兼容原生QwenCloud API。视频生成按秒在标准密钥上扣费,脚本启动时会自动检测格式的密钥并输出警告。如果安装了qwencloud-ops-auth,可查看其获取完整说明。
sk-...sk-sp-...sk-sp-references/codingplan.mdMode Selection Guide
模式选择指南
| User Want | Mode | Key Field |
|---|---|---|
| Generate video from text description only | t2v | |
| Animate a single image | i2v | |
| Transition between two images (⚠️ 5s fixed, silent only) | kf2v | |
| Role-play: make characters act a new script | r2v | |
| Video editing: multi-image ref, repainting, local edit, extend, outpaint | vace | |
| 用户需求 | 模式 | 核心字段 |
|---|---|---|
| 仅通过文本描述生成视频 | t2v | 仅需 |
| 让单张图片动起来 | i2v | |
| 在两张图片之间生成过渡动画(⚠️ 固定5秒,仅无音频) | kf2v | |
| 角色扮演:让指定角色按照新脚本表演 | r2v | |
| 视频编辑:多图参考、重绘、局部编辑、时长延长、外绘 | vace | |
Model Selection
模型选择
- User specified a model → use directly.
- Consult the qwencloud-model-selector skill when model choice depends on capability, scenario, or pricing.
- No signal, clear task → per-mode defaults: t2v → , i2v →
wan2.6-t2v, kf2v →wan2.6-i2v-flash, r2v →wan2.2-kf2v-flash, vace →wan2.6-r2v-flash.wan2.1-vace-plus
- 用户指定了模型 → 直接使用。
- 当模型选择需要参考能力、场景或定价时 → 调用qwencloud-model-selector技能查询。
- 无特殊要求、任务明确 → 各模式默认模型:t2v → ,i2v →
wan2.6-t2v,kf2v →wan2.6-i2v-flash,r2v →wan2.2-kf2v-flash,vace →wan2.6-r2v-flash。wan2.1-vace-plus
Models
模型列表
t2v (Text-to-Video)
t2v(文生视频)
| Model | Features |
|---|---|
| Audio, multi-shot, 2–15s, 720P/1080P |
| Audio, 5s/10s, 480P/720P/1080P |
| Silent, 5s, 480P/1080P |
| 模型 | 特性 |
|---|---|
| 支持音频、多镜头、2–15秒、720P/1080P |
| 支持音频、5秒/10秒、480P/720P/1080P |
| 无音频、5秒、480P/1080P |
i2v (Image-to-Video)
i2v(图生视频)
| Model | Features |
|---|---|
| Audio/silent, multi-shot, 2–15s, 720P/1080P |
| Audio, multi-shot, 2–15s, 720P/1080P |
| Audio, 5s/10s, 480P/720P/1080P |
| 模型 | 特性 |
|---|---|
| 支持音频/无音频、多镜头、2–15秒、720P/1080P |
| 支持音频、多镜头、2–15秒、720P/1080P |
| 支持音频、5秒/10秒、480P/720P/1080P |
kf2v / r2v / vace
kf2v / r2v / vace
| Model | Features |
|---|---|
| Silent, 5s, 480P/720P/1080P |
| Audio, single/multi character, 2–10s, 720P/1080P |
| Audio/silent, multi-character, 2–10s, 720P/1080P |
| Multi-image ref, repainting, local edit, ≤5s, 720P |
⚠️ Important: The model list above is a point-in-time snapshot and may be outdated. Model availability changes frequently. Always check the official model list for the authoritative, up-to-date catalog before making model decisions.
| 模型 | 特性 |
|---|---|
| 无音频、5秒、480P/720P/1080P |
| 支持音频、单/多角色、2–10秒、720P/1080P |
| 支持音频/无音频、多角色、2–10秒、720P/1080P |
| 多图参考、重绘、局部编辑、≤5秒、720P |
⚠️ 重要提示: 上述模型列表是当前时间点的快照,可能已过时。模型可用性会频繁更新,在选择模型前请务必查阅官方模型列表获取权威、最新的目录。
Execution
执行说明
⚠️ Multiple artifacts: When generating multiple files in a single session, you MUST append a numeric suffix to each filename (e.g.,out_1.mp4) to prevent overwrites.out_2.mp4
⚠️ 多文件生成: 单会话生成多个文件时,必须为每个文件名添加数字后缀(例如、out_1.mp4)避免覆盖。out_2.mp4
Prerequisites
前置要求
- API Key: Check that (or
DASHSCOPE_API_KEY) is set using a non-plaintext check only (e.g. in shell:QWEN_API_KEY; report only "set" or "not set", never the key value). If not set: run the * qwencloud-ops-auth* skill if available; otherwise guide the user to obtain a key from QwenCloud Console and set it via[ -n "$DASHSCOPE_API_KEY" ]file (.envin project root or current directory) or environment variable. The script searches forecho 'DASHSCOPE_API_KEY=sk-your-key-here' >> .envin the current working directory and the project root. Skills may be installed independently — do not assume qwencloud-ops-auth is present..env - Python 3.9+ (stdlib only, no pip install needed)
- For media merging (concat, trim, audio overlay): see merge-media.md for ffmpeg/moviepy recipes suited to the user's environment
- API密钥: 仅通过非明文方式检查(或
DASHSCOPE_API_KEY)是否已设置(例如Shell中用QWEN_API_KEY;仅返回“已设置”或“未设置”,绝不返回密钥值)。如果未设置:如果有qwencloud-ops-auth技能则运行该技能;否则指导用户从QwenCloud控制台获取密钥,并通过[ -n "$DASHSCOPE_API_KEY" ]文件设置(在项目根目录或当前目录执行.env)或环境变量设置。脚本会在当前工作目录和项目根目录搜索echo 'DASHSCOPE_API_KEY=sk-your-key-here' >> .env文件。技能可能独立安装,不要默认qwencloud-ops-auth已存在。.env - Python 3.9+(仅需标准库,无需pip安装依赖)
- 媒体合并需求(拼接、裁剪、音频叠加):查看merge-media.md获取适配用户环境的ffmpeg/moviepy使用指南
Environment Check
环境检查
Before first execution, verify Python is available:
bash
python3 --version # must be 3.9+If is not found, try or . If Python is unavailable or below 3.9, skip to Path 2 (curl) in execution-guide.md.
python3python --versionpy -3 --version首次执行前,验证Python是否可用:
bash
python3 --version # 必须为3.9+如果找不到,尝试或。如果Python不可用或版本低于3.9,跳转至execution-guide.md中的路径2(curl)。
python3python --versionpy -3 --versionDefault: Run Script
默认方式:运行脚本
Script path: Scripts are in the subdirectory of this skill's directory (the directory containing this SKILL.md). You MUST first locate this skill's installation directory, then ALWAYS use the full absolute path to execute scripts. Do NOT assume scripts are in the current working directory. Do NOT use to switch directories before execution.
scripts/cdExecution note: Run all scripts in the foreground — wait for stdout; do not background.
Discovery: Run first to see all available arguments.
python3 <this-skill-dir>/scripts/video.py --helpbash
python3 <this-skill-dir>/scripts/video.py \
--request '{"prompt":"A detective in a rainy city at night","size":"1280*720","duration":5}' \
--print-response| Argument | Description |
|---|---|
| JSON request body |
| Load request from file |
| Override auto-detected mode (t2v/i2v/kf2v/r2v/vace) |
| Override model |
| Save video and response JSON |
| Print response JSON to stdout |
| Submit and exit (print task_id) |
| Operate on existing task |
| Seconds between polls (default: 15) |
| Max wait seconds (default: 600) |
脚本路径: 脚本位于该技能目录(包含本SKILL.md的目录)的子目录下。必须先定位该技能的安装目录,始终使用完整绝对路径执行脚本。不要默认脚本在当前工作目录,执行前不要使用切换目录。
scripts/cd执行注意: 所有脚本在前台运行——等待标准输出,不要后台运行。
参数查询: 先执行查看所有可用参数。
python3 <该技能目录>/scripts/video.py --helpbash
python3 <该技能目录>/scripts/video.py \
--request '{"prompt":"A detective in a rainy city at night","size":"1280*720","duration":5}' \
--print-response| 参数 | 说明 |
|---|---|
| JSON请求体 |
| 从文件加载请求体 |
| 覆盖自动检测的模式(t2v/i2v/kf2v/r2v/vace) |
| 覆盖默认模型 |
| 保存视频和响应JSON的目录 |
| 把响应JSON打印到标准输出 |
| 仅提交任务并退出(返回task_id) |
| 操作已存在的任务 |
| 轮询间隔秒数(默认:15) |
| 最大等待秒数(默认:600) |
Verify Result
结果验证
- Exit code + response has
0→ submission successoutput.task_id - Poll reaches → generation complete
task_status: SUCCEEDED - Non-zero exit, HTTP error, or status → fail
FAILED - Post-execution check: Verify the output video file exists and has non-zero size ()
ls -la <output_dir> - MANDATORY — stderr signal check: After confirming the result, scan the command's stderr output for or
[ACTION_REQUIRED]. If either signal is present, you MUST follow the instructions in Update Check below before responding to the user.[UPDATE_AVAILABLE]
- 退出码+ 响应包含
0→ 提交成功output.task_id - 轮询到→ 生成完成
task_status: SUCCEEDED - 非零退出码、HTTP错误、或状态 → 执行失败
FAILED - 执行后检查: 验证输出视频文件存在且大小非零()
ls -la <output_dir> - 必填——错误输出信号检查: 确认结果后,扫描命令的标准错误输出是否包含或
[ACTION_REQUIRED]。如果存在任一信号,必须先按照下方更新检查(执行后必填)的说明操作,再响应用户。[UPDATE_AVAILABLE]
On Failure
故障处理
If the script fails, match the error output against the diagnostic table below to determine the resolution. If no match, read execution-guide.md for alternative paths: curl commands (Path 2 — all 5 modes), code generation (Path 3), and autonomous resolution (Path 5).
If Python is not available at all → skip directly to Path 2 (curl) in execution-guide.md.
| Error Pattern | Diagnosis | Resolution |
|---|---|---|
| Python not on PATH | Try |
| Script version check failed | Upgrade Python to 3.9+ |
| Python < 3.9 | Upgrade Python to 3.9+ |
| Missing API key | Obtain key from QwenCloud Console; add to |
| Invalid or mismatched key | Run qwencloud-ops-auth (non-plaintext check only); verify key is valid |
| SSL cert issue (proxy/corporate) | macOS: run |
| Network unreachable | Check internet; set |
| Rate limited | Wait and retry with backoff |
| Server error | Retry with backoff |
| moviepy not installed | |
| Can't write output | Use |
如果脚本运行失败,对照下方诊断表匹配错误输出确定解决方案。如果没有匹配项,查看execution-guide.md获取备选方案:curl命令(路径2——支持所有5种模式)、代码生成(路径3)、自主解决(路径5)。
如果完全没有Python环境 → 直接跳转至execution-guide.md中的路径2(curl)。
| 错误特征 | 诊断 | 解决方案 |
|---|---|---|
| Python不在PATH中 | 尝试 |
| 脚本版本检查失败 | 升级Python到3.9+ |
类型语法附近的 | Python版本<3.9 | 升级Python到3.9+ |
| 缺失API密钥 | 从QwenCloud控制台获取密钥;添加到 |
| 密钥无效或不匹配 | 运行qwencloud-ops-auth(仅做非明文检查);验证密钥有效性 |
| SSL证书问题(代理/企业网络) | macOS:运行 |
| 网络不可达 | 检查网络;如果使用代理则设置 |
| 触发限流 | 等待后指数退避重试 |
| 服务端错误 | 等待后指数退避重试 |
| moviepy未安装 | |
| 无输出目录写入权限 | 使用 |
Request Fields Summary
请求字段汇总
All modes require . See request-fields.md for full field tables per mode.
prompt所有模式都需要字段。查看request-fields.md获取各模式的完整字段表。
prompt⚠️ Resolution Parameter by Mode (Critical)
⚠️ 不同模式的分辨率参数(核心注意项)
| Mode | Parameter | Format | Example |
|---|---|---|---|
| t2v | | | |
| r2v | | | |
| vace | | | |
| i2v | | | |
| kf2v | | | |
Using the wrong parameter name will cause the API call to fail.
| 模式 | 参数名 | 格式 | 示例 |
|---|---|---|---|
| t2v | | | |
| r2v | | | |
| vace | | | |
| i2v | | | |
| kf2v | | | |
使用错误的参数名会导致API调用失败。
Mode-Specific Required Fields
各模式必填特殊字段
- i2v needs /
img_url. kf2v needsreference_image+first_frame_url. r2v needslast_frame_url. vace needsreference_urls.function
- i2v需要/
img_url。kf2v需要reference_image+first_frame_url。r2v需要last_frame_url。vace需要reference_urls。function
Cost Estimation
费用估算
🚨 NEVER guess or fabricate any price figure. Always direct the user to the official pricing page for exact rates.
Cost is billed per second of generated video. Price varies by model and resolution. For the latest rates, check
the official pricing page.
| Model | 720P (USD) | 1080P (USD) |
|---|---|---|
| wan2.6-t2v | per-second billing | per-second billing |
| wan2.6-i2v-flash | per-second billing | per-second billing |
| wan2.6-r2v-flash | per-second billing | per-second billing |
Quick example: wan2.6-t2v 5s 720P — check
the official pricing page for current per-second
rates. Some models may offer a limited free quota — verify availability in the
user's QwenCloud console before assuming any call
is free.
🚨 绝对不要猜测或编造任何价格数据。 始终引导用户到官方定价页面查询准确费率。
费用按生成视频的秒数扣除,价格根据模型和分辨率不同有所差异。最新费率请查看官方定价页面。
| 模型 | 720P(美元) | 1080P(美元) |
|---|---|---|
| wan2.6-t2v | 按秒计费 | 按秒计费 |
| wan2.6-i2v-flash | 按秒计费 | 按秒计费 |
| wan2.6-r2v-flash | 按秒计费 | 按秒计费 |
快速示例:wan2.6-t2v 5秒 720P——查看官方定价页面获取当前每秒费率。部分模型可能提供有限免费额度——在假设调用免费前请先在用户的QwenCloud控制台验证额度可用性。
Local File Handling
本地文件处理
When the user provides local file paths (images, videos, audio), pass them directly to the script. The script automatically uploads local files to DashScope temporary storage ( URL, 48h TTL) and injects the header. No manual upload step is needed.
oss://X-DashScope-OssResourceResolve: enableProduction: Default temp storage has 48h TTL and 100 QPS upload limit — not suitable for production, high-concurrency, or load-testing. To use your own OSS bucket, setandQWEN_TMP_OSS_BUCKETinQWEN_TMP_OSS_REGION, install.env, and provide credentials viapip install alibabacloud-oss-v2/QWEN_TMP_OSS_AK_IDor the standardQWEN_TMP_OSS_AK_SECRET/OSS_ACCESS_KEY_ID. Use a RAM user with least-privilege (OSS_ACCESS_KEY_SECRET+oss:PutObjecton target bucket only). If qwencloud-ops-auth is installed, see itsoss:GetObjectfor the full setup guide.references/custom-oss.md
当用户提供本地文件路径(图片、视频、音频)时,直接传递给脚本即可。脚本会自动上传本地文件到DashScope临时存储(链接,48小时有效期),并自动注入请求头,无需手动上传。
oss://X-DashScope-OssResourceResolve: enable生产环境: 默认临时存储有48小时有效期和100 QPS上传上限——不适合生产环境、高并发或压力测试场景。如果要使用自己的OSS存储桶,在中设置.env和QWEN_TMP_OSS_BUCKET,安装QWEN_TMP_OSS_REGION,并通过pip install alibabacloud-oss-v2/QWEN_TMP_OSS_AK_ID或标准QWEN_TMP_OSS_AK_SECRET/OSS_ACCESS_KEY_ID提供凭证。使用仅拥有目标桶最小权限(OSS_ACCESS_KEY_SECRET+oss:PutObject)的RAM用户。如果安装了qwencloud-ops-auth,查看其oss:GetObject获取完整配置指南。references/custom-oss.md
Cross-Skill Chaining
跨技能调用
When using output from another skill as input (e.g., image-gen → i2v, audio-tts → audio overlay):
- Pass the URL directly (e.g., ) — do NOT download and re-pass as local path
"img_url": "<image_url from image-gen>" - The script detects URL prefixes (,
https://) and passes them through without re-uploadoss:// - Use from the response only for user preview or non-API operations
local_path
When passing this skill's output to another skill (e.g., vace edit, vision analyze):
- Pass from the response — do NOT download and re-pass as local path
video_url
| Scenario | Use |
|---|---|
| Feed to another skill | |
| Show to user / local playback | |
当使用其他技能的输出作为输入时(例如图片生成→i2v、语音合成→音频叠加):
- 直接传递URL(例如)——不要下载后再作为本地路径传递
"img_url": "<图片生成技能返回的image_url>" - 脚本会自动识别URL前缀(、
https://),无需重新上传oss:// - 仅在用户预览或非API操作时使用响应中的
local_path
当把该技能的输出传递给其他技能时(例如VACE编辑、视觉分析):
- 传递响应中的——不要下载后再作为本地路径传递
video_url
| 场景 | 使用字段 |
|---|---|
| 作为其他技能的输入 | |
| 展示给用户/本地播放 | |
Important Notes
重要注意事项
- Async only: All video APIs require header.
X-DashScope-Async: enable - kf2v: Uses a different API endpoint. Duration fixed at 5s, silent only.
- r2v: Use /
character1/... in prompt. Up to 5 references (max 3 videos).character2 - vace: Must specify . Silent only, output ≤5s.
function - Multi-shot: Set AND
shot_type: "multi".prompt_extend: true - Video URL expires in 24h — the script auto-downloads to dir. When chaining to another skill (e.g., vace edit), pass
--outputdirectly — do NOT re-download.video_url - For advanced workflows → see workflows.md.
- 仅支持异步: 所有视频API都需要请求头。
X-DashScope-Async: enable - kf2v: 使用独立的API端点,时长固定为5秒,仅无音频版本。
- r2v: 在prompt中使用/
character1/...指代角色,最多支持5个参考素材(最多3个视频)。character2 - vace: 必须指定,仅无音频版本,输出时长**≤5秒**。
function - 多镜头: 同时设置和
shot_type: "multi"。prompt_extend: true - 视频URL24小时后过期——脚本会自动下载到指定目录。当传递给其他技能时(例如VACE编辑),直接传递
--output——不要重新下载。video_url - 高级工作流→查看workflows.md。
Error Handling
错误处理
| Error | Cause | Action |
|---|---|---|
| Invalid or missing API key | Run qwencloud-ops-auth if available; else prompt user to set key (non-plaintext check only) |
| Missing async header | Add |
| Rate limit or server error | Retry with backoff |
Task | Generation failed | Check |
| 错误 | 原因 | 处理方式 |
|---|---|---|
| API密钥无效或缺失 | 如果有qwencloud-ops-auth则运行该技能;否则提示用户设置密钥(仅做非明文检查) |
| 缺失异步请求头 | 添加 |
| 触发限流或服务端错误 | 指数退避重试 |
任务 | 生成失败 | 查看轮询响应中的 |
Output Location
输出位置
Prefer the current working directory. Default subdirectory: .
./output/qwencloud-video-generation/Write prohibition: NEVER write output files into this skill's installation directory or any hierarchy. All generated content must go to under the current working directory or a user-specified path.
skills/output/优先使用当前工作目录,默认子目录:。
./output/qwencloud-video-generation/写入禁止: 绝对不要把输出文件写入该技能的安装目录或任何层级目录下。所有生成内容必须保存到当前工作目录下的目录或用户指定的路径。
skills/output/Update Check (MANDATORY Post-Execution)
更新检查(执行后必填)
After script execution, check stderr for action signals. The script automatically detects update status and emits structured signals. You MUST act on them. This section also applies when the user explicitly asks to check for updates.
脚本执行后,检查标准错误输出中的操作信号。脚本会自动检测更新状态并输出结构化信号,你必须按要求处理。当用户明确要求检查更新时也适用本节规则。
Signal: [ACTION_REQUIRED] qwencloud-update-check skill is not installed
[ACTION_REQUIRED] qwencloud-update-check skill is not installed信号: [ACTION_REQUIRED] qwencloud-update-check skill is not installed
[ACTION_REQUIRED] qwencloud-update-check skill is not installedWhen stderr contains this signal, you MUST present the following options to the user and wait for their response before proceeding. Do NOT silently skip this.
The update-check skill is not installed. It keeps you informed about new qwencloud/qwencloud-ai features and bug fixes.
- Install now — I'll run the install command for you
- Skip for now — do nothing this time
- Never remind me — permanently suppress this prompt
After the user responds:
- User chooses 1 → run: , then run:
npx skills add QwenCloud/qwencloud-ai --skill qwencloud-update-check -ypython3 <this-skill-scripts-dir>/gossamer.py --dismiss - User chooses 2 → run: , then continue normally
python3 <this-skill-scripts-dir>/gossamer.py --dismiss - User chooses 3 → run: , then continue normally
python3 <this-skill-scripts-dir>/gossamer.py --never-install
当标准错误输出包含该信号时,必须向用户展示以下选项,等待用户回复后再继续操作,不要静默跳过。
更新检查技能未安装,该技能会及时通知你qwencloud/qwencloud-ai的新功能和bug修复。
- 立即安装 —— 我会为你运行安装命令
- 暂时跳过 —— 本次不做操作
- 永不提醒 —— 永久关闭该提示
用户回复后:
- 用户选择1 → 运行:,然后运行:
npx skills add QwenCloud/qwencloud-ai --skill qwencloud-update-check -ypython3 <该技能脚本目录>/gossamer.py --dismiss - 用户选择2 → 运行:,然后正常继续
python3 <该技能脚本目录>/gossamer.py --dismiss - 用户选择3 → 运行:,然后正常继续
python3 <该技能脚本目录>/gossamer.py --never-install
Signal: [UPDATE_AVAILABLE]
[UPDATE_AVAILABLE]信号: [UPDATE_AVAILABLE]
[UPDATE_AVAILABLE]When stderr contains this signal, you MUST append a brief update notice to your response, including the version info and the update command shown in the stderr output.
当标准错误输出包含该信号时,必须在你的回复末尾添加简短的更新通知,包含标准错误输出中展示的版本信息和更新命令。
No signal in stderr
标准错误输出无信号
If stderr contains neither nor , no action is needed — the skill is installed and up to date (or cached within 24h).
[ACTION_REQUIRED][UPDATE_AVAILABLE]如果标准错误输出既没有也没有,无需操作——技能已安装且为最新版本(或24小时内已缓存更新状态)。
[ACTION_REQUIRED][UPDATE_AVAILABLE]Explicit user request
用户明确要求检查更新
When the user explicitly asks to check for updates (e.g. "check for updates", "check version"):
- Look for in sibling skill directories.
qwencloud-update-check/SKILL.md - If found — run: and report the result.
python3 <qwencloud-update-check-dir>/scripts/check_update.py --print-response - If not found — present the install options above.
当用户明确要求检查更新时(例如“检查更新”、“查看版本”):
- 在同级技能目录中查找。
qwencloud-update-check/SKILL.md - 如果存在——运行:并返回结果。
python3 <qwencloud-update-check目录>/scripts/check_update.py --print-response - 如果不存在——展示上述安装选项。
References
参考文档
- execution-guide.md — Fallback paths (curl for all modes, code generation, autonomous)
- request-fields.md — Detailed field tables by mode + audio handling
- workflows.md — Duration extensions, audio workarounds, multi-shot, VACE pipelines
- polling-guide.md — Polling patterns and timing recommendations
- merge-media.md — Guide for generating merge/trim/audio-overlay code
- examples.md — Full script execution examples for all modes
- sources.md — Official documentation URLs
- execution-guide.md —— 备选执行路径(所有模式的curl调用、代码生成、自主解决)
- request-fields.md —— 分模式的详细字段表+音频处理说明
- workflows.md —— 时长延长、音频方案、多镜头、VACE流程
- polling-guide.md —— 轮询规则和时间间隔建议
- merge-media.md —— 媒体合并/裁剪/音频叠加代码生成指南
- examples.md —— 所有模式的完整脚本执行示例
- sources.md —— 官方文档链接