Communitygithub.com

Remotion Compose

Convierte un resumen en lenguaje natural en una composición completa de Remotion, lista para previsualizar: extrae duración, escenas, colores de marca, relación de aspecto y texto real; planifica el presupuesto de fotogramas; y escribe React/TypeScript animado con useCurrentFrame, interpolate, spring, AbsoluteFill y Sequence, registrado en Root.tsx.

¿Qué es Remotion Compose?

Esta habilidad ('skill') automatiza la creación de composiciones de Remotion a partir de una breve descripción en lenguaje natural. Su utilidad principal es acelerar drásticamente el proceso de prototipado de videos animados (demostraciones de productos, walkthroughs, anuncios) generando código React/TypeScript funcional, con animaciones basadas en fotogramas, que se puede previsualizar al instante en Remotion Studio. La habilidad extrae automáticamente parámetros clave como duración, escenas, colores de marca y texto, y luego construye un plan de fotogramas, escribe componentes animados (usando useCurrentFrame, interpolate, spring) y los registra en Root.tsx. Soporta cualquier plataforma (web, social, cuadrado) y está diseñada para ser usada con asistentes de IA como Claude Code, Cursor o Codex, eliminando el trabajo repetitivo de escribir la estructura base de una composición. No debe usarse para renderizar el video final ni para instalar/configurar el proyecto, ya que esas tareas tienen otras habilidades dedicadas.

Compatible con~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/SkillMedev/skills/tree/HEAD/skills/remotion-compose

Preguntar en tu IA favorita

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

Documentación

¿Qué hace Remotion Compose?

Convierte un resumen en lenguaje natural en una composición completa de Remotion, lista para previsualizar — React/TypeScript real con animación basada en fotogramas. El resultado es un archivo .tsx en src/compositions/, registrado en src/Root.tsx, que el usuario puede inspeccionar inmediatamente en Studio o pasar a remotion-render.

Actívalo ante cualquier solicitud de crear, generar, animar o "escribir el código de video para" una demo de producto, walkthrough, destacado de funcionalidad o animación de marketing — incluido "construye un video de 20 segundos que muestre X".

Paso 1 - Extraer el resumen

No empieces a codificar hasta que tengas estos datos. Pregúntalos en un lote compacto; completa los vacíos obvios con valores predeterminados sensatos en lugar de estancarte:

  1. Duración en segundos, y fps (por defecto 30 — el estándar para video de producto y marketing, y la mitad del coste de renderizado que 60 fps. Usa 60 fps solo cuando animes movimientos finos del cursor o desplazamiento de UI donde 30 fps tiemblen visiblemente).
  2. Escenas — qué sucede, en orden. Presiona por una lista de momentos: "logo, luego tres funcionalidades, luego un CTA" es mejor que "una demo de mi app".
  3. Marca — colores hex primario/de acento/fondo, y la fuente (un nombre de familia de @remotion/google-fonts).
  4. Relación de aspecto / plataforma — 16:9 apaisado (1920×1080), 9:16 vertical (1080×1920) para redes sociales, o 1:1 cuadrado (1080×1080).
  5. Texto — los titulares/nombres de funcionalidades/texto de CTA reales. Nunca inventes afirmaciones de producto; pide las palabras reales.

Convierte segundos a fotogramas en todas partes: durationInFrames = segundos * fps. Las duraciones típicas totales: 15-60s para una demo social/de producto, 6-15s para un corte publicitario.

Paso 2 - Construir un plan de escenas

Un <Composition> por video, un componente por escena, unidos en la línea de tiempo con <Sequence>. Establece el presupuesto de fotogramas antes de escribir código:

Total: 20s @ 30 fps = 600 fotogramas
  Intro (logo)        fotogramas   0-90    (Sequence from=0   durationInFrames=90)
  Funcionalidad 1     fotogramas  90-240   (Sequence from=90  durationInFrames=150)
  Funcionalidad 2     fotogramas 240-390   (Sequence from=240 durationInFrames=150)
  Funcionalidad 3     fotogramas 390-540   (Sequence from=390 durationInFrames=150)
  CTA outro           fotogramas 540-600   (Sequence from=540 durationInFrames=60)

