Communitygithub.com

フェイク・スクリーンキャスト

静的なスクリーンショットから、アニメーションするカーソル、クリックエフェクト、URLバーの更新、ページ遷移、スムーズスクロール、ケン・バーンズズームなどを備えたシミュレートされたスクリーンレコーディング(TSX)を生成します。

フェイク・スクリーンキャスト とは?

このスキルは、静的なスクリーンショットのコレクションを、あたかも実際の画面収録であるかのような、完全にアニメーション化された疑似スクリーンキャストに変換します。本物の画面収録を依頼したり自分で撮影したりする代わりに、このスキルを使用して、Webアプリ、ダッシュボード、設定ページのウォークスルーを構築できます。このスキルは`remotion/src/lib/screencast.tsx`ライブラリコンポーネントに基づいており、`make-tsx`(ステップ2)内のテクニックとして機能します。タイムライン/レンダリング/ベイクのオーケストレーションは`make-tsx`に委譲し、クラッシュフリーのTSXルールは`vidtsx-2d-generator`に委譲します。このスキルは、動くカーソル、クリックリップル、変化するURLバー、ハードカットのページ遷移、ページ内フィルターのクロスフェード、スムーズスクロール、そしてペイオフ要素へのケン・バーンズズームを生成します。開発者は、`<Screencast>`コンポーネントにページの詳細(画像パス、URL、タイミング)とカーソルのキーフレーム(ビューポートと画像の割合に基づく座標)を指定するTSXファイルを作成します。このスキルは、単一の静的なページのクローンや、実際の速度や出力を証明するための本物の画面収録には適していません。

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

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

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

ドキュメント

fake-screencast — スクリーンショット → シミュレートされた画面収録

スクリーンショットのウォークスルーを実際の画面収録のように見せます。ページごとに変化するURLバーを持つブラウザのクローム、各クリックターゲットにベジェ曲線に沿ってイージングしながら移動しクリックで波紋を表示するカスタムカーソル、ハードカットによるページナビゲーション(URLパスが変化)、短いクロスフェードによるページ内フィルター(URLクエリが変化)、スムーズなスクロール、ペイオフ要素へのゆっくりとしたケン・バーンズズーム、そしてスライドショーに見えないようにする一定のドリフト。TSXファースト:制御可能、再レンダリング可能、複数のビデオで再利用可能。

これは**make-tsx(ステップ2)内のビート構築テクニックです。make-tsxはタイムライン.json / レンダリング / ベイクのメカニズムと同期・ワード原則に使用し、vidtsx-2d-generator**はRemotionファイルをクラッシュさせないための低レベルルール(フレームベースのみ、単調なinterpolate、Easing.bezier、useState/useEffect禁止)に使用します。ここで作成するショットはそれらのルールに従います。

このツールが適切な場合(判断ゲート)

  • フェイクスクリーンキャスト(このスキル) — 各状態のスクリーンショットを取得できる、または取得済みで、制御されたウォークスルー(カーソルパス、ハイライト、ズーム、ナレーションに同期したタイミング)を希望する場合。これは「設定用の実際のUI」のP4バージョンで、シミュレートされたものです。ウォークスルーがどこに何があるか / 手順についてであり、実際の速度が問題ではない場合に最適です。
  • 実際の画面収録 — 本当の証拠(実際のレイテンシ、ライブ結果の出現、もっともらしく偽造できないもの)を示す必要がある場合のみ。実際の収録が届くまで、明確に注釈されたpending_recordingプレースホルダースロットを残します(make-tsxを参照)。
  • 単一の静的ページのクローン — ナビゲーションやカーソルがない1ページのみの場合(例:ハイライトまたはスクロールのみの価格ページ)、lib/browser.tsxから直接WebBrowserFrameを使用します。スクリーンキャストの仕組みに手を出す必要はありません。

ステップ1 — スクリーンショットを取得する(ユーザーに依頼)

