← AI Producer by OpusClipCONTENT HISTORY

Update to AI Producer by OpusClip

Snapshot Oct 27, 2026 · 06:06 UTC · version 1.2.13

Collection source: downloaded plugin package.

WHAT CHANGED

Instructions updated for aip-dynamic-caption

Full description — Now says: Write an AI Producer project's captions as caption moments: static text the user can select, retype and restyle in the editor, timed to the cut by a script....

Observed in instructions or declared skills. Runtime behavior has not been tested.

Save AI Producer by OpusClip and check future changes in Following.

Up to 3 plugins free · no card required.

All fields and original values.

Full description

Before

Oct 24, 2026 · 12:51 UTC

Pick one of the eight preset dynamic caption styles for an AI Producer project and have the service build the caption layer: how to choose the pattern from the video's content, which knobs the host controls, and the one call.

After

Oct 27, 2026 · 06:06 UTC

Write an AI Producer project's captions as caption moments: static text the user can select, retype and restyle in the editor, timed to the cut by a script. How to time and mount them, the default look, and what keeps them legible.

Skill instructions

Before

Oct 24, 2026 · 12:51 UTC

"Pick one of the eight preset dynamic caption styles for an AI Producer project and have the service build the caption layer: how to choose the pattern from the video's content, which knobs the host controls, and the one call. Listed, it...

After

Oct 27, 2026 · 06:06 UTC

"Write an AI Producer project's captions as caption moments: static text the user can select, retype and restyle in the editor, timed to the cut by a script. How to time and mount them, the default look, and what keeps them legible. List...

Compare saved observations

Download comparison JSON

SKILL.md text changes

− removed · + added

--- before
+++ after
@@ -1,52 +1,81 @@
 ---
 name: aip-dynamic-caption
-description: "Pick one of the eight preset dynamic caption styles for an AI Producer project and have the service build the caption layer: how to choose the pattern from the video's content, which knobs the host controls, and the one call. Listed, it makes captions the default."
+description: "Write an AI Producer project's captions as caption moments: static text the user can select, retype and restyle in the editor, timed to the cut by a script. How to time and mount them, the default look, and what keeps them legible. Listed, it makes captions the default."
 ---
 
-# Dynamic captions for an AI Producer project
+# Captions for an AI Producer project
 
-The caption layer is one composition, `compositions/narrator_captions.html`, with `compositions/transcript-src.json` beside it. The service builds both from a subtitle pattern you pick and the project's transcript; you do not write caption HTML, CSS, or word data. Your job is the pick and its few knobs, made from what you know about the video.
+Captions are moments you write, the same way as any other motion graphic: one visual moment per stretch of speech, each a composition under the [composition contract](../aip-composition/SKILL.md) whose cues are static text elements shown and hidden on the moment's own paused timeline. Static text in a moment is what the editor lets the user select, retype, recolor and change the font of, so every word a caption shows is written in the composition's HTML, never generated by its script. Never call `build_captions`, never use the `narrator-captions` id, and never write `compositions/narrator_captions.html` or `compositions/transcript-src.json`: those are the service's own caption layer, which this skill does not use.
 
-## What you decide
+## Timing
 
