Communitygithub.com

raisaksham377-bot/youtube-shorts-ai-editor

このリポジトリの動画を、あなたのチャンネルの見た目に合わせてブランド設定します。パレット、フォント、ワードマーク、モーションの雰囲気、配信仕様、SFXの好みをインタビューし、brand.md、remotion/src/brand.ts、remotion/src/fonts.tsの3ファイルを一括で書き換え、プルーフカードをレンダリングします。

youtube-shorts-ai-editor とは?

このスキル(Brand Setup)は、YouTube Shorts動画生成リポジトリのブランドを、ユーザーのチャンネル独自のものに初期設定・再設定するためのツールです。リポジトリにはデフォルトのブランド(落ち着いたインディゴのプレミアムルック)が組み込まれていますが、このスキルを一度実行することで、すべての動画に適用されるブランド契約を、チャンネルに合わせてカスタマイズできます。 主な処理フローは、インタビュー→提案→フォント検証(Google Fonts必須)→コントラスト検証→3ファイル同時書き込み→プルーフレンダリングの6段階。インタビューではチャンネルアイデンティティ、カラーパレット(アクセント色が重要)、フォント、動きの雰囲気、カメラの撮影解像度・フレームレート、SFXの好みを一度に尋ねます。特にフォントは`@remotion/google-fonts`から使えるものでなければビルドが壊れるため、必ず存在確認とウェイト確認を実施。コントラスト比は用途ごとに基準(本文7:1、キャプション4.5:1、アクセント大文字3:1以上など)を設け、`chroma-js`で計算し、不合格の場合は出荷しないという厳格なゲートを設けています。 このスキルが扱う3つのファイル(brand.md、brand.ts、fonts.ts)は**すべてを同時に同期**することが唯一の責務。片方だけ更新すると、ドキュメントとコードが乖離し、動画の見た目が説明と合わなくなる「サイレントドリフト」が発生します。また、サムネイルは意図的にブランドより派手に設計する別システム(/packagingスキル担当)のため、ここでは扱いません。 対応プラットフォーム:Claude Code(推奨)など、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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

ブランド設定

最初の動画の前に、一度だけ実行してください。 このリポジトリにはデフォルトのブランド(落ち着いたプレミアムなインディゴルック)が組み込まれています。それは単なるプレースホルダーではなく、実際に機能するブランドであり、そのまま使っていただいて構いません。しかし、触らなければ、ここで作られるすべての動画は、リポジトリが元々提供していたチャンネルのように見えてしまいます。このスキルは、それを一発で修正します。

このスキルが管理するもの

常に同期が保たれなければならない3つのファイルがあり、このスキルだけがそれらすべてを書き込むべきです:

ファイル保持する内容誰が読み取るか
brand.md散文による契約すべてのステップ2以降のスキル(/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はティールを指し、エラーは何も起きません — ドキュメントだけが静かに動画の説明をしなくなります。だからこそ、一つのスキルが3ファイルすべてを一度のパスで書き込みます。

すべてのショットはbrand.ts / fonts.tsからインポートするため、ここで値を変更すると、リポジトリ内のすべての動画が遡及的にブランド変更されます。 それが契約の本質です。

フロー


ステージ 1 — インタビュー(1メッセージでまとめて。20の質問を個別にしないこと)

すべてを一度に尋ねてください。「デフォルトのままにする」はどの項目に対しても有効な回答であると最初に伝えてください。ほとんどの人は2〜3項目に関心があり、残りについては意見がありません。

  1. チャンネルアイデンティティ — ワードマークのテキスト、およびチャンネルが何についてのものかを一文で。ワードマークは3つの部分でレンダリングされ、中央の部分がアクセントカラーになります(['Learn','With','Hasan'] → 「With」がインディゴになります)。2つの部分からなるワードマークは、3番目を空にします(['Acme','Labs',''])。また、エンドカード用のサインオフラインも含みます。
  2. フィーリング — 落ち着いた/プレミアム、派手な/エネルギッシュ、遊び心のある、論説的、技術的? これは色よりもモーションとシェイプに影響します。
  3. パレット — すでにブランドカラーがある場合は(16進数を貼り付け)、またはフィーリングから提案すべきですか? ライトベースかダークベースか? アクセントは最も重要な選択です: キーワード、ハイライト、CTA、ワードマークの中央部分に使われます。
  4. タイポグラフィ — 既存のブランドフォント、またはフィーリングに合わせて提案しますか? Google Fontsでなければなりません(ステージ3のハードゲートを参照)。
  5. 配信仕様 — あなたのカメラは実際に何を撮影していますか? 解像度とフレームレート。これは好みの問題ではなく、現実と一致しなければならない唯一の値です(以下のトラップを参照)。
  6. SFXの好み — 声の下に控えめなアクセント、またはより大きく/パンチの効いたもの?

ステージ 2 — 書き込む前に提案する

最初に、完全な提案をチャットに表示してください — パレットは表(役割・16進数・用途)、フォント名、モーションの雰囲気、配信仕様。承認を得てください。

表で16進数を読むのは安価です。3つのファイルを書き換えて再レンダリングするのはそうではありません。「答えがはっきりしているように見える」からといって、書き込みのステップに飛ばないでください。


ステージ 3 — ハードゲート:フォントは実際に存在しなければならない

フォントは、これがビルドを壊す原因の第1位です。 fonts.tsは@remotion/google-fontsからインポートするため、そのパッケージにないファミリーは解決に失敗します。ローカル/購入済み/システムフォントは動作しません — ユーザーがそのような名前を挙げた場合は、はっきりと伝え、最も近いGoogleファミリーを選んでください。

書き込む前に確認してください。すべてのフォントについて、両方のチェックを:

cd remotion

# 1. ファミリーは存在するか?(パスカルケース、スペースなし:「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 on paper本文テキスト、至る所≥ 7:1
muted on paperキャプション、セカンダリラベル≥ 4.5:1
accent on paper大きなキーワードのみ(34px以上)≥ 3:1
paper on accentピル/チップテキスト、小さい文字≥ 4:1

参考までに、デフォルトの測定値は 16.87 / 5.17 / 4.42 / 4.42 です。アクセントは4.42にあることに注意してください — 大きな単語には快適、小さな文字にはきつい。これがこのトレードオフの通常の形状です:明るいベースで映える彩度の高いアクセントは、めったに7:1をクリアしません。問題ありません。ただ、その上に小さなテキストを置かないでください。

どのペアでも3:1未満の場合は、出荷しないでください — 色合いを暗くして再確認してください。 3:1と基準値の間にある場合は、その旨を明示的に伝え、ユーザーに選択させてください。読めないパレットを黙って受け入れないでください。


ステージ 5 — 3ファイルすべてを一度のパスで書き込む

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をライブで読み取るため、レンダリングされるものは、実際にショットが使用するものになります。ワードマーク、16進数ラベル付きの完全なパレット、グラデーション、3つすべてのフォント、カードの奥行き、アクセントの可読性ラインが表示されます。

それを見て確認してください:ワードマークは正しいですか?アクセントの単語は判読可能ですか?フォントは提案したものに見えますか? その後、ユーザーに画像を見せてください。

最後に、実際のサンプルショットを1つ(EndCardが最速です)レンダリングして、下流で何も壊れていないことを確認してください。


厳格なルール

  • 3ファイルすべて、または1つも更新しない。 brand.mdなしでbrand.tsだけを更新しないでください。サイレントドリフトは、このスキルが防止するために存在する障害モードです。
  • キーを変更せず、値を変更する。 すべてのショットはトークン名をインポートします。カラーロールの名前を変更すると、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.

関連スキル