Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

動画編集のビジュアルプラン(work/visual-plan.json)を計画し、モーショングラフィックス(6種類のステージレイアウト、28のコンポーネントタイプ)、Pexels/PixabayからのBロール、カメラワーク、9:16のAロールフレーミングを検証・QAし、Remotionでレンダリングします。トークヘッドやフェイスレス動画のタイトル、チャート、統計、ローワーサード、図、Bロール、ズームなどに使用できます。

ai-video-editor とは?

このスキルは、JSONベースのビジュアルプラン(work/visual-plan.json)を中心に、AI駆動の動画編集パイプラインを提供します。トークヘッド動画とフェイスレス動画の両方をサポートし、6種類のステージレイアウト(full、dock、band、corner、takeover)にわたる28のコンポーネントタイプを使用して、モーショングラフィックスを自動生成します。Pexels/PixabayからBロールを検索・取得し、カメラの動き(パンチイン、ドリフトインなど)を適用し、9:16の縦型フォーマットに自動対応します。Remotionを使用してレンダリングする前に、`--check` によるバリデーションとスチル画像によるQAループを実行し、品質を確保します。主にClaude CodeなどのAIエージェント環境で使用することを想定しており、開発者は `npm run visuals` および `npm run broll` コマンドでワークフロー全体を制御できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SrigadaAkshayKumar/ai-video-editor/tree/HEAD/.claude/skills/motion-graphics

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

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

ドキュメント

モーショングラフィックス — work/visual-plan.json

グラフィックスは発話に従います。すべてのビートは、その瞬間に語られている内容を表示します。多様性は必須要件です。テンプレートの最初のビジュアルシステムは「非常に単調:テキストビジュアルがいくつか、左側にグラフィックがある画面分割がいくつか」と却下されました。編集は常に形状を変え続ける必要があります:フレームの分割方法、表示されるオブジェクトの種類、その出現方法。

プランの形状(クリーンカットタイム)

{
  "style": "glass",                         // または "broadcast"(フラットな編集)。デフォルト:プロジェクトスタイル
  "framing": { "9:16": "45% 40%" },         // フォーマットごとのAロールクロップ(トークヘッド)
  "rail": true,                             // chapter_openタイトルからチャプターレール
  "overlays": [ { "start": 41.5, "duration": 3.8, "type": "chapter_open", "text": "What Is Swayam?", "eyebrow": "Section 01", "section": 1 } ],
  "brolls": [ { "start": 88.0, "duration": 3.4, "src": "assets/broll/empty-office.mp4", "media_start": 1, "motion": "pan_right", "grade": "cool", "transition": "fade", "reason": "over 'onboarding is not happening'" } ],
  "camera_moves": [ { "start": 250.2, "duration": 2.4, "kind": "punch_in", "scale": 1.12 } ],
  "caption_blackouts": [ { "start": 300, "end": 318 } ],
  "scenes": [ … フェイスレス動画のみ、edit-video-facelessを参照 … ]
}

どのアイテムも "only": "9:16"(または "16:9")を指定して、1つのフォーマットでのみ表示させることができます。

6つのステージレイアウト — コンポーネントによって選択され、直接設定されることはありません

レイアウトフレーム(16:9)フレーム(9:16)コンポーネント
fullビデオそのまま同じkeyword_chip, lower_third, side_note, annotation, marquee_strip, speed_hint, sample_answer
dockビデオカードが片側、グラフィックカラムが反対側(side = グラフィックの側)ビデオカードが上部、グラフィックストリップが下部bar_chart, line_chart, donut_chart, progress_ring, step_progress, timeline, bullet_list, comparison, term_card
bandビデオが上部2/3、幅広ストリップが下部ビデオが上部42%、ストリップが下部fact_band
cornerグラフィックがフレーム全体、ビデオは小さなカードカードが右上number_roll, stat_trio, flow_diagram, matrix_grid, checklist
takeoverビデオが暗くなり、ぼやけて全画面タイプの後ろに配置同じchapter_open, big_statement, word_swap, quote_pull, poll_prompt, title_slide

連続するドックビートでは、ドックの side を交互に変えてください。動画全体を通して、どのレイアウトもリフレーミングビートの約3分の1以上を占めてはいけません。

コンポーネント語彙 — 各々が読み取る正確なフィールド(--check で検証)

