subtitles-and-text-effects
字幕与花字:为带货短视频生成 ASS/SRT 字幕与花字(大标题弹出、关键词高亮、贴纸标签、行动号召按钮),自动避开平台底部/右侧 UI 安全区,并用 ffmpeg/libass 烧录。Use when the user wants subtitles, captions, 字幕, 花字, 大字报, keyword…
Skill by xianyu110
Chalk Labs
Need help deploying subtitles-and-text-effects?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/xianyu110-subtitles-and-text-effects
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/subtitles-and-text-effects
What's inside
- Skill name
subtitles-and-text-effects- Description
- 字幕与花字:为带货短视频生成 ASS/SRT 字幕与花字(大标题弹出、关键词高亮、贴纸标签、行动号召按钮),自动避开平台底部/右侧 UI 安全区,并用 ffmpeg/libass 烧录。Use when the user wants subtitles, captions, 字幕, 花字, 大字报, keyword highlight, burned-in captions, SRT/ASS files, or text overlays that don't get covered by TikTok/抖音 UI.
- License
- MIT
- Instructions
- 69 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- make_subs.py · scripts/
SKILL.md (first lines)
# 字幕与花字 · Subtitles & Text Effects
一份 ASS 同时放四种样式:**Sub**(底部字幕)· **Hook**(弹出式大花字)· **Tag**(左上角贴纸)· **CTA**(行动号召按钮)。脚本:`scripts/make_subs.py`。
> Part of [ecommerce-video-skills](https://github.com/xianyu110/ecommerce-video-skills)
## 输入 Inputs
- 时间轴 JSON(`ffmpeg-auto-assemble` 自动生成 `build/timing.json`),或自己写:
```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"}]}
```
## 标记语法 Markup
| 写法 | 效果 |
|---|---|
| `**关键词**` | 关键词换成高亮色(默认暖黄) |
| `早上装满冰块|到晚上冰块还在` | Sub:拆成两段按字数分配时间依次出现;其他样式:换行 |
## 步骤 Steps
1. 每条字幕 ≤ 14 个汉字(1080 宽 ≈ 一行),超过用 `|` 拆。
2. 每条只高亮 1 个关键词;花字 ≤ 10 字,只在钩子和关键卖点用。
3. 生成:`python scripts/make_subs.py build/timing.json -o build/subs.ass --srt build/subs.srt`
4. 烧录:`ffmpeg -i in.mp4 -vf "ass=build/subs.ass" -c:a copy out.mp4`
5. 平台若支持上传字幕文件(如 YouTube / 部分广告平台),同时交付 `.srt`。
## 安全区 Safe zones(经验值,以真机为准)
- 底部约 20%:标题文案、商品卡、购物车 → 字幕 `MarginV` 默认 26% 高度
- 右侧约 15%:点赞/评论/分享按钮 → 左右边距 70px,重要信息别贴右边
- 顶部约 8%:状态栏/搜索 → Hook 放在 13% 高度处
- 用 `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"`。
## 提示词模板 Prompt template
```text
把这段口播稿拆成短视频字幕:每条 ≤14 字,超过用 | 分段;每条最多 1 个关键词用 **加粗**;
另外为钩子镜头和最强卖点各写 1 条 ≤10 字的花字。输出 JSON cues(start/end 先留空)。口播稿:{…}
```
## 检查清单 Checklist
- [ ] 字幕不压商品主体、不进底部 20% / 右侧按钮区
- [ ] 每屏最多 2 行;关键词高亮 ≤ 1 个
- [ ] 错别字/品牌拼写检查;数字与配音一致
- [ ] 中文字体已安装(否则会出现方框)
## 常见问题与修复 Failure fixes
| 问题 | 修复 |
|---|---|
| 中文显示成方框 | 安装 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)` 的系数 |From xianyu110/ecommerce-video-skills, MIT.
More from xianyu110/ecommerce-video-skills
- 0.679score
cover-title-ab
xianyu110
封面与标题 A/B:为带货短视频生成多套封面(自动挑选清晰帧或用干净素材图 + 不同标题与版式)和多组标题/文案,导出 3:4 / 9:16 封面文件和对比图,并给出 A/B 测试方法与记录表。Use when the user wants a video cover, 封面, 首图, thumbnail, 标题…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
ffmpeg-auto-assemble
xianyu110
ffmpeg 自动拼接成片:一条命令把 storyboard.json(商品图/视频片段 + 口播稿)渲染成带配音、字幕花字、转场、BGM 自动闪避、响度标准化的 9:16 MP4,纯本地运行。Use when the user wants to assemble/edit/render a product…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
image-to-video-shots
xianyu110
主图转视频:把一张或几张商品主图/白底图/场景图,写成可直接喂给图生视频模型的镜头提示词(运镜、主体动作、光线、时长、负面约束),并保证商品不变形。Use when the user has product images and wants a product video, 主图视频, 图生视频…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
live-stream-clips
xianyu110
直播切片:从电商直播录屏中找出高光片段(按时间戳 / 按字幕关键词 / 按停顿自动提议),批量导出 9:16 竖屏切片,自动模糊填充横屏画面、烧录标题与字幕、响度标准化,并给切片写标题与开头钩子。Use when the user has a livestream recording and wants 直播切片…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
platform-spec-export
xianyu110
TikTok Shop / 抖音 / 视频号 / 小红书 / 淘宝主图视频 / Amazon 规格导出:把一条母版视频一键转成各平台推荐画幅与编码(9:16、3:4、1:1、16:9,模糊填充或智能裁切),输出规格报告,并可叠加 UI 安全区预览。Use when the user asks for export…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
unboxing-comparison-review
xianyu110
开箱 / 对比评测模板:生成电商开箱视频与 A/B 对比评测的结构、口播稿、拍摄清单与分镜(含公平对比规则、测试设计、缺点与适合人群),可直接转成 storyboard.json 渲染。Use when the user wants an unboxing video, 开箱, 测评, 评测, 横评, 对比…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
ai-voiceover-edge-tts
xianyu110
AI 口播配音:用免费的 edge-tts(微软 Edge 在线语音)为带货短视频逐句生成配音,自动去首尾静音、统计每句时长、缓存复用,可选音色/语速/音调,并给出口播稿改写规则。Use when the user needs a voice-over, 配音, 口播, 旁白, TTS…
SkillAFreshness: A★ 97Claude Code +9 - 0.675score
multilingual-dubbing
xianyu110
多语言本地化配音:把中文带货视频本地化为英语、日语、韩语、东南亚语(印尼/泰/越/马来/菲律宾)、西语等版本——本地化改写口播(不是直译)、选对 edge-tts 音色、生成对应字幕与花字,并用同一份 storyboard 一键渲染多语言成片。Use when the user wants dubbing…
SkillAFreshness: A★ 97Claude Code +9 - 0.674score
hook-3s-script
xianyu110
3 秒钩子脚本:为电商短视频写前 3 秒开场(台词 + 画面 + 花字),按痛点/反差/结果先行/提问/数字/场景代入等钩子类型一次给出多版,并做合规自检。Use when the user asks for a hook, 开头, 黄金 3 秒, 前三秒, opening line…
SkillAFreshness: A★ 97Claude Code +9 - 0.674score
viral-remake
xianyu110
爆款拆解复刻:把抖音/TikTok 爆款带货视频(链接、转写或口述结构)拆成 8 维结构与 5-beat 节拍,再映射到你的商品,输出拆解表 + 3 个复刻角度 + 可渲染 storyboard.json。Use when the user says 爆款, 拆解, 复刻, 对标, 仿拍, viral…
SkillAFreshness: A★ 97Claude Code +9 - 0.674score
selling-point-storyboard
xianyu110
卖点分镜表:把商品卖点拆成 15–60 秒带货短视频的逐镜分镜表(时间码、画面、台词、字幕、花字、素材来源、运镜),并直接输出可渲染的 storyboard.json。Use when the user wants a storyboard, 分镜, 分镜脚本, shot list, 带货视频脚本, video…
SkillAFreshness: A★ 97Claude Code +9 - 0.674score
multi-model-shot-prompts
xianyu110
多模型镜头提示词适配:把一份分镜表改写成适合不同视频生成模型的提示词(中/英、首帧/首尾帧/纯文生视频、运镜词表、负面约束),模型中立、不编造价格或参数。Use when the user wants the same shot list adapted for Seedance, 可灵 Kling, Veo…
SkillAFreshness: A★ 97Claude Code +9
Signals
- Stars
- 97
- Forks
- 17
- Open issues
- 0
- Last commit (this folder)
- Oct 5, 2026 (28 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from xianyu110
- 0.784score
sale-banner
xianyu110
Design promotional sale banners and store hero images for Taobao/Tmall (双11, 618, 年货节), Shopee/Lazada (9.9, 11.11, 12.12), TikTok Shop, Amazon Prime Day/Black…
SkillAFreshness: A★ 114Claude Code +9 - 0.784score
batch-background-swap
xianyu110
Batch-replace backgrounds or recolour SKU variants across a folder of product photos (white background, brand colour, seasonal scene, colour variants) while…
SkillAFreshness: A★ 114Claude Code +9 - 0.784score
ecommerce-listing-suite
xianyu110
Orchestrate a complete ecommerce image set for one product: confirm product facts, plan the gallery per platform (Amazon 7-image set, Taobao 5 main + detail…
SkillAFreshness: A★ 114Claude Code +9 - 0.784score
amazon-white-background
xianyu110
Create an Amazon-compliant white-background main image (pure #FFFFFF background, product fills ≥85% of the frame, no text, props or watermark) from a product…
SkillAFreshness: A★ 114Claude Code +9 - 0.784score
model-try-on
xianyu110
Dress a model in a real garment or accessory from a flat-lay, hanger or mannequin photo (on-model / virtual try-on) while preserving fabric, colour, fit…
SkillAFreshness: A★ 114Claude Code +9 - 0.784score
selling-point-infographic
xianyu110
Design selling-point / feature infographic images (one benefit per image, icons, callout lines, short headlines, comparison or spec rows) for Amazon secondary…
SkillAFreshness: A★ 114Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get subtitles-and-text-effects running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
subtitles-and-text-effects skill. Agent Mart. https://agentmart.dev/skills/xianyu110-subtitles-and-text-effects (last updated 2026-10-24)