Skip to content

Write HTML. Render video. Built for agents.

fix(skills): stop embedded-captions shipping author-only paths; dedupe slideshow (#3225)

James Russod3a4e9037096
diff --git a/scripts/check-no-main-deletions.mjs b/scripts/check-no-main-deletions.mjs
index c04e496516..4c21c323e3 100644
--- a/scripts/check-no-main-deletions.mjs
+++ b/scripts/check-no-main-deletions.mjs
@@ -41,6 +41,14 @@ export const ALLOWED_DELETIONS = new Map([
"packages/studio/src/components/StudioFeedbackBar.tsx",
"replaced by components/feedback/StudioFeedbackCard.tsx; too little shared content for git to pair as a rename",
],
+ [
+ "skills/embedded-captions/references/test-set.md",
+ "#3219: orphaned in the shipped skill (zero inbound references across all 140 files) and its corpus lives only at ~/Downloads/heygen_relevant_videos/, so it was neither reachable nor runnable on any install",
+ ],
+ [
+ "skills/embedded-captions/themes/PORTING.md",
+ "#3219: same, zero inbound references; a theme-authoring procedure whose inputs (cap_fx3 demos, frame corpora, CONTRACT.md) are not distributed with the skill",
+ ],
]);
export function parseBase(argv, fallback = "origin/main") {
diff --git a/skills-manifest.json b/skills-manifest.json
index b1ab9a4742..a8c0565d69 100644
--- a/skills-manifest.json
+++ b/skills-manifest.json
@@ -2,8 +2,8 @@
"source": "heygen-com/hyperframes",
"skills": {
"embedded-captions": {
- "hash": "e8c2c3b6dfd04b39",
- "files": 140
+ "hash": "14e79d53c24e3945",
+ "files": 138
},
"faceless-explainer": {
"hash": "c70b904aa68cf7e5",
@@ -70,7 +70,7 @@
"files": 70
},
"slideshow": {
- "hash": "71368acf61074198",
+ "hash": "6a24a84b0c1a75f9",
"files": 2
},
"talking-head-recut": {
diff --git a/skills/embedded-captions/SKILL.md b/skills/embedded-captions/SKILL.md
index 0465617a7a..07c994524e 100644
--- a/skills/embedded-captions/SKILL.md
+++ b/skills/embedded-captions/SKILL.md
@@ -174,7 +174,7 @@ Pick by `safe-zones.json` (`heroAnchor.bandLuma`, `palette.temperature`) × cont
The engine generates the **hero three-act** from the DNA (no authoring needed): co-visible captions dim (setup) → per-letter entrance with amplitude ∝ spoken loudness (impact) → breathe + glow until exit (afterglow).
-(Legacy: `plan.template:"cinematic-cream"` maps to `dna:"cream"` automatically. The retired 54-template library lives outside the skill at `~/Downloads/embedded-captions-archive/standard-templates-54/`; `_motion.md` remains in-skill as the motion-verb reference catalog.)
+(Legacy: `plan.template:"cinematic-cream"` maps to `dna:"cream"` automatically. The retired 54-template library is archived outside this repo and is not distributed with the skill; `_motion.md` remains in-skill as the motion-verb reference catalog.)
---
diff --git a/skills/embedded-captions/dna/README.md b/skills/embedded-captions/dna/README.md
index b65ef1efc0..af5cdc74dd 100644
--- a/skills/embedded-captions/dna/README.md
+++ b/skills/embedded-captions/dna/README.md
@@ -13,8 +13,8 @@ shallow presets — every render is already fitted to its footage.
Every classic DNA's **home is Cinematic (column)** — that is where all ten were
built and validated. (Standard/rail mode was retired 2026-06-12; the verbatim-rail
-need is served by the `anchor` theme. The old rail combos live in
-`~/Downloads/embedded-captions-archive/`.)
+need is served by the `anchor` theme. The old rail combos are archived outside
+this repo and are not distributed with the skill.)
## The ten
diff --git a/skills/embedded-captions/references/test-set.md b/skills/embedded-captions/references/test-set.md
deleted file mode 100644
index 35825a34fd..0000000000
--- a/skills/embedded-captions/references/test-set.md
+++ /dev/null
@@ -1,66 +0,0 @@
-# Test set — diverse scenes for template stability regression
-
-Canonical test corpus for verifying templates don't regress when we add
-features. Pick cases that stress different parts of the pipeline — blend
-mode, matte quality, baked-in graphics, luminance extremes, motion.
-
-## The test set
-
-All in `~/Downloads/heygen_relevant_videos/` (720×1290, ~8s, 9:16). Add
-landscape + 1:1 as we grow.
-
-| Case | Scene | Stress test |
-| --------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
-| `Sunset_Stroll` | Outdoor selfie at sunset, palm trees, boardwalk | **Bright backdrop** → default `screen` blend fails; needs dark text + `normal` blend |
-| `Nature_Vibe` | Forest golden-hour + **baked timestamp** bottom-left + watermark top-right | Baked graphics avoidance; warm-mid luminance |
-| `Gym_Grind` | Dark gym + dark tank top + phone-mirror selfie | **Low luminance** → matte difficulty; screen blend natural fit |
-| `AI_Insights` | Podcast studio + neon "THE DIALOG" sign + window view | **Competing graphics in BG** (sign, city skyline); mid-tone |
-| `Kitchen_Buzz` | Warm kitchen, apron, smiling | Baseline friendly case |
-| `Tech_Trends` | Clean white studio + mic | **Max bright backdrop** — needs dark text or opaque BG |
-| `Street_Talk` | Walking city street, handheld | Handheld motion + bright outdoor |
-| `Outdoor_Hype` | Forest + **Instagram watermark** top + sun flare | Baked graphic + bright + motion |
-
-## Usage
-
-```bash
-for case in Sunset_Stroll Nature_Vibe Gym_Grind AI_Insights; do
- bash scripts/render-and-composite.sh /tmp/ts-${case}
-done
-```
-
-## Regression checklist
-
-For every new template or significant change, re-run the test set and
-verify:
-
-- [ ] Sunset_Stroll: captions legible on bright sunset (Cinematic cream/screen washes out → use **Standard mode**, opaque rail)
-- [ ] Nature_Vibe: captions don't collide with baked timestamp (bottom-left) or watermark
-- [ ] Gym_Grind: captions visible on dark gym despite dark subject
-- [ ] AI_Insights: captions don't fight with "THE DIALOG" neon sign
-- [ ] Tech_Trends: dark text + `normal` blend on pure white studio
-- [ ] Each case: 0.5s+ per caption, no wrap-into-subject-head-zone
-- [ ] Each case: FG layer for 9:16 portraits where subject fills frame
-
-## Bugs we've fixed via this test set
-
-- **2026-04-23**: Hardcoded `text-shadow: warm-glow + dark-drop` in all
- templates ignored `cap_color` — dark text got overwhelmed by bright
- halo on bright backgrounds. Fix: `TEXT_SHADOW` placeholder with
- luminance-adaptive default.
-- **2026-04-23**: Hardcoded `filter: brightness(1.12)` lightened dark
- text, shifting it toward neutral. Fix: `TEXT_FILTER` placeholder that
- drops brightness boost for dark colors.
-- **2026-04-23**: `BLEND_MODE` and `CAP_COLOR` hardcoded in new
- templates — plan.json overrides ignored. Fix: placeholders added to
- all 4 templates.
-
-## Expansion plan
-
-Still need to add:
-
-- 1 × 16:9 landscape (from any heygen_relevant via letterboxing, or new source)
-- 1 × 1:1 square (if available)
-- 1 × multi-speaker (speaker diarization test)
-- 1 × foreign language (CJK rendering test)
-- 1 × shot-cut (PySceneDetect-required case)
-- 1 × product/B-roll (no talking head — refuse gate)
diff --git a/skills/embedded-captions/themes/PORTING.md b/skills/embedded-captions/themes/PORTING.md
deleted file mode 100644
index 81713f7316..0000000000
--- a/skills/embedded-captions/themes/PORTING.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# PORTING — turning a cap_fx3 demo into a first-class theme DNA
-
-One theme at a time. The demo is the spec; the engine is the law.
-
-## Inputs
-
-- Demo: `~/Downloads/cap_fx3/<tNN_name>/` — index.html (bg: scene-reaction + apex
- setpiece), rail.html (fg alpha: body + furniture + front fx), postfx.json,
- final_fx.mp4 + strip.png (ground truth of how it should look).
-- Engine: `scripts/make-theme.cjs` — read the header + the existing paradigms
- (rail/panel/poem/takeover) and setpieces (detonation/decode/drawon/assembly/
-
-## Process
-
-1. DECOMPOSE the demo: body paradigm? body entrance/exit verbs? hero setpiece?
- front fx? plate budget? linkages? Map each piece to an existing registry
- entry or mark it NEW.
-2. EXTEND the engine for the NEW pieces only — port the demo's GSAP logic into
- generator functions, parameterized (sizes, colors, counts, seeds become DNA
- params). Registries stay generic: paradigms/setpieces are the unit of code,
- the DNA json is the unit of identity. Match the file's existing code style.
- `node --check scripts/make-theme.cjs` after every edit.
-3. WRITE `themes/<name>.json` (drop the tNN\_ prefix). voice/when/register/fonts/
- palette/body/hero/fx/plate/linkages — follow anchor.json + ordnance.json shape.
-4. VERIFY on the rooftop fixture:
- - scaffold: `mkdir ~/Downloads/port_<name>` + symlink source.mp4 / frames_fg /
- frames_bg + cp matte.fps transcript.json safe-zones.json from
- `~/Downloads/cap_multi/rooftop/` (frames_bg from `~/Downloads/cap_fx/_frames_bg`).
- - theme.json: same lines/hero the demo used (read its rail.html data).
- - `node scripts/make-theme.cjs <dir>` → `preview-frames.cjs <dir> <4 key times>`
- → READ the previews; compare against the demo's strip.png. Iterate ≤3 rounds.
- - full render: `bash scripts/render-theme.sh <dir>` → extract a 12-frame strip
- around the apex → view → compare to the demo strip. Small deviations OK,
- note them; the THEME must read identically at a glance.
-5. REGRESSION: recompile one prior theme project (e.g. `~/Downloads/cap_anchor`,
- plus the previous port in this batch) — make-theme must still compile and a
- 2-frame preview must look unchanged.
-6. REGISTER: add the identity row to CATALOG.md (voice/when/needs, author →
- make-theme) and a line in themes/README.md if it has one.
-
-## Hard rules
-
-- The CONTRACT.md disciplines apply verbatim (determinism, physics doctrine,
- body stability, apex-owns-frame, equal-length keyframes, fonts whitelist,
- ≤ DUR scheduling): `~/Downloads/cap_fx3/CONTRACT.md`.
-- Never edit existing setpieces'/paradigms' behavior unless fixing a bug —
- existing themes must not change appearance.
-- Do NOT commit; the orchestrator reviews and commits per batch.
diff --git a/skills/slideshow/SKILL.md b/skills/slideshow/SKILL.md
index fc8803e557..fffa3f99b2 100644
--- a/skills/slideshow/SKILL.md
+++ b/skills/slideshow/SKILL.md
@@ -460,36 +460,6 @@ The same cross-realm rule applies here: global mute must reach iframe `<video>`
`hyperframes present` serves built bundles from `packages/player/dist`. After changing player or slideshow chrome behavior, run `bun run build` in `packages/player` and restart the present server before testing in a browser.
-Presenter notes are editable in the presenter view. Edits are stored in `localStorage` per deck and slide, layered over the manifest notes without rewriting the composition file. Do not add one-off note-editing scripts to decks; rely on the shared slideshow player behavior. If a standalone/custom wrapper truly needs to implement this outside the shared player, use the deterministic storage snippet in `skills/slideshow/references/standalone-harness.md`.
-
-### Media cleanup on slide exit
-
-The slideshow controller owns slide-exit media cleanup. When navigation changes slide or sequence, it calls `hyperframes-player.stopMedia()` before entering the next slide. That command:
-
-- posts `stop-media` to the iframe runtime, which stops WebAudio and pauses native `<video>` / `<audio>` elements;
-- pauses same-origin iframe media directly as a fallback; and
-- pauses parent-frame proxies adopted from iframe media.
-
-Same-slide fragment navigation does **not** stop media. Global/deck-level parent audio, such as a background track wired through `audio-src`, is not treated as slide media.
-
-Do not add per-slide cleanup scripts for normal media players. Keep slide video/audio as normal media in the composition; use `data-has-audio="true"` only when the player should preserve audible native video audio instead of treating it as silent visual media.
-
-When implementing direct iframe fallback cleanup, treat iframe media as cross-realm DOM. Do not test iframe nodes with the parent page's `el instanceof HTMLMediaElement`; that returns false in real browsers. Use `el.ownerDocument.defaultView.HTMLMediaElement` (or an equivalent tag/duck-type guard) before setting `muted` or calling `pause()`.
-
-### Global nav mute
-
-When `<hyperframes-slideshow sound>` renders the nav mute button, that button is the global mute control for the page. It must mute:
-
-- child `<hyperframes-player>` instances, including same-origin iframe media;
-- top-level page `<audio>` / `<video>` elements; and
-- wrapper-owned SFX/global `Audio` objects via the `hf-sound` event.
-
-Do not add a second mute button inside the composition. If a wrapper script creates `new Audio(...)` objects that are not attached to the DOM, it must listen for `hf-sound` and set `clip.muted = detail.muted` on each object, not merely skip future plays.
-
-The same cross-realm rule applies here: global mute must reach iframe `<video>` / `<audio>` elements through the child frame's DOM realm. A passing unit test in a single DOM realm is not enough; verify in a browser that the actual iframe media elements report `muted: true` after clicking the nav mute button.
-
-`hyperframes present` serves built bundles from `packages/player/dist`. After changing player or slideshow chrome behavior, run `bun run build` in `packages/player` and restart the present server before testing in a browser.
-
---
## Running a slideshow standalone (interim)