Umbrales de ritmo al presupuestar:

  • Dale a cualquier momento que lleve texto al menos 2 segundos (60 fotogramas a 30 fps) — animación de entrada más pausa. Un titular necesita aproximadamente 150-200ms de pausa por palabra para ser legible; un titular de 6 palabras quiere ~1s de pausa después de que llegue.
  • Animaciones de entrada: 10-20 fotogramas. Fundidos cruzados y salidas: 12-15 fotogramas. Más largas se leen como lentas, más cortas como un fallo.
  • Ninguna escena de menos de ~45 fotogramas a menos que sea un corte flash deliberado.

<Sequence from={F}> desplaza el reloj local del hijo de modo que dentro de ese componente useCurrentFrame() comience en 0. Anima cada escena como si empezara en el fotograma 0.

Paso 3 - Referencia de la API principal

  • useCurrentFrame() — el fotograma actual (el reloj). Todo se anima como función de esto.
  • useVideoConfig() — { fps, width, height, durationInFrames }.
  • interpolate(frame, [fotogramasEntrada], [valoresSalida], opciones) — mapeo lineal. Siempre pasa { extrapolateLeft: "clamp", extrapolateRight: "clamp" } para entrada/salida para que los valores no se salgan de su rango.
  • spring({ frame, fps, config }) — 0→1 basado en física (sobrepasa ligeramente). Úsalo para cualquier cosa que deba sentirse viva (reventones, deslizamientos, escalados).
  • AbsoluteFill — un div de fotograma completo con posición absoluta; la capa base de cada escena.
  • Sequence — desplaza temporalmente y limita en el tiempo a los hijos (el programador de escenas).
  • Series / Series.Sequence — escenas consecutivas sin calcular desplazamientos from manualmente.
  • Img, staticFile — ver Paso 6.

Paso 4 - spring() vs interpolate()

Usa spring() cuando…Usa interpolate() cuando…
El movimiento deba sentirse físico — reventones, rebotes, escalados, deslizamientosNecesites control lineal preciso entre fotogramas exactos
Quieras un asentamiento/sobrepaso naturalFundidos (opacidad 0→1), cambios de color, barras de progreso, cualquier cosa con sincronización exacta al fotograma
Entradas de tarjetas, logotipos, insigniasFundidos cruzados y salidas donde el sobrepaso se vería mal

Patrón — impulsa una transformación con un spring, una opacidad con interpolate:

const { fps } = useVideoConfig();
const frame = useCurrentFrame();
const pop = spring({ frame, fps, config: { damping: 200 } });   // 0 → 1, vivaz
const opacity = interpolate(frame, [0, 15], [0, 1], { extrapolateRight: "clamp" });
const scale = interpolate(pop, [0, 1], [0.8, 1]);

damping: 200 es la configuración de trabajo — un asentamiento rápido con sobrepaso apenas perceptible. Un damping más bajo (~10-20) rebota visiblemente; úsalo solo cuando el rebote sea el objetivo.

Paso 5 - Estructura estándar de demo de producto

Codifica esta forma a menos que el resumen indique lo contrario: introducción de logotipo/marca → N destacados de funcionalidad → CTA de salida. Hazlo basado en datos (Paso 6) para que las variantes sean gratuitas.

// src/compositions/ProductDemo.tsx
import {
  AbsoluteFill, Sequence, useCurrentFrame, useVideoConfig,
  interpolate, spring,
} from "remotion";
import { loadFont } from "@remotion/google-fonts/Inter";

const { fontFamily } = loadFont();

export type Feature = { title: string; body: string };
export type ProductDemoProps = {
  brand: string;
  colors: { bg: string; fg: string; accent: string };
  logoText: string;
  features: Feature[];
  cta: string;
};

