Communitygithub.com

make-tsx — マスターカット上にビジュアルビートを構築する

AI動画エディタパイプラインのステップ2:承認されたマスターカット上にアニメーションビート(Remotion TSX)を構築し、合成プレビューを生成します。ユーザーがオーバーレイや全画面アニメーションセグメントの追加/編集、「ショット/ビート」の作成、編集計画やv2更新の実装、ナレーションへのビートの再調整、ショットの再レンダリング、またはビデオNプレビューの再ベイクを行う際に使用します。

make-tsx — マスターカット上にビジュアルビートを構築する とは?

このスキルは、AI動画エディタパイプラインの第二ステップを担当します。承認されたマスターカットとそのタイミング構造を基に、UI/ブラウザモックアップ、全画面ステートメント、図解、画像リビールなどのアニメーションビートをRemotion TSXで制作し、それらをマスターカット上に合成してプレビュー動画を生成します。ユーザーはビートごとにフィードバックを与え、その都度修正を加えながら進める協調的なワークフローが特徴です。入力として、編集計画、タイムラインマップ、ワードレベルのタイムスタンプ付きトランスクリプト、ブランド設定、そして再利用可能なコンポーネントライブラリを読み込みます。ショットはライブラリファーストの原則に従い、既存のコンポーネントを再利用して制作します。すべてのアニメーション要素はトランスクリプトのキューに同期させ、発話前に表示したり、話題が過ぎた後に残したりしないよう徹底します(「単語に同期」の原則)。処理後は、レンダリング結果をスクリーンショットで検証し、ベイクツールで最終プレビューを生成します。最終的なプレビューは実際のマスターカット上で合成されたフレームをスポットチェックし、品質を確認します。

対応✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/raisaksham377-bot/youtube-shorts-ai-editor/tree/HEAD/.claude/skills/make-tsx

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

make-tsx — マスター上にビジュアルビートを構築する

パイプラインのステップ2:承認されたマスターカットとそのタイミング構造を取得し、アニメーションビート(UI/ブラウザモックアップ、全画面ステートメント、図解、画像リビール)を生成し、それらをマスター上に合成してプレビューを出力します。協調的に、ビートごとに作業します。ユーザーはビートごとにフィードバックを与えます。

これはプロジェクトのオーケストレーションです。単一のクラッシュしないRemotionファイルの作成における低レベルのルール(フレームベースのみ、単調な interpolate、Easing.bezier、useState/useEffect 不使用、インポートの注意点)については、vidtsx-2d-generator スキルを使用してください — ここでのショットはこれらのルールに従います。

入力(毎セッション、最初にこれらを読むこと)

  • 計画 — videos/video-N/work/edit-plan.md(または v2-update-plan.md のような変更リスト)。何を構築すべきかの真実の情報源。レビューからの変更リストがある場合は、それが優先されます。それを適用し、確定したビートを再議論しないでください。
  • videos/video-N/work/timeline.json — 各ショットをマスター上のスパン + type にマッピングします。これを編集します。(スキーマは後述。)
  • videos/video-N/work/edited-transcript.json — マスタータイムラインにおけるワードレベルの時間(ミリ秒)。すべてがこれに同期します。
  • brand.md — 色/フォント/モーション/配信トークン。すべてのショットがブランドを読み込むため、すべての動画が一つのチャンネルのように感じられます。
  • remotion/src/lib/kit.tsx(+ lib/vscode.tsx、lib/browser.tsx)— 再利用可能なコンポーネントライブラリ。src/brand.ts、src/fonts.ts。remotion/src/shots/video-N/ 内の既存のショット。