必要なショットリスト(カーソルが訪れるページまたは状態ごとに1つのスクリーンショット)をユーザーに伝え、それから待ちます。要件:

  • ログイン済み / 実際のデータ、実際の製品UI、一貫したウィンドウサイズ(理想的には約1920幅)でキャプチャされていること。
  • 状態ごとに1枚、中間状態も含む:フィルタリングされていないリストとそのフィルタリング結果は2枚のスクリーンショットとして扱います(クロスフェードが「検索適用済み」を効果的に表現します)。
  • 長いページの実際のスクロールスルーには、縦長のキャプチャ(ページ全体、スクロール先の領域を含む)が必要です — 1ビューポートのスクリーンショットでは真のスクロールはできません(数ピクセルのドリフトしか偽装できません)。必要に応じてそのように伝え、ビートに必要な場合は縦長のキャプチャを依頼します。
  • 不足しているビューがあれば名前を指定して尋ねます(例:「Xでフィルタリングしたモデルリスト」、「Yをトグルした後の設定ページ」)。

保存先はmedia/library/images/<service>/とし、わかりやすい名前を付けます(account-home.png、workers-ai.png、models-all.png、models-flux.png)。ページ内ではlibrary/images/<service>/<name>.pngとして参照します(これがコンポーネントが期待するstaticFile相対パスです)。

ステップ2 — ライブラリAPI(remotion/src/lib/screencast.tsx)

<Screencast pages cursor clicks box glow favicon appearAt />。**座標はすべてFRACTION(割合)**であるため、サイズ変更にも耐性があります。

  • カーソルのx/yとクリックリップル → ビューポートの割合(URLバーの下にあるページ領域の0..1)。
  • ズームのfx/fy → 画像の割合(プッシュのtransform-origin)。
import { Screencast, ScreencastPage, CursorKey } from '../../lib/screencast';

const PAGES: ScreencastPage[] = [
  { img: 'library/images/svc/home.png',  url: 'app.svc.com/…/home',        tabTitle: 'Home | Svc',    enterAt: 0 },
  { img: 'library/images/svc/list.png',  url: 'app.svc.com/…/items',       tabTitle: 'Items | Svc',   enterAt: 130, transition: 'cut' },       // ナビゲーション → ハードカット + 新しいパス
  { img: 'library/images/svc/filtered.png', url: 'app.svc.com/…/items?q=x', tabTitle: 'Items | Svc',  enterAt: 262, transition: 'crossfade', transitionFrames: 5,   // ページ内フィルター → クロスフェード + 同じパス + クエリ
    drift: 0.01, zoom: { from: 1.0, to: 1.4, fx: 0.32, fy: 0.52, range: [266, 289] } },  // ペイオフカードへのケン・バーンズ
];

const CURSOR: CursorKey[] = [   // {frame, x, y} ビューポート割合; セグメントごとにイージング
  { frame: 0, x: 0.60, y: 0.42 }, { frame: 128, x: 0.09, y: 0.68 }, /* … */ { frame: 294, x: 0.36, y: 0.52 },
];
const CLICKS = [130, 206, 255]; // リップルが発生するフレーム(到着キーフレームに配置)

export const compositionConfig = { id: 'SvcRecording', durationInSeconds: 10.0, fps: 30, width: 1920, height: 1080 };
const SvcRecording = () => <Screencast pages={PAGES} cursor={CURSOR} clicks={CLICKS} />;
export default SvcRecording;

ページフィールド: img, url, tabTitle, enterAt(必須); transition?: 'cut'|'crossfade'(デフォルトcut), transitionFrames?(デフォルト5), scroll?: {to, range:[a,b], from?}(画像pxのtranslateY), zoom?: {from,to,fx,fy,range:[a,b]}, drift?(デフォルト0.02 — 一定のゆっくりとした「生きている」動き)。Screencastのprops: box?(デフォルト{x:60,y:63,w:1800,h:954}), glow?, appearAt?, favicon?(デフォルトはCloudflareクラウド — 他のサービスには独自のものを渡してください)。

ステップ3 — タイミングと座標

  • フレーム0 = ショットのmaster_in_s。t秒のナレーションキューに対し:frame = round((t − master_in_s) × fps)。edited-transcript.jsonで正確な単語の開始/終了(ms)を確認します。クリック/ページのenterAtは単語の数フレーム前に設定し、結果が単語上に来るようにします;ケン・バーンズzoom.rangeはペイオフワード上で終了するようにします。
  • スクリーンショットからクリックターゲットの割合を見つける:要素のピクセル位置 ÷ 画像の幅/高さ ≈ ビューポートの割合(画像はページ領域を埋め、上揃え、横幅に合わせて表示されます)。カーソルの到着キーフレームをそこに設定し、到着の約2フレーム後にクリックフレームを追加します。その後レンダリングして確認(ステップ4)し、ポインターが要素上に来るまで割合を調整します。
  • 各ページ/カーソルの移動を対応するキューにシーケンスします:イントロのラインでダッシュボードをホールド → カーソルがサイドバー項目にイージングし、その項目が名前として呼ばれるときにクリック → 次のページが表示 → ペイオフワードが話されるときにペイオフにズーム。