-1. **The pattern.** One per video, from the table below. Read the transcript at `get_transcript` with `detail: segments` (a tenth of the bytes) for register and pace, and look at the source for brightness, contrast, where the face sits, and whether a brand accent exists. Those are the inputs the table keys on.
-2. **Emphasis words** (optional). At most one per phrase: the payload word a viewer should feel land. Take `word_id` values from `get_transcript` with `detail: words`. Every pattern has a designed treatment for an emphasis word; a phrase without one renders in the quiet register. Leave the list out and the service picks them with one caption-plan call.
-3. **Position** (optional). Leave `position` out unless the brief places the captions; the service then uses the pattern's default. If you set it, it is the band's vertical anchor as a percent of frame height: 50 is mid-frame, 80 is the lowest the text-safe zone allows, and the service clamps anything past that, tighter for a pattern whose block grows downward. The canvas decides the default and the pattern: on a 1080x1920 canvas the band sits at 70 and every pattern is available; on a 1920x1080 or 1080x1080 canvas the speaker's torso reaches the frame's floor, so the band sits low (78 for `pace-adaptive` and `solo-word-punch`), the type is smaller (44 to 62px) and holds more words per phrase. There `scribble-subtitle`, `lead-in-flare`, and `tilt-slam` render as one centred row instead of their stacked form, anchored no lower than 76, 76, and 74; `lead-in-flare` and `tilt-slam` land only when you pass them as `caption_style` outright (a pin), because a style named in prose is dropped with a disclosure. A pattern whose block still grows downward (`blur-ladder`, `editorial-stack`, `inverted-stack`) is rendered as `pace-adaptive`; the task result's `pattern` is what was baked and `substituted_from` names what you asked for. The service's doctrine resource is the authority on what each canvas admits; when it and this paragraph disagree, trust the doctrine. Pick `pace-adaptive`, `solo-word-punch`, `scribble-subtitle`, `lead-in-flare`, or `tilt-slam` outright for a landscape or square video. `placement` is `adaptive` (default: the band moves off the speaker where the project's person samples exist; the task result's `placement` says whether it did) or `fixed`. Horizontal composition is part of each pattern's design and is not a knob; change the pattern to change it. The task result's `position` is the anchor actually baked; when it differs from what you passed, the pattern's safe band clamped it. The fix is another call with a position inside the band, never a CSS offset on the host div or the `.caption-band` in `index.html`: the band is the full canvas, so an offset pushes every word off screen.
-4. **Hide windows** (optional). `hide_intervals` is a list of `{start, end}` seconds where the band stays hidden. Captions stay on during visual moments by default; hide only for a `headline` overlay or a `statement` full cover (the spoken phrase drawn big), a `source-text` or `photo` full cover whose relevant detail must occupy the band and cannot move, or a stretch the brief wants silent. An empty list keeps captions on for the whole video and never hides anything by itself.
-5. **Font** (optional). Leave `font` out unless the brief names a typeface; the captions then render in Geist with Fraunces for the emphasis word. If the brief names one, pick the closest pairing register and pass it as `font`: `standard` (Geist, Fraunces), `quiet-luxury` (Plus Jakarta Sans, Newsreader), `avant-garde` (Bricolage Grotesque, Fraunces), `heavy-hitter` (Schibsted Grotesk, Spectral), `pure-editorial` (Familjen Grotesk, Source Serif 4), `warm` (Hanken Grotesk, Crimson Pro). The sans is every caption word and the serif is the emphasis word; there is no free family name. The task result's `font` names the pairing baked.
-6. **Caption windows** (optional). `caption_windows` is a list of `{start, end, position?, ink?}` on the cut, one per visual moment whose band differs from the whole-video caption. `position` is that window's anchor as a percent of frame height; the [framing skill](../aip-framing/SKILL.md) gives the value per layout and canvas (`Where the caption sits`). `ink` is a six-digit hex the caption type takes in that window, for a moment whose ground the composition painted light: a full cover on a pale canvas, or the canvas or card under the band while the speaker sits in a seat. Pick a colour with a large lightness gap against that ground (`#0a0c12` on a pale ground), never a mid grey; the type stays white everywhere else, and an overlay rides footage, which moves under the words, so it never takes an ink. Each window names at least one of the two, and where two windows overlap the earlier start wins. Write the same values you pass on that moment's host in `index.html` (`data-hide-captions="false"`, `data-caption-position`, `data-caption-ink`), because the editor and the export re-derive the caption layer from those attributes after any edit, and a moment host without `data-hide-captions="false"` hides the captions there at the first editor rebuild; the call bakes the first copy. The task result's `windows` has one row per window: `position` as you passed it, `placed` where the pattern's safe band lets it land, `band`, the pixel box of that landing (`anchor`, `top_px`, `bottom_px`), and `ink` as you passed it; when `placed` differs from `position`, keep a seat or a graphic clear of `band`, not of the number you asked for. The top-level `band` is the pixel box the whole-video anchor produces, the region a seat or a graphic keeps clear.
-7. **Accent** (optional). Three patterns paint an accent colour: `lead-in-flare` (the emphasis word's type), `scribble-subtitle` (its marks), and `tilt-slam` (the slab under the loudest word). Pass `accent` as a six-digit hex when the brand has one; leave it out and those patterns render their white fallback. The service never picks a colour for a host project, so any colour in the caption is the `accent` you passed. The task result's `accent` is the hex painted, or null.
+Write the captions once the speaker cut is final. Run [caption_cues.py](../aip/scripts/caption_cues.py) on the render-engine directory:
 
-## The call
+```sh
+python3 <loaded-aip-skill>/scripts/caption_cues.py <render-engine-root> --max-words 4
+```
+
+It synchronizes `compositions/editing-script.json` with the cut in `index.html`, as preflight's `--sync-editing-script` does, so that document goes in the same upload, and prints one row per caption moment: `id`, `src`, `start` on the cut, `duration`, `src_anchor` (the source second at `start`), and `cues`, each with `in`, `out` and its `words` as `[text, in, out]`, in seconds from the moment's start. Take every time from it, never from arithmetic of your own on `get_transcript`. A moment never spans a speaker cut, a sentence end or a long pause, so when the user later cuts between two moments in the editor, each moves whole with its source anchor. A cut inside a moment leaves its later words early, and one that removes its first word hides the whole moment, because the editor hides a moment whose anchor is cut away; either way the moment is right again once you write it afresh for the new cut. `--max-words` is how many words a cue shows at once: 4 by default, 1 for a look that shows one word at a time, and 8 to 12 for speech whose transcript words are a character or two each, such as Chinese or Japanese. You may merge two cues or split one at a word boundary, using the words' own times, and correct a word's spelling, casing or punctuation; never change what was said.
 
-Call `build_captions` with `project_id`, `caption_style` (the pattern), and any of `position`, `placement`, `hide_intervals`, `caption_windows`, `emphasis_word_ids`, `font`, `accent`. It returns a task; read it with `get_task` (its `poll_args` say when). The finished task's `result` names the files the service staged (`files`, one `{path, sha256}` per file; `staged` lists the same paths), the pattern and position it baked, the emphasis it used as `word_id` values, and `host_div`, the one element for `index.html`:
+Mount each row as a moment host, after every other moment inside the root and all on one track no other moment uses, so the captions draw above every moment:
 
 ```html
-<div
-  class="visual-host clip"
-  data-composition-id="narrator-captions"
-  data-composition-src="compositions/narrator_captions.html"
-  data-start="0"
-  data-duration="<total s>"
-  data-track-index="<n>"
-  data-width="W"
-  data-height="H"
-></div>
+<div class="visual-host clip" data-composition-id="captions-01" data-title="Captions 1"
+  data-composition-src="compositions/captions-01.html" data-start="<start>" data-duration="<duration>"
+  data-src-anchor="<src_anchor>" data-track-index="<n>" data-width="W" data-height="H"></div>
 ```
 
-Place `host_div` as written (its duration and canvas come from the root you committed; placeholders mean commit the root first) inside the root, last, on its own track, then upload your tree and `commit_workspace`. When that commit names `expected_files`, add the result's `files` entries to the list exactly as returned; a batch that leaves them out keeps the caption files staged and the round reports them in `retained_staged`. A commit that names no batch promotes them with everything staged. The editor finds the running caption by the `.caption-band` element inside that host. A file you stage yourself at `compositions/narrator_captions.html` or `compositions/transcript-src.json` replaces the service's. A caption layer you write yourself follows the caption entry of the [composition contract](../aip-composition/SKILL.md). Hand back the editor link; there is no local inspection step. One `build_captions` run is one flat charge, whether or not you named the emphasis words.
+Publish the caption moments with their hosts in `index.html`, the synchronized EditingScript and the font files. One commit carries at most 200 files and at most 256 KiB of inline `content` in all, so a long video's captions go out over several commits in timeline order: each mounts only the caption hosts whose files it or an earlier commit carried, and only the last one closes authoring.
+
+The EditingScript sync refuses a cut change while caption moments are mounted (`editing_script_mounted_captions_require_rebake`), because their timing belongs to the old cut. To recut a captioned project, take the caption hosts out of `index.html` and drop their files from the next commit, make the cut, run the script again and write the captions afresh. A project whose captions the service built earlier, a `narrator-captions` host, keeps them until the user asks to change its captions or its cut; then replace that layer the same way.
+
+## A caption moment
+
+```html
+<template>
+  <div data-composition-id="captions-01" data-width="1080" data-height="1920">
+    <style>
+      @font-face { font-family: "Inter"; font-weight: 700; src: url("public/fonts/Inter-700.woff2") format("woff2"); }
+      [data-composition-id="captions-01"] .cue {
+        position: absolute; left: 8%; right: 8%; top: 70%; transform: translateY(-50%);
+        text-align: center; font: 700 64px/1.15 "Inter"; color: #ffffff;
+        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6); visibility: hidden;
+      }
+    </style>
+    <div class="cue" data-in="0" data-out="0.82">What do you like</div>
+    <div class="cue" data-in="0.82" data-out="1.9">about using Opus</div>
+    <script>
+      const root = document.querySelector('[data-composition-id="captions-01"]');
+      const tl = gsap.timeline({ paused: true });
+      root.querySelectorAll(".cue").forEach((cue) => {
+        tl.set(cue, { visibility: "visible" }, Number(cue.dataset.in));
+        tl.set(cue, { visibility: "hidden" }, Number(cue.dataset.out));
+      });
+      window.__timelines["captions-01"] = tl;
+    </script>
+  </div>
+</template>
+```
+
+- One cue element per cue, its text written in the HTML, its `data-in` and `data-out` from the script's row. The timeline reads them, so retiming a cue never touches its text, and a cue's entrance or exit tween starts at its `data-in` or ends at its `data-out`. A look that treats words one by one wraps each word in its own span, with that word's times, inside the cue.
+- One cue on screen at a time: the next appears as the previous leaves.
+- Each caption file is at most 64 KiB, a moment's own. Repeat the `@font-face` and the cue rules in every caption file, so each moment renders on its own.
+- A caption moment is not a beat: it takes no sound effect, and it does not count toward the visual moments of the fine cut.
+
+## The default look
+
+Without a reference or the user's words about it, every caption is the same plain look: Inter Bold, white, with a soft dark shadow, centred, at about 6% of the canvas's short side (64 px on a 1080-wide canvas), at most two lines, with no emphasized word. Its band is centred at 70% of the frame height on a portrait canvas and at 78% on a landscape or square one while the speaker owns the frame; under a visual moment it sits where the [framing skill](../aip-framing/SKILL.md) puts the caption for that moment's layout, set on each cue that plays there.
+
+Download the font from Google Fonts or its Fontsource mirror and stage it under `public/fonts/`, in the same upload as the first caption file. Stage every file the captions' characters need, and for speech in a script Inter lacks, such as Chinese, Japanese, Korean, Arabic or Hindi, take the Noto Sans family for that script instead. Never name a font you have not staged: the export renders on a machine with its own fonts, so an unstaged name renders there as another face.
+
+## With a reference
+
+When the user's edit copies a reference, the [reference style skill](../aip-reference-style/SKILL.md) decides the caption look, which cues show together and how they are laid out; it replaces the default look wholesale. This skill's timing, mounting and legibility still apply.
 
-## Patterns
+## What keeps captions legible
 
-| Choose when the video is                                                                                                                      | pattern             | Rotate away when                                                                       |
-| --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | -------------------------------------------------------------------------------------- |
-| A tutorial or a punchy talking head where each sentence should feel hand-cut; face outside the 50-73% band                                    | `blur-ladder`       | captions should be a quiet legibility layer; the footage is busy                       |
-| A piece where the running caption is the design itself; darkish source; face outside the 50-68% band                                          | `editorial-stack`   | captions should stay quiet under the speaker or under visual moments                   |
-| A dark speaker cut against bright b-roll, where the caption should read as grade rather than overlay; real tonal contrast in the caption band | `inverted-stack`    | flat mid-tone footage                                                                  |
-| **The default**: every sentence wants a visible payoff beat; a brand `accent` you can pass (the only pattern that colors caption type)         | `lead-in-flare`     | delivery so fast that a big tail every sentence lags the voice                         |
-| Dense, fast, or information-heavy; captions should stay uniform under the speaker                                                             | `pace-adaptive`     | a punchier per-word emphasis or a calmer whole-line read fits better                   |
-| Creator confessional, story-time, a scrappy hand-made brand register                                                                          | `scribble-subtitle` | a formal or corporate register; dense small on-screen text                             |
-| Short imperative narration, step-throughs, hype delivery, where the caption is a beat                                                         | `solo-word-punch`   | reflective or information-dense narration                                              |
-| Vlogs, hot takes, sticker energy, loud and playful; a brand `accent` you can pass fills the slab under the loudest word                       | `tilt-slam`         | a formal or corporate register; dense small on-screen text; captions should stay quiet |
+These hold over the default, a reference and the user's words:
 
-When captions share the frame with visual moments for most of the video, prefer a quiet pattern (`pace-adaptive`, `blur-ladder`): `tilt-slam` and `solo-word-punch` compete with an animation for the same beat, and `inverted-stack` cannot take an ink (its difference blend would invert the colour). One pattern per video. The pick is yours; the pattern's motion and layout are the service's, and its typeface is the pairing `font` names (Geist with Fraunces italic emphasis by default), staged with the composition under `public/fonts/`.
+- Every word stays wholly inside the frame's safe area for its whole time on screen, at its largest scale in any entrance or emphasis: 8% of the width clear on each side, and on a portrait canvas clear of the platform's buttons on the right edge and its caption bar at the bottom.
+- A cue wraps inside its box rather than shrinking; split a cue that would take a third line instead of making its type smaller.
+- No cue plays under a `headline` overlay or a `statement` full cover, which already draw the phrase, or under a full cover whose detail must occupy the band; drop those cues, and the whole moment when every cue falls there.
Full technical diff · 2 changed fields

changed /description

BEFORE
"Pick one of the eight preset dynamic caption styles for an AI Producer project and have the service build the caption layer: how to choose the pattern from the video's content, which knobs the host controls, and the one call. Listed, it makes captions the default."
AFTER
"Write an AI Producer project's captions as caption moments: static text the user can select, retype and restyle in the editor, timed to the cut by a script. How to time and mount them, the default look, and what keeps them legible. Listed, it makes captions the default."

changed /skill_md_contents

BEFORE
"---\nname: aip-dynamic-caption\ndescription: \"Pick one of the eight preset dynamic caption styles for an AI Producer project and have the service build the caption layer: how to choose the pattern from the video's content, which knobs the host controls, and the one call. Listed, it makes captions the default.\"\n---\n\n# Dynamic captions for an AI Producer project\n\nThe caption layer is one composition, `compositions/narrator_captions.html`, with `compositions/transcript-src.json` beside it. The service builds both from a subtitle pattern you pick and the project's transcript; you do not write caption HTML, CSS, or word data. Your job is the pick and its few knobs, made from what you know about the video.\n\n## What you decide\n\n1. **The pattern.** One per video, from the table below. Read the transcript at `get_transcript` with `detail: segments` (a tenth of the bytes) for register and pace, and look at the source for brightness, contrast, where the face sits, and whether a brand accent exists. Those are the inputs the table keys on.\n2. **Emphasis words** (optional). At most one per phrase: the payload word a viewer should feel land. Take `word_id` values from `get_transcript` with `detail: words`. Every pattern has a designed treatment for an emphasis word; a phrase without one renders in the quiet register. Leave the list out and the service picks them with one caption-plan call.\n3. **Position** (optional). Leave `position` out unless the brief places the captions; the service then uses the pattern's default. If you set it, it is the band's vertical anchor as a percent of frame height: 50 is mid-frame, 80 is the lowest the text-safe zone allows, and the service clamps anything past that, tighter for a pattern whose block grows downward. The canvas decides the default and the pattern: on a 1080x1920 canvas the band sits at 70 and every pattern is available; on a 1920x1080 or 1080x1080 canvas the speaker's torso reaches the frame's floor, so the band sits low (78 for `pace-adaptive` and `solo-word-punch`), the type is smaller (44 to 62px) and holds more words per phrase. There `scribble-subtitle`, `lead-in-flare`, and `tilt-slam` render as one centred row instead of their stacked form, anchored no lower than 76, 76, and 74; `lead-in-flare` and `tilt-slam` land only when you pass them as `caption_style` outright (a pin), because a style named in prose is dropped with a disclosure. A pattern whose block still grows downward (`blur-ladder`, `editorial-stack`, `inverted-stack`) is rendered as `pace-adaptive`; the task result's `pattern` is what was baked and `substituted_from` names what you asked for. The service's doctrine resource is the authority on what each canvas admits; when it and this paragraph disagree, trust the doctrine. Pick `pace-adaptive`, `solo-word-punch`, `scribble-subtitle`, `lead-in-flare`, or `tilt-slam` outright for a landscape or square video. `placement` is `adaptive` (default: the band moves off the speaker where the project's person samples exist; the task result's `placement` says whether it did) or `fixed`. Horizontal composition is part of each pattern's design and is not a knob; change the pattern to change it. The task result's `position` is the anchor actually baked; when it differs from what you passed, the pattern's safe band clamped it. The fix is another call with a position inside the band, never a CSS offset on the host div or the `.caption-band` in `index.html`: the band is the full canvas, so an offset pushes every word off screen.\n4. **Hide windows** (optional). `hide_intervals` is a list of `{start, end}` seconds where the band stays hidden. Captions stay on during visual moments by default; hide only for a `headline` overlay or a `statement` full cover (the spoken phrase drawn big), a `source-text` or `photo` full cover whose relevant detail must occupy the band and cannot move, or a stretch the brief wants silent. An empty list keeps captions on for the whole video and never hides anything by itself.\n5. **Font** (optional). Leave `font` out unless the brief names a typeface; the captions then render in Geist with Fraunces for the emphasis word. If the brief names one, pick the closest pairing register and pass it as `font`: `standard` (Geist, Fraunces), `quiet-luxury` (Plus Jakarta Sans, Newsreader), `avant-garde` (Bricolage Grotesque, Fraunces), `heavy-hitter` (Schibsted Grotesk, Spectral), `pure-editorial` (Familjen Grotesk, Source Serif 4), `warm` (Hanken Grotesk, Crimson Pro). The sans is every caption word and the serif is the emphasis word; there is no free family name. The task result's `font` names the pairing baked.\n6. **Caption windows** (optional). `caption_windows` is a list of `{start, end, position?, ink?}` on the cut, one per visual moment whose band differs from the whole-video caption. `position` is that window's anchor as a percent of frame height; the [framing skill](../aip-framing/SKILL.md) gives the value per layout and canvas (`Where the caption sits`). `ink` is a six-digit hex the caption type takes in that window, for a moment whose ground the composition painted light: a full cover on a pale canvas, or the canvas or card under the band while the speaker sits in a seat. Pick a colour with a large lightness gap against that ground (`#0a0c12` on a pale ground), never a mid grey; the type stays white everywhere else, and an overlay rides footage, which moves under the words, so it never takes an ink. Each window names at least one of the two, and where two windows overlap the earlier start wins. Write the same values you pass on that moment's host in `index.html` (`data-hide-captions=\"false\"`, `data-caption-position`, `data-caption-ink`), because the editor and the export re-derive the caption layer from those attributes after any edit, and a moment host without `data-hide-captions=\"false\"` hides the captions there at the first editor rebuild; the call bakes the first copy. The task result's `windows` has one row per window: `position` as you passed it, `placed` where the pattern's safe band lets it land, `band`, the pixel box of that landing (`anchor`, `top_px`, `bottom_px`), and `ink` as you passed it; when `placed` differs from `position`, keep a seat or a graphic clear of `band`, not of the number you asked for. The top-level `band` is the pixel box the whole-video anchor produces, the region a seat or a graphic keeps clear.\n7. **Accent** (optional). Three patterns paint an accent colour: `lead-in-flare` (the emphasis word's type), `scribble-subtitle` (its marks), and `tilt-slam` (the slab under the loudest word). Pass `accent` as a six-digit hex when the brand has one; leave it out and those patterns render their white fallback. The service never picks a colour for a host project, so any colour in the caption is the `accent` you passed. The task result's `accent` is the hex painted, or null.\n\n## The call\n\nCall `build_captions` with `project_id`, `caption_style` (the pattern), and any of `position`, `placement`, `hide_intervals`, `caption_windows`, `emphasis_word_ids`, `font`, `accent`. It returns a task; read it with `get_task` (its `poll_args` say when). The finished task's `result` names the files the service staged (`files`, one `{path, sha256}` per file; `staged` lists the same paths), the pattern and position it baked, the emphasis it used as `word_id` values, and `host_div`, the one element for `index.html`:\n\n```html\n<div\n  class=\"visual-host clip\"\n  data-composition-id=\"narrator-captions\"\n  data-composition-src=\"compositions/narrator_captions.html\"\n  data-start=\"0\"\n  data-duration=\"<total s>\"\n  data-track-index=\"<n>\"\n  data-width=\"W\"\n  data-height=\"H\"\n></div>\n```\n\nPlace `host_div` as written (its duration and canvas come from the root you committed; placeholders mean commit the root first) inside the root, last, on its own track, then upload your tree and `commit_workspace`. When that commit names `expected_files`, add the result's `files` entries to the list exactly as returned; a batch that leaves them out keeps the caption files staged and the round reports them in `retained_staged`. A commit that names no batch promotes them with everything staged. The editor finds the running caption by the `.caption-band` element inside that host. A file you stage yourself at `compositions/narrator_captions.html` or `compositions/transcript-src.json` replaces the service's. A caption layer you write yourself follows the caption entry of the [composition contract](../aip-composition/SKILL.md). Hand back the editor link; there is no local inspection step. One `build_captions` run is one flat charge, whether or not you named the emphasis words.\n\n## Patterns\n\n| Choose when the video is                                                                                                                      | pattern             | Rotate away when                                                                       |\n| --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | -------------------------------------------------------------------------------------- |\n| A tutorial or a punchy talking head where each sentence should feel hand-cut; face outside the 50-73% band                                    | `blur-ladder`       | captions should be a quiet legibility layer; the footage is busy                       |\n| A piece where the running caption is the design itself; darkish source; face outside the 50-68% band                                          | `editorial-stack`   | captions should stay quiet under the speaker or under visual moments                   |\n| A dark speaker cut against bright b-roll, where the caption should read as grade rather than overlay; real tonal contrast in the caption band | `inverted-stack`    | flat mid-tone footage                                                                  |\n| **The default**: every sentence wants a visible payoff beat; a brand `accent` you can pass (the only pattern that colors caption type)         | `lead-in-flare`     | delivery so fast that a big tail every sentence lags the voice                         |\n| Dense, fast, or information-heavy; captions should stay uniform under the speaker                                                             | `pace-adaptive`     | a punchier per-word emphasis or a calmer whole-line read fits better                   |\n| Creator confessional, story-time, a scrappy hand-made brand register                                                                          | `scribble-subtitle` | a formal or corporate register; dense small on-screen text                             |\n| Short imperative narration, step-throughs, hype delivery, where the caption is a beat                                                         | `solo-word-punch`   | reflective or information-dense narration                                              |\n| Vlogs, hot takes, sticker energy, loud and playful; a brand `accent` you can pass fills the slab under the loudest word                       | `tilt-slam`         | a formal or corporate register; dense small on-screen text; captions should stay quiet |\n\nWhen captions share the frame with visual moments for most of the video, prefer a quiet pattern (`pace-adaptive`, `blur-ladder`): `tilt-slam` and `solo-word-punch` compete with an animation for the same beat, and `inverted-stack` cannot take an ink (its difference blend would invert the colour). One pattern per video. The pick is yours; the pattern's motion and layout are the service's, and its typeface is the pairing `font` names (Geist with Fraunces italic emphasis by default), staged with the composition under `public/fonts/`.\n"
AFTER
"---\nname: aip-dynamic-caption\ndescription: \"Write an AI Producer project's captions as caption moments: static text the user can select, retype and restyle in the editor, timed to the cut by a script. How to time and mount them, the default look, and what keeps them legible. Listed, it makes captions the default.\"\n---\n\n# Captions for an AI Producer project\n\nCaptions are moments you write, the same way as any other motion graphic: one visual moment per stretch of speech, each a composition under the [composition contract](../aip-composition/SKILL.md) whose cues are static text elements shown and hidden on the moment's own paused timeline. Static text in a moment is what the editor lets the user select, retype, recolor and change the font of, so every word a caption shows is written in the composition's HTML, never generated by its script. Never call `build_captions`, never use the `narrator-captions` id, and never write `compositions/narrator_captions.html` or `compositions/transcript-src.json`: those are the service's own caption layer, which this skill does not use.\n\n## Timing\n\nWrite the captions once the speaker cut is final. Run [caption_cues.py](../aip/scripts/caption_cues.py) on the render-engine directory:\n\n```sh\npython3 <loaded-aip-skill>/scripts/caption_cues.py <render-engine-root> --max-words 4\n```\n\nIt synchronizes `compositions/editing-script.json` with the cut in `index.html`, as preflight's `--sync-editing-script` does, so that document goes in the same upload, and prints one row per caption moment: `id`, `src`, `start` on the cut, `duration`, `src_anchor` (the source second at `start`), and `cues`, each with `in`, `out` and its `words` as `[text, in, out]`, in seconds from the moment's start. Take every time from it, never from arithmetic of your own on `get_transcript`. A moment never spans a speaker cut, a sentence end or a long pause, so when the user later cuts between two moments in the editor, each moves whole with its source anchor. A cut inside a moment leaves its later words early, and one that removes its first word hides the whole moment, because the editor hides a moment whose anchor is cut away; either way the moment is right again once you write it afresh for the new cut. `--max-words` is how many words a cue shows at once: 4 by default, 1 for a look that shows one word at a time, and 8 to 12 for speech whose transcript words are a character or two each, such as Chinese or Japanese. You may merge two cues or split one at a word boundary, using the words' own times, and correct a word's spelling, casing or punctuation; never change what was said.\n\nMount each row as a moment host, after every other moment inside the root and all on one track no other moment uses, so the captions draw above every moment:\n\n```html\n<div class=\"visual-host clip\" data-composition-id=\"captions-01\" data-title=\"Captions 1\"\n  data-composition-src=\"compositions/captions-01.html\" data-start=\"<start>\" data-duration=\"<duration>\"\n  data-src-anchor=\"<src_anchor>\" data-track-index=\"<n>\" data-width=\"W\" data-height=\"H\"></div>\n```\n\nPublish the caption moments with their hosts in `index.html`, the synchronized EditingScript and the font files. One commit carries at most 200 files and at most 256 KiB of inline `content` in all, so a long video's captions go out over several commits in timeline order: each mounts only the caption hosts whose files it or an earlier commit carried, and only the last one closes authoring.\n\nThe EditingScript sync refuses a cut change while caption moments are mounted (`editing_script_mounted_captions_require_rebake`), because their timing belongs to the old cut. To recut a captioned project, take the caption hosts out of `index.html` and drop their files from the next commit, make the cut, run the script again and write the captions afresh. A project whose captions the service built earlier, a `narrator-captions` host, keeps them until the user asks to change its captions or its cut; then replace that layer the same way.\n\n## A caption moment\n\n```html\n<template>\n  <div data-composition-id=\"captions-01\" data-width=\"1080\" data-height=\"1920\">\n    <style>\n      @font-face { font-family: \"Inter\"; font-weight: 700; src: url(\"public/fonts/Inter-700.woff2\") format(\"woff2\"); }\n      [data-composition-id=\"captions-01\"] .cue {\n        position: absolute; left: 8%; right: 8%; top: 70%; transform: translateY(-50%);\n        text-align: center; font: 700 64px/1.15 \"Inter\"; color: #ffffff;\n        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6); visibility: hidden;\n      }\n    </style>\n    <div class=\"cue\" data-in=\"0\" data-out=\"0.82\">What do you like</div>\n    <div class=\"cue\" data-in=\"0.82\" data-out=\"1.9\">about using Opus</div>\n    <script>\n      const root = document.querySelector('[data-composition-id=\"captions-01\"]');\n      const tl = gsap.timeline({ paused: true });\n      root.querySelectorAll(\".cue\").forEach((cue) => {\n        tl.set(cue, { visibility: \"visible\" }, Number(cue.dataset.in));\n        tl.set(cue, { visibility: \"hidden\" }, Number(cue.dataset.out));\n      });\n      window.__timelines[\"captions-01\"] = tl;\n    </script>\n  </div>\n</template>\n```\n\n- One cue element per cue, its text written in the HTML, its `data-in` and `data-out` from the script's row. The timeline reads them, so retiming a cue never touches its text, and a cue's entrance or exit tween starts at its `data-in` or ends at its `data-out`. A look that treats words one by one wraps each word in its own span, with that word's times, inside the cue.\n- One cue on screen at a time: the next appears as the previous leaves.\n- Each caption file is at most 64 KiB, a moment's own. Repeat the `@font-face` and the cue rules in every caption file, so each moment renders on its own.\n- A caption moment is not a beat: it takes no sound effect, and it does not count toward the visual moments of the fine cut.\n\n## The default look\n\nWithout a reference or the user's words about it, every caption is the same plain look: Inter Bold, white, with a soft dark shadow, centred, at about 6% of the canvas's short side (64 px on a 1080-wide canvas), at most two lines, with no emphasized word. Its band is centred at 70% of the frame height on a portrait canvas and at 78% on a landscape or square one while the speaker owns the frame; under a visual moment it sits where the [framing skill](../aip-framing/SKILL.md) puts the caption for that moment's layout, set on each cue that plays there.\n\nDownload the font from Google Fonts or its Fontsource mirror and stage it under `public/fonts/`, in the same upload as the first caption file. Stage every file the captions' characters need, and for speech in a script Inter lacks, such as Chinese, Japanese, Korean, Arabic or Hindi, take the Noto Sans family for that script instead. Never name a font you have not staged: the export renders on a machine with its own fonts, so an unstaged name renders there as another face.\n\n## With a reference\n\nWhen the user's edit copies a reference, the [reference style skill](../aip-reference-style/SKILL.md) decides the caption look, which cues show together and how they are laid out; it replaces the default look wholesale. This skill's timing, mounting and legibility still apply.\n\n## What keeps captions legible\n\nThese hold over the default, a reference and the user's words:\n\n- Every word stays wholly inside the frame's safe area for its whole time on screen, at its largest scale in any entrance or emphasis: 8% of the width clear on each side, and on a portrait canvas clear of the platform's buttons on the right edge and its caption bar at the bottom.\n- A cue wraps inside its box rather than shrinking; split a cue that would take a third line instead of making its type smaller.\n- No cue plays under a `headline` overlay or a `statement` full cover, which already draw the phrase, or under a full cover whose detail must occupy the band; drop those cues, and the whole moment when every cue falls there.\n"
Full snapshot data
{
  "description": "Write an AI Producer project's captions as caption moments: static text the user can select, retype and restyle in the editor, timed to the cut by a script. How to time and mount them, the default look, and what keeps them legible. Listed, it makes captions the default.",
  "included_files": [
    {
      "relative_path": "agents/openai.yaml",
      "size_in_bytes": 137
    }
  ],
  "name": "aip-dynamic-caption",
  "skill_md_contents": "---\nname: aip-dynamic-caption\ndescription: \"Write an AI Producer project's captions as caption moments: static text the user can select, retype and restyle in the editor, timed to the cut by a script. How to time and mount them, the default look, and what keeps them legible. Listed, it makes captions the default.\"\n---\n\n# Captions for an AI Producer project\n\nCaptions are moments you write, the same way as any other motion graphic: one visual moment per stretch of speech, each a composition under the [composition contract](../aip-composition/SKILL.md) whose cues are static text elements shown and hidden on the moment's own paused timeline. Static text in a moment is what the editor lets the user select, retype, recolor and change the font of, so every word a caption shows is written in the composition's HTML, never generated by its script. Never call `build_captions`, never use the `narrator-captions` id, and never write `compositions/narrator_captions.html` or `compositions/transcript-src.json`: those are the service's own caption layer, which this skill does not use.\n\n## Timing\n\nWrite the captions once the speaker cut is final. Run [caption_cues.py](../aip/scripts/caption_cues.py) on the render-engine directory:\n\n```sh\npython3 <loaded-aip-skill>/scripts/caption_cues.py <render-engine-root> --max-words 4\n```\n\nIt synchronizes `compositions/editing-script.json` with the cut in `index.html`, as preflight's `--sync-editing-script` does, so that document goes in the same upload, and prints one row per caption moment: `id`, `src`, `start` on the cut, `duration`, `src_anchor` (the source second at `start`), and `cues`, each with `in`, `out` and its `words` as `[text, in, out]`, in seconds from the moment's start. Take every time from it, never from arithmetic of your own on `get_transcript`. A moment never spans a speaker cut, a sentence end or a long pause, so when the user later cuts between two moments in the editor, each moves whole with its source anchor. A cut inside a moment leaves its later words early, and one that removes its first word hides the whole moment, because the editor hides a moment whose anchor is cut away; either way the moment is right again once you write it afresh for the new cut. `--max-words` is how many words a cue shows at once: 4 by default, 1 for a look that shows one word at a time, and 8 to 12 for speech whose transcript words are a character or two each, such as Chinese or Japanese. You may merge two cues or split one at a word boundary, using the words' own times, and correct a word's spelling, casing or punctuation; never change what was said.\n\nMount each row as a moment host, after every other moment inside the root and all on one track no other moment uses, so the captions draw above every moment:\n\n```html\n<div class=\"visual-host clip\" data-composition-id=\"captions-01\" data-title=\"Captions 1\"\n  data-composition-src=\"compositions/captions-01.html\" data-start=\"<start>\" data-duration=\"<duration>\"\n  data-src-anchor=\"<src_anchor>\" data-track-index=\"<n>\" data-width=\"W\" data-height=\"H\"></div>\n```\n\nPublish the caption moments with their hosts in `index.html`, the synchronized EditingScript and the font files. One commit carries at most 200 files and at most 256 KiB of inline `content` in all, so a long video's captions go out over several commits in timeline order: each mounts only the caption hosts whose files it or an earlier commit carried, and only the last one closes authoring.\n\nThe EditingScript sync refuses a cut change while caption moments are mounted (`editing_script_mounted_captions_require_rebake`), because their timing belongs to the old cut. To recut a captioned project, take the caption hosts out of `index.html` and drop their files from the next commit, make the cut, run the script again and write the captions afresh. A project whose captions the service built earlier, a `narrator-captions` host, keeps them until the user asks to change its captions or its cut; then replace that layer the same way.\n\n## A caption moment\n\n```html\n<template>\n  <div data-composition-id=\"captions-01\" data-width=\"1080\" data-height=\"1920\">\n    <style>\n      @font-face { font-family: \"Inter\"; font-weight: 700; src: url(\"public/fonts/Inter-700.woff2\") format(\"woff2\"); }\n      [data-composition-id=\"captions-01\"] .cue {\n        position: absolute; left: 8%; right: 8%; top: 70%; transform: translateY(-50%);\n        text-align: center; font: 700 64px/1.15 \"Inter\"; color: #ffffff;\n        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6); visibility: hidden;\n      }\n    </style>\n    <div class=\"cue\" data-in=\"0\" data-out=\"0.82\">What do you like</div>\n    <div class=\"cue\" data-in=\"0.82\" data-out=\"1.9\">about using Opus</div>\n    <script>\n      const root = document.querySelector('[data-composition-id=\"captions-01\"]');\n      const tl = gsap.timeline({ paused: true });\n      root.querySelectorAll(\".cue\").forEach((cue) => {\n        tl.set(cue, { visibility: \"visible\" }, Number(cue.dataset.in));\n        tl.set(cue, { visibility: \"hidden\" }, Number(cue.dataset.out));\n      });\n      window.__timelines[\"captions-01\"] = tl;\n    </script>\n  </div>\n</template>\n```\n\n- One cue element per cue, its text written in the HTML, its `data-in` and `data-out` from the script's row. The timeline reads them, so retiming a cue never touches its text, and a cue's entrance or exit tween starts at its `data-in` or ends at its `data-out`. A look that treats words one by one wraps each word in its own span, with that word's times, inside the cue.\n- One cue on screen at a time: the next appears as the previous leaves.\n- Each caption file is at most 64 KiB, a moment's own. Repeat the `@font-face` and the cue rules in every caption file, so each moment renders on its own.\n- A caption moment is not a beat: it takes no sound effect, and it does not count toward the visual moments of the fine cut.\n\n## The default look\n\nWithout a reference or the user's words about it, every caption is the same plain look: Inter Bold, white, with a soft dark shadow, centred, at about 6% of the canvas's short side (64 px on a 1080-wide canvas), at most two lines, with no emphasized word. Its band is centred at 70% of the frame height on a portrait canvas and at 78% on a landscape or square one while the speaker owns the frame; under a visual moment it sits where the [framing skill](../aip-framing/SKILL.md) puts the caption for that moment's layout, set on each cue that plays there.\n\nDownload the font from Google Fonts or its Fontsource mirror and stage it under `public/fonts/`, in the same upload as the first caption file. Stage every file the captions' characters need, and for speech in a script Inter lacks, such as Chinese, Japanese, Korean, Arabic or Hindi, take the Noto Sans family for that script instead. Never name a font you have not staged: the export renders on a machine with its own fonts, so an unstaged name renders there as another face.\n\n## With a reference\n\nWhen the user's edit copies a reference, the [reference style skill](../aip-reference-style/SKILL.md) decides the caption look, which cues show together and how they are laid out; it replaces the default look wholesale. This skill's timing, mounting and legibility still apply.\n\n## What keeps captions legible\n\nThese hold over the default, a reference and the user's words:\n\n- Every word stays wholly inside the frame's safe area for its whole time on screen, at its largest scale in any entrance or emphasis: 8% of the width clear on each side, and on a portrait canvas clear of the platform's buttons on the right edge and its caption bar at the bottom.\n- A cue wraps inside its box rather than shrinking; split a cue that would take a third line instead of making its type smaller.\n- No cue plays under a `headline` overlay or a `statement` full cover, which already draw the phrase, or under a full cover whose detail must occupy the band; drop those cues, and the whole moment when every cue falls there.\n"
}

SHA-256 of public snapshot: b4dc39d339ba7e10a905c2be5a2c0a9e72204ef9accae8852cb87d1fcf4b8dc6