{"id":112876,"plugin_id":"plugin_asdk_app_6aab97bee30881919b757db1f5d91f99","kind":"skill","collection_source":"plugin_package","comparison_source":"plugin_package","observed_at":"2026-11-24T12:11:44.074Z","digest":"c03e53c0d9fb67e03574e24447631a3fc658c3f33bd5e05af3e24357e26327b3","against":103592,"payload":{"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},{"relative_path":"references/service-captions.md","size_in_bytes":1092},{"relative_path":"references/writing-captions.md","size_in_bytes":757}],"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 like 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. The editor lets the user select, retype, recolor and refont static text, 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 commit, and prints one JSON object, `{ok, synced, moments}`, whose `moments` list holds one row per caption moment: `id`, `src`, `start` on the cut, `duration`, `src_anchor` (the source second at `start`), on a project cut from several videos `source_id` (the video that second is in), 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.\n\nWhen a look shows one word at a time, the speech's transcript words are a character or two each (such as Chinese or Japanese), or you would merge, split or correct a cue, read [writing captions](references/writing-captions.md) before running the script or editing its cues; 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\nWhen the row has a `source_id`, the host also carries `data-source-id=\"<source_id>\"` beside its anchor; preflight and the commit refuse a caption host on a several-video project without it (`anchor_file_missing`).\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, as [service-built captions](references/service-captions.md) says, 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: 12%; 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 tween starts at its `data-in` and its exit tween 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- 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 (75% on a 4:5 one) 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\nText already in the picture stays there: a caption moment cannot remove or replace it, and a strip, plate or gradient painted over it is the bar users ask to take out. When the footage shows its own captions of the speech, burned in, write no caption cue while they show, even when the user asked for captions, unless they asked for another language than those captions, so viewers never read the same words twice. Finish the rest of the edit as asked rather than stopping to ask, and tell the user in one sentence that the source already carries its own captions and that a clean upload gets editable ones. Other text in the caption zone, such as a lower third, a title or a slide's own lines, is not a caption of the speech: keep the captions, and place them in the nearest stretch of the frame clear of that text for every cue that plays over it, or just above it when no stretch is clear.\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 their layout, replacing 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: the safe area the [aesthetic rules](../aip/references/aesthetic-rules.md) set for the canvas, clear of a portrait canvas's platform 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, under any other graphic that shows the spoken words itself, such as a title set in the speaker's own words, under a logo with text or a quote card, which the aesthetic rules give their beat alone, or under a full cover whose detail must occupy the band; drop those cues, and the whole moment when every cue falls there.\n"},"changes":[{"path":"/skill_md_contents","type":"changed","before":"---\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 like 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. The editor lets the user select, retype, recolor and refont static text, 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 commit, 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.\n\nWhen a look shows one word at a time, the speech's transcript words are a character or two each (such as Chinese or Japanese), or you would merge, split or correct a cue, read [writing captions](references/writing-captions.md) before running the script or editing its cues; 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, as [service-built captions](references/service-captions.md) says, 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: 12%; 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 tween starts at its `data-in` and its exit tween 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- 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 (75% on a 4:5 one) 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 their layout, replacing 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: the safe area the [aesthetic rules](../aip/references/aesthetic-rules.md) set for the canvas, clear of a portrait canvas's platform 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, under any other graphic that shows the spoken words itself, such as a title set in the speaker's own words, under a logo with text or a quote card, which the aesthetic rules give their beat alone, or under a full cover whose detail must occupy the band; drop those cues, and the whole moment when every cue falls there.\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 like 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. The editor lets the user select, retype, recolor and refont static text, 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 commit, and prints one JSON object, `{ok, synced, moments}`, whose `moments` list holds one row per caption moment: `id`, `src`, `start` on the cut, `duration`, `src_anchor` (the source second at `start`), on a project cut from several videos `source_id` (the video that second is in), 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.\n\nWhen a look shows one word at a time, the speech's transcript words are a character or two each (such as Chinese or Japanese), or you would merge, split or correct a cue, read [writing captions](references/writing-captions.md) before running the script or editing its cues; 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\nWhen the row has a `source_id`, the host also carries `data-source-id=\"<source_id>\"` beside its anchor; preflight and the commit refuse a caption host on a several-video project without it (`anchor_file_missing`).\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, as [service-built captions](references/service-captions.md) says, 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: 12%; 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 tween starts at its `data-in` and its exit tween 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- 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 (75% on a 4:5 one) 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\nText already in the picture stays there: a caption moment cannot remove or replace it, and a strip, plate or gradient painted over it is the bar users ask to take out. When the footage shows its own captions of the speech, burned in, write no caption cue while they show, even when the user asked for captions, unless they asked for another language than those captions, so viewers never read the same words twice. Finish the rest of the edit as asked rather than stopping to ask, and tell the user in one sentence that the source already carries its own captions and that a clean upload gets editable ones. Other text in the caption zone, such as a lower third, a title or a slide's own lines, is not a caption of the speech: keep the captions, and place them in the nearest stretch of the frame clear of that text for every cue that plays over it, or just above it when no stretch is clear.\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 their layout, replacing 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: the safe area the [aesthetic rules](../aip/references/aesthetic-rules.md) set for the canvas, clear of a portrait canvas's platform 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, under any other graphic that shows the spoken words itself, such as a title set in the speaker's own words, under a logo with text or a quote card, which the aesthetic rules give their beat alone, or under a full cover whose detail must occupy the band; drop those cues, and the whole moment when every cue falls there.\n"}],"summary":"Fields changed: 1. /skill_md_contents.","summary_kind":"deterministic","summary_metadata":{}}