xyq-nest-skill
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "xyq-nest-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8e49886fee7d0a46966aeaeb88e56f55ce375f20f7c78051f97f446527ae12e9. Verify the upstream source and version against https://skillhub.cn/skills/user_0c6d27b9/xyq-nest-skill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Use Xiaoyunque's AI capabilities for integrated creative work, supporting generation and editing of images and videos, and when the user explicitly requests direct output from an image or video model, specifies an image or video model, or directly invokes the CLI, use pippit-tool-cli generate-image / generate-video. Covers scenarios such as text-to-image, text-to-video, image-to-video, start-end-frame video generation, video editing, style transfer, video continuation, video cloning, TVC, promos, music MVs, product ads, storyboards, and educational short videos. Should also trigger when the user mentions Xiaoyunque, xyq, uploads reference images/videos/mp3 or wav audio, or checks generation progress. Short drama generation, continuation, rewriting, character setting, and episodic creation should use xyq-short-drama-skill and are not performed in this skill.
Introduction source: third_party · user_0c6d27b9 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Combining creation through the small sparrow 's AI capability supports the generation and editing of pictures/videos and the use of pippit-tool-cli general-image/generate-video when the user specifically requests that the picture or video model be straight out, specify a picture or video model or directly call CLI. Covers the scenes of essay drawings, Vincent videos, drawing videos, front-end frame videos, video editing, style conversion, video continuation, video reproduction, TVC, promotional films, music MV, product advertisements, spectroscopy and educational short videos. It should also be triggered when users refer to small sparrows, xyq, upload reference maps/video/mp3 or wav audio to see the generation progress. Short play generation, renewal, rewrite, character setting and group creation should be done using xyq-short-drama-skill, not in this skill.
- Inputs and outputs
- python3 {baseDir}/scripts/download_results.py --urls URL1 URL2 URL3 --output-dir ./xyq_output --prefix "artifact" ```
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: xyq-skill
description: 通过小云雀的 AI 能力进行综合创作,支持生成和编辑图片/视频,并在用户明确要求图片或视频模型直出、指定图片或视频模型或直接调用 CLI 时使用 pippit-tool-cli generate-image / generate-video。覆盖文生图、文生视频、图生视频、首尾帧生视频、视频编辑、风格转换、视频续写、视频复刻、TVC、宣传片、音乐 MV、产品广告、分镜和教育短视频等场景。当用户提到小云雀、xyq、上传参考图/视频/mp3或wav音频、查看生成进度时也应触发。短剧生成、续写、改写、人物设定和分集创作应使用 xyq-short-drama-skill,不在本技能中执行。
user-invocable: true
metadata:
{
"openclaw":
{
"emoji": "💬",
"requires":
{
"bins": ["python3"],
"env": ["XYQ_ACCESS_KEY"]
},
"primaryEnv": "XYQ_ACCESS_KEY"
}
}小云雀创作与图片/视频模型直出
通过 小云雀的API 创建会话、发送消息(生图、生视频、编辑视频等)、上传图片/视频/mp3或wav音频文件,并查询会话消息进展。
小云雀是一个 AI 综合创作平台,同时为人类创作者和 Agent 设计。Agent 通过 Skill 入口理解任务、调用模型并自动编排工作流。
平台核心能力:
- 生成:文生图、文生视频、图生视频、视频续写
- 编辑:局部修改、元素替换、镜头调整、风格迁移
- 复杂创作:复刻已有视频风格做 TVC/宣传片、用音乐生成 MV、产品展示片制作
除“图片/视频模型直出”外,创作和编辑需求通过发送自然语言消息来完成,后端 Agent 会自主编排工作流。复杂任务耗时较长,需耐心轮询。
执行路由(必须先判断)
路由 A:图片模型直出
满足任一条件时,必须直接使用 pippit-tool-cli generate-image,不要改走 submit_run.py:
- 用户明确说“图片模型直出”、“直接调图片模型”或明确要求用 CLI 生图。
- 用户指定了具体图片模型(如
seedream_5.0_pro),并希望单次直接生成图片。 - 上游流程已明确将任务标记为图片 direct-model / 模型直出。
执行原则:
- 执行前用
command -v pippit-tool-cli确认 CLI 可用;不可用时报告阻塞,不要悄悄降级到会话 API。 - 真实提交会消耗 credits;如果用户本轮尚未明确确认生成,按“用户确认与反问”规则征得明确确认后再运行。
- 保留用户原始 prompt,不要自行扩写、润色、翻译或增加风格词。
--model必填;用户未提供图片模型时,先询问使用哪个模型。只添加用户已经给出的--ratio、--resolution、--generate-image-count、--image参数,不补默认值。--resolution的使用说明是:仅seedream_5.0_pro支持1K、2K、4K。不要在 skill 侧维护额外 allowlist 或自行改写用户值,实际合法性由服务端决定。generate-image返回后,保存thread_id、run_id,并立即向用户展示web_thread_link。- 每隔 10 秒调用
query-result,直到completed=true。出现error_message时停止并报告;成功时展示并下载images[].output_path。
pippit-tool-cli generate-image \
--prompt "用户原始描述" \
--model IMAGE_MODEL
--ratio RATIO
--resolution RESOLUTION
--generate-image-count COUNT
--image 参考图路径
pippit-tool-cli query-result \
--thread-id THREAD_ID \
--run-id RUN_ID \
--download-dir OUTPUT_DIR
路由 B:视频模型直出
满足任一条件时,必须直接使用 pippit-tool-cli generate-video,不要改走 submit_run.py:
- 用户明确说“视频模型直出”、“直接调模型”或“直接调用 CLI”。
- 用户指定了具体视频模型(如 Seedance),并希望单次直接生成视频。
- 用户明确要求“首尾帧生视频”、指定首帧和尾帧,或要求从第一张图过渡到第二张图。
- 上游流程已明确将任务标记为 direct-model / 模型直出。
执行原则:
- 执行前用
command -v pippit-tool-cli确认 CLI 可用;不可用时报告阻塞,不要悄悄降级到会话 API。 - 真实提交会消耗 credits;如果用户本轮尚未明确确认生成,按“用户确认与反问”规则征得明确确认后再运行。
- 保留用户原始 prompt,不要自行扩写、润色、翻译或增加风格词。
- 只添加用户已经给出的
--model、--duration、--ratio、--resolution、--image、--video、--audio、--generate-type参数;未给参数交给 CLI 默认值。 - 首尾帧请求固定传
--generate-type 1,并按首帧、尾帧顺序传入两次--image,不得重排。用户未明确两张图片的角色或缺少任一张时,先询问用户;不要在 skill 侧维护额外的generate_type枚举 allowlist,其他值原样交给服务端处理。 generate-video返回后,保存thread_id、run_id,并立即向用户展示web_thread_link。- 每隔 10 秒调用
query-result,直到completed=true。出现error_message时停止并报告;成功时展示并下载videos[].output_path。
pippit-tool-cli generate-video --prompt "用户原始描述"
pippit-tool-cli generate-video \
--prompt "用户原始描述" \
--image FIRST_FRAME_PATH \
--image LAST_FRAME_PATH \
--generate-type 1
pippit-tool-cli query-result \
--thread-id THREAD_ID \
--run-id RUN_ID \
--download-dir OUTPUT_DIR
--image 最多重复 9 次,--video 和 --audio 最多各重复 3 次。
路由 C:小云雀后端 Agent 编排
需要意图确认、脚本/分镜拆解、MV、TVC、局部编辑、复杂参考素材编排,或者用户未明确要求模型直出时,继续使用本技能内置的 submit_run.py / get_thread.py 会话工作流;明确的首尾帧请求除外,必须走路由 B。
路由 D:短剧工作流
用户要求短剧生成、续写、改写、剧情扩展、人物设定、分集草稿或短剧会话文件处理时,停止本技能流程并转交 xyq-short-drama-skill,不要用 submit_run.py、generate-image 或 generate-video 假装执行完整短剧流程。
用户确认与反问
后端返回意图确认问题、真实提交前需要 credits 确认,或缺少无法安全推断的必需信息时,暂停执行并向用户提问。
- 优先使用当前 Agent 宿主提供的结构化用户提问或确认工具。
- Codex:准确工具名是
request_user_input。仅在工具已暴露且当前模式允许时调用;不可用时退回普通聊天提问。不要在 Codex 中调用ask_user_question。 - WorkBuddy:准确工具名是
ask_user_question(Ask User Question)。需要用户补充、选择或确认时优先调用;工具未暴露时才退回普通聊天提问。 - Trae 及其他宿主:先查看当前宿主实际暴露的工具,再使用同类结构化提问、确认或表单工具;不要臆造具体工具名。没有同类工具时退回普通聊天提问。
- Codex:准确工具名是
- 涉及 credits、真实生成、外部提交或不可逆操作时,必须等待用户明确答复;不要默认同意或超时后继续。
- 后端已经给出问题或选项时,保持原意传给用户,不要代替用户回答。
- 当前宿主没有结构化提问工具,或当前模式不允许调用时,使用一条简洁的普通聊天问题并暂停。
- 收到回复后,把用户答案原样发回同一
thread_id,获取新的run_id,再继续轮询;不要新开会话。
功能
- 创建会话 / 发消息 - 创建新会话或向已有会话发送一条消息(如「创作一个视频」)
- 查询会话进展 - 根据
thread_id、run_id、after_seq增量拉取该会话的消息列表,用于轮询创作过程的消息和最终产物结果 - 上传文件 - 支持上传
单张图片、单个视频文件或单个mp3/wav音频文件到小云雀资产库,得到文件对应的asset_id(编辑或参考已有图片/视频/音频时需要先上传) - 下载结果 - 将会话中生成的图片/视频批量下载到本地,支持指定输出目录和文件名前缀。
- 图片模型直出 - 使用
pippit-tool-cli generate-image直接调用图片模型,使用query-result查询并下载图片结果。 - 视频模型直出 - 使用
pippit-tool-cli generate-video直接调用视频模型,使用query-result查询并下载视频结果。
前置要求
export XYQ_ACCESS_KEY="your-access-key"
可选:XYQ_OPENAPI_BASE 或 XYQ_BASE_URL,默认 https://xyq.jianying.com。
会话 API 路由无需安装额外依赖,仅使用 Python 标准库。图片/视频模型直出路由额外要求 pippit-tool-cli 在 PATH 中可用。
使用方法
1. 创建会话 / 发送消息
# 创建新会话并发送「生一个动漫视频」
python3 {baseDir}/scripts/submit_run.py --message "生一个动漫视频"
# 向已有会话发送消息
python3 {baseDir}/scripts/submit_run.py --message "再生成一个故事视频" --thread-id THREAD_ID
2. 查询会话进展
# 查询会话消息列表
python3 {baseDir}/scripts/get_thread.py --thread-id THREAD_ID --run-id RUN_ID --after-seq SEQUENCE
run_id由submit_run返回,用于指定查询某次具体运行的结果。
3. 上传文件
- 当用户提供了参考的文件地址时,先进行文件上传,仅支持图片、视频、
.mp3/.wav音频。 - 单次指令执行仅支持单个文件,多个文件可并行调用,单个文件大小必须在200MB以下。
# 上传图片
python3 {baseDir}/scripts/upload_file.py /path/to/image.png
# 上传视频
python3 {baseDir}/scripts/upload_file.py /path/to/video.mp4
# 上传音频
python3 {baseDir}/scripts/upload_file.py /path/to/audio.mp3
4. 下载结果
任务完成后,可以将会话中的所有产物批量下载到本地。
# 指定 URL 列表,指定输出目录,指定文件名前缀(如 artifact_01.png, artifact_02.png ...)进行下载
python3 {baseDir}/scripts/download_results.py --urls URL1 URL2 URL3 --output-dir ./xyq_output --prefix "artifact"
典型工作流
理解这些工作流,才能正确组合上面的脚本完成用户需求。
场景 1:用户要求生成图片或视频(非模型直出)
1. submit_run.py --message "用户的描述" → 拿到 thread_id、run_id 和 web_thread_link
2. **立即**将 `web_thread_link` 展示给用户(如"任务已提交,可在此查看:{web_thread_link}")
3. 每隔 `10` 秒钟调用 get_thread.py --thread-id THREAD_ID --run-id RUN_ID --after-seq SEQUENCE 进行轮询
4. 检查 messages:
- 当任务还在创作中:
- 将过程创作信息展示给用户,继续轮询
- 当任务完成(run 结束):
- 如果涉及意图确认/流程中断(如"请回答以下问题"):
→ 优先调用当前宿主的结构化用户提问工具展示问题,等待用户回复
→ 使用 `thread_id` 重新提交任务(保持同一会话,产生新的 run_id)
→ 回到步骤 2 继续轮询(可能多轮,直到不再意图确认)
- 如果 content 中包含产物 URL:
→ 信息展示 → 下载产物 → 结果展示
5. 自动下载:download_results.py --urls URL1 URL2 URL3 --output-dir 输出目录 --prefix 有意义的前缀
6. 向用户展示:过程中的创作信息,以及下载后的本地文件列表
场景 2:用户明确要求图片模型直出
1. command -v pippit-tool-cli → 确认 CLI 可用
2. 检查图片模型:用户未提供时先询问,不要自行选择
3. pippit-tool-cli generate-image --prompt "用户原始描述" --model IMAGE_MODEL [仅添加用户已给出的其他参数]
4. 拿到 thread_id、run_id 和 web_thread_link,立即展示 web_thread_link
5. 每隔 10 秒调用 query-result --thread-id THREAD_ID --run-id RUN_ID --download-dir OUTPUT_DIR
6. completed=true 后展示并下载 images[].output_path;出现 error_message 时停止并报告
场景 3:用户明确要求视频模型直出(含首尾帧)
1. command -v pippit-tool-cli → 确认 CLI 可用
2. 普通视频模型直出:pippit-tool-cli generate-video --prompt "用户原始描述" [仅添加用户已给出的其他参数]
3. 首尾帧直出:确认两张图片的首帧/尾帧角色,按顺序执行 generate-video --image FIRST_FRAME_PATH --image LAST_FRAME_PATH --generate-type 1
4. 拿到 thread_id、run_id 和 web_thread_link,立即展示 web_thread_link
5. 每隔 10 秒调用 query-result --thread-id THREAD_ID --run-id RUN_ID --download-dir OUTPUT_DIR
6. completed=true 后展示并下载 videos[].output_path;出现 error_message 时停止并报告
场景 4:用户提供图片/视频/音频要求编辑修改或作为参考(如"参考这个视频做一个新的"、"用这首歌做MV")
1. upload_file.py /path/to/video.mp4 → 拿到 asset_id1
2. upload_file.py /path/to/audio.mp3 → 拿到 asset_id2
3. submit_run.py --message "参考这个视频并用这首歌做一个新的" --asset-ids asset_id1 asset_id2 → 拿到 thread_id、run_id、web_thread_link
4. 后续同场景 1 的步骤 2-6
用户给了文件路径 + 编辑指令 = 先上传文件,再把编辑指令和 所有asset_id 一起发送。
场景 5:用户提供参考图/视频/音频要求生成新内容
1. upload_file.py /path/to/ref1.png → 拿到 asset_id1
2. upload_file.py /path/to/ref2.mp4 → 拿到 asset_id2
3. upload_file.py /path/to/ref3.mp3 → 拿到 asset_id3
4. 直到所有文件上传完成,拿到所有 asset_id
5. submit_run.py --message "根据参考图、视频、音频生成xxx" --asset-ids asset_id1 asset_id2 asset_id3, ... → 拿到 thread_id、run_id、web_thread_link
6. 后续同场景 1 的步骤 2-6
场景 6:在已有会话中追加新需求
1. submit_run.py --message "新的描述" --thread-id THREAD_ID → 拿到 thread_id、run_id、web_thread_link
2. 后续同场景 1 的步骤 2-6
轮询策略
- 间隔:每 10 秒查询一次
- 增量拉取:首次用 --after-seq 0,后续根据messages消息列表长度,计算新的 seq 值
- 完成判断:当创作任务完成且messages的content中包含产物结果 URL(图片/视频地址)
- 超时:连续轮询
48 小时仍无结果,告知用户"生成时间较长,可稍后查看",不再继续轮询 - 错误重试:单次查询失败可重试 1 次,连续 3 次失败则停止并告知用户
输出格式
submit_run 返回:
{
"thread_id": "90f05e0c-...",
"run_id": "abc123-...",
"web_thread_link": "https://xyq.jianying.com/..."
}
get_thread 返回:
{
"messages": [
{"id": "1", "role": "user", "content": "生一个动漫视频"},
{"id": "2", "role": "assistant", "content": [
{
"type": "{type}",
"subtype": "{sub_type}",
"data": {...}
}
]},
{"id": "3", "role": "assistant", "content": [
{
"type": "{type}",
"subtype": "{sub_type}",
"data": {..., "url": "{url}"....}
}
]}
]
}
upload_file 返回:
{
"asset_id": "{asset_id}"
}
download_results 返回:
{
"output_dir": "./xyq_output",
"downloaded": ["./xyq_output/01.png", "..."],
"total": 10
}
向用户展示内容
- 任务提交后:立即将
web_thread_link展示给用户,方便用户直接打开浏览器查看任务页面 - 任务在创作中:
- 展示过程中的创作信息等,继续轮询
- 任务完成(run 结束):
- 若涉及意图确认/流程中断(如"请回答以下问题")→ 按“用户确认与反问”规则优先调用结构化提问工具 → 等待用户回复 → 使用同一
thread_id重新提交任务 → 继续轮询(可能多轮) - 若 content 中包含产物 URL:
- 结果地址:来自
get_thread返回的messages中,任务创作完成会包含产物 URL,将产物链接、下载的本地文件等信息告知用户。
- 若涉及意图确认/流程中断(如"请回答以下问题")→ 按“用户确认与反问”规则优先调用结构化提问工具 → 等待用户回复 → 使用同一
核心原则:用户侧不做创作,只做传话
你(用户侧 Agent)的职责是搬运工,不是创作者。会话 API 路由由后端 Agent 负责理解需求、拆解分镜、编排工作流、选模型、写 prompt;图片/视频模型直出路由把用户原始参数传给 CLI。你要做的是:
- 准备素材:会话 API 路由用
upload_file.py把本地文件转为 asset_id;图片/视频模型直出路由把本地路径直接交给 CLI 的--image/--video/--audio参数;首尾帧任务固定传--generate-type 1并保持首帧、尾帧顺序 - 提交任务:先按“执行路由”判断;图片模型直出调用
pippit-tool-cli generate-image,视频模型直出调用pippit-tool-cli generate-video,其余任务把用户的原始描述 + asset_id 原封不动发给submit_run.py - 传话:根据
get_thread.py返回的消息列表,展示过程中的意图询问、创作信息等 - 取件:会话 API 路由用
get_thread.py轮询,图片/视频模型直出路由用query-result轮询 → 检查结果 → 下载产物 → 结果展示给用户
绝对不要做的事:
- 不要替用户扩写、润色、翻译 prompt(用户说"帮我推演分镜",就直接传"帮我推演分镜",不要自己先写个分镜表再逐条发)
- 不要自行编排镜头描述、剧情推演、风格分析
- 不要在消息中添加自己编的 prompt(如"超写实风格,电影级光影,8K分辨率"之类的描述词)
后端 Agent 对模型能力、参数配置、prompt 工程远比用户侧更专业。用户侧越俎代庖只会降低生成质量,换个弱模型更是灾难。
正确示例:
用户说:「根据多张参考图,做个科普故事视频」
用户给了参考图:/path/to/ref1.png, /path/to/ref2.png, /path/to/ref3.png
→ upload_file.py /path/to/ref1.png → 拿到 asset_id1
→ upload_file.py /path/to/ref2.png → 拿到 asset_id2
→ upload_file.py /path/to/ref3.png → 拿到 asset_id3
→ submit_run.py --message "根据参考图、视频生成xxx" --asset-ids asset_id1 asset_id2, asset_id3 → 拿到 web_thread_link,立即展示给用户
→ 轮询 ─┬─ 意图确认 → 用户确认 → 使用 thread_id 重新提交 → 继续轮询
└─ 无意图确认 → 信息展示 → 下载产物 → 结果展示
错误示例:
❌ 用户侧自己先写了个九宫格分镜表(对峙、交锋、危机...)
❌ 然后把自己编的描述发给后端
❌ 或者拆成9次 submit_run 分别发送
注意事项
- 鉴权方式为请求头
Authorization: Bearer <XYQ_ACCESS_KEY> - 创建会话时
message是用户的指令要求,不能为空 - 查询会话时可用 --after-seq 做增量拉取,便于轮询新消息(含 assistant 回复与生图/生视频结果)
- 上传文件仅支持图片(image/)、视频(video/)和
.mp3/.wav音频文件,其他类型会被拒绝,文件大小须在 200MB 以下 - 生成过程中将过程中的创作信息展示给用户;任务完成后给出产物结果(图片/视频)URL链接和下载的本地文件列表。
- 图片/视频模型直出任务必须保留
generate-image/generate-video返回的thread_id/run_id,并用query-result取回最终图片或视频。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 覆盖文生图、文生视频、图生视频、视频编辑、风格转换、TVC、宣传片、MV、产品广告、教育短视频等高频刚需场景
- 支持模型直出与后端 Agent 编排双路径,满足不同用户需求
- 明确区分短剧工作流并正确路由至专用 Skill,职责清晰
Highlights
- 触发词覆盖全面,包括小云雀、xyq、上传参考图/视频/音频、查看生成进度等关键场景
- 边界清晰,明确排除短剧相关功能,避免误触发
Areas to improve
-
description 内容重复 Reported severity: Minor
顶层 frontmatter 和 skill_body 内部均包含完整 description,存在冗余
Recommendation: 建议移除 skill_body 内部的 description 重复内容,保留顶层 frontmatter 中的定义
Highlights
- 文档结构完整,含执行路由、典型工作流、输出格式、核心原则等关键章节
- 提供多个端到端场景示例,便于理解与执行
- frontmatter 完整,包含 name、description、user-invocable 和 metadata
Highlights
- 明确 CLI 可用性检查机制,避免静默降级
- 覆盖 credits 消耗确认、意图反问、轮询策略、错误处理等关键可靠性环节
- 首尾帧任务参数顺序固定,确保执行一致性
- 提供结构化用户提问工具调用规范,提升交互可靠性
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- xyq.jianying.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.