Communitygithub.com

TerminalSkills/skills

Creación de video programática con React utilizando Remotion. Úsalo cuando un usuario pida crear videos con código, generar videos personalizados, construir visualizaciones de datos animadas, añadir subtítulos estilo TikTok, renderizar video de forma programática o automatizar la producción de video. Soporta renderizado por CLI, AWS Lambda y despliegue en Google Cloud Run.

¿Qué es skills?

La habilidad de Remotion Video Toolkit permite a los agentes de IA y desarrolladores crear videos programáticamente usando React y Remotion. Convierte componentes de React en videos renderizados (MP4/WebM), lo que facilita la generación de contenido de video reutilizable y escalable. Soporta tareas como la configuración de proyectos, la creación de composiciones de video, la adición de subtítulos animados al estilo TikTok, la representación de videos localmente o en la nube (AWS Lambda, Google Cloud Run) y la creación de visualizaciones de datos animadas como gráficos de barras. La habilidad se basa en el uso de hooks de Remotion como `useCurrentFrame()`, `interpolate()` y `Sequence`, y promueve mejores prácticas como mantener las composiciones puras (pasando datos a través de props) y usar `<OffthreadVideo>` para un rendimiento óptimo. También ofrece ejemplos concretos de automatización, como la generación de videos de bienvenida personalizados a partir de un archivo JSON o la creación de paneles de ventas animados.

Compatible con✓Claude Code✓Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/TerminalSkills/skills/tree/HEAD/skills/remotion-video-toolkit

Preguntar en tu IA favorita

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

Documentación

Kit de Herramientas de Video Remotion

Resumen

Crea videos de forma programática usando React y Remotion. Construye plantillas de video reutilizables como componentes de React, renderízalas a MP4/WebM mediante CLI o infraestructura en la nube, y genera videos personalizados a escala. Ideal para contenido automatizado de redes sociales, visualizaciones de datos animadas y tuberías de producción de video dinámicas.

Instrucciones

Cuando un usuario pida crear un video programático, determina la tarea:

Tarea A: Configurar un proyecto Remotion

# Crea un nuevo proyecto Remotion
npx create-video@latest mi-video
cd mi-video
npm start  # Abre Remotion Studio en http://localhost:3000

Estructura del proyecto:

mi-video/
  src/
    Root.tsx          # Registra todas las composiciones
    MiComposicion.tsx # Tu componente de video
  remotion.config.ts  # Configuración de renderizado

Tarea B: Crear una composición de video

Cada video de Remotion es un componente de React que usa useCurrentFrame() y useVideoConfig():

import { AbsoluteFill, useCurrentFrame, useVideoConfig, interpolate, spring } from "remotion";

interface MiVideoProps {
  titulo: string;
  subtitulo: string;
  colorFondo: string;
}

export const MiVideo: React.FC<MiVideoProps> = ({ titulo, subtitulo, colorFondo }) => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();

  // Animar el título deslizándose hacia adentro
  const tituloY = spring({ frame, fps, from: -100, to: 0, durationInFrames: 30 });

  // Fundido de entrada del subtítulo después de 20 fotogramas
  const opacidadSubtitulo = interpolate(frame, [20, 40], [0, 1], {
    extrapolateRight: "clamp",
  });

  return (
    <AbsoluteFill style={{ backgroundColor: colorFondo, justifyContent: "center", alignItems: "center" }}>
      <h1 style={{ fontSize: 80, color: "white", transform: `translateY(${tituloY}px)` }}>
        {titulo}
      </h1>
      <p style={{ fontSize: 36, color: "rgba(255,255,255,0.8)", opacity: opacidadSubtitulo }}>
        {subtitulo}
      </p>
    </AbsoluteFill>
  );
};

Registra la composición en Root.tsx:

import { Composition } from "remotion";
import { MiVideo } from "./MiVideo";

export const RemotionRoot: React.FC = () => {
  return (
    <Composition
      id="MiVideo"
      component={MiVideo}
      durationInFrames={150}
      fps={30}
      width={1920}
      height={1080}
      defaultProps={{ titulo: "Hola Mundo", subtitulo: "Hecho con Remotion", colorFondo: "#1a1a2e" }}
    />
  );
};

Tarea C: Añadir subtítulos animados estilo TikTok

import { AbsoluteFill, useCurrentFrame, Sequence } from "remotion";

interface PalabraSubtitulo {
  texto: string;
  frameInicio: number;
  duracionFotogramas: number;
}

const subtitulos: PalabraSubtitulo[] = [
  { texto: "Esto", frameInicio: 0, duracionFotogramas: 15 },
  { texto: "es", frameInicio: 15, duracionFotogramas: 10 },
  { texto: "increíble!", frameInicio: 25, duracionFotogramas: 20 },
];

