Communitygithub.com

raisaksham377-bot/editor-de-shorts-de-youtube-con-ia

Genera archivos de video TSX 2D listos para producción para VidTSX (basado en Remotion) a partir de una descripción de toma, escena o video. Úsalo cada vez que el usuario quiera crear o generar un video VidTSX, una toma o escena TSX 2D, un clip animado, una tarjeta de título o un gráfico en movimiento renderizado, incluso cuando describan una animación visual que quieran crear o digan "haz una toma", "construye esta escena", "genera el TSX" o "convierte esto en un video". Cubre la estructura de archivos obligatoria y la configuración de composición, preajustes de dimensiones (horizontal/vertical/cuadrado), seis preajustes de estilo (minimalista, memphis, neobrutalismo, glassmorfismo, neón, corporativo) y las reglas estrictas que evitan errores en los renders, abarcando solo animación basada en fotogramas (sin useState/useEffect/setTimeout), rangos de interpolación estrictamente monótonos, Easing.bezier sin sintaxis envolvente, y los problemas de importación de chroma-js y @remotion/paths. No es para composiciones 3D/three.js, trabajo general con React o edición de archivos de video.

¿Qué es editor-de-shorts-de-youtube-con-ia?

Esta habilidad está diseñada para generar archivos de video TSX 2D listos para producción para la plataforma VidTSX, que se basa en Remotion. A partir de una descripción textual de una toma, escena o animación, la habilidad produce componentes TSX que pueden ser renderizados fotograma a fotograma. Es especialmente útil para desarrolladores y creadores de contenido que desean automatizar la creación de gráficos en movimiento, tarjetas de título o clips animados sin tener que escribir el código desde cero. La habilidad admite seis preajustes de estilo (minimalista, memphis, neobrutalismo, glassmorfismo, neón y corporativo) y tres formatos de dimensión (horizontal, vertical y cuadrado). Para garantizar que los renders sean exitosos, la habilidad impone reglas estrictas: solo se permite animación basada en fotogramas (sin useState, useEffect, o setTimeout), los rangos de interpolación deben ser estrictamente crecientes, los easing deben definirse con Easing.bezier, y las importaciones de chroma-js y @remotion/paths deben seguir patrones específicos. La habilidad también incluye una sección de verificación que obliga al usuario a revisar visualmente el render antes de darlo por terminado, asegurando que no haya errores de superposición, recorte de texto o imágenes fuera de los límites seguros.

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

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Generador de Video 2D VidTSX

Genera archivos de video TSX 2D listos para producción para VidTSX a partir de una descripción de una toma o video. Los archivos son composiciones de Remotion que VidTSX renderiza fotograma a fotograma, por lo que la precisión importa más que la ingeniosidad: un rango de interpolate no monótono o un useState fuera de lugar provocará un fallo en el render.

Esta habilidad cubre gráficos en movimiento 2D. El trabajo 3D (@remotion/three / React Three Fiber) está fuera del alcance.

Cómo usar esta habilidad

  1. Toma única clara → genera el archivo .tsx directamente.
  2. Solicitud compleja, de múltiples tomas o visualmente ambigua → confirma la descomposición de tomas o la dirección visual en un mensaje corto primero, luego genera. No preguntes en exceso; una confirmación de una línea es suficiente.
  3. Entrega como un archivo .tsx real, no como código en línea. Estos componentes TSX siempre superan las 20 líneas, y el usuario edita estos archivos directamente. Por defecto, una toma por archivo (atómico, fácil de editar) a menos que el usuario solicite un entregable combinado único.
  4. El archivo contiene solo el código del componente — los comentarios de sección estructural a continuación son bienvenidos, pero no hay cercos de markdown, ni explicaciones en prosa dentro del archivo.
  5. Renderízalo y míralo antes de darlo por terminado — consulta Verificar el render. Una toma que solo has razonado no está terminada; un fotograma fijo (y, para revelaciones/desplazamientos, fotogramas en cada punto clave) es el estándar.

