Communitygithub.com

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).

What is youtube-shorts-ai-editor?

youtube-shorts-ai-editor is a Claude Code agent skill that 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).

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

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Brand Setup

Run this once, before your first video. This repo ships with a house brand — a calm, premium indigo look. It's a real, working brand, not a placeholder, and you're welcome to keep it. But if you never touch it, every video you make here looks like the channel it came from. This skill fixes that in one pass.

What this skill owns

Three files that must stay in sync, and this skill is the only thing that should write all three:

FileWhat it holdsWho reads it
brand.mdthe contract, in proseevery step-2+ skill (/make-tsx, /suggest-sfx, /packaging)
remotion/src/brand.tsthe same tokens as code — COLORS, GRADIENT, RADIUS, SHADOW, EASINGS, BRANDevery shot
remotion/src/fonts.tsthe font families, loaded from @remotion/google-fontsevery shot

They drift silently. brand.md says indigo, brand.ts says teal, and nothing errors — the docs just quietly stop describing the videos. That's why one skill writes all three in one pass.

Every shot imports from brand.ts / fonts.ts, so changing a value here re-brands every video in the repo, retroactively. That's the whole point of a contract.

The flow


Stage 1 — Interview (ONE message, not twenty questions)

Ask it all at once, and say up front that "keep the default" is a valid answer to any of it — most people care about two or three of these and have no opinion on the rest.

  1. Channel identity — the wordmark text, and what the channel is about in a sentence. The wordmark renders in three parts with the middle part in the accent color (['Learn','With','Hasan'] → the "With" is indigo). Two-part marks use an empty third (['Acme','Labs','']). Also: the sign-off line for the end card.
  2. The feeling — calm/premium, loud/energetic, playful, editorial, technical? This drives motion and shape more than color does.
  3. Palette — do they have brand colors already (paste hex), or should you propose from the feeling? Light base or dark base? The accent is the single most important choice: it's the key words, the highlights, the CTAs, the wordmark's middle.
  4. Type — existing brand fonts, or propose to fit the feeling? Must be Google Fonts (see the hard gate in Stage 3).
  5. Delivery specs — what does your camera actually shoot? Resolution and frame rate. This is not taste; it's the one value that must match reality (see the trap below).
  6. SFX taste — subtle accents under the voice, or louder/punchier?

Stage 2 — Propose before you write

Show the full proposal in the chat first — palette as a table (role · hex · what it's for), the font names, the motion feel, the delivery specs. Get a yes.

Reading hex codes in a table is cheap. Rewriting three files and re-rendering is not. Do not skip to writing because the answers "seem clear."


Stage 3 — Hard gate: the fonts must actually exist

Fonts are the #1 way this breaks the build. fonts.ts imports from @remotion/google-fonts, so a family that isn't in that package fails to resolve. A local/purchased/system font will not work — if they name one, tell them plainly and pick the closest Google family.

Verify before writing. Both checks, every font:

cd remotion

# 1. Does the family exist? (PascalCase, no spaces: "Space Grotesk" -> SpaceGrotesk)
ls node_modules/@remotion/google-fonts/dist/esm/ | grep -i "^Poppins\."

# 2. Does it HAVE the weights you're about to request?
grep -oE '"[0-9]{3}":' node_modules/@remotion/google-fonts/dist/esm/Poppins.mjs | sort -u

~1,800 families are available, so there is almost always a good match.

The weight trap is real, not theoretical. Space Grotesk stops at 700 — no 800/900. Oswald stops at 700. Requesting a weight the family doesn't ship gives you a silent fallback or a broken render, and you won't notice until a headline looks wrong. Check, then request only what exists.


Stage 4 — Contrast gate

Text has to be readable, and a beautiful palette that fails here produces unreadable videos. Compute it, don't eyeball it (chroma-js is already a dependency):

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');
"

Judge each pair by how it's actually used, not one blanket number:

PairUsed forGate
ink on paperbody text, everywhere≥ 7:1
muted on papercaptions, secondary labels≥ 4.5:1
accent on paperlarge key words only (34px+)≥ 3:1
paper on accentpill/chip text, small≥ 4:1

For reference, the house default measures 16.87 / 5.17 / 4.42 / 4.42. Note the accent sits at 4.42 — comfortable for big words, tight for small ones. That's the normal shape of this tradeoff: a saturated accent that pops on a light base rarely also clears 7:1. Fine. Just don't put small text on it.

Below 3:1 on any pair, do not ship it — darken the shade and re-check. Between 3:1 and the gate, say so out loud and let them choose. Never silently accept a palette that can't be read.


Stage 5 — Write all three files, in one pass

remotion/src/brand.ts — keep every exported name exactly as-is. 29 shots import COLORS, EASINGS, GRADIENT, RADIUS, SHADOW, BRAND; renaming or dropping a role breaks all of them. Change the values, never the keys. Fill every role — a palette that omits warn or danger compiles and then explodes at render.

remotion/src/fonts.ts — swap the families and weights (verified in Stage 3). Keep FONT_DISPLAY / FONT_BODY / FONT_MONO exported. FONT_SERIF exists only for the Claude Code wordmark clone — it isn't a brand font, so leave it alone unless asked.

brand.md — rewrite §1–§7 and §9–§10 to match. Do not touch §8 (Asset & source locations) — that's pipeline structure, not brand, and the other skills depend on it being accurate.

Keep brand.md's shape: the other skills read it by section, and /suggest-sfx reads §10 for its SFX taste and function table specifically.

The delivery-specs trap (§7). Canvas + fps are the one place where taste is wrong and reality is right: the canvas fps must match the master cut's frame rate. Shoot 1080p30 and it should say 1080p30. A mismatch here doesn't error — it desyncs every shot from the narration, and you'll blame the timing before you blame the brand file. Ask what the camera shoots; never assume.


Stage 6 — Prove it (do not skip)

Render the brand back at them and read the frame yourself before showing it:

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) is a utility shot, not a video beat. It hardcodes nothing — it reads brand.ts and fonts.ts live, so what renders is genuinely what the shots will use. It shows the wordmark, the full palette with hex labels, the gradient, all three fonts, the card depth, and the accent-legibility line.

Look at it and check: is the wordmark right? Is the accent word legible? Do the fonts look like what you proposed? Then show them the image.

Finally, render one real example shot (EndCard is the fastest) to confirm nothing broke downstream.


Hard rules

  • All three files or none. Never update brand.ts without brand.md. Silent drift is the failure mode this skill exists to prevent.
  • Change values, never keys. Every shot imports the token names. Renaming a color role breaks 29 files at once.
  • Fonts must be verified in @remotion/google-fonts before writing — family AND weights.
  • The palette must clear the contrast gate, judged by usage. Below 3:1 is not shippable.
  • Delivery fps must match the camera, not the brand's preference.
  • Don't touch brand.md §8. It's structure, not style.
  • Never re-tune a thumbnail to match the brand. Thumbnails are deliberately louder — they live on the browse wall and play by CTR rules. See /packaging. Two systems, on purpose.
  • The house default is a real brand, not a placeholder. "Keep it" is a legitimate answer; the only thing that's genuinely wrong is shipping someone else's wordmark on your channel. If they keep everything else, still set 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.

Related Skills