const Intro: React.FC<{ text: string; colors: ProductDemoProps["colors"] }> = ({ text, colors }) => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();
  const s = spring({ frame, fps, config: { damping: 200 } });
  const scale = interpolate(s, [0, 1], [0.7, 1]);
  const opacity = interpolate(frame, [0, 12], [0, 1], { extrapolateRight: "clamp" });
  return (
    <AbsoluteFill style={{ backgroundColor: colors.bg, justifyContent: "center", alignItems: "center" }}>
      <h1 style={{ fontFamily, fontSize: 120, color: colors.fg, transform: `scale(${scale})`, opacity }}>
        {text}
      </h1>
    </AbsoluteFill>
  );
};

const FeatureCallout: React.FC<{ feature: Feature; colors: ProductDemoProps["colors"] }> = ({ feature, colors }) => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();
  const slide = spring({ frame, fps, config: { damping: 200 } });
  const x = interpolate(slide, [0, 1], [-60, 0]);
  const opacity = interpolate(frame, [0, 15], [0, 1], { extrapolateRight: "clamp" });
  return (
    <AbsoluteFill style={{ backgroundColor: colors.bg, justifyContent: "center", paddingLeft: 160 }}>
      <div style={{ transform: `translateX(${x}px)`, opacity }}>
        <div style={{ fontFamily, fontSize: 32, color: colors.accent, fontWeight: 700, letterSpacing: 2 }}>
          {feature.title.toUpperCase()}
        </div>
        <div style={{ fontFamily, fontSize: 64, color: colors.fg, maxWidth: 1100, marginTop: 16 }}>
          {feature.body}
        </div>
      </div>
    </AbsoluteFill>
  );
};

const Outro: React.FC<{ cta: string; colors: ProductDemoProps["colors"] }> = ({ cta, colors }) => {
  const frame = useCurrentFrame();
  const opacity = interpolate(frame, [0, 18], [0, 1], { extrapolateRight: "clamp" });
  return (
    <AbsoluteFill style={{ backgroundColor: colors.accent, justifyContent: "center", alignItems: "center" }}>
      <h2 style={{ fontFamily, fontSize: 84, color: colors.bg, opacity }}>{cta}</h2>
    </AbsoluteFill>
  );
};

export const ProductDemo: React.FC<ProductDemoProps> = ({ colors, logoText, features, cta }) => {
  const intro = 90;
  const per = 150;
  const outro = 60;
  return (
    <AbsoluteFill>
      <Sequence durationInFrames={intro}>
        <Intro text={logoText} colors={colors} />
      </Sequence>
      {features.map((f, i) => (
        <Sequence key={i} from={intro + i * per} durationInFrames={per}>
          <FeatureCallout feature={f} colors={colors} />
        </Sequence>
      ))}
      <Sequence from={intro + features.length * per} durationInFrames={outro}>
        <Outro cta={cta} colors={colors} />
      </Sequence>
    </AbsoluteFill>
  );
};

Regístralo en src/Root.tsx, calculando durationInFrames a partir de los mismos números y proporcionando defaultProps:

<Composition
  id="ProductDemo"
  component={ProductDemo}
  durationInFrames={90 + 3 * 150 + 60}
  fps={30}
  width={1920}
  height={1080}
  defaultProps={{
    brand: "Acme",
    colors: { bg: "#0B0B0F", fg: "#FFFFFF", accent: "#6C5CE7" },
    logoText: "Acme",
    features: [
      { title: "Rápido", body: "Entrega en segundos, no en sprints." },
      { title: "Simple", body: "Un prompt, un video." },
      { title: "Tuyo", body: "Tu marca, tu texto." },
    ],
    cta: "Empieza gratis →",
  }}
/>

Para vertical/redes sociales, establece width={1080} height={1920}; para cuadrado, 1080×1080. Mantén los componentes idénticos — solo cambia el lienzo.

Paso 6 - Props basados en datos y activos estáticos

La composición anterior es completamente basada en datos: cada palabra y color es una prop. Ese es el objetivo — las variantes (nuevo texto, nueva paleta, texto localizado) no necesitan ninguna nueva solicitud; solo pasa diferentes props (remotion-render hace esto desde un archivo JSON para lotes).