Especificación de salida

Preajustes de dimensión

FormatoAnchoAltoCaso de uso
horizontal19201080YouTube, presentaciones
vertical10801920TikTok, Reels, Shorts
cuadrado10801080Feed de Instagram

Valores predeterminados

  • Formato: horizontal (1920×1080)
  • Duración: 5 segundos
  • FPS: 30
  • Estilo: minimalista (consulta references/style-presets.md)

Estructura de archivo obligatoria

Cada archivo generado sigue este esqueleto. Los comentarios de sección etiquetados son intencionales: mantienen la navegabilidad de archivos grandes.

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

// =============================================================================
// CONFIGURACIÓN DE COMPOSICIÓN
// =============================================================================
export const compositionConfig = {
  id: 'NombreDelComponente', // Solo PascalCase — SIN guiones ni guiones bajos
  durationInSeconds: 5,
  fps: 30,
  width: 1920,
  height: 1080,
};

// =============================================================================
// CONSTANTES DE ESTILO
// =============================================================================
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;

// =============================================================================
// DATOS PRE-GENERADOS (calculados una vez a nivel de módulo, NO durante el render)
// =============================================================================
const seededRandom = (seed: number): number => {
  const x = Math.sin(seed * 9999) * 10000;
  return x - Math.floor(x);
};

// =============================================================================
// COMPONENTE PRINCIPAL
// =============================================================================
const NombreDelComponente: React.FC = () => {
  const frame = useCurrentFrame();
  const { fps, durationInFrames, width, height } = useVideoConfig();

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

export default NombreDelComponente;

Reemplaza NombreDelComponente por un nombre en PascalCase que describa la toma, configura el bloque COLORS según el preajuste de estilo elegido, y establece width/height/durationInSeconds/fps según la solicitud.


Reglas de corrección

No son preferencias estilísticas: son lo que hace que un render tenga éxito. VidTSX (a través de Remotion) renderiza cada fotograma llamando al componente en un número de fotograma fijo. No hay bucle de eventos, persistencia entre fotogramas ni tiempo de pared. Cualquier cosa que asuma esas cosas fallará.

La animación siempre se basa en fotogramas

  • Impulsa todo el movimiento desde useCurrentFrame() + interpolate().
  • Nunca uses useState, useEffect, setTimeout, setInterval ni animaciones/transiciones CSS. No encajan en el modelo fotograma a fotograma y producen una salida errónea o no determinista.
  • Para cualquier cosa aleatoria o procedural, usa seededRandom (o una función equivalente con semilla) para que cada render de un fotograma dado sea idéntico. Pre-genera arreglos de partículas/aleatorios a nivel de módulo, nunca dentro de la función de render — recalcular por fotograma causa parpadeo.
  • Escalonar las animaciones para que los elementos entren en secuencia en lugar de todos a la vez. Se ve mejor y es el aspecto esperado.

interpolate — los rangos de entrada deben ser estrictamente crecientes

El rango de entrada de interpolate debe ser estrictamente monótonamente creciente. Los valores duplicados o descendentes lanzan un error en tiempo de ejecución.

// ✅ Correcto
interpolate(frame, [0, 30, 60], [0, 1, 0]);

// ❌ Lanza error — el rango de entrada desciende
interpolate(frame, [60, 30, 0], [0, 1, 0]);

Para invertir un mapeo, invierte el rango de salida, nunca el rango de entrada:

// ✅ Correcto — mapea 0→100, 1→0
interpolate(value, [0, 1], [100, 0]);

// ❌ Incorrecto
interpolate(value, [1, 0], [100, 0]);

Para temporización basada en índices, asegúrate de que startFrame < endFrame y siempre aplica clamp:

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

Siempre pasa extrapolateLeft: 'clamp' y extrapolateRight: 'clamp' a menos que realmente se quiera un valor sin límites — sin ellos, los valores se disparan más allá de su rango antes/después de los fotogramas clave.

Easing — usa Easing.bezier(), nunca sintaxis envolvente

Las formas envolventes como Easing.out(Easing.cubic) fallan. Define beziers con nombre una vez (consulta el bloque EASINGS en el esqueleto) y haz referencia a ellos:

// ❌ Falla
Easing.out(Easing.cubic);
Easing.in(Easing.quad);

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

chroma-js — solo importación de espacio de nombres

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

// ❌ Incorrecto — "chroma no es una función"
import chroma from 'chroma-js';

@remotion/paths — solo existen las funciones reales

Estos ayudantes no existen y nunca deben usarse: makeCircle(), makeRect(), makeTriangle(), makeLine(), makePie(), makePolygon(), makeEllipse(), makeStar().

Solo estas importaciones son válidas:

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

Escribe cadenas de ruta SVG manualmente y anímalas con 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);