export const SuperposicionSubtitulos: React.FC = () => {
  const frame = useCurrentFrame();

  const palabraActiva = subtitulos.find(
    (c) => frame >= c.frameInicio && frame < c.frameInicio + c.duracionFotogramas
  );

  return (
    <AbsoluteFill style={{ justifyContent: "flex-end", alignItems: "center", paddingBottom: 120 }}>
      {palabraActiva && (
        <div style={{
          fontSize: 64,
          fontWeight: "bold",
          color: "white",
          textShadow: "2px 2px 8px rgba(0,0,0,0.8)",
          backgroundColor: "rgba(0,0,0,0.5)",
          padding: "8px 24px",
          borderRadius: 12,
        }}>
          {palabraActiva.texto}
        </div>
      )}
    </AbsoluteFill>
  );
};

Tarea D: Renderizar videos

# Renderizar localmente mediante CLI
npx remotion render MiVideo salida/video.mp4

# Renderizar con props personalizados
npx remotion render MiVideo salida/video.mp4 --props='{"titulo":"Título Personalizado"}'

# Renderizar un fotograma fijo (para miniaturas)
npx remotion still MiVideo salida/miniatura.png --frame=45

# Renderizar con códec y calidad específicos
npx remotion render MiVideo salida/video.mp4 --codec=h264 --crf=18

Para renderizado por lotes a escala:

# Renderizar en AWS Lambda
npx remotion lambda render MiVideo --props='{"titulo":"Video 1"}'

# Renderizar en Google Cloud Run
npx remotion cloudrun render MiVideo --props='{"titulo":"Video 1"}'

Tarea E: Visualizaciones de datos animadas

import { AbsoluteFill, useCurrentFrame, interpolate } from "remotion";

interface PuntoDato { etiqueta: string; valor: number; color: string; }

export const GraficoBarras: React.FC<{ datos: PuntoDato[] }> = ({ datos }) => {
  const frame = useCurrentFrame();
  const maxVal = Math.max(...datos.map((d) => d.valor));

  return (
    <AbsoluteFill style={{ padding: 80, justifyContent: "flex-end", backgroundColor: "#0f0f23" }}>
      <div style={{ display: "flex", alignItems: "flex-end", gap: 20, height: "70%" }}>
        {datos.map((punto, i) => {
          const altura = interpolate(frame, [i * 10, i * 10 + 30], [0, (punto.valor / maxVal) * 100], {
            extrapolateLeft: "clamp",
            extrapolateRight: "clamp",
          });
          return (
            <div key={i} style={{ flex: 1, textAlign: "center" }}>
              <div style={{
                height: `${altura}%`,
                backgroundColor: punto.color,
                borderRadius: "8px 8px 0 0",
                transition: "height 0.3s",
              }} />
              <p style={{ color: "white", marginTop: 12, fontSize: 24 }}>{punto.etiqueta}</p>
            </div>
          );
        })}
      </div>
    </AbsoluteFill>
  );
};

Ejemplos

Ejemplo 1: Video de bienvenida personalizado

Solicitud del usuario: "Genera un video de bienvenida para cada nuevo usuario con su nombre"

# Genera videos a partir de una lista JSON de usuarios
for usuario in $(jq -r '.[] | @base64' usuarios.json); do
  nombre=$(echo "$usuario" | base64 -d | jq -r '.nombre')
  npx remotion render VideoBienvenida "salida/bienvenida_${nombre}.mp4" \
    --props="{\"nombreUsuario\":\"${nombre}\"}"
done

Ejemplo 2: Panel de ventas animado

Solicitud del usuario: "Crea un video que muestre nuestras métricas trimestrales animándose"

Construye una composición usando el componente GraficoBarras con datos trimestrales, renderiza con:

npx remotion render PanelVentas salida/informe_q4.mp4 \
  --props='{"trimestre":"Q4","ingresos":1250000,"crecimiento":12.5}'

Ejemplo 3: Contenido de redes sociales con subtítulos

Solicitud del usuario: "Añade subtítulos animados a un video para TikTok"

Combina SuperposicionSubtitulos con una fuente OffthreadVideo:

import { OffthreadVideo } from "remotion";
<AbsoluteFill>
  <OffthreadVideo src="https://ejemplo.com/clip.mp4" />
  <SuperposicionSubtitulos />
</AbsoluteFill>

Directrices

  • Usa useCurrentFrame() e interpolate() para todas las animaciones; evita las transiciones CSS.
  • Mantén las composiciones puras: pasa todos los datos dinámicos como props para facilitar el renderizado por lotes.
  • Usa <Sequence> para organizar las secciones de tu línea de tiempo de video.
  • Prefiere <OffthreadVideo> sobre <Video> para un mejor rendimiento con fuentes de video.
  • Establece crf (Factor de Tasa Constante) entre 16 y 20 para una buena relación calidad-tamaño.
  • Para renderizado en Lambda, mantén las composiciones por debajo de 120 segundos para evitar problemas de tiempo de espera.
  • Prueba en Remotion Studio antes de renderizar para detectar problemas de diseño a tiempo.
  • Usa staticFile() para hacer referencia a los activos en la carpeta public/.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

TerminalSkills/skills

>- Run GitHub Actions locally with act. Use when a user asks to test GitHub Actions workflows locally, debug CI pipelines without pushing, or run workflows offline.

TerminalSkills/skills

>- You are an expert in AG2 (formerly AutoGen), the open-source multi-agent conversation framework. You help developers build systems where multiple AI agents collaborate through structured conversations — with tool use, human-in-the-loop, code execution, group chat orchestration, and nested conversations — for complex tasks like software development, research, and data analysis.