ワークフロー

  1. 計画 + タイムライン + トランスクリプト + ブランド + キットを読む。 ヒットすべき各キューの正確な単語時間を取得します(edited-transcript.json をフレーズで grep → 開始/終了 ms → ローカルフレーム = (cue_s − shot.master_in_s) × fps)。
  2. 最初に本当に未決定のことだけを尋ねる(少量のバッチ)、その後構築します。確定した決定を再度尋ねないでください。
  3. ライブラリファースト。 ゼロからUIを書く前に、キットコンポーネントを再利用します。再利用可能なもの(ウィンドウの枠、ブラウザフレーム、カードスロット)を構築した場合は、それを lib/ に置き、後のショットや動画が利用できるようにします。優れたパターンをライブラリにフィードバックします。
  4. ショットを作成/編集 する — remotion/src/shots/video-N/ 内の vidtsx 形式の .tsx として(scripts/gen-registry.mjs によって自動登録)。ファイルごとに1ショット。ブランドトークンと以下の原則に従います。
  5. 単語に同期 する(原則を参照)。各サブ要素の出現をそのトランスクリプトキューに合わせます。発話前に何かを表示したり、ポイントが過ぎた後に表示し続けたりしないでください。
  6. timeline.json を更新 する — ビートのスパンと type を追加/置換/再調整します。スロットがプレースホルダーである場合(例:保留中のスクリーンレコーディング)は、明確な注釈を残します。
  7. レンダリング + スクリーンショットで検証(決してスキップしない):cd remotion && node scripts/render-all.mjs --scale=1 <ShotIds>(不透明 → out/<id>.mp4、透明オーバーレイ → .mov)。まず静止画で検証(--still)。ワード同期のリビール/スクロールの場合、クリップをレンダリングし、各キューでフレームを抽出します(ffmpeg -ss <t> -i out/<id>.mp4 -frames:v 1 f.jpg)— 60%の静止画1枚では不十分です。
  8. プレビューをベイク する:python tools/bake.py(timeline.json を読み取り → videos/video-N/output/video-N-preview.mp4、1080p30)。イテレーション中にプレフィックスをベイクするには --end SECONDS を使用します。
  9. 合成フレームをスポットチェック する — ベイクされた mp4 から、変更されたビート(実際のマスター上のショット)で、単独のショットだけでなく確認します。

timeline.json(合成マップ)

{
  "master": "videos/video-1/reference/master.mp4", "master_fps": 60,
  "remotion_out": "remotion/out",
  "shots": [
    { "id": "CreditsStat", "type": "cutaway", "master_in_s": 170.0, "master_out_s": 179.0, "cue": "..." }
  ],
  "preview": { "end_s": 329.6, "out": "videos/video-1/output/video-1-preview.mp4", "width": 1920, "height": 1080, "fps": 30 }
}
  • type: "cutaway" — ショットの .mp4 が [master_in_s, master_out_s] の間、マスター動画を置き換えます。マスターのオーディオは常にその下で継続します。
  • type: "overlay" — 透明なショット(ProRes 4444 .mov、compositionConfig で transparent: true)が、そのスパンの間、マスターの上に合成されます。永続的な小さなCTA/バッジを上部/下部のバンドに配置する場合に使用します。
  • bake.py は [0, end] をすべてのショット境界で分割し、各セグメントをレンダリングし(cutaway はショットから、overlay はマスター+アルファ、それ以外はマスターをそのまま)、連結し、マスターオーディオ 0..end をマルチプレックスします。フレーム正確。ショットのファイルは事前に remotion/out/ に存在している必要があります。
  • ショットは 1920×1080 でデザイン。render-all --scale=2 → 最終出力用に4K。プレビューベイクは 1080p30。最終配信は 4K60。

原則(ハウススタイル — これらを適用すること)

  • 単語に同期する(P1)。 サブ要素を、edited-transcript.json からタイミングを取ったナレーションキューでリビールします。「すべて表示してホールド」は悪い兆候です。
  • 先取りしない(P2)。 後で言及されるものを画面上に決して表示しないでください(「スキル」が紹介される前に表示しない、例のタイルを「さらなる例」の前に表示しない)。
  • 汎用アイコンより実際のアセット — デフォルト(P3、brand.md §6)。 実世界のもの(企業、人物、都市/国、実際のアプリ/製品、実際の求人)を挙げるビートは、実際の写真または実際のスクリーンショットを表示し、lucide-icon グラフィックや手描きのクローンを使用しません — アイコンは抽象的な概念(統計、プロセスステップ)で、表示する実際のものがない場合のフォールバックのみです。二つのケース:
    • 実際のウェブサイト / アプリ / ページ → tools/capture_web.py(Playwright — requirements.txt 参照)で実際の公開URLを対象にライブキャプチャし、media/projects/<video>/real/ に保存。WebBrowserFrame(単一静的ページ)でフレーム化するか、/fake-screencast(シミュレートされたカーソル/スクロール/クリックによるウォークスルー)で再生します。これは実際の状態のキャプチャであり、再描画されたモックアップではありません。
    • 実際の写真 / ロゴ / 人物 / 場所 → WebSearch/ブラウザツールを使用して実際のアセット(エンティティ自身のサイト、Wikipedia、Wikimedia Commons、YC/LinkedInスタイルのプロフィール)を見つけ、curl/ダウンロードして media/projects/<video>/real/ に保存します。記憶からロゴやスカイラインを再描画しないでください — 実際のファイルを取得します。Ken Burns効果(ゆっくり scale 1.0→1.12 + ビートのホールド中に小さな移動ドリフト)でアニメーション化し、静止表示しないでください。
    • 機械から出ていくもの(実際の企業に送る提案、公開アップロード)については、ランダムな画像検索結果よりも、公式/オープンライセンスのソースを優先します。リビールと camera-snap SFXキュー(brand.md §10)をペアにします。
  • 設定/セットアップ → 実際のUI(P4)。 キー、ダッシュボード、.env、スキルフォルダ → 抽象的なグラフィックではなく、実際のVS Code / ダッシュボードUI。
  • 実際の結果を実際のエディタで(P5)。 生成された結果は、ブランドカードに浮かべるのではなく、実際のエディタ内で開かれた状態(画像がチャットの横のペインに表示)で示します。
  • 全画面 vs オーバーレイ。 コンセプトビート = 全画面カットアウェイ(話している人物から切り替え)。オーバーレイは、上部/下部バンドの小さな永続的なCTA/バッジのみに使用。中央にフレーミングされた話している人物を決して覆わないでください。
  • 実際のUIのリアリズム。 UIクローンは実際の製品に合わせます(Claude Code = ダーク + コーラル、実際のロゴ)、インディゴブランドではありません。ブランドのインディゴはオーバーレイ/全画面ビート用です。
  • 録画 vs TSX。 制御されたハイライト/スクロール/ズームが必要な場合はTSX。本当の証明(実際の出力、実際の速度)がポイントである場合にのみ、実際の画面録画を使用します。ユーザーが提供する録画用のプレースホルダースロットを明確に注記して残します。
  • 画面上のテキストはブランドボイスに従います — emダッシュは使用しません(サイトコピーは避けています。オーバーレイでも同様にしないでください)。

