Generates ASS/SRT subtitles and text effects (hook titles, keyword highlights, tags, CTA buttons) for short video ads, with safe-zone avoidance for TikTok/抖音 UI and ffmpeg/libass burning.
Ships in ecommerce-video-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.
一份 ASS 同时放四种样式:Sub(底部字幕)· Hook(弹出式大花字)· Tag(左上角贴纸)· CTA(行动号召按钮)。脚本:scripts/make_subs.py。
Part of ecommerce-video-skills
ffmpeg-auto-assemble 自动生成 build/timing.json),或自己写:{"size": [1080, 1920], "cues": [
{"start": 0.10, "end": 2.70, "text": "冰水撑不到中午?", "style": "Hook"},
{"start": 0.15, "end": 2.60, "text": "冰水不到中午就**变温**了?", "style": "Sub"},
{"start": 0.00, "end": 17.0, "text": "AURA 保温杯", "style": "Tag"},
{"start": 14.2, "end": 17.0, "text": "点击下方链接 ›", "style": "CTA"}]}
| 写法 | 效果 |
|---|---|
**关键词** | 关键词换成高亮色(默认暖黄) |
| `早上装满冰块 | 到晚上冰块还在` |
| 拆。python scripts/make_subs.py build/timing.json -o build/subs.ass --srt build/subs.srtffmpeg -i in.mp4 -vf "ass=build/subs.ass" -c:a copy out.mp4.srt。MarginV 默认 26% 高度python skills/platform-spec-export/scripts/export_platform.py video.mp4 --safe-preview safe.png(在仓库根目录运行) 叠加检查编辑 make_subs.py 里的 header():字号按画面高度比例计算(9:16 / 1:1 / 16:9 都适用),颜色为 ASS &HAABBGGRR。字体自动探测(Noto Sans CJK SC / 思源黑体 / 苹方 / 微软雅黑),也可 --font "思源黑体 CN"。
把这段口播稿拆成短视频字幕:每条 ≤14 字,超过用 | 分段;每条最多 1 个关键词用 **加粗**;
另外为钩子镜头和最强卖点各写 1 条 ≤10 字的花字。输出 JSON cues(start/end 先留空)。口播稿:{…}
| 问题 | 修复 |
|---|---|
| 中文显示成方框 | 安装 CJK 字体(apt install fonts-noto-cjk)或 --font 指定已安装字体 |
No such filter: 'ass' | ffmpeg 未编译 libass,换官方/发行版完整版 ffmpeg |
| 路径含冒号报错(Windows) | 用相对路径或把 C: 写成 C\:;脚本已自动转义 |
| 字幕和声音不同步 | 用真实配音时长生成 timing(assemble.py 已自动处理) |
| 字幕太小 | 调 header() 中 sub = round(h * 0.037) 的系数 |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ecommerce-video-skills:subtitles-and-text-effectsfrom ecommerce-video-skills
npx claudepluginhub xianyu110/ecommerce-video-skills --plugin ecommerce-video-skills13 skills in this plugin
/ai-voiceover-edge-ttsAI 口播配音:用免费的 edge-tts(微软 Edge 在线语音)为带货短视频逐句生成配音,自动去首尾静音、统计每句时长、缓存复用,可选音色/语速/音调,并给出口播稿改写规则。Use when the user needs a voice-over, 配音, 口播, 旁白, TTS, text-to-speech, AI 主播声音, or wants to turn a script into audio for 抖音 / TikTok / 视频号 videos./cover-title-ab封面与标题 A/B:为带货短视频生成多套封面(自动挑选清晰帧或用干净素材图 + 不同标题与版式)和多组标题/文案,导出 3:4 / 9:16 封面文件和对比图,并给出 A/B 测试方法与记录表。Use when the user wants a video cover, 封面, 首图, thumbnail, 标题, 文案, title variants, A/B test covers for 抖音 / 视频号 / 小红书 / TikTok, or wants to improve click-through rate./ffmpeg-auto-assembleffmpeg 自动拼接成片:一条命令把 storyboard.json(商品图/视频片段 + 口播稿)渲染成带配音、字幕花字、转场、BGM 自动闪避、响度标准化的 9:16 MP4,纯本地运行。Use when the user wants to assemble/edit/render a product video, 自动剪辑, 一键成片, 拼接视频, 图片转视频, Ken Burns, add BGM/subtitles/voice-over with ffmpeg, or batch-produce short videos without an editor.Other plugins' skills for the same job