Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

规划编辑的视觉方案到 work/visual-plan.json 中——包含动态图形(6 种布局中的 28 种组件类型,可停靠、缩略或调暗视频)、来自 Pexels/Pixabay 的 B-roll 插入镜头、镜头运动、适合 9:16 的人物镜头构图——进行校验,用两种格式的静帧进行 QA,并通过 Remotion 渲染。适用于任何标题、图表、统计数据、下部三分、图表、B-roll 或对话/无人物视频中的缩放效果。

ai-video-editor 是什么?

该技能通过结构化的视觉方案文件 `work/visual-plan.json` 来规划视频编辑的视觉设计。它支持 28 种组件类型,分布在 6 种布局(全屏、停靠、带状、角落、全屏覆盖)中,可以动态改变视频画面的划分方式,从而避免视觉单调。技能集成了从 Pexels/Pixabay 搜索和获取 B-roll 插入镜头的功能,并支持镜头运动(推近、拉远、平移)以及针对 9:16 竖屏格式的人物镜头裁剪。它内置了严格的 QA 流程:首先通过命令行校验方案的结构正确性,然后渲染指定时间点的静帧(16:9 和 9:16 两种格式),人工检查组件是否正确显示、文字是否重叠、构图是否合适。最终使用 Remotion 渲染完整视频。该技能特别适合需要大量动态图形、图表、文字展示和 B-roll 的对话型或解说型视频,能显著提高制作效率和视觉丰富度。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

动态图形 — work/visual-plan.json

图形服务于言语:每一拍都展现当前正在说的那一点。多样性是硬性要求——该模板的第一个视觉系统因‘非常单调:几个文字视觉、几个屏幕分区左边放图形,仅此而已’而被否决。剪辑必须不断改变形态:画面如何分割,出现何种对象,它如何入场。

方案结构(精确时间点)

{
  "style": "glass",                         // 或 "broadcast"(扁平编辑风格)。默认值:项目风格
  "framing": { "9:16": "45% 40%" },         // 每种格式的人物镜头裁剪(对话头部)
  "rail": true,                             // 从章节开始标题生成的章节轨道
  "overlays": [ { "start": 41.5, "duration": 3.8, "type": "chapter_open", "text": "什么是 Swayam?", "eyebrow": "第一节", "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

在连续的停靠节拍之间交替 side(图形侧)。在整个视频中,没有一种布局占据超过大约三分之一的重新构图节拍。

组件词汇表——每个组件读取的确切字段(由 --check 验证)

全屏覆盖(编辑中的完全停顿)

  • title_slide — text(标题),eyebrow,可选 value(大的虚影年份),style_hint(副标题)。可在第 0 帧读取;在第一行台词上播放。
  • chapter_open — text(2-5 个词),eyebrow(“第二节”),可选 railLabel,numeral(“”隐藏虚影数字)。时长不小于 3s;在该时间段内不能有其他元素。
  • big_statement — text(<约 8 个词),eyebrow = 要突出显示的 ONE 个词。
  • word_swap — from,to,可选 text 字幕。仅用于转折时刻(“证书 → 技能”)。
  • 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.62s)——那时画面正在移动。
  • 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 秒一次;绝不在全屏覆盖/角落/章节开始时(在停靠/带状内部没问题——它在卡片内播放);不要重复使用查询。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/ 中,并更新注册表和 tools/render-visuals.mjs 中的 RULES;使用 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.

相关技能