Communitygithub.com

raisaksham377-bot/youtube-shorts-ai-editor

让你的YouTube Shorts影片看起来像你自己的频道,而不是默认的模板风格。通过访谈获取你的品牌偏好(调色板、字体、字标、动作能量、交付规格、音效品味),然后同步更新三个品牌文件并渲染一张证明卡片供你确认。

youtube-shorts-ai-editor 是什么?

这个技能(Skill)专为YouTube Shorts创作者设计,用于在基于Remotion的视频编辑仓库中建立或更改品牌形象。它通过一次完整的访谈流程,了解用户的频道身份、视觉风格、调色板、字体、交付规格和音效品味,然后同时更新三个关键文件:`brand.md`(文本合约)、`remotion/src/brand.ts`(代码令牌)和`remotion/src/fonts.ts`(字体配置)。该技能的关键优势在于防止品牌信息缓慢漂移——三个文件必须同步,否则文档与视频实际效果会脱节。技能采用分阶段流程:先一次性访谈,再提出完整提案供用户确认;然后验证字体必须来自`@remotion/google-fonts`且包含所需字重;计算对比度以确保可读性;最后写入所有三个文件并渲染一张证明卡片。该技能不支持单视频艺术指导(那属于`/make-tsx`),也不管理缩略图(那属于`/packaging`,故意与品牌不同步)。适用于Claude Code等支持Skill的AI开发环境。

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

在你喜欢的 AI 中提问

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

文档

品牌设置

在第一个视频之前运行一次。 本仓库自带一个默认品牌——冷静、优质的靛蓝色调。这是一个真实可用的品牌,不是占位符,你可以保留它。但如果你从未修改过,你在此制作的所有视频看起来都会像它来自的频道。此技能一次性解决这个问题。

此技能拥有什么

三个必须保持同步的文件,此技能是唯一应该同时写入这三个文件的东西:

文件内容读取者
brand.md用散文形式写的合约每个步骤二及之后的技能(/make-tsx、/suggest-sfx、/packaging)
remotion/src/brand.ts相同的令牌(代码形式)—— COLORS、GRADIENT、RADIUS、SHADOW、EASINGS、BRAND每个镜头
remotion/src/fonts.ts字体家族,从 @remotion/google-fonts 加载每个镜头

它们会悄然漂移。 brand.md 说靛蓝,brand.ts 说青色,但没有任何错误——文档只是悄无声息地不再描述视频。这就是为什么一个技能在一次通过中写入所有三个文件。

每个镜头都从 brand.ts / fonts.ts 导入,所以更改这里的值会重新品牌化仓库中的每个视频,追溯到过去。 这就是合约的全部意义。

流程


阶段1 — 访谈(一次消息,不是二十个问题)

一次性问完所有问题,并提前说明“保留默认值”对其中任何一个问题都是有效答案——大多数人只关心其中两三个问题,对其他的没有意见。

  1. 频道身份 — 字标文本,以及用一句话描述频道内容。字标分为三部分渲染,中间部分使用强调色(['Learn','With','Hasan'] → “With” 是靛蓝色)。两部分字标使用空白的第三部分(['Acme','Labs',''])。此外:结束卡片的签名行。
  2. 感觉 — 冷静/优质、响亮/有活力、有趣、社论式、技术性?这比颜色更能驱动动画和形状。
  3. 调色板 — 他们是否已有品牌颜色(粘贴十六进制码),还是应该根据感觉提出建议?浅色底色还是深色底色?强调色是唯一最重要的选择:它用于关键词、高亮、行动号召按钮、字标的中间部分。
  4. 字体 — 现有的品牌字体,还是根据感觉推荐?必须是 Google Fonts(参见阶段3的硬性门槛)。
  5. 交付规格 — 你的相机实际拍摄的是什么? 分辨率和帧率。这不是品味问题;这是唯一必须匹配现实的值(参见下面的陷阱)。
  6. 音效品味 — 语音下的微妙点缀,还是更大声/更有冲击力?

阶段2 — 先提议,再写入

首先在聊天中展示完整的提案——调色板以表格形式展示(角色 · 十六进制码 · 用途)、字体名称、动画感觉、交付规格。获得确认。

在表格中阅读十六进制码很便宜。重写三个文件并重新渲染则不然。不要因为答案“看起来很清楚”而跳过写入步骤。


阶段3 — 硬性门槛:字体必须实际存在

字体是导致构建失败的第一大原因。 fonts.ts 从 @remotion/google-fonts 导入,因此该包中不存在的字体家族将无法解析。本地/购买/系统字体将不起作用——如果他们提到一个,明确告知他们,并挑选最接近的 Google 字体家族。

在写入前验证。两个检查,每种字体:

cd remotion

# 1. 字体家族是否存在?(PascalCase,无空格:"Space Grotesk" -> SpaceGrotesk)
ls node_modules/@remotion/google-fonts/dist/esm/ | grep -i "^Poppins\."

# 2. 它是否包含你将要请求的字重?
grep -oE '"[0-9]{3}":' node_modules/@remotion/google-fonts/dist/esm/Poppins.mjs | sort -u

大约有1,800种字体家族可用,所以几乎总能找到好的匹配。