テイクオーバー(編集の完全停止)

  • title_slide — text(タイトル)、eyebrow、オプションの value(大きなゴースト年)、style_hint(サブタイトル)。フレーム0で読み取り可能。最初のラインの上で再生されます。
  • chapter_open — text(2〜5語)、eyebrow("Section 02")、オプションの railLabel、numeral("" でゴースト番号を非表示)。3秒以上。その時間枠には他に何も配置しない。
  • big_statement — text(約8語以下)、eyebrow = 強調表示するテキストの1語。
  • word_swap — from、to、オプションの text キャプション。ヒンジとなる瞬間のみ("Certificate → Skill")。
  • quote_pull — text(引用)、eyebrow(帰属)。
  • poll_prompt — text(質問)、items [{label, value 0-100 = 視覚的な重みのみ}]、eyebrow。

コーナー(グラフィックがコンテンツそのもの)

  • number_roll — 数値の value、prefix/suffix/decimals、text ラベル。フレーズであって数字でない場合は big_statement を使用。
  • stat_trio — items [{label, sublabel(例:"₹"などの接頭辞), value(数値)}] ×2〜3。
  • flow_diagram — items [{label, sublabel}] ×2〜5、text 見出し。プロセスやパイプラインが説明される時はいつでもこれを使用する。
  • matrix_grid — items [{label}]、text。セット:ツール、役割、ベンダー。
  • checklist — items [{label, state: "yes"|"no"}]、text。「これをする、あれはしない」。

ドック(すべて side が必要)

  • bar_chart / line_chart / donut_chart — items [{label, value}]、text。
  • progress_ring — value 0-100(current ではない)、text。
  • step_progress — items [{label}]、current_step(数値)、text。
  • timeline — items [{label, sublabel}]、オプションの current インデックス、text。
  • bullet_list — items [{label}]、text。
  • comparison — left と right {label, text} — items ではない(そうしないと空白のカードになる)。
  • term_card — text(用語)、eyebrow、items[0].label(定義)。

バンド — fact_band — items [{label, sublabel}] ×2〜3。

フルブリードマーク(顔がある中心部には配置しない;side 左/右)

  • keyword_chip — text(1〜3語)· lower_third — text、eyebrow · side_note — text
  • annotation — text、shape: underline|circle|bracket(安価で活気がある — 頻繁に使用)
  • marquee_strip — text(動画あたり2つまで:最も派手なオブジェクト)· speed_hint — オプションの text
  • sample_answer — [プレースホルダー] と \n 行を含む text。スクリーンショットのために静止したまま。caption_blackouts スパンとペアにする(カードが既にそれを伝えている)。

ルール

  • オーバーレイテキストは短い英語(ネイティブスクリプトの単語はキャプション内に存在する)、約15文字/秒、画面表示時間1.5秒以上。テキストのみのタイプはプランの約半分以下。コンテンツに形状がある場合は、その形状を描く。
  • 約4〜5秒ごとにビート(トークヘッド)/ 約3〜4秒ごと(フェイスレス)。持続的なグラフィックスはその長さ分カウントされる。同じコンポーネントを連続して配置しない(モーションが繰り返される)。オーバーレイは互いに重ならない。
  • フルブリードマークはリフレーミングウィンドウ(±0.62秒)と重ならない — フレームは移動中。
  • section(0〜4)はアクセントカラーを選択する。省略された場合は実行中のチャプターに従う。
  • 9:16: 同じプランが縦型に対応してレンダリングされる(カードは上部、グラフィックスはカードとキャプションの間、すべてInstagramのセーフゾーン内)。長いテキストはより多く折り返される — 短くして、スチルを確認する。

Bロールカットアウェイ(トークヘッド)

  • npm run broll -- search <p> "リテラルな視覚的フレーズ" --format 16:9|9:16 → サムネイルを読む(ストック検索は誤った被写体/地域/ウォーターマークを返すことがある)→ npm run broll -- get <p> provider:id --name slug。 英語で、具体的で、撮影可能なもの:「analyst studying financial charts」であって「margins」ではない。
  • 各2.0〜4.5秒。話し手が文字通り今言及したものにカットアウェイする。8秒以上の間隔を空け、約25〜40秒に1回。テイクオーバー/コーナー/chapter_open中は決して使用しない(ドック/バンド内では問題ない — カード内で再生される)。クエリを再利用しない。motion ken_in|ken_out|pan_left|pan_right|static、grade neutral|cool|warm|noir|hot(ムードを伝える)、transition fade|cut|whip|flash。

カメラの動き

punch_in(強い強調)、drift_in(長い説明)、pull_out(チャプター開始後)、whip(新しいセクションへの約0.8秒)。スケール1.06〜1.15、フルブリード時間の約20〜30秒に1回。リフレーミングウィンドウと衝突する動きは自動的に削除される。

