seam-craft
できること
このスキルは、動画のトランジションが正しく見えるようにする技術的なルールを定めます。シーンの切り替えで、ちらつきや不具合が見える動画制作者向けです。
使う場面
- ✓動画のシーンを1つのメインのタイムラインにまとめるとき。
- ✓2つのシーンの間のカットやフェードで白いちらつきが出るとき。特に暗い動画の場合です。
- ✓動画を仕上げる前に、トランジションが正しくレンダリングされるか確認したいとき。
スキルのリンク
https://github.com/heygen-com/hyperframes/blob/main/.agents/skills/seam-craft/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私の暗い動画のカットごとに白いちらつきが出ています。トランジションを直してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
2つのシーンの後ろの背景は、不透明である必要があると説明します。そうしないと、フェードの間に既定の白いページが透けて見えてしまいます。レンダリングの前に行うチェックも示します。
技術的な内容(元の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
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
captions-overlay
78k動画に字幕をオーバーレイとして付ける方法をガイドします。どの話し言葉を削除し、どれを字幕の帯に表示し、どれを強調するかを決めます。
cut-the-curve
78kHyperFrames 動画で使われるトランジションを教えます。滑らかなシーンの切り替え、ズームスルー、ずらして表示するテキストの動きなどを含みます。
motion-doctrine
78k複数のシーンからなる動画を、別々のスライドではなく、ひとつながりのカメラの動きのように感じさせるための基本ルールをエージェントに与えます。
oversized-cursor
78k動画に大きく動くポインターを追加して、視聴者の視線を誘導し、クリックが次の動きの原因に見えるように演出するよう、エージェントに教えます。
似ているスキル
blender-motion-state-inspection
280k3Dアニメーションの細部を確認できるようにします。ポーズ、動き、キャラクターの位置合わせをチェックするのに役立ちます。
manim-video
280kエージェントがアニメーション付きの解説動画を作成するのを支援します。Manimを使い、技術的な概念を分かりやすく示すグラフや図を生成します。
remotion-video-creation
280kReactとライブラリの Remotion を使って、エージェントが動画を作成するためのガイドです。アニメーション、音声、字幕などの視覚要素に関するベストプラクティスを扱います。