TerminalSkills/skills

>- Generate short-form videos with AI — script writing, text-to-speech narration, stock footage selection, subtitle generation, and video assembly. Use when: creating TikTok/YouTube Shorts/Reels content, automating video production, building content pipelines.

TerminalSkills/skills

>- Animate 3D objects and characters in Blender with Python. Use when the user wants to keyframe properties, create armatures and rigs, set up IK/FK chains, animate shape keys for facial animation, edit F-Curves, use the NLA editor to blend actions, add drivers for expression-based animation, or script any animation workflow in Blender.

TerminalSkills/skills

>- Automate motion capture and tracking workflows in Blender with Python. Use when the user wants to import BVH or FBX mocap data, retarget motion to armatures, track camera or object motion from video, solve camera motion, clean up motion capture data, or script any tracking pipeline in Blender.

TerminalSkills/skills

>- You are an expert in Bolt.new by StackBlitz, the AI-powered full-stack development environment that runs entirely in the browser. You help developers go from idea to deployed app in minutes using natural language prompts — Bolt generates complete applications with frontend, backend, database, and deployment, all running in a WebContainer without local setup.

TerminalSkills/skills

>- Assists with using Bun as an all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner. Use when building HTTP servers, managing packages, running tests, or migrating from Node.js. Trigger words: bun, bun serve, bun install, bun test, bun build, javascript runtime, bun runtime.

TerminalSkills/skills

>- Self-host customer support with Chatwoot. Use when a user asks to set up open-source customer support, add live chat without SaaS costs, build a multi-channel inbox, or deploy a free Intercom alternative.

TerminalSkills/skills

>- You are an expert in Chi, the lightweight, idiomatic Go HTTP router built on `net/http`. You help developers build composable HTTP services using Chi's middleware stack, route groups, URL parameters, sub-routers, and context-based request scoping — providing Express-like ergonomics while staying 100% compatible with Go's standard library.

TerminalSkills/skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' or 'copy sweep.' This skill provides a systematic approach to editing marketing copy through multiple focused passes.

TerminalSkills/skills

>- Add live chat and customer support with Crisp. Use when a user asks to add a chat widget, implement live customer support, set up a help desk, create a knowledge base, or add a chatbot to a website.

TerminalSkills/skills

>- Assists with building custom interactive data visualizations using D3.js. Use when creating charts, graphs, maps, force layouts, or hierarchical diagrams that require fine-grained control beyond what charting libraries provide. Trigger words: d3, data visualization, chart, svg, scales, force graph, treemap, choropleth.

TerminalSkills/skills

dbt (data build tool) transforms data in your warehouse using SQL SELECT statements. Learn project setup, models, tests, documentation, incremental materializations, and integration with data warehouses like PostgreSQL, BigQuery, and Snowflake.

TerminalSkills/skills

>- You are an expert in dlt, the open-source Python library for building data pipelines. You help developers load data from any API, file, or database into warehouses and lakes using simple Python decorators — with automatic schema inference, incremental loading, and built-in data contracts. dlt is the "requests library for data pipelines.

TerminalSkills/skills

Data Version Control for ML projects. Track large datasets and models alongside Git, build reproducible ML pipelines, and run experiments with metric comparison. Works with any storage backend including S3, GCS, Azure, and local filesystems.

TerminalSkills/skills

>- You are an expert in E2B, the cloud platform for running AI-generated code in secure sandboxes. You help developers give AI agents the ability to execute code, install packages, read/write files, and run long processes in isolated cloud environments — each sandbox is a lightweight VM that boots in ~150ms with full Linux, filesystem, and networking.

TerminalSkills/skills

>- Transcode, convert, edit, and process audio and video with FFmpeg. Use when a user asks to convert video formats (webm to mp4, mkv to mp4), extract audio from video, compress video files, trim or cut clips, concatenate videos, add subtitles, create thumbnails, apply filters, change resolution or bitrate, re-encode media, create GIFs from video, add watermarks, normalize audio, stream media, or build automated media processing pipelines.

TerminalSkills/skills

>- Create advanced animations with GSAP. Use when building complex timelines, scroll-driven animations, SVG morphing, text animations, or high-performance web animations beyond CSS capabilities.

TerminalSkills/skills

>- Generate deterministic MP4 videos from HTML, CSS, media, and seekable animations using HeyGen's HyperFrames framework. Use when someone asks to "render HTML to video", "make a video with HyperFrames", "create a programmatic video", "turn an animation into MP4", "build a launch/product video from HTML", "render GSAP/Lottie/Three.js to video", or set up an agent-driven video pipeline. Covers init/preview/render/add/lint/inspect commands, data-* timing attributes, animation adapters, and the component catalog.

TerminalSkills/skills

When the user wants to perform load testing, stress testing, or performance testing of APIs and websites using k6. Also use when the user mentions "k6," "load test," "performance test," "stress test," "spike test," "soak test," "thresholds," "virtual users," or "VUs." For browser-based testing, see selenium.

Skills relacionados