QAループ(スキップしないこと — フルレンダリングには数分かかる)

  1. npm run visuals -- <p> --check をエラーが0になるまで実行(欠落または誤った名前のフィールドを正確に示す)。
  2. npm run visuals -- <p> --stills 3.2,41.8,… をコンポーネントファミリーごとに1つの瞬間で実行 → work/stills-16x9/*.png と work/stills-9x16/*.png を読む。以下を確認:空のコンポーネント、キャプションバンド上のテキスト、衝突、長時間顔を覆っている、9:16フレーミングの中心がずれている。
  3. npm run visuals -- <p>(両方のフォーマット)を実行し、次にキャプションパス。
  4. 新しいコンポーネントタイプは remotion/src/doc/overlays/ とレジストリ、および tools/render-visuals.mjs の RULES に追加。npm run gallery で確認(タイプごとに1スチル、両方のフォーマット)。

Individual skills in this repo

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

SrigadaAkshayKumar/ai-video-editor

Turn a finished AI-edits video (projects/<p>, or several parts of one long video) into YouTube Shorts. Reuses the edit's word timestamps, reads the whole transcript, picks self-contained dialog moments, adds text hooks + comment prompts, renders 9:16 clips with Remotion. Use when the user asks to clip/make shorts from an edited project or a long video.

SrigadaAkshayKumar/ai-video-editor

Choose, fetch and place background music for an edit — Openverse search (commercial-use CC, or CC0-only), music_cues in work/audio-plan.json with fades, offsets and a deliberate silence gap; tools/mix.mjs conditions every bed, sets it to one measured house level under the voice and sidechain-ducks it. Use when adding, swapping or re-levelling music.

SrigadaAkshayKumar/ai-video-editor

Generate and style word-synced captions (Telugu, Hindi, English, code-mixed) as the HyperFrames captions pass over each format's Remotion picture, fix caption text, black captions out under on-screen text, and check caption content at every cut join. Use when creating, restyling, correcting or repositioning captions in any edit.

SrigadaAkshayKumar/ai-video-editor

Editorial rules for turning a raw talking video or voiceover into a clean cut — removing retakes, repetitions, false starts, stutters, fillers, mispronounced words, contradictions/inconsistencies, off-script chatter and dead air — by writing work/edl.json for tools/cut.mjs. Telugu, Hindi, English and code-mixed speech. Use for stage 2 of edit-video or whenever the user asks to tighten/re-cut a video.

SrigadaAkshayKumar/ai-video-editor

Turns a bare voiceover (no presenter on camera) into a finished faceless documentary/explainer for YouTube 16:9 and Instagram 9:16 — clean-cuts the narration, DIRECTS it (story spine, tension curve, hooks, involvement beats), researches the claims and screenshots the real sources, plans a scene track (stock b-roll, stills, news screenshots, pure-graphic beats) with motion graphics, designs music + SFX, renders, captions and credits it. Use when the user gives a voiceover/narration file (or says "faceless video", "make a video from this VO", "documentary").

SrigadaAkshayKumar/ai-video-editor

End-to-end editor for TALKING-HEAD videos (a person on camera) in this repo. Use when the user hands over a raw video with a speaker and wants a finished edit, or asks to continue/resume/redo any stage of an existing talking-head project — clean cut, motion graphics, b-roll, SFX, music, captions, final render, thumbnail. Delivers YouTube 16:9 and Instagram 9:16. Telugu, Hindi, English and code-mixed speech. For a voiceover with no presenter use edit-video-faceless.

SrigadaAkshayKumar/ai-video-editor

Design the sound effects of an edit in work/audio-plan.json sfx_events — which effect, where, how often — using the measured SFX library (repo assets/sfx, HyperFrames' bundled set, CC0 fetches from Openverse) and the spectral rule that sub-band cues carry structure while vocal-band cues are rationed. Mixed and levelled by tools/mix.mjs. Use when adding or adjusting SFX in any edit.

SrigadaAkshayKumar/ai-video-editor

Write the upload package for a video this repo edited — YouTube title options, description with chapters, tags, pinned comment, thumbnail text, and the Instagram Reels caption + hashtags for the 9:16 cut — optimised for whichever channel/client the user says it is for (config/brands/ profiles, only when named). Use when the user asks what to title a video, for a description, tags, chapters, "the YouTube metadata", an Instagram caption, or SEO/CTR advice on a finished render.

SrigadaAkshayKumar/ai-video-editor

Design and build a high-CTR thumbnail for a video this repo edited — hook selection, the real face frame pulled from the footage, background cut-out, type set with real fonts (Telugu/Devanagari included), the YouTube 1280x720 thumbnail and the Instagram 1080x1920 cover, an optional image-generation prompt for the background layer, and a feed-size legibility check. Use when the user asks for a thumbnail, thumbnail ideas, a cover image, or how to make the thumbnail more clickable.

関連スキル