Communitygithub.com

raisaksham377-bot/youtube-shorts-ai-editor

AI视频编辑器管线的第二步——基于项目的主剪辑和时间轴构建可视化节拍(Remotion TSX镜头),并合成预览。用于添加/编辑覆盖层或全屏动画片段、制作镜头/节拍、实施编辑计划或v2更新、根据旁白调整节拍时间、重新渲染镜头或重新烘焙预览视频。

youtube-shorts-ai-editor 是什么?

该技能是AI视频编辑管线的第二步,专注于将approved的主剪辑(master cut)及其时间骨架转化为生动的动画节拍。它支持创建UI/浏览器模拟、全屏声明、图表、图像揭示等,并将它们合成到主剪辑中形成预览。开发者通过协作、逐节拍的方式工作,用户可以为每个节拍提供反馈。 主要功能包括:从编辑计划、已编辑转录、品牌指南和可复用组件库中读取输入;优先使用库组件;将每个子元素的呈现与转录提示词精确同步;更新timeline.json(定义镜头类型:cutaway或overlay);渲染并通过截图验证;最后使用bake.py烘焙预览视频。 该技能在多种平台上适用,包括Claude Code、Cursor和Codex。它强调“先库后写”(library-first),并将可重用模式推广回组件库。同时遵循一套严格的设计原则:精确同步旁白、不提前揭示未来内容、使用真实资产(如真实网页截图)而非通用图标、以及保持品牌一致性。它建立了一套完整的镜头注册、渲染、烘焙和验证流程,确保最终视频的专业质量。

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

在你喜欢的 AI 中提问

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

文档

make-tsx — 在主剪辑上构建可视化节拍

管线的第二步:获取已批准的主剪辑及其时间骨架,生成动画节拍——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. 读取计划 + 时间线 + 转录 + 品牌 + 组件库。提取每个必须命中的提示词的精确单词时间(grep edited-transcript.json查找短语 → 开始/结束毫秒 → 本地帧 = (提示词开始时间_s − 镜头.master_in_s) × 帧率)。
  2. 仅询问开头真正未确定的内容(一小批),然后开始构建。不要重新询问已确定的决策。
  3. 先库后写。 在从头编写UI之前,优先重用库组件。如果构建了可重用的内容(窗口边框、浏览器框架、卡片槽),将其放入lib/中,以便后续镜头和视频能够使用。将好的模式推广回库中。
  4. 编写/编辑镜头为remotion/src/shots/video-N/中的vidtsx格式.tsx文件(由scripts/gen-registry.mjs自动注册)。每个文件一个镜头。遵循品牌标记和以下原则。
  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%静态帧是不够的。
  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使用主剪辑+alpha,其余部分主剪辑直通),连接,并复用主剪辑音频从0到end。帧精确;镜头的文件必须首先存在于remotion/out/中。
  • 镜头设计为1920×1080;渲染时使用--scale=2 → 最终交付4K。预览烘焙为1080p30;最终交付为4K60。

原则(频道风格——应用它们)

  • 与单词同步(P1)。 在旁白提示词处揭示子元素,时间基于edited-transcript.json。“一次性展示所有内容然后保持”是不好的做法。
  • 不要提前揭示(P2)。 绝不在屏幕上显示之后才会提到的内容(在介绍“技能”之前不显示“技能”;在提到“更多示例”之前不显示示例图块)。
  • 真实素材优先于通用图标——默认(P3, brand.md §6)。 任何提及现实世界事物(公司、人物、城市/国家、真实应用/产品、真实招聘信息)的节拍都应展示该事物的真实照片或真实截图,而不是lucide图标图形或手绘克隆——图标仅作为抽象概念(统计数据、流程步骤)且没有真实内容可展示时的备选方案。两种情况:
    • 真实网站/应用/页面 → 使用tools/capture_web.py(Playwright — 见requirements.txt)实时抓取,指向真实的公开URL,保存到media/projects/<video>/real/;使用WebBrowserFrame(单静态页面)展示,或使用/fake-screencast(带模拟光标/滚动/点击的演练)重播。这是真实状态捕获,而非重绘的模拟。
    • 真实照片/标志/人物/地点 → 使用WebSearch/浏览器工具找到实际素材(实体自己的网站、维基百科、维基共享资源、YC/LinkedIn风格的个人资料),然后用curl/下载到media/projects/<video>/real/。绝不凭记忆重绘标志或天际线——获取真实文件。使用肯·伯恩斯效果(在节拍保持期间缓慢scale 1.0→1.12加少量平移漂移)为其添加动画,而不是静态展示。
    • 优先使用官方/公开许可的来源,而非随机图片搜索结果,特别是对于会离开机器的内容(发给真实公司的推介、公开上传)。将揭示与camera-snap音效提示词配合使用(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] <镜头ID...>。
  • 烘焙: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.

相关技能