Communitygithub.com

raisaksham377-bot/youtube-shorts-ai-editor

샷, 장면 또는 동영상 설명으로부터 VidTSX(Remotion 기반)용 프로덕션 준비 완료 2D TSX 비디오 파일을 생성합니다. 사용자가 VidTSX 비디오, 2D TSX 샷 또는 장면, 애니메이션 클립, 타이틀 카드, 렌더링된 모션 그래픽을 만들거나 생성하려 할 때 — 시각적 애니메이션을 설명하거나 '샷 만들어 줘', '이 장면을 빌드해 줘', 'TSX 생성해 줘', '이걸 비디오로 만들어 줘'라고 말할 때 사용합니다.

youtube-shorts-ai-editor란 무엇인가요?

이 기술은 개발자와 AI 에이전트가 Remotion 기반 VidTSX 프레임워크용 2D 모션 그래픽 TSX 컴포넌트를 생성할 수 있도록 지원합니다. 샷 설명, 장면 또는 전체 비디오 아이디어를 입력하면, 이 기술은 디자인 프리셋에 맞춰진 프로덕션 준비 완료 React/TypeScript 파일을 출력합니다. 지원하는 플랫폼은 Claude Code, Cursor, Codex와 같은 AI 코딩 어시스턴트로, Remotion/VidTSX 워크플로우와 통합됩니다. 핵심 기능으로는 필수 파일 구조 생성(composition config, 스타일 상수, 메인 컴포넌트 포함), 가로/세로/정사각형 포맷에 대한 치수 프리셋, 미니멀리스트, 멤피스, 네오-브루탈리즘, 글래스모피즘, 네온, 코퍼레이트 등 6가지 스타일 프리셋이 있습니다. 또한 크래시 없는 렌더링을 보장하기 위한 엄격한 정확성 규칙을 적용합니다: 프레임 기반 애니메이션만 사용(useState/useEffect/setTimeout 금지), interpolate 입력 범위는 엄격히 단조 증가, Easing.bezier() 구문 강제, chroma-js는 네임스페이스 임포트만 허용, @remotion/paths의 존재하지 않는 헬퍼 함수 사용 금지. 기술 사용 후에는 스틸 이미지와 주요 키 프레임을 렌더링하여 시각적 검증을 수행해야 합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/raisaksham377-bot/youtube-shorts-ai-editor/tree/HEAD/.claude/skills/vidtsx-2d-generator

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

VidTSX 2D 비디오 생성기

샷 또는 비디오 설명으로부터 VidTSX용 프로덕션 준비 완료 2D TSX 비디오 파일을 생성합니다. 파일은 Remotion 컴포지션으로, VidTSX가 프레임별로 렌더링하므로 정확성이 창의성보다 중요합니다: 단 하나의 비단조 interpolate 범위나 잘못된 useState가 렌더를 크래시시킬 수 있습니다.

이 기술은 2D 모션 그래픽을 다룹니다. 3D 작업(@remotion/three / React Three Fiber)은 범위를 벗어납니다.

이 기술 사용 방법

  1. 명확한 단일 샷 → .tsx 파일을 직접 생성합니다.
  2. 복잡하거나 다중 샷이거나 시각적으로 모호한 요청 → 먼저 한 줄의 짧은 메시지로 샷 구성 또는 시각적 방향을 확인한 후 생성합니다. 과도하게 묻지 마세요; 한 줄 확인으로 충분합니다.
  3. 인라인 코드가 아닌 실제 .tsx 파일로 전달합니다. 이러한 TSX 컴포넌트는 항상 20줄을 초과하며, 사용자는 이 파일을 직접 편집합니다. 사용자가 단일 결합 파일을 요청하지 않는 한, 기본적으로 파일당 하나의 샷(원자적이고 편집하기 쉬움)으로 설정합니다.
  4. 파일에는 컴포넌트 코드만 포함됩니다 — 아래의 구조적 섹션 주석은 환영하지만, 파일 내에 마크다운 펜스나 설명문은 없습니다.
  5. 렌더링하고 확인한 후 완료했다고 판단하세요 — 렌더 확인을 참조하세요. 추론만 한 샷은 완료된 것이 아닙니다. 스틸 이미지(그리고 공개/스크롤의 경우 각 큐에서의 프레임)가 기준입니다.

출력 사양

치수 프리셋

형식너비높이사용 사례
가로19201080YouTube, 프레젠테이션
세로10801920TikTok, Reels, Shorts
정사각형10801080Instagram 피드

기본값

  • 형식: 가로 (1920×1080)
  • 길이: 5초
  • FPS: 30
  • 스타일: 미니멀리스트 (references/style-presets.md 참조)

필수 파일 구조

생성되는 모든 파일은 다음 스켈레톤을 따릅니다. 레이블이 지정된 섹션 주석은 의도적입니다 — 큰 파일을 탐색 가능하게 유지합니다.

import React from 'react';
import {
  useCurrentFrame,
  useVideoConfig,
  interpolate,
  Easing,
  AbsoluteFill,
  Sequence,
} from 'remotion';