注意点(それぞれ発見に1レンダリングコストがかかります)

  • 高さゼロの包含ブロック。 WebBrowserFrameは子要素をtransformされたdivでラップし、それが絶対配置された子孫の包含ブロックとなり、高さが0に縮小します。そのため、ページレイヤーには明示的な領域サイズ(ボックスからのwidth/height)が必要であり、inset:0は使えません — ライブラリは既にこれを処理しています;拡張する場合は維持してください。
  • ナビゲーションとフィルターの区別がリアルさの鍵。 ページ変更 = ハードカット + 異なるURLパス。ページ内の検索/フィルター = 短いクロスフェード + 同じパス(クエリ追加)。これらを混同すると偽物とわかります。
  • 1ビューポートのスクリーンショットではスクロールできません — 代わりにdrift + ケン・バーンズzoomで「生きている」ように偽装します。縦長のキャプチャがある場合にのみ実際のscrollを使用します。
  • プレビュー用には--scale=1でレンダリング(1080p、bake.pyに適切);最終的な4K60には--scale=2で再レンダリングします。
  • カーソルのホットスポット(先端)はポインターSVGの左上付近にあります;ライブラリが調整します。ポインターが数ピクセルずれているように見える場合は、SVGではなくターゲットの割合を調整します。

ステップ4 — 確認してからmake-tsxに戻す

  • 各キューでレンダリング+スクリーンショット(決して1枚の静止画だけではありません):node remotion/scripts/render-all.mjs --scale=1 <Id> を実行し、ffmpegを使用してカーソルがターゲット上にあるフレーム、各クリックフレーム、ページ変更フレーム、およびズームペイオフフレームを抽出します。ポインターが要素上にあること、URLが正しく変更されていること、ズームが適切なものをフレーミングしていることを確認します。割合/フレームを調整し、再レンダリングします。
  • その後、残りの手順についてはmake-tsxに従います:timeline.jsonを更新し(スパンを置き換え/再タイミング、pending_recordingの注釈があれば削除)、python tools/bake.pyを実行し、ビートおよび両方の境界で、実際のマスター上のショットの合成フレームをスポットチェックします。
  • コンポーネントを改善した場合(ページごとのファビコン、実際のテキスト入力フィールド、キャプションレイヤーなど)、lib/screencast.tsxに反映させ、将来のビデオがそれを継承するようにします。

標準的な形 — この振り付けをコピーする

約4ページ、約10秒の実際の画面収録として見える動き:

  1. ナレーションが設定を説明している間、ランディングページでホールド(driftのビート、決してフリーズフレームにはしない)。
  2. カーソルがサイドバー項目にイージングし、その項目の名前が呼ばれる単語上でクリック — クリックは名詞の前ではなく、名詞上に着地する。
  3. そのページへハードカット、URLパスが変更される。これがナビゲーションです。
  4. フィルターを入力 → 短いクロスフェード、クエリが追加された同じパス。これはナビゲーションではなく、これをナビゲーションとしてレンダリングすることが最大の偽物感を生み出します。
  5. ペイオフワードが正確に話される瞬間に、ケン・バーンズズームでペイオフにフォーカス。

実際に構築する前にremotion/src/lib/screencast.tsxを読んでください — それがエンジンであり、そのpropsが上記のすべての動きのドキュメントです。ページ配列、カーソルキーフレーム、ページごとのURLとズームはすべてそこで型付けされています。

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

Step 2 of the AI Video Editor pipeline — build the visual beats (Remotion TSX shots) over a project's master cut and bake a composited preview. Use when the user wants to add/edit overlays or full-screen animation segments, "make a shot / beat", implement an edit plan or a v2 update, retime a beat to the narration, re-render shots, or re-bake the video-N preview in this repo. Covers reading the plan + edited-transcript + brand + reusable kit, authoring shots library-first, syncing reveals to word times, updating timeline.json (cutaway vs overlay), rendering, verifying by screenshot, and baking with tools/bake.py. Defers raw TSX authoring rules to vidtsx-2d-generator and the cut itself to clean-cut.

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.

関連スキル