New to Claude Skills? Learn how to install them →

heygen-com on GitHub

Captions Overlay

Free

Enhance your video captions with an overlay approach.

Get this skill

Free · Opens the source repo

What Captions Overlay does

The Captions Overlay skill provides a structured approach to embedding captions in video content, emphasizing the importance of overlaying captions rather than reserving space for them. This skill is particularly useful for video editors and content creators who want to ensure that their captions enhance the viewing experience without disrupting the visual composition of the video. By following the overlay doctrine, users can maintain the integrity of their video frames while effectively communicating spoken content through captions.

At the core of this skill is the caption model, which categorizes every spoken phrase into three types: drop, rail, and embed. The drop category includes filler words that are not shown, while the rail represents ordinary spoken content displayed as clean, readable lower-third subtitles. The embed category is reserved for significant moments in the video, allowing for a more dramatic presentation of key phrases. This structured approach ensures that captions are used judiciously, enhancing the viewer's understanding without overwhelming the visual narrative.

The overlay law further reinforces this approach by stating that captions should be composited on top of the video rather than occupying a reserved space. This allows for a full-frame composition centered on the true vertical center of the video. By following these guidelines, users can create visually appealing videos that do not compromise on the clarity of the spoken content. The skill also provides guidance on positioning captions to avoid conflicts with critical text, ensuring legibility and aesthetic quality.

Overall, the Captions Overlay skill is an essential tool for video professionals aiming to create polished and effective video content. It streamlines the captioning process while maintaining the artistic integrity of the video, making it a valuable addition to any video editing workflow.

When to use it

Use this skill when adding captions to talking-head videos or launch content to enhance clarity without compromising visual integrity.

When not to use it

Avoid this skill in scenarios where a traditional subtitle format is required, such as when embedding full transcripts is necessary.

What you can build with it

Talking-Head Videos

When producing talking-head videos, use this skill to overlay captions without disrupting the visual composition.

Launch Content

In launch videos, apply the overlay doctrine to ensure captions enhance the message while keeping the frame intact.

Explainer Videos

For explainer videos, utilize the caption model to highlight key phrases effectively without overwhelming the viewer with text.

How to install Captions Overlay

View source

1. Install with the skills CLI

npx skills add heygen-com/hyperframes/captions-overlay --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by heygen-com

Captions Overlay Doctrine

Overlay doctrine — supplements the upstream embedded-captions skill. 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 (verbatim from embedded-captions):

WhatHow it's shown
dropfiller — um/uh, stutters, self-correctionsnot shown
railthe 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.
embeda promoted peak — the headline beatone 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 Standard mode shape (rail = the verbatim lower-third; embed = the climax composited behind the subject). Cinematic mode 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)

Quoted from the embedded-captions non-negotiables:

  • 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 generated launch composition, when captions are enabled, finalize composites a small, minimal word-by-word caption line 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 (verbatim from constraint #13 of the product-launch-video scene agent):

  • 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 keepout check is retired). Finalize snapshot QA 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 layer composited on top of the whole film, not a band carved out of the layout. So in both the captioning pipeline and the launch-video pipeline, captions are an overlay you add, not a zone you reserve:

  • Keep the full frame; center on true center; let content run to the edges.
  • Make the rail (or the small overlay caption line) carry the verbatim words.
  • Promote a word to an embed only at a genuine peak — scarce, spaced, never two at once.
  • Reserve nothing; judge legibility of captions-over-content visually, not by a keep-out gate.

Frequently asked questions about Captions Overlay

Similar skills