captions-overlay
它能做什么
这项技能为 HyperFrames 视频中的字幕设定规则。适合希望字幕清晰、又不干扰画面的视频制作者。
适用场景
- ✓当你为真人出镜或产品发布视频添加字幕时。
- ✓当你需要决定某句口播应删除还是保留在屏幕上时。
- ✓当你希望字幕叠放在视频上方,而不改变画面位置时。
技能链接
https://github.com/heygen-com/hyperframes/blob/main/.agents/skills/captions-overlay/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的发布视频添加字幕,但保持画面居中,并删去口头禅。”
每周 5 个新技能,1 分钟读完。
工作原理
它把每句口播归入三类之一:删除、放在字幕条上显示,或作为少量的重点内嵌显示。字幕叠加在视频上,因此画面保持完整。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Captions Overlay Doctrine
Overlay doctrine — supplements the upstream
/hyperframesskill'sreferences/captions.md. Applies ON TOP of it; do not expect it folded into the upstream skill.
Two ideas combine here. First, the caption model — every spoken phrase is drop,
rail, or embed, and embed is the scarce earned peak, not the default. Second, the
overlay law — a caption line is composited ON TOP of the film as an overlay; it is
NOT a reserved zone, so you never shift content up or leave a dead band to "make room"
for it. The two reinforce each other: because captions ride as an overlay (the verbatim
rail in front, the occasional embed behind the subject), the composition keeps its full
frame and centers on the true vertical center.
The caption model — drop / rail / embed
Every spoken phrase is one of three things:
| What | How it's shown | |
|---|---|---|
| drop | filler — um/uh, stutters, self-corrections | not shown |
| rail | the default — ordinary spoken content (verbatim) | clean lower-third subtitle, in front, readable. A punch word can get an inline emphasis highlight (accent colour / active-word pop) — it stays on the rail. |
| embed | a promoted peak — the headline beat | one big word composited behind the subject (matte occlusion), designed entrance + exit |
The rail carries most of the text; embed is the scarce, earned peak — ≤1 per beat, never two adjacent/co-visible, spaced ≥ a beat apart. A short clip → usually one embed; a long explainer → ~one per section. Embedding every word is the common mistake.
This is the default shape (rail = the verbatim lower-third; embed = the climax composited behind the subject). A pure-cinematic treatment drops the rail and makes everything embed-style — use it only for pure-cinematic asks, never for explainer / voiceover where the words must read.
Rail-first, embed-scarce (the load-bearing rules)
- Rail-first for talking-head / explainer. Don't embed the whole transcript — most text is the rail; embed only peaks. Embedding everything is the default mistake.
- Embed is scarce + spaced. ≤1 embed per sentence/beat, never two adjacent or
co-visible, ≥ a beat apart, at most one
apex. climax = per-beat peak, not "the single payoff of the entire clip."
The overlay law — captions are NOT a reserved band
In a composed video with captions enabled, the caption line is a small, minimal word-by-word line composited as an overlay layer ON TOP of the whole film (a single text line, bottom-centered, roughly the bottom ~5-8% of canvas height). It is an overlay, not a reserved zone:
- Center the composition on the TRUE vertical center — y = H / 2 (landscape 540, portrait 960). Do not shift content up to "make room" for captions; a composition centered at 0.42 × H with a dead lower band is the bug, not the fix.
- Content may extend to the canvas bottom. Full-bleed subjects, rails, and backgrounds all welcome.
- One soft courtesy rule: avoid parking critical small readable text (a URL line, a legal line, a sub-caption) exactly in the bottom ~80px center span where the caption line sits — the overlay would fight it. Large imagery / cards / ambient content under the captions is fine; the caption skin is designed to read over content.
- There is no machine keep-out gate (the old
captions.mjs keepoutcheck is retired). Snapshot review judges caption-over-content legibility visually.
When captions are disabled: identical positioning freedom — the overlay simply doesn't exist.
Why these two rules are one doctrine
The model says the rail rides in front and an embed is a rare word composited behind the subject — both are layers added to footage that ships untouched. The overlay law says the caption line is a laye
常见问题
删除、字幕条和内嵌各是什么意思?
删除用于去掉口头禅。字幕条以稳定的一行显示文字。内嵌是放在主体后面的少量重点。
为了给字幕留出空间,它会把画面向上移动吗?
不会。字幕是叠加层,视频保持完整的画面。
它能与 HyperFrames 一起使用吗?
可以。它是对 HyperFrames 字幕指南的补充,并在其之上应用。
详情
作者的原始描述
Overlay doctrine for captions in HyperFrames videos — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Applies ON TOP of the
repo: heygen-com/hyperframes
热度
- GitHub 星标
- 78k
- 排名
- #1727
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
cut-the-curve
78k教你的智能体使用 HyperFrames 视频中的转场效果,例如流畅的场景切换、推进式穿越和错落的文字入场。
motion-doctrine
78k为你的智能体提供核心规则,使多场景视频像一个连续的镜头移动,而不是一张张分开的幻灯片。
oversized-cursor
78k教你的智能体在视频中加入一个大号的动画指针,引导观众的视线,并让点击看起来像是引发了下一步动作。
seam-craft
78k说明如何让 HyperFrames 视频中的场景转场看起来干净,切换时没有白色闪烁或透明的凹陷。