Los activos estáticos (logotipos, capturas de pantalla, audio) residen en public/assets/ y se referencian con staticFile() — nunca una importación o una ruta raw:

import { Img, staticFile } from "remotion";
<Img src={staticFile("assets/logo.png")} />

Paso 7 - Salida

Guarda el archivo terminado en src/compositions/<NombreVideo>.tsx, regístralo en src/Root.tsx, e indica al usuario que previsualice con npx remotion studio (http://localhost:3000). Luego entrega: "Examínalo en Studio. Dime qué cambiar — demasiado rápido, color incorrecto, texto diferente — y lo editaré y rerenderizaré (remotion-render)."

NO hagas

  • NO animes con transiciones/animaciones CSS o setTimeout/setInterval. Remotion renderiza fotogramas de forma independiente y en paralelo; cualquier cosa que no derive de useCurrentFrame() es invisible o inconsistente en el render final aunque se vea bien en la previsualización del navegador.
  • NO uses Math.random() para efectos dispersos/de partículas — cada worker de render obtiene valores diferentes y los fotogramas dejan de coincidir. Usa random(seed) de Remotion para pseudoaleatoriedad determinista.
  • NO obtengas datos ni esperes trabajo asíncrono sin delayRender() / continueRender() — el render captura el fotograma antes de que lleguen los datos.
  • NO codifiques fps, width o height dentro de los componentes de escena — léelos de useVideoConfig() para que cambiar 30↔60 fps o apaisado↔vertical no rompa cada temporización y diseño.
  • NO omitas extrapolateLeft/Right: "clamp" en las interpolaciones de entrada/salida — la opacidad sube más allá de 1 y los elementos se desvían fuera del lienzo después de que termine su rango.
  • NO inventes titulares, afirmaciones de funcionalidades o CTAs — usa el texto real del usuario, y pídelo si falta.

Nivel de calidad

  • Cada valor animado es una función pura de useCurrentFrame() (más props) — retroceder en Studio se ve idéntico a avanzar.
  • El presupuesto de fotogramas en el plan suma exactamente durationInFrames en Root.tsx, y ningún momento de texto dura menos de su mínimo legible.
  • Todo el texto y los colores llegan a través de props tipadas con defaultProps suministrados — sin literales enterrados en los componentes de escena.
  • Los activos cargan mediante staticFile(); el archivo se registra limpiamente y se previsualiza en Studio sin errores de consola.

Individual skills in this repo

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

SkillMedev/skills

Designs REST API surfaces - resource naming, HTTP method and status-code semantics, error shapes, pagination, and filtering - and delivers an endpoint spec a consumer can build against without asking questions. Use when someone asks "how should I name this endpoint", "what status code should this return", "should this be PUT or PATCH", "how do I paginate this list", or is reviewing an API before it ships to external consumers. Do NOT use for planning breaking-change rollouts and deprecation windows - use api-versioning-strategist instead; for GraphQL type and resolver design - use graphql-schema instead; for generating client SDKs from an existing spec - use api-client-generator instead; for designing inbound webhook endpoints - use webhook-receiver-hardener instead.

SkillMedev/skills

Produce an accurate, properly timed caption track (SRT or WebVTT) from a video's audio - transcribing or aligning to the voiceover script, timing cues to speech, and enforcing line-length and reading-speed rules so captions are readable and in sync. Use when someone says "generate captions", "make subtitles from the audio", "transcribe and caption this", "export an SRT or VTT", "the captions are out of sync", or "the subtitles flash by too fast to read". Do NOT use to burn-in, style, reframe, or position an existing caption track for a platform (9:16, brand styling, safe areas) - that is social-video-formatter; do NOT use to animate text word-by-word as a motion graphic - that is kinetic-typography; do NOT use to write the spoken script in the first place - that is narration-script.

SkillMedev/skills

Turns data and charts into a decision-driving narrative structured as headline finding, trend, implication, and recommended action - with finding-led chart titles, context for every number, annotation guidance, and honest flags on any conclusion the data cannot support. Use when someone says "turn these numbers into a story", "what's the takeaway from this data", "help me present these results to leadership", or has charts but no narrative. Do NOT use for compressing a long document into a one-pager - use executive-summary instead - or for running the analysis that produces the findings - use eda-playbook instead.

SkillMedev/skills

Use when a task needs live or historical money data - "convert USD to EUR", "current/past exchange rate", "FX rate on this date / over this range", or "current price of Bitcoin/Ethereum, market cap, 24h change". Frankfurter (ECB reference rates, no key) is the FX default; CoinGecko's free keyless tier covers crypto. Do NOT use for stock quotes or equities - no keyless stock API survives verification, say so instead of guessing; do NOT use for country economic indicators like GDP or inflation series - use government-open-data instead; if the request is a vague "I need live data", route through public-data-api-picker.

SkillMedev/skills

Builds a driver-based FP&A operating model linking business inputs to P&L, balance sheet, and cash flow outputs. Use when building an annual plan, preparing investor materials, running scenario analysis, or stress-testing the business.

SkillMedev/skills

Use when a task needs live geographic lookups - "geocode this address", "what's at these coordinates" (reverse geocoding), "lat/lon for this city", "which country/state is this ZIP or postal code in", or "country facts: capital, currency, population, flag". Nominatim (OpenStreetMap) is the geocoding default; Zippopotam for postal codes; APICountries for country facts. All keyless. Do NOT use for weather at a location - use weather-climate instead; do NOT use for country-level statistics over time (GDP, population trends) - use government-open-data instead; if the request is a vague "I need live data", route through public-data-api-picker.

SkillMedev/skills

Runs the full Getting Things Done loop - capture, clarify, organize, reflect, engage - building a trusted system of context lists, a projects list with defined next actions, and a weekly review habit. Use when someone says "I'm overwhelmed and things are slipping through the cracks", "set up GTD for me", "help me do a brain dump and organize it", or "my to-do list is a mess". Do NOT use for just running the weekly review ritual itself - use weekly-review instead - or for clearing an email backlog - use inbox-zero.

SkillMedev/skills

Processes any email backlog to zero using the 4Ds - Delete, Delegate, Defer, Do - with a mass-archive strategy for the obvious, a touch-each-email-once discipline, and a keep-it-clear system of batched processing windows, ruthless unsubscribing, filters, and a minimal folder setup. Use when someone says "I have 5,000 unread emails", "help me get to inbox zero", "email is eating my whole day", or treats their inbox as a to-do list. Do NOT use for drafting the reply emails themselves or prioritization rules for an ongoing support queue - use email-triage instead - or for protecting focus time around the email windows - use deep-work-planner instead.

SkillMedev/skills

Write landing-page copy section by section - hero, social proof, features-as-benefits, objections, CTA - leading with one promise and proving it down the page. Use when someone asks "write my landing page", "improve my hero headline", "what should the homepage say", "turn these features into benefits", or is shipping a new page for a launch or campaign. Do NOT use for testing and optimizing an existing page's conversion rate - use landing-page-cro instead; for the one-line claim itself use positioning-statement; for the full message ladder use messaging-hierarchy.

SkillMedev/skills

Improves an existing landing page's conversion rate through evidence-first CRO - audit heatmaps and recordings, write structured hypotheses, prioritize with ICE scoring, and run one-variable tests to statistical significance. Use when someone asks "why isn't my landing page converting", "audit this page before we scale spend", "which A/B test should we run first", or after a CVR drop or ahead of a paid-traffic push. Do NOT use for writing a new landing page from scratch - use landing-page-copy instead. Do NOT use for auditing the ad accounts sending the traffic - use paid-acquisition-audit instead. Do NOT use for reading the results of a finished experiment - use ab-test-analyzer instead.

SkillMedev/skills

Runs structured coaching sessions using values clarification and the GROW model, ending every session with one committed action, a deadline, and an if-then plan for the likely obstacle. Use when someone says "I feel stuck in my life", "help me figure out what I want", "hold me accountable to my goals", or "coach me through this decision". Do NOT use for building a stress toolkit - use stress-management instead - or a journaling practice - use journal-framework; for a standing goal-tracking system, use goals-accountability. Coaching, not therapy: signs of clinical distress route to a licensed professional.

SkillMedev/skills

Adapts English content for a target language and region - swapping idioms, setting the right formality register, replacing cultural references, converting dates, units, and currency - and delivers the localized text with a notes column explaining each adaptation and flagging what needs a native reviewer. Use when someone asks "localize this copy for the Japanese market", "adapt our marketing copy for the Mexican market", "make this translation sound native instead of literal", or a literal translation reads foreign, stiff, or risky. Do NOT use for auditing in-product UI text quality - use ux-writing-audit instead.

SkillMedev/skills

Scaffolds a new Remotion video project wired for Claude Code Agent Skills - Node check, create-video scaffold, skills install, folder conventions, Google Fonts, and a smoke-test render. Use whenever someone wants to start making videos with Remotion and Claude, even just "make product videos with Claude.

SkillMedev/skills

Classifies incident severity (SEV1-4) using impact, scope, and urgency signals and decides who to page. Use when an alert fires or a report comes in and a severity call must be made quickly.

SkillMedev/skills

Use the Skill Me catalog from inside any conversation - discover, install, and manage Claude skills through the Skill Me MCP, and load installed skills automatically each session.

SkillMedev/skills

Write one platform-native caption from a topic and brand voice, with a front-loaded hook, native length, and a single earned CTA. Use when the user gives a topic (and optionally brand voice or a described image/video) and asks for an Instagram, LinkedIn, X/Twitter, or TikTok caption. Do NOT use when the user wants a dedicated standalone LinkedIn post - use linkedin-post-writer instead; or a multi-post X thread - use tweet-thread-builder instead; or to adapt one existing piece of content into versions for several channels - use cross-platform-reformatter instead.

SkillMedev/skills

Reframe and export a finished video for social platforms - 9:16 ↔ 16:9 cropping, burned-in captions, a platform-native first frame, loop design, and per-platform specs (aspect, length, safe areas) for TikTok, Reels, Shorts, X, and LinkedIn. Use when someone says "make this vertical", "crop to 9:16", "format for TikTok/Reels/Shorts", "add captions/subtitles", "why is my video cut off on mobile", "resize for Instagram", or "export for social". Do NOT use when the question is about the storyboard or shot order before any video exists (use video-storyboard); the animation craft of how elements move (use motion-design-principles); animated word-by-word caption styling (use kinetic-typography); palette, contrast, or lighting (use motion-color-and-light); directing the product-demo content and screen choreography (use product-demo-director); or scoring, beat-syncing, or audio (use sound-and-music-sync) - this is the craft layer that decides WHAT to format for the feed, then hands a concrete spec to remotion-compo...

SkillMedev/skills

Writes and tunes PySpark jobs - join strategy and broadcast size limits, shuffle-partition sizing, skew diagnosis and salting, UDF avoidance, caching, and output file layout - with concrete size and skew thresholds. Use when someone asks "why is my Spark job slow", "should I broadcast this join", "one task takes forever while the rest finish", "my job OOMs during a join", or is writing a new PySpark ETL job. Do NOT use for Kafka topic, consumer-group, or streaming-pipeline design - use kafka-pipelines instead; do NOT use for single-machine dataframe work that fits in memory - use pandas-expert instead.

SkillMedev/skills

Builds clean, performant, accessible SwiftUI views with correct state ownership, scoped invalidation, and smooth list scrolling, and reviews existing SwiftUI code against a concrete frame-time and re-render budget. Use when someone asks "why does my SwiftUI list stutter", "should this be @State or @Observable", "my whole screen re-renders when one row changes", "how do I animate this transition", or wants a SwiftUI view built or refactored. Do NOT use for cross-platform React Native apps - use react-native-pro instead; do NOT use for Flutter widget trees - use flutter-widget-architect instead; do NOT use for Android Compose UIs - use jetpack-compose-builder instead.

Skills relacionados