seam-craft
Что он делает
Этот скилл задаёт технические правила, которые делают переходы видео корректными. Он нужен тем, кто видит вспышки или сбои при смене сцен.
Когда использовать
- ✓Когда вы собираете сцены видео в одну основную временную шкалу.
- ✓Когда на склейке или затемнении между двумя сценами появляется белая вспышка, особенно на тёмных видео.
- ✓Когда вы хотите проверить, что переход рендерится правильно, перед завершением видео.
Ссылка на скилл
https://github.com/heygen-com/hyperframes/blob/main/.agents/skills/seam-craft/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“В моём тёмном видео на каждой склейке белая вспышка. Почини переходы.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл объясняет, что фон за двумя сценами должен быть сплошным, чтобы затемнение не показывало сквозь зазор белую страницу по умолчанию. Также он перечисляет проверки перед рендерингом.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Seam Craft — render prerequisites for scene-to-scene transitions
This is the render-correctness doctrine for PLV scene-to-scene seams: the prerequisites and master-timeline mechanics that make any transition composite correctly, independent of which specific transition is chosen. The per-transition catalog (crossfade, push-slide, zoom-through, cut-the-curve, …) lives in the transition registry — this page is the doctrine that sits underneath all of them.
The transitions this doctrine governs are Tier-B-ready: pure transform / opacity /
filter on the two scene clip wrappers (#el-<sid>), no injected overlay DOM, no
per-scene cooperation. Overlay families (staggered blocks, blinds, light leak, grid
dissolve, page burn) and shader transitions are deferred to later phases.
Stage ground prerequisite (white-flash guard)
Several templates open a window where the two wrappers' summed opacity < 1 (the
cut-the-curve mid-window cut, zoom-through's 0.15 floor, plain crossfade's
power-curve dip). Whatever is BEHIND the wrappers shows through during that
window. If the assembled index.html #root has no opaque background, the
renderer composites the dip over its default white page → a white flash at
every seam, glaring on dark films (observed on two Spotify runs before the fix).
The assembler must paint the stage: #root { background: var(--canvas-deep, var(--canvas, #000)) } — assemble-index.mjs now emits this;
any other consumer of these templates owns the same guarantee.
How the injector applies a transition
At a break boundary between scene i (from) and scene i+1 (to), the
injector:
- Extends
#el-<from>wrapperdata-durationbyduration_s(holds its final frame — verified:core/src/runtime/init.ts:1393-1410external-slot branch). - Pulls
#el-<to>wrapperdata-startearlier byduration_s(creates the overlap window). - Reassigns all clip
data-track-indexas a 0/1 ping-pong so the two overlapping wrappers never share a track (same-track overlap is illegal —core/src/lint/rules/composition.ts). Higher track composites on top. - Stamps the
gsap_templateintowindow.__timelines["main"]atT = overlap-start.
Verified by prototype render (2026-05-31): the master-timeline wrapper tween is seeked and rendered (no double-seek with the sub-comp's own paused timeline — the runtime drives them independently), the extended wrapper holds scene i's final frame, and the higher-track incoming wrapper composites over + blends with the outgoing one.
Template placeholders
The injector substitutes these tokens in each gsap_template line:
| Token | Meaning |
|---|---|
__OLD__ |
"#el-<from>" — outgoing clip wrapper selector (quoted) |
__NEW__ |
"#el-<to>" — incoming clip wrapper selector (quoted) |
__T__ |
overlap-start time in seconds (master clock) |
__DUR__ |
duration_s for this boundary |
__DX__ |
horizontal travel for directional types: -1920 (LEFT) / 1920 (RIGHT) |
__DY__ |
vertical travel: -1080 (UP) / 1080 (DOWN) |
__ORIGIN_OUT__ / __ORIGIN_IN__ |
transformOrigin pair for squeeze |
filter / scaleX / transformOrigin are lint-clean on the master timeline
(verified: core/src/lint/rules/gsap.ts has no per-property whitelist and scopes
its checks to data-composition-id ranges; the x/y/scale/rotation/opacity
whitelist is a scene-worker prompt rule only — it does not bind index.html).
Частые вопросы
Почему возникает белая вспышка?
Во время перехода обе сцены могут быть частично прозрачными. Если фон не задан, рендерер показывает белый цвет в этом зазоре.
Как это исправить?
Собранная страница должна рисовать сплошной фон за сценами, чтобы зазор заполнялся цветом видео.
Охватывает ли он конкретный тип перехода?
Нет. Он охватывает основы, которые делают любой переход корректным, а не один стиль перехода.
Подробности
Оригинальное описание автора
Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks
repo: heygen-com/hyperframes
Популярность
- Звёзды на GitHub
- 78k
- Место в рейтинге
- #1731
- Лицензия
- Apache-2.0
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
captions-overlay
78kНаправляет агента при добавлении субтитров к видео поверх кадра: какие реплики убрать, какие показать в строке или выделить.
cut-the-curve
78kУчит агента переходам, которые используются в видео HyperFrames: плавной смене сцен, проходам с зумом и поэтапному появлению текста.
motion-doctrine
78kДаёт агенту базовые правила, чтобы видео из нескольких сцен выглядело как одно непрерывное движение камеры, а не как отдельные слайды.
oversized-cursor
78kУчит агента добавлять в видео крупный анимированный указатель, который ведёт взгляд зрителя и делает клик причиной следующего действия.
Похожие скиллы
blender-motion-state-inspection
280kПозволяет изучать детали 3D-анимаций: проверять позы, движения и выравнивание персонажей.
manim-video
280kАгент создаёт анимированные объясняющие видео, генерируя с Manim понятные графики и схемы для технических понятий.
remotion-video-creation
280kПомогает агенту создавать видео на React с библиотекой Remotion: анимации, звук, субтитры и другие элементы.