Communitygithub.com

raisaksham377-bot/youtube-shorts-ai-editor

將此倉庫的影片外觀調整為符合你的頻道風格,而非使用預設品牌 — 透過訪談了解你的色板、字型、字標、動態能量、規格與音效偏好,然後同步改寫 brand.md、remotion/src/brand.ts 與 remotion/src/fonts.ts,並渲染一張校驗卡讓你親眼確認。

youtube-shorts-ai-editor 是什麼?

本技能專為 YouTube Shorts AI 編輯器而設計,負責一次性地將儲存庫的品牌設定(包括色板、字型、字標、動態風格、交片規格及音效口味)個人化。它透過單次對話訪談收集使用者的偏好,並同時更新三個必須保持同步的關鍵檔案:brand.md(文字合約)、remotion/src/brand.ts(程式碼中的品牌 Token)以及 remotion/src/fonts.ts(字型載入設定)。此技能特別強調嚴格的驗證流程,包括字型必須存在於 @remotion/google-fonts 中、對比度檢查(使用 chroma-js 計算)、以及最終渲染 BrandProof 校驗卡來確認實際效果。它支援所有後續的編輯技能(如 /make-tsx、/suggest-sfx、/packaging),並確保品牌設定不會因為檔案之間的漂移而產生不一致。唯一的限制是它不適用於每次影片的個別美術指導(應使用 /make-tsx)或縮圖設計(應使用 /packaging),因為縮圖需要更強烈的視覺衝擊。

相容平台✓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以散文形式撰寫的品牌合約每個 step-2 以上的技能(/make-tsx、/suggest-sfx、/packaging)
remotion/src/brand.ts與程式碼中相同的 Token — 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. 色板 — 他們是否已有品牌顏色(貼上十六進位碼),或者你應該根據感覺提出建議?淺色基底還是深色基底?強調色是最重要的選擇:它用於關鍵字、重點、CTA、字標的中間部分。
  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

大約有 1800 個家族可用,因此幾乎總是能有不錯的匹配。

粗細陷阱是真實存在的,並非理論問題。 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 以獲取其音效口味和功能表。

交片規格陷阱(§7)。 Canvas 加 fps 是品味可能錯誤而現實才正確的地方:Canvas 的 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。無聲漂移正是此技能要防止的失敗模式。
  • 更改值,絕不改鍵。 每個鏡頭都匯入 Token 名稱。重新命名顏色角色會同時破壞 29 個檔案。
  • 字型必須在改寫前於 @remotion/google-fonts 中驗證 — 家族與粗細皆然。
  • 色板必須通過對比度門檻,根據使用方式判斷。低於 3:1 是不可出貨的。
  • 交片 fps 必須與相機匹配,而非品牌的偏好。
  • 不要碰 brand.md 的 §8。 那是結構,不是風格。
  • 絕對不要調整縮圖以匹配品牌。 縮圖刻意更強烈 — 它們存在於瀏覽牆上,遵循點擊率規則。請參閱 /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.

相關技能