// =============================================================================
// COMPOSITION CONFIG
// =============================================================================
export const compositionConfig = {
  id: 'ComponentName', // PascalCase만 — 하이픈이나 밑줄 없음
  durationInSeconds: 5,
  fps: 30,
  width: 1920,
  height: 1080,
};

// =============================================================================
// STYLE CONSTANTS
// =============================================================================
const COLORS = {
  primary: '#6366f1',
  secondary: '#8b5cf6',
  accent: '#06b6d4',
  background: '#0f0f23',
  text: '#ffffff',
} as const;

const TYPOGRAPHY = {
  fontFamily: 'Inter, system-ui, sans-serif',
} as const;

const EASINGS = {
  easeOut: Easing.bezier(0.33, 1, 0.68, 1),
  easeIn: Easing.bezier(0.32, 0, 0.67, 0),
  easeInOut: Easing.bezier(0.37, 0, 0.63, 1),
  overshoot: Easing.bezier(0.34, 1.56, 0.64, 1),
} as const;

// =============================================================================
// PRE-GENERATED DATA (모듈 수준에서 한 번 계산, 렌더 중에는 계산하지 않음)
// =============================================================================
const seededRandom = (seed: number): number => {
  const x = Math.sin(seed * 9999) * 10000;
  return x - Math.floor(x);
};

// =============================================================================
// MAIN COMPONENT
// =============================================================================
const ComponentName: React.FC = () => {
  const frame = useCurrentFrame();
  const { fps, durationInFrames, width, height } = useVideoConfig();

  return (
    <AbsoluteFill style={{ backgroundColor: COLORS.background }}>
      {/* Content */}
    </AbsoluteFill>
  );
};

export default ComponentName;

ComponentName을 샷을 설명하는 PascalCase 이름으로 바꾸고, 선택한 스타일 프리셋에서 COLORS 블록을 설정하며, 요청에 따라 width/height/durationInSeconds/fps를 설정합니다.


정확성 규칙

이는 스타일 선호도가 아니라 렌더를 성공시키는 요소입니다. VidTSX(Remotion을 통해)는 고정된 프레임 번호에서 컴포넌트를 호출하여 각 프레임을 렌더링합니다. 이벤트 루프, 프레임 간 지속성, 또는 벽시계 시간이 없습니다. 이러한 것을 가정하는 모든 것은 깨집니다.

애니메이션은 항상 프레임 기반입니다

  • 모든 움직임은 useCurrentFrame() + interpolate()에서 구동합니다.
  • 절대 useState, useEffect, setTimeout, setInterval 또는 CSS 애니메이션/전환을 사용하지 마세요. 이들은 프레임별 모델에 맞지 않으며 깨지거나 비결정적인 출력을 생성합니다.
  • 무작위 또는 절차적 작업의 경우, seededRandom(또는 이에 상응하는 시드 함수)을 사용하여 주어진 프레임의 모든 렌더가 동일하도록 합니다. 파티클/무작위 배열은 모듈 수준에서 미리 생성하고, 절대 렌더 함수 내부에서 생성하지 마세요 — 프레임당 재계산은 깜빡임을 유발합니다.
  • 요소가 한 번에 모두가 아닌 순차적으로 들어오도록 애니메이션을 지연시킵니다. 더 읽기 좋고 예상되는 모양입니다.

interpolate — 입력 범위는 엄격하게 증가해야 함

interpolate의 입력 범위는 엄격하게 단조 증가해야 합니다. 중복되거나 내림차순 값은 런타임에 예외를 발생시킵니다.

// ✅ 올바름
interpolate(frame, [0, 30, 60], [0, 1, 0]);

// ❌ 예외 발생 — 입력 범위가 내림차순
interpolate(frame, [60, 30, 0], [0, 1, 0]);

매핑을 반전시키려면 입력 범위가 아닌 출력 범위를 뒤집습니다:

// ✅ 올바름 — 0→100, 1→0 매핑
interpolate(value, [0, 1], [100, 0]);

// ❌ 잘못됨
interpolate(value, [1, 0], [100, 0]);

인덱스 기반 타이밍의 경우 startFrame < endFrame인지 확인하고 항상 클램프합니다:

const startFrame = index * 30;
const endFrame = startFrame + 30;
interpolate(frame, [startFrame, endFrame], [0, 1], {
  extrapolateLeft: 'clamp',
  extrapolateRight: 'clamp',
});

진정으로 제한 없는 값이 필요하지 않은 한 항상 extrapolateLeft: 'clamp' 및 extrapolateRight: 'clamp'를 전달하세요 — 이 값이 없으면 키프레임 전후로 값이 범위를 벗어납니다.

Easing — Easing.bezier() 사용, 래퍼 구문 사용 금지

Easing.out(Easing.cubic)과 같은 래퍼 형식은 크래시됩니다. 명명된 베지어를 한 번 정의하고(스켈레톤의 EASINGS 블록 참조) 이를 참조하세요:

// ❌ 크래시 발생
Easing.out(Easing.cubic);
Easing.in(Easing.quad);