ID de composición

compositionConfig.id es solo PascalCase — sin guiones, sin guiones bajos (por ejemplo, ProductReveal, no product-reveal ni product_reveal).


Diseño

Zonas seguras

  • 10% superior: reservado para la interfaz de usuario de la plataforma.
  • 15% inferior: reservado para subtítulos/botones.
  • Mantén el contenido principal entre el 25%–75% verticalmente.

Ayudante de centrado

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

Tipografía

ElementoTamañoPeso
Titulares72–120px700–900
Subtitulares36–48px500–700
Cuerpo28–36px400–500

Siempre establece margin: 0 en los elementos de texto — los valores predeterminados del navegador desplazan los diseños del centro.


Preajustes de estilo

Cuando el usuario nombre un estilo, carga su paleta y características desde references/style-presets.md e inserta el objeto COLORS en el esqueleto. Los seis preajustes son: minimalista (predeterminado), memphis, neobrutalismo, glassmorfismo, neón/ciberpunk y corporativo. Si no se nombra ningún estilo, usa minimalista.


Verificar el render (no saltar)

Una toma no está terminada hasta que la hayas mirado. Después de escribir el .tsx, renderiza al menos un fotograma fijo y ábrelo — nunca entregues una toma que solo has razonado. La renderización tiene éxito y los números se ven bien, pero el texto desborda su tarjeta, una imagen está recortada en el recorte incorrecto, un elemento está fuera de la pantalla o dos cosas se superponen. Solo una captura de pantalla detecta estas cosas.

  • Renderiza un fotograma fijo (por ejemplo, node scripts/render-all.mjs --still --scale=1 <ShotId>) y lee el PNG.
  • Para revelaciones basadas en tiempo (elementos que entran en una señal, desplazamientos, fases escalonadas), un solo fotograma fijo al 60% de la duración no es suficiente — renderiza el clip completo y extrae fotogramas en cada momento clave (ffmpeg -ss <t> -i out/<id>.mp4 -frames:v 1 f.jpg), o renderiza fotogramas fijos en varios desplazamientos. Verifica el estado en cada señal, no solo un fotograma.
  • Verifica específicamente: las imágenes encajan en su espacio (sin contenido importante recortado; prefiere objectFit: contain sobre un fondo coincidente para imágenes reales heterogéneas), el texto no está recortado ni desbordado, nada está fuera del área segura, y cada elemento animado es realmente visible cuando debería serlo.
  • Si está compuesto sobre otro metraje, también verifica un fotograma de la salida final horneada, no solo la toma aislada.

Corrige lo que revela la captura de pantalla, luego vuelve a renderizar y mira de nuevo. Trata "Lo rendericé y se ve correcto" — con el fotograma mostrado — como el estándar para estar terminado.


Salida final

Genera el archivo .tsx completo y nada más dentro de él — sin markdown circundante, sin comentarios antes o después del código en el archivo mismo. Una nota breve de una línea en el chat al entregar el archivo está bien.

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

Skills relacionados