これらが完全な原則セットです。動画の計画が改訂パスを要求する場合、何が変更され、なぜかを videos/<project>/work/v2-update-plan.md に記録し、次のパスがその理由を引き継げるようにします。

ツールクイックリファレンス

  • ショットの登録:node remotion/scripts/gen-registry.mjs(自動的にディスカバリーを実行。ファイル追加後に必要)。
  • レンダリング:node remotion/scripts/render-all.mjs [--still] [--scale=1|2] <ShotIds...>。
  • ベイク:python tools/bake.py [timeline.json] [--end S] [--keep]。
  • スクラッチレンダリング/フレームはスクラッチパッドに保存し、プロジェクトには保存しません。

完了 = 変更されたビートがレンダリングされ、各キューで静止画/フレームを確認し、プレビューが再ベイクされ、合成フレームがスポットチェックされました。パスが完了したら、計画/タイムラインおよび関連するメモリを更新します。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

raisaksham377-bot/youtube-shorts-ai-editor

Makes this repo's videos look like YOUR channel instead of the house default — interviews you for palette, fonts, wordmark, motion energy, delivery specs and SFX taste, then rewrites brand.md + remotion/src/brand.ts + remotion/src/fonts.ts together and renders a proof card so you SEE it. Use whenever the user wants to set up or change their brand, rebrand the repo, "make it my colors/fonts", change the accent color, set their wordmark, adjust the motion feel, or asks why their videos look like someone else's. Run it once before the first video. Not for per-video art direction (that is /make-tsx) and not for thumbnails, which are deliberately louder than the brand (that is /packaging).

raisaksham377-bot/youtube-shorts-ai-editor

Build a split-frame vertical Short/Reel (1080x1920) from talking-head footage — real face cropped into the bottom half throughout, bespoke motion-graphic beats + word-by-word captions in the top half. Use when the user wants a "vertical short", "reel", "9:16 video", "split-frame" format, asks to keep their face on screen the whole time while graphics play above it, wants an in-context app/UI mockup moment (like clicking a button in a browser) without cutting away from their face, or hits caption-pill-covers-my-face / no-GPU-rendering / audio-duration-mismatch problems while building one. Covers the crop-offset technique for framing the face, the caption-pill safe zone, the top-half-only UI-mockup scene pattern, the full pipeline from raw footage to final SFX mix, and the environment gotchas (no NVIDIA GPU, AAC priming gap, comp-native transcode). Topic-agnostic — this is a layout/technique skill, not tied to any one video's content. Builds on /clean-cut, /make-tsx conventions, and /suggest-sfx; doesn't rep...

raisaksham377-bot/youtube-shorts-ai-editor