// ✅ 올바름
interpolate(frame, [0, 30], [0, 1], {
  easing: EASINGS.easeOut,
  extrapolateRight: 'clamp',
});

chroma-js — 네임스페이스 임포트만 허용

// ✅ 올바름
import * as chroma from 'chroma-js';
const color = chroma('#00bfff').brighten(0.5).hex();

// ❌ 잘못됨 — "chroma is not a function"
import chroma from 'chroma-js';

@remotion/paths — 실제 함수만 존재함

다음 헬퍼는 존재하지 않으며 절대 사용해서는 안 됩니다: makeCircle(), makeRect(), makeTriangle(), makeLine(), makePie(), makePolygon(), makeEllipse(), makeStar().

다음 임포트만 유효합니다:

import { evolvePath, getLength, getPointAtLength, getTangentAtLength } from '@remotion/paths';

SVG 경로 문자열을 직접 작성하고 evolvePath로 애니메이션화하세요:

const circlePath = 'M 50 10 A 40 40 0 1 1 49.99 10 Z';
const rectPath = 'M 0 0 L 100 0 L 100 50 L 0 50 Z';
const linePath = 'M 0 0 L 100 100';

const { strokeDasharray, strokeDashoffset } = evolvePath(progress, rectPath);

Composition ID

compositionConfig.id는 PascalCase만 — 하이픈이나 밑줄 없음 (예: ProductReveal, product-reveal 또는 product_reveal 아님).


레이아웃

안전 영역

  • 상단 10%: 플랫폼 UI용 예약.
  • 하단 15%: 캡션/버튼용 예약.
  • 주요 콘텐츠는 세로로 25%–75% 사이에 유지합니다.

중앙 정렬 헬퍼

const centered: React.CSSProperties = {
  position: 'absolute',
  top: '50%',
  left: '50%',
  transform: 'translate(-50%, -50%)',
};

타이포그래피

요소크기두께
헤드라인72–120px700–900
서브헤드라인36–48px500–700
본문28–36px400–500

텍스트 요소에는 항상 margin: 0을 설정하세요 — 브라우저 기본값이 레이아웃을 중앙에서 벗어나게 합니다.


스타일 프리셋

사용자가 스타일을 지정하면 references/style-presets.md 에서 팔레트와 특성을 로드하고 COLORS 객체를 스켈레톤에 넣습니다. 6가지 프리셋은 다음과 같습니다: 미니멀리스트 (기본값), 멤피스, 네오-브루탈리즘, 글래스모피즘, 네온/사이버펑크, 코퍼레이트. 스타일이 지정되지 않은 경우 미니멀리스트를 사용합니다.


렌더 확인 (건너뛰지 마세요)

샷은 직접 확인할 때까지 완료된 것이 아닙니다. .tsx를 작성한 후 적어도 하나의 스틸 이미지를 렌더링하고 열어보세요 — 추론만 한 샷은 절대 전달하지 마세요. 렌더링은 성공하고 숫자는 올바르게 보이지만, 텍스트가 카드를 넘치거나, 이미지가 잘못된 크롭으로 잘리거나, 요소가 화면 밖에 있거나, 두 가지가 겹칠 수 있습니다. 스크린샷만이 이러한 문제를 잡아냅니다.

  • 스틸 이미지 렌더링(예: node scripts/render-all.mjs --still --scale=1 <ShotId>)하고 PNG를 읽으세요.
  • 시간 기반 공개(큐, 스크롤, 단계적 단계에서 들어오는 요소)의 경우, 길이의 60%에 해당하는 단일 스틸 이미지로는 충분하지 않습니다 — 전체 클립을 렌더링하고 각 주요 순간의 프레임을 추출하거나(ffmpeg -ss <t> -i out/<id>.mp4 -frames:v 1 f.jpg), 여러 오프셋에서 스틸 이미지를 렌더링하세요. 하나의 프레임이 아닌 각 큐에서의 상태를 확인하세요.
  • 특히 확인할 사항: 이미지가 슬롯에 맞는지(중요한 콘텐츠가 잘리지 않았는지; 이기종 실제 이미지의 경우 일치하는 배경에 objectFit: contain 선호), 텍스트가 잘리거나 넘치지 않는지, 안전 영역 밖에 있는 것이 없는지, 각 애니메이션 요소가 있어야 할 때 실제로 보이는지.
  • 다른 푸티지 위에 합성된 경우, 고립된 샷뿐만 아니라 최종 출력된 프레임도 점검하세요.

스크린샷이 드러낸 문제를 수정한 후, 다시 렌더링하고 다시 확인하세요. "렌더링했고 올바르게 보인다" — 표시된 프레임과 함께 — 를 완료의 기준으로 삼으세요.


최종 출력

완전한 .tsx 파일을 생성하고 파일 내부에는 다른 어떤 것도 포함하지 마세요 — 주변 마크다운, 파일 내 코드 앞뒤의 설명 없음. 파일을 전달할 때 채팅에 한 줄의 짧은 메모는 괜찮습니다.

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

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

관련 스킬