Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

規劃編輯草稿於 work/visual-plan.json — 支援動態圖形(28 種元件類型,六種階段版型,可固定、縮小或調暗影片)、來自 Pexels/Pixabay 的 B-roll 穿插鏡頭、攝影機運動、9:16 的 A-roll 構圖;驗證、用兩種格式的靜態圖進行 QA,並以 Remotion 渲染。適用於任何標題、圖表、統計、下方三分之一、圖解、B-roll 或縮放效果,無論是談話性頭部或無臉編輯。

ai-video-editor 是什麼?

這個 AI 影片編輯技能可讓您根據詳細的 JSON 規劃(work/visual-plan.json)自動化動態圖形與影片編輯。它支援 28 種元件類型,分散在六種階段版型中(全螢幕、固定、帶狀、角落、覆蓋、滿版標記),並根據當前的口語內容自動變化視覺節奏,確保每個節拍都與說話內容同步。技能涵蓋 B-roll 穿插鏡頭(從 Pexels/Pixabay 搜尋與取得)、攝影機運動(推近、漂移、拉遠、甩鏡)以及 A-roll 構圖(支援 16:9 與 9:16 格式)。它透過 npm run visuals --check 驗證 JSON 結構,透過 --stills 產生兩種格式的 QA 靜態圖,最後以 Remotion 渲染最終影片。支援的平台包括任何使用 Remotion 的環境,特別適合用於 Cursor 或 Codex 等 AI 代理工具。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

motion-graphics — work/visual-plan.json

圖形服務於言語:每個節拍都顯示正在說的內容那一刻。多樣性是 硬性要求——模板的第一個視覺系統被拒絕為「非常單調:幾個文字 視覺、幾個螢幕分割,左邊放圖形,就這樣。」編輯必須不斷改變 形狀:畫面如何分割、出現哪種物件、如何出現。

規劃形狀(精確時間)

{
  "style": "glass",                         // 或 "broadcast"(平面編輯)。預設為專案風格
  "framing": { "9:16": "45% 40%" },         // 每種格式的 A-roll 裁切(談話頭部)
  "rail": true,                             // 從 chapter_open 標題產生的章節軌道
  "overlays": [ { "start": 41.5, "duration": 3.8, "type": "chapter_open", "text": "什麼是 Swayam?", "eyebrow": "第 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": "在『入職並未發生』上" } ],
  "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")以僅在一個格式中出現。

六種階段版型——由元件選擇,從不直接設定

版型畫面 (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

在連續的 dock 節拍之間交替 dock side。在整個影片中,沒有版型承載超過 約三分之一的重新構圖節拍。

元件詞彙——每個元件讀取的確切欄位(由 --check 驗證)

Takeover(編輯的完整停頓)

  • title_slide — text(標題)、eyebrow、可選 value(大的半透明年份)、style_hint(副標題)。可在第 0 幀讀取;在第一行播放。
  • chapter_open — text(2-5 個詞)、eyebrow(「第 02 節」)、可選 railLabel、numeral("" 隱藏半透明數字)。≥3 秒;其時間窗內無其他內容。
  • big_statement — text(<~8 個詞)、eyebrow = 要強調的一個詞的文字。
  • word_swap — from、to、可選 text 說明。僅用於關鍵時刻(「證書 → 技能」)。
  • quote_pull — text(引言)、eyebrow(歸屬)。
  • poll_prompt — text(問題)、items [{label, value 0-100 = 僅視覺權重}]、eyebrow。

Corner(圖形本身就是內容)

  • 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。「這樣做,不要那樣做」。

Dock(全部需要 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(定義)。

Band — 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 — text 含 [placeholders] 和 \n 換行;保持靜止以便截圖; 搭配 caption_blackouts 區段(卡片已顯示內容)。

規則

  • 疊加文字為簡短英文(原生文字存在於字幕中),約每秒 15 個字元, 螢幕上持續 ≥1.5 秒。純文字類型約佔規劃的一半;如果內容有形狀,請畫出形狀。
  • 每約 4-5 秒一個節拍(談話頭部)/ 每約 3-4 秒(無臉);持續的圖形按其長度計算。 不要連續兩次放置相同的元件(動作會重複)。疊加彼此不重疊。
  • 滿版標記永不與重新構圖時間窗重疊(±0.62 秒)——畫面正在移動中。
  • section(0-4)選擇強調色;如果省略,則跟隨進行中的章節。
  • 9:16:相同的規劃會渲染為直向感知(卡片在上方,圖形在卡片和字幕之間, 全部在 Instagram 的安全區內)。長文字會換行更多——保持簡短,檢查靜態圖。

B-roll 穿插鏡頭(談話頭部)

  • npm run broll -- search <p> "literal visual phrase" --format 16:9|9:16 → 閱讀縮圖 (素材庫搜尋會回傳錯誤的主題/區域/浮水印)→ npm run broll -- get <p> provider:id --name slug。 英文、具體、可拍攝:「分析師研究財務圖表」,而不是「利潤率」。
  • 每個 2.0-4.5 秒;切換到說話者剛剛提到的內容;間隔 ≥8 秒,大約每 25-40 秒一次;從不在 takeover/corner/chapter_open 期間(在 dock/band 內部沒問題——它在卡片中播放); 不要重複使用查詢。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 秒的滿版時間一次;與 重新構圖時間窗碰撞的動作會自動被丟棄。

QA 循環(不要跳過——完整渲染需要幾分鐘)

  1. npm run visuals -- <p> --check 直到 0 個錯誤(它會指出確切遺漏/錯誤命名的欄位)。
  2. npm run visuals -- <p> --stills 3.2,41.8,… 在每個元件系列的一個時刻 → 閱讀 work/stills-16x9/*.png 和 work/stills-9x16/*.png。檢查:空元件、文字覆蓋 字幕區、碰撞、臉部長時間被遮蓋、9:16 構圖偏離中心。
  3. npm run visuals -- <p>(兩種格式),然後進行字幕處理。
  4. 新元件類型放在 remotion/src/doc/overlays/ + 註冊表 + RULES 中的 tools/render-visuals.mjs;使用 npm run gallery 檢查它們(每種類型一張靜態圖,兩種格式)。

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.

相關技能