Voice/audio cleanup step of the AI Video Editor pipeline — diagnose a video's background noise, pick the right denoise method, and produce a cleaned master (voice isolated, levels preserved, video stream copied). Use when the user wants to "clean the audio / voice", "remove background noise", "denoise", "isolate voice", fix outdoor/room/water/hum/hiss noise, run ElevenLabs Voice Isolator or local RNNoise, A/B denoise methods, or produce a cleaned master for a video-N in this repo. Covers diagnosing the noise (spectrogram + levels), choosing eleven vs rnnoise by noise type, the sample A/B, tools/clean_voice.py, preserving levels (RMS-match, not LUFS), and rewiring the pipeline to the clean master. Not the SFX/music mix (that is /suggest-sfx + the final-mix step) and not the cut (that is /clean-cut).

raisaksham377-bot/youtube-shorts-ai-editor

Step 1 of the AI Video Editor pipeline — turn raw talking-head footage into a clean master cut. Use when the user wants to "clean cut", "cut the raw footage", "remove filler / dead air / bad takes", "tighten the pacing", produce cuts.json, run the cut editor, or render a cleaned preview/master for a video-N project in this repo. Covers audio extraction, AssemblyAI transcription, authoring cuts.json (keeps/cuts/fluff categorized), the cut policy (content-aggressive, pause-natural ~0.5s), QA + review docs, the local cut-editor UI, tight/natural previews, the final 4K60 render, and producing edited-transcript.json as the handoff to /make-tsx. Not for building TSX overlays (that is /make-tsx) or the raw TSX authoring rules (that is vidtsx-2d-generator).

raisaksham377-bot/youtube-shorts-ai-editor

Turn static SCREENSHOTS into a simulated screen recording (TSX) — a fake screencast with an animated cursor that eases to targets and clicks, a browser URL bar that updates per page, hard-cut navigations, in-page filter crossfades, smooth scroll, and a ken-burns zoom onto the payoff. Use when a beat needs to show a walkthrough of a web app / dashboard / settings page and you'd rather build it from screenshots than get (or ask for) a real screen recording — "fake a screen recording", "turn these screenshots into a screencast", "simulate clicking through the dashboard", "animate this UI walkthrough", "cursor moving through the app". Built on remotion/src/lib/screencast.tsx. This is a technique WITHIN step 2 (make-tsx): defer timeline/render/bake orchestration to make-tsx and raw crash-free TSX rules to vidtsx-2d-generator. Not for a single static page clone (use WebBrowserFrame directly) and not when the point is genuine proof of real speed/output (use a real recording).

raisaksham377-bot/youtube-shorts-ai-editor

Generates click-optimized YouTube packaging — 3 thumbnail bets under one fixed title, engineered for YouTube's built-in A/B/C thumbnail test, plus a value-forward description, then renders the thumbnails as real images. Use this whenever you want to package a long-form video or turn a video idea into titles and thumbnails. Triggers include how would you package this, title ideas for, thumbnail concept, package this video, A/B variations, and make this clickable. Calibrates to your channel's own CTR data if you have it. Long-form only, never Shorts. Not for non-YouTube copywriting.

raisaksham377-bot/youtube-shorts-ai-editor

Step 4 of the AI Video Editor pipeline — the SFX pass. Analyze a video's beats + narration and propose tasteful sound effects synced to them, drawing from (and growing) a shared, reusable SFX library, then render an SFX-mixed audition preview. Use when the user wants to "add SFX / sound effects", "suggest sfx", "score the transitions", "sound-design this beat", generate/source sound effects, build or extend the sfx library/catalog, author or audit a sfx-plan, or mix SFX over a video-N preview in this repo. Covers reading timeline + edited-transcript + brand §10, the library-first flow, generating misses with the ElevenLabs Sound Effects API, the per-video sfx-plan.json, the hard user-audit gate, and mixing with tools/mix_sfx.py (light voice ducking). Not the music bed (that is the final-mix step) and not the visual beats (that is /make-tsx).

raisaksham377-bot/youtube-shorts-ai-editor

Generate production-ready 2D TSX video files for VidTSX (Remotion-based) from a shot, scene, or video description. Use whenever the user wants to create or generate a VidTSX video, a 2D TSX shot or scene, an animated clip, title card, or rendered motion graphic — including when they describe a visual animation they want built, or say "make a shot", "build this scene", "generate the TSX", or "turn this into a video". Covers the mandatory file structure and composition config, dimension presets (horizontal/vertical/square), six style presets (minimalist, memphis, neo-brutalism, glassmorphism, neon, corporate), and the hard rules that keep renders from crashing, covering frame-based animation only (no useState/useEffect/setTimeout), strictly monotonic interpolate ranges, Easing.bezier not wrapper syntax, and the chroma-js and @remotion/paths import gotchas. Not for 3D/three.js compositions, general React work, or editing video files.

関連スキル