- Skill ID
- heygen-com/hyperframes/embedded-captions
- Publisher
- heygen-com
- Repository
- hyperframes
- Installs
- 3,860
- Files
- 97
- Synced
- Sep 16, 2026
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
heygen-com/hyperframes/embedded-captionsInstalls these files- .gitignore
- assets/fonts/char-widths.json
- assets/strokefonts/HersheyScript1.svg
- assets/strokefonts/HersheyScriptMed.svg
- CATALOG.md
- dna/chrome.json
- dna/cream.json
- dna/documentary.json
- dna/editorial.json
- dna/glitch.json
- dna/ink.json
- dna/keynote.json
- dna/loud.json
- dna/neon.json
- dna/README.md
- dna/velocity.json
- modes/cinematic/_archive/champion/spec.md
- modes/cinematic/_archive/champion/template.html
- modes/cinematic/_archive/memory-wall/spec.md
- modes/cinematic/_archive/memory-wall/template.html
- modes/cinematic/_archive/portrait-header/spec.md
- modes/cinematic/_archive/portrait-header/template.html
- modes/cinematic/cinematic-cream/spec.md
- modes/cinematic/cinematic-cream/template.html
- modes/cinematic/engine.html
- modes/cinematic/README.md
- modes/standard/_anatomy.md
- modes/standard/_motion.md
- modes/standard/fonts/build-fonts-css.cjs
- references/aesthetic-principles.md
- references/anti-patterns.md
- references/bespoke-vs-presets.md
- references/caption-grouping.md
- references/composition-craft.md
- references/direction-catalog.md
- references/example-renders/champion.html
- references/example-renders/memory-wall.html
- references/failure-modes.md
- references/layout-heuristics.md
- references/motion-vocabulary.md
- references/rail.md
- references/reference-bar.md
- references/scene-types.md
- references/typographic-moves.md
- references/typography-presets.md
- scripts/audio-envelope.cjs
- scripts/check-occlusion.cjs
- scripts/check-overflow.cjs
- scripts/check-rail-climax.cjs
- scripts/check-timing.cjs
- scripts/fill-timings.cjs
- scripts/fit-fonts.cjs
- scripts/fixtures/heroless/theme.json
- scripts/fixtures/heroless/transcript.json
- scripts/gen-stroke-path.py
- scripts/inject-fonts.cjs
- scripts/lib-dna.cjs
- scripts/make-cinematic.cjs
- scripts/make-composition.cjs
- scripts/make-theme.cjs
- scripts/make-theme.test.mjs
- scripts/matte.cjs
- scripts/measure-layout.cjs
- scripts/prepare.sh
- scripts/preview-frames.cjs
- scripts/preview-frames.test.mjs
- scripts/render-and-composite.sh
- scripts/render-theme.sh
- scripts/safe-zones.cjs
- scripts/transcribe.cjs
- SKILL.md
- themes/anchor.json
- themes/arcade.json
- themes/aurora.json
- themes/biolume.json
- themes/brush.json
- themes/chalkboard.json
- themes/dossier.json
- themes/graffiti.json
- themes/hologram.json
- themes/inkwater.json
- themes/laser.json
- themes/lastpage.json
- themes/neonsign.json
- themes/ordnance.json
- themes/papercut.json
- themes/popup.json
- themes/ransom.json
- themes/README.md
- themes/scoreboard.json
- themes/spectrum.json
- themes/stardust.json
- themes/stomp.json
- themes/terminal.json
- themes/thunder.json
- themes/transit.json
- themes/vhs.json
What this skill tells the agent
First, keep this skill fresh — confirm with the user before running: npx hyperframes skills update embedded-captions. A fast no-op when everything is current; otherwise it refreshes this skill plus the core domain skills it depends on before you rely on them.Embedded Captions
One catalog, picked up front (CATALOG.md — 35 identities; the engines behind it are backend detail). Standard (default) builds a clean verbatim rail (lower-third subtitle carrying most text) + an embed climax composited _into_ the scene behind the subject at the peak. Cinematic is pure embed — no rail, every caption composited behind the subject (hero typography, accumulation, occlusion as the effect). Theme is a complete themed constitution — body paradigm × hero setpiece × front fx × plate reaction, composed from registries (themes/README.md): ordnance terminal neonsign stardust stomp. Most explainer / voiceover is Standard; embed is the scarce, earned peak — embedding every word is the common mistake; Theme is for VFX-grade asks ("炸", "特效", "像 AE 做的").
Operational flow (TL;DR)
Routed through /hyperframes, the intent layer confirms only the input (which clip) and announces the identity pick as a deferred ask — the shortlist needs the probed clip, so it stays at step 1 below; the layer's run-shape questions don't apply (the footage is untouched, there is no storyboard to review). A BRIEF.md, when present, carries the confirmed input and any user notes — read it first.
The craft prose below is long; the pipeline itself is short — and everything deterministic is computed or compiled, never hand-written:
- Decision gate (refuse bad clips) → pick ONE identity from [CATALOG.md](CATALOG.md) (35 identities; engine/compiler derived by lookup — never surface a mode/category question)
hyperframes init(skip it if the project dir already exists with the video inside —matte.cjs/transcribe.cjsadopt any video in the dir as source.mp4) → `bash scripts/prepare.sh <project>` (matte ∥ transcribe ∥ audio-envelope in parallel, then safe-zones v2 with scene palette/optics/lighting — one command, nothing forgotten)- author a small JSON of creative choices (read
safe-zones.jsonfirst): Cinematic →plan.json→fill-timings.cjs→fit-fonts.cjs→make-composition.cjs; Theme →theme.json→make-theme.cjs(rail/panel/poem/takeover paradigms;anchoris the quiet rail default) - Visual QA:
node scripts/preview-frames.cjs <project>→ faithful composite previews in ~2s/frame (no render). Check § Visual QA before paying for a render. render-and-composite.sh→ gates (timing / occlusion+hero / overflow / hand-off) →final.mp4
Load-bearing rules people miss:
- rail (default) + embed (promotion).
drop(filler, not shown) /rail(verbatim lower-third subtitle, in front, carries most text) /embed(a peak word composited behind the subject). Standard mode does both, embedding only the peak(s). See § Caption model. - The video is delivered UNTOUCHED (Standard/Cinematic; Theme mode's PLATE budget is the one sanctioned exception — register-gated reaction beats (charge-dim, punch, shake, grain) defined per theme DNA and applied AFTER the matte composite so subject+text+plate move as one frame) — captions are the only thing added; the matte just lets the subject occlude the embed track. Never grade/recolor/scanline the footage.
- Two rulebooks: rail → [references/rail.md](references/rail.md) (thin), embed craft → [references/composition-craft.md](references/composition-craft.md) (rich, embed-only). Skim by need.
Caption model — 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. Scarcity is per beat/block, not per clip: ≤1 hero per block (thought), never two co-visible, ≥ a beat of air between hero windows (the compiler warns under 0.6s). A short clip → usually 1–2; a long explainer → ~one per section. Among multiple heroes, the largest authored one is the APEX (it alone gets the full lockup embed + width-fit raise); smaller ones are MINOR peaks that ride their column as oversized emphasis lines (fg, damped motion) — not every beat needs the matte showcase, which is exactly what keeps the apex an event. Embedding every word is still the common mistake.
Rail-surface identities build exactly this (rail = rail.html, embed = the climax in index.html). Column-flow identities drop the rail and make everything embed-style — recommend them only for mood-over-verbatim asks, never for explainer / voiceover where the words must read (CATALOG.md encodes this per identity).
Step 0 — pick ONE identity from the CATALOG
One front-end, three engines behind. The user picks an IDENTITY from CATALOG.md (35 entries: 10 classic + 25 themed); the engine, compiler and authoring file are derived by lookup from the catalog row. Never surface "Standard vs Cinematic vs Theme" as a question — those are backend names (a product has one UX even with several engines). The catalog encodes everything routing needs: reading surface, voice, recommend-for, scene needs, adjacency notes for the genuinely-close pairs (loud↔ordnance, neon↔neonsign, cream↔stardust).
The identity pick is a preference gate (../hyperframes/references/brief-contract.md § 1): in autonomous mode ("surprise me" / "decide for me"), pick from your shortlist yourself and state the one-line why instead of asking.
Procedure: probe the clip → shortlist 2–3 identities from the catalog → recommend ONE with a one-line why → the user picks (autonomous mode: you pick, stating the why) → author that identity's file. Identities are engine-locked (no cross combos; opening one is a validation event — see dna/README.md).
Always present your recommendation and let the user pick before you author. Don't silently default.
(The full identity table lives in CATALOG.md — single source of truth for routing. The engine docs below describe each backend's authoring contract.)
CATALOG.md is the whole answer space here: this workflow does not search the HyperFrames component registry. The composition workflows run npx hyperframes catalog before authoring a named look; this one must not. Its engines are locked compilers that consume cinematic.json / theme.json and emit the composition themselves, so a registry item — the caption-* blocks included — has nothing to mount into. A registry block styles text on a designed canvas; this skill burns captions into somebody's footage through a matte. When no identity fits the ask, say so and pick the nearest, rather than reaching outside the catalog.