字重陷阱是真实存在的,而非理论上的。 Space Grotesk 只到 700——没有 800/900。Oswald 也只到 700。请求一个字体家族不包含的字重会导致静默回退或渲染损坏,而且直到标题看起来不对劲你才会注意到。检查,然后只请求存在的字重。


阶段4 — 对比度门槛

文本必须可读,一个漂亮的调色板如果在此失败会产生无法阅读的视频。计算它,不要目测(chroma-js 已经是依赖项):

cd remotion && node -e "
const chroma = require('chroma-js');
const C = { ink:'#1a1a2e', muted:'#6b6b7b', paper:'#fffef7', accent:'#6366F1' };
const p = [['ink','paper'],['muted','paper'],['accent','paper'],['paper','accent']];
for (const [a,b] of p) console.log(a.padEnd(7),'on',b.padEnd(7), chroma.contrast(C[a],C[b]).toFixed(2)+':1');
"

根据每个配对实际的使用方式来判断,而不是一个单一的数字:

配对用途门槛
ink 在 paper 上正文文本,到处使用≥ 7:1
muted 在 paper 上字幕、次要标签≥ 4.5:1
accent 在 paper 上仅用于大型关键词(34px以上)≥ 3:1
paper 在 accent 上药丸/芯片文本,小字体≥ 4:1

作为参考,默认品牌的测量值为 16.87 / 5.17 / 4.42 / 4.42。注意强调色在 4.42——对大字舒服,对小字紧张。 这就是权衡的正常形状:一个在浅色底色上突出的饱和强调色很少能同时达到 7:1。没关系。只是不要把小的文本放在上面。

任何配对低于 3:1,不要发布——加深色调并重新检查。 在 3:1 和门槛之间,要明确说明并让用户选择。永远不要默默接受一个无法阅读的调色板。


阶段5 — 在一次通过中写入所有三个文件

remotion/src/brand.ts — 保持每一个导出的名称完全不变。29个镜头导入 COLORS、EASINGS、GRADIENT、RADIUS、SHADOW、BRAND;重命名或删除任何一个角色会破坏所有这些。更改值,永远不要更改键。填充每一个角色——省略 warn 或 danger 的调色板可以编译,然后在渲染时爆炸。

remotion/src/fonts.ts — 替换字体家族和字重(已在阶段3验证)。保持 FONT_DISPLAY / FONT_BODY / FONT_MONO 导出。FONT_SERIF 仅用于 Claude Code 字标克隆——它不是品牌字体,所以除非被要求,否则不要动它。

brand.md — 重写 §1–§7 和 §9–§10 以匹配。不要触碰 §8(资源和源代码位置)——那是流水线结构,不是品牌,并且其他技能依赖它保持准确。

保持 brand.md 的结构:其他技能按章节读取它,并且 /suggest-sfx 特别读取 §10 的 SFX 品味和功能表格。

交付规格陷阱(§7)。 画布 + fps 是唯一品味错误而现实正确的地方:画布 fps 必须与主剪辑的帧率匹配。 拍摄 1080p30 就应该写 1080p30。这里的不匹配不会报错——它会使每个镜头与旁白不同步,然后你会先责怪时间轴而不是品牌文件。询问相机拍摄什么;永远不要假设。


阶段6 — 证明(不要跳过)

将品牌渲染回给用户,并在展示之前亲自检查帧:

cd remotion && npm run gen
npx tsc --noEmit
npx remotion still src/index.ts BrandProof out/brand-proof.png --frame=95

BrandProof(remotion/src/shots/brand/BrandProof.tsx)是一个实用镜头,不是视频片段。它不硬编码任何东西——它实时读取 brand.ts 和 fonts.ts,所以渲染的结果就是镜头将要使用的。它展示字标、带有十六进制标签的完整调色板、渐变、所有三种字体、卡片深度以及强调色可读性线。

检查它:字标正确吗?强调色单词可读吗?字体看起来像你提议的吗? 然后向用户展示图像。

最后,渲染一个真实的示例镜头(EndCard 是最快的)以确认下游没有破坏任何东西。


硬性规则

  • 要么三个文件全部,要么一个都不写。 永远不要只更新 brand.ts 而不更新 brand.md。静默漂移正是此技能旨在防止的故障模式。
  • 更改值,永远不要更改键。 每个镜头都导入令牌名称。重命名一个颜色角色会一次性破坏29个文件。
  • 字体必须在写入前在 @remotion/google-fonts 中验证——包括字体家族和字重。
  • 调色板必须通过对比度门槛,根据使用情况判断。低于 3:1 不可发布。
  • 交付 fps 必须匹配相机,而不是品牌的偏好。
  • 不要触碰 brand.md §8。 它是结构,不是样式。
  • 永远不要为了匹配品牌而调整缩略图。 缩略图故意更响亮——它们显示在浏览墙上,遵循 CTR 规则。参见 /packaging。两个系统,有意的。
  • 默认品牌是一个真实的品牌,不是占位符。 “保留它”是合理答案;唯一真正错误的是在您的频道上发布他人的字标。如果他们保留所有其他内容,仍然设置 BRAND.wordmark。

Individual skills in this repo

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

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

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.

相关技能