Generates multi-shot product video ads (15-30s) from selling points: storyboard → per-shot generation → ffmpeg assembly with SRT subtitles. For ad creation, short video, or feed material requests.
Ships in ecommerce-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
从卖点到成片:写分镜 → 逐镜生成 → 拼接 → 上字幕。
和 main-image-video 的分工:那个是主图位的 3 秒单镜, 这个是多镜串联的完整广告,15–30 秒,用于投流。
| 能做 | 说明 |
|---|---|
| 分镜脚本 | 卖点 → 镜头序列,含时长、画面、字幕 |
| 逐镜生成 | 每个镜头独立生成,失败只重跑那一个 |
| 自动拼接 | ffmpeg 串成成片,编码不一致时自动重编码 |
| 字幕 | 按分镜时长自动生成 SRT,烧录或封装 |
| 品牌一致 | --brand 让全片色调运镜统一 |
| 不能做 | 说明 |
|---|---|
| 配音配乐 | 脚本给文案,配音配乐请用剪辑软件 |
| 精确卡点 | 生成模型的时长是档位,卡音乐点请后期调 |
| 真人口播 | 用 ugc-testimonial |
15 秒带货视频的通用骨架,四段:
| 段 | 时长 | 干什么 | 画面 |
|---|---|---|---|
| 钩子 | 0–3s | 让人停下来 | 最强视觉冲击:使用场景、痛点对比、意外角度 |
| 卖点 | 3–9s | 说清为什么买 | 2–3 个特写,一个卖点一个镜头 |
| 场景 | 9–13s | 让人代入 | 真实使用场景,模特或环境 |
| 落点 | 13–15s | 给行动理由 | 商品全貌 + 价格/优惠字幕 |
一个镜头只讲一件事。 一个镜头塞两个卖点,两个都记不住。
{
"shots": [
{ "id": "s1", "seconds": 3, "image": "docs/flat-lay/example-output.jpg",
"prompt": "Slow push-in on the model wearing the olive cable-knit sweater, cold morning light, breath visible.",
"caption": "零下十度,只穿了这一件" },
{ "id": "s2", "seconds": 3, "image": "docs/flat-lay/garment-flatlay.jpg",
"prompt": "Macro pan across the cable knit texture, fibers catch the light.",
"caption": "粗棒针织,三层锁温" },
{ "id": "s3", "seconds": 4, "image": "docs/flat-lay/example-output.jpg",
"prompt": "The model walks through a city street, sweater moves naturally with the body.",
"caption": "通勤、约会、周末都能穿" },
{ "id": "s4", "seconds": 3, "image": "docs/flat-lay/garment-flatlay.jpg",
"prompt": "Product laid flat on light wood, slow top-down pull-back, clean and calm.",
"caption": "现在下单立减 50" }
]
}
caption 会按 seconds 累加自动排时间轴生成 SRT,不用手对时间码。
export DLAZY_VIDEO_MODEL=<你账号里可用的视频模型 ID>
node scripts/video.mjs --mode storyboard --task product-video-ad \
--board examples/board.json --outdir out/ad --subtitles --brand examples/brand.yaml
# 先看计划,不计费
node scripts/video.mjs --mode storyboard --task product-video-ad \
--board examples/board.json --outdir out/ad --dry-run
产出:
out/ad/s1.mp4 … s4.mp4 每个镜头
out/ad/captions.srt 字幕
out/ad/concat.txt 拼接清单
out/ad/final.mp4 成片
out/ad/final-sub.mp4 带字幕成片
某个镜头失败不影响其他镜头——重跑那一个,再手动拼一次即可。
--dry-run 看一遍。确认每镜的 prompt 和参考图对得上。每镜遵循:运镜 + 主体 + 环境 + 保真约束
<Camera move>. <Subject action>. <Environment>.
Keep the product identical to the reference image.
No text overlay in the frame, no watermark. Photorealistic, cinematic.
关键:No text overlay in the frame。 字幕是后期加的,
让模型自己画文字必然出乱码。
| 现象 | 原因 | 怎么办 |
|---|---|---|
| 镜头之间商品不一致 | 每镜独立生成,模型各画各的 | 全部镜头传同一张商品参考图,并用 --brand |
| 拼接后画面跳 | 各镜编码参数不同 | 脚本会自动重编码兜底;仍跳就统一各镜的尺寸 |
| 字幕没烧进去 | ffmpeg 没带 libass | 脚本自动降级为软字幕轨,播放器可开关 |
| 没装 ffmpeg | — | 片段照常生成,用输出的 concat.txt 事后补拼 |
| 成片太长 | 分镜时长加起来超了 | 投流素材 15 秒最稳,超过 30 秒完播率明显下滑 |
examples/board.json (opens in a new tab)examples/brand.yaml (opens in a new tab)references/provider-cli.md (opens in a new tab)references/video-backends.md (opens in a new tab)scripts/brand.mjs (opens in a new tab)scripts/gen.mjs (opens in a new tab)scripts/lib/miniyaml.mjs (opens in a new tab)scripts/lib/providers.mjs (opens in a new tab)scripts/lib/tasks.json (opens in a new tab)scripts/video.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/ecommerce-skills:product-video-adfrom ecommerce-skills
npx claudepluginhub dlazy-ai/ecommerce-skills --plugin ecommerce-skills26 skills in this plugin
/batch-image多商品批量生图流水线。商品清单 CSV → 整批统一视觉的商拍图,带并发、重试、断点续跑、成本熔断与挑图联系表。当用户说「批量生图」「一批商品」「跑整个 SKU 表」「几百个商品出图」时使用。/brand-kit店铺品牌视觉锁定。一份 brand.yaml 定义模特、色温、构图、留白与文案语气,所有生图技能读它,保证跨 SKU 视觉统一。当用户说「统一风格」「同一个模特」「店铺调性」「品牌规范」「几百个 SKU 看起来像一家店」时使用。/clothing-detail服装工艺细节放大图。服装图 → 面料纹理、走线、织法的微距特写。当用户说「细节图」「特写」「面料放大」「工艺展示」「近景细节」时使用。/clothing-extraction从任意图提取干净商品平铺图。真人图 / 街拍图 → 白底平铺商品图。当用户说「提取衣服」「扒图」「转平铺」「抠成商品图」「从买家秀提取」时使用。/clothing-grass-planting同款穿搭换模特换场景做种草图。穿搭图 → 社交平台风格的种草图。当用户说「种草图」「小红书风格」「换场景发帖」「达人图」时使用。/creative-scene从零创意生图,也可定向改模特、姿势、搭配。一句描述(可选参考图)→ 图。当用户说「创意生图」「生成一张」「改个姿势」「换模板」「随便来张图」时使用。Other plugins' skills for the same job