Logotipo de Remotion Topic Explainer

Remotion Topic Explainer

Comunidad
Cuongyd196
remotion-topic-explainer

Creates professional 50-60s vertical explainer videos (9:16 format, 1080x1920 @ 30fps) for any given topic using Remotion, styled with modern aesthetics and narrated by natural voiceover using edge-tts-universal or CIT Voice Studio (selected via TTS_PROVIDER in .env). Follows remotion-dev/skills best practices for smooth springs, typography, sequence timing, and visual engagement.

Descripción general

EditorCuongyd196
Repositorioremotion-cuongit-template
Nombre de la habilidadremotion-topic-explainer
Estrellas
241
Forks
137
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por Cuongyd196 en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Remotion Topic Explainer en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Cuongyd196/remotion-cuongit-template/tree/main/.agents/skills/remotion-topic-explainer
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Cuongyd196/remotion-cuongit-template.git /tmp/remotion-cuongit-template
mkdir -p .claude/skills
cp -r /tmp/remotion-cuongit-template/.agents/skills/remotion-topic-explainer .claude/skills/remotion-topic-explainer
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Remotion Topic Explainer en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Remotion Topic Explainer automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Remotion Topic Explainer no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Remotion Topic Explainer Video Skill (50-60s)

This skill guides you in creating high-quality, 50–60 second short-form explainer videos (TikTok / YouTube Shorts / Reels format: 1080x1920 @ 30fps) from any given topic.

It combines:

  1. Visual Best Practices from remotion-dev/skills (frame-accurate springs, clamping interpolations, sequence composition, typography hierarchy).
  2. AI Voiceover Synthesis via TTS_PROVIDER in .env: edge (edge-tts-universal, online, free) or cit (CIT Voice Studio, offline Vietnamese studio voices - download at github.com/Cuongyd196/cit-voice-studio, API docs: docs/cit-voice-studio.md).
  3. Exact Timing Synchronization mapping audio voiceover lengths directly into Remotion frame sequences.

1. Video Structure & Timing (50-60s / 1500-1800 frames @ 30fps)

A captivating short video follows the Hook-Problem-Solution-Value-Outro framework:

SceneNameTimeFrame Range (@ 30fps)Purpose & Visuals
1Hook0s – 5s~150 framesGây chú ý tức thì: Tiêu đề lớn, câu hỏi kích thích tò mò, floating badge.
2Context / Pain Point5s – 15s~300 framesNêu vấn đề hoặc bối cảnh vì sao chủ đề này quan trọng. Icon cảnh báo/so sánh.
3Core Concept Part 115s – 28s~390 framesGiải thích nguyên lý cốt lõi thứ 1: Card kính, biểu tượng minh họa, từ khóa nổi bật.
4Core Concept Part 228s – 42s~420 framesMở rộng chi tiết hoặc cơ chế hoạt động: Quy trình 3 bước, sơ đồ luồng mượt mà.
5Real-World Impact42s – 52s~300 framesỨng dụng thực tế, lời khuyên thực chiến hoặc số liệu ấn tượng.
6Outro & CTA52s – 60s~240 framesĐúc kết 1 câu đắt giá, lời kêu gọi Like/Share/Follow & thương hiệu cá nhân.

Tổng thời lượng: 1500 – 1800 frames (khoảng 50 – 60 giây).


2. TTS Voiceover Generation (edge | cit)

2.1 Cấu hình Voice qua .env

Đảm bảo file .env đã được cấu hình (đầy đủ xem .env.example):

env
TTS_PROVIDER=edge                    # edge | cit
TTS_OUTPUT_DIR=public/audio

# Edge TTS (TTS_PROVIDER=edge)
EDGE_TTS_VOICE=vi-VN-HoaiMyNeural    # hoặc vi-VN-NamMinhNeural, en-US-ChristopherNeural
EDGE_TTS_RATE=+10%                   # +10% đến +15% giúp video ngắn nhịp độ nhanh cuốn hút

# CIT Voice Studio (TTS_PROVIDER=cit)
CIT_TTS_BASE_URL=http://127.0.0.1:8001
CIT_TTS_VOICE=Hải Đăng               # danh sách giọng: docs/cit-voice-studio.md hoặc GET /voices
CIT_TTS_SPEED=1.1                    # 0.5 - 2.0

Khi TTS_PROVIDER=cit:

  • App CIT Voice Studio phải đang mở. Script tự gọi GET /health trước khi sinh audio; nếu báo không kết nối được, nhắc người dùng mở app (hoặc tải tại github.com/Cuongyd196/cit-voice-studio).
  • Lời thoại có thể chèn thẻ cảm xúc [cười], [thở dài], [hắng giọng] và thẻ nghỉ [nghỉ 0.5s] (không bị đọc thành tiếng). Không lạm dụng: tối đa 1 thẻ/cảnh.
  • Lỗi 400 Voice not found = sai tên giọng (phân biệt dấu). Kiểm tra CIT_TTS_VOICE.

2.2 Quy trình sinh file Audio

Khi nhận chủ đề, tạo thư mục src/<TopicName>/ trước, vì src/<TopicName>/audioData.ts chỉ được sinh khi thư mục này đã tồn tại. Sau đó tạo scripts/generate-<topic>-audio.ts và chạy để sinh audio:

typescript
import { generateTopicVoices } from "./generate-tts";

const scenes = [
  {
    id: "scene1_hook",
    text: "Bạn có biết Docker thực chất là gì và tại sao mọi lập trình viên đều cần nó?",
  },
  {
    id: "scene2_problem",
    text: "Trước đây, câu nói 'trên máy tôi vẫn chạy được' luôn là cơn ác mộng khi bàn giao sản phẩm.",
  },
  {
    id: "scene3_concept1",
    text: "Docker giải quyết việc này bằng Container - đóng gói toàn bộ code và môi trường vào một khối duy nhất.",
  },
  {
    id: "scene4_concept2",
    text: "Khác với máy ảo nặng nề, Docker chia sẻ chung nhân hệ điều hành, giúp khởi động chỉ trong tích tắc.",
  },
  {
    id: "scene5_impact",
    text: "Nhờ đó, bạn deploy ứng dụng mượt mà trên mọi máy chủ từ AWS, GCP cho đến VPS giá rẻ.",
  },
  {
    id: "scene6_outro",
    text: "Follow kênh để nắm trọn các kiến thức công nghệ ngắn gọn mỗi ngày nhé!",
  },
];

generateTopicVoices("DockerShort", scenes).catch((error) => {
  console.error(error);
  process.exitCode = 1;
});

File âm thanh sẽ được lưu tự động vào public/audio/<TopicName>/<sceneId>.<ext> (.mp3 với edge, .wav với cit) kèm file manifest.json ghi lại chính xác số frame (durationInFrames) và audioPath cho từng phân cảnh.

  • Tuỳ chọn mỗi cảnh: voice (giọng của provider đang chọn), rate/pitch/volume (chỉ edge), speed 0.5-2.0 (chỉ cit).
  • File đã tồn tại được dùng lại (cache). Muốn sinh lại sau khi sửa lời thoại hoặc đổi giọng, xoá file audio tương ứng trước.

3. Remotion Coding Rules (from remotion-dev/skills)

Khi viết mã nguồn Remotion, BẮT BUỘC tuân thủ các nguyên tắc sau:

3.1 Sử dụng Spring Animations

Không dùng CSS keyframes/transitions hay linear easing vô hồn. Dùng spring():

tsx
import { spring, useCurrentFrame, useVideoConfig } from "remotion";

const frame = useCurrentFrame();
const { fps } = useVideoConfig();

// Spring nảy mượt mà cho Card/Icon
const scale = spring({
  frame,
  fps,
  config: {
    damping: 12,    // Dưới 15 tạo độ nảy đàn hồi tự nhiên
    stiffness: 100,  // Độ căng
    mass: 0.8,
  },
});

const entrance = spring({
  frame: frame - 10, // Delay 10 frames
  fps,
  from: 50,
  to: 0,
});

3.2 Interpolation An toàn (Always Clamp)

Luôn luôn cung cấp extrapolateLeft: "clamp" và extrapolateRight: "clamp" để tránh tràn giá trị khi timeline chạy ngoài phạm vi:

tsx
import { interpolate } from "remotion";

const opacity = interpolate(frame, [0, 15], [0, 1], {
  extrapolateLeft: "clamp",
  extrapolateRight: "clamp",
});

3.3 Nhúng Audio và Đồng bộ Sequence

Mỗi scene trong Composition dùng <Sequence> hoặc <Series> để quản lý timing chính xác:

tsx
import { Audio, staticFile, Sequence } from "remotion";

// Trong Scene component - lấy đường dẫn từ manifest, KHÔNG hardcode đuôi .mp3 (provider cit xuất .wav):
<Sequence from={0} durationInFrames={sceneDuration}>
  <Audio src={staticFile(audioManifest.scenes[0].audioPath)} />
  <SceneContent />
</Sequence>
  1. Buffer Chuyển cảnh Tinh gọn (Snappy Transition Buffer):
    • Khoảng đệm giữa các cảnh chỉ nên để +3 đến +4 frames (khoảng 0.1s) sau khi giọng đọc kết thúc.
    • Tránh để buffer quá dài (+15 đến +20 frames) gây ra khoảng lặng/chết nhịp giữa các phân cảnh. Cảnh tiếp theo cần xuất hiện ngay khi câu trước vừa dứt để duy trì nhịp độ dồn dập, hấp dẫn cho video ngắn.
tsx
// Ví dụ tính thời lượng các cảnh trong Series
// Giá trị trong manifest đã gồm 10 frame đệm, nên trừ đi trước khi cộng buffer.
const d1 = audioManifest.scenes[0].durationInFrames - 10 + 3;
const d2 = audioManifest.scenes[1].durationInFrames - 10 + 3;
// ...

3.4 Quy chuẩn Thiết kế Visual (Vertical 1080x1920)

  1. Background: Dark Mode cao cấp (bg-slate-950 hoặc gradient from-slate-950 via-zinc-900 to-black) kết hợp hiệu ứng radial glow/grid mờ.
  2. Glassmorphism Cards:
    • backdrop-blur-xl bg-white/10 border border-white/20 rounded-3xl p-8 shadow-2xl
  3. Thương hiệu Kênh Phía Trên (Brand Header):
    • Luôn hiển thị component thương hiệu ⚡ [CHANNEL_NAME] ở phía trên ở giữa (top: 150px, left: 50% translate-x) đọc từ biến môi trường CHANNEL_NAME (mặc định: "CƯỜNG IT") để tránh bị thanh tìm kiếm và tab Đang theo dõi / Dành cho bạn của nền tảng (TikTok, Shorts, Reels) che khuất.
  4. Typography Tối ưu cho Mobile (1080x1920):
    • Tiêu đề chính: 72px - 96px, in đậm font-black, gradient sắc nét.
    • Nội dung thẻ / trích dẫn: 40px - 50px font-extrabold.
    • Text phụ / giải thích: 28px - 36px font-semibold.
    • Badge danh mục: 28px - 32px font-black uppercase.
  5. Bố cục Trung tâm & Phụ đề 1 Dòng (Single-Line Chunked Caption):
    • Bố cục chính: Toàn bộ khối nội dung quan trọng BẮT BUỘC nằm ở chính giữa màn hình (justify-center theo chiều dọc).
    • Vị trí Phụ đề: Nằm phía dưới khối trung tâm với khoảng cách thoáng đãng (mt-64), không bị che bởi thanh công cụ dưới của TikTok/Reels.
    • Định dạng 1 dòng: Phụ đề chỉ xuất hiện 1 dòng duy nhất (khoảng 5-7 từ), chữ to text-4xl font-black, tự động cắt theo cụm câu và chuyển đổi mượt mà theo đúng tiến trình giọng đọc (durationInFrames). Dùng pill card rounded-full bg-slate-950/95 border-2 border-sky-400/50 px-10 py-5 với highlight từ khóa.

4. Quy trình Tạo Video Từng Bước cho Antigravity / Codex

Khi nhận được yêu cầu: "Tạo video giải thích về [Chủ đề X]":

Bước 1: Soạn Kịch bản (Scripting)

  1. Xác định 6 phân cảnh (Hook, Problem, Concept 1, Concept 2, Impact, Outro).
  2. Viết lời thoại tiếng Việt tự nhiên, súc tích, câu ngắn (mỗi cảnh 15-30 từ).

Bước 2: Sinh Giọng Đọc (TTS Generation)

  1. Đọc TTS_PROVIDER trong .env để biết đang dùng edge hay cit.
  2. Tạo thư mục src/<TopicName>/, rồi tạo script scripts/generate-<topic>-audio.ts gọi generateTopicVoices, chạy npx tsx scripts/generate-<topic>-audio.ts.
  3. Lấy danh sách thời lượng frame thực tế từ manifest.json / src/<TopicName>/audioData.ts.

Bước 3: Tạo Thư mục Code src/<TopicName>/

Cấu trúc thư mục chuẩn:

text
src/<TopicName>/
├── <TopicName>.tsx          # Main composition tập hợp các Series.Sequence
├── types.ts                 # Schema & Props
├── audioData.ts             # Metadata thời lượng audio
└── scenes/
    ├── Scene1Hook.tsx
    ├── Scene2Problem.tsx
    ├── Scene3Concept1.tsx
    ├── Scene4Concept2.tsx
    ├── Scene5Impact.tsx
    └── Scene6Outro.tsx

Hiệu ứng âm thanh: dùng <SfxTrack cues={...} /> từ src/sfx/SfxTrack.tsx, đặt trong component chính. File âm thanh ở public/sfx/, tạo lại bằng npx tsx scripts/generate-sfx.ts.

Lúc nàoÂm thanh
Đầu mỗi cảnh, sớm 3 frame để rơi vào khoảng lặng trước câu mới (cảnh 1 ở frame 0)mallet
Thẻ hoặc mục xuất hiệnpop hoặc tick
Điểm nhấn, kết luậnding
Lời kêu gọi theo dõichime
  • frame của mỗi cue là số frame tính từ đầu video, khớp với lúc thành phần đó xuất hiện.
  • Không cần tự tránh chồng tiếng: SfxTrack tự bỏ cue cách cue trước dưới 0,4s, và giảm âm lượng khi một âm thanh lặp ngay sau chính nó.
  • Không tải âm thanh từ myinstants hay trang không rõ giấy phép. Cần âm mới thì thêm vào scripts/generate-sfx.ts.

Bước 4: Đăng ký Composition vào src/Root.tsx

Thêm Composition mới vào src/Root.tsx:

tsx
<Composition
  id="<TopicName>"
  component={<TopicName>}
  durationInFrames={totalFrames}
  fps={30}
  width={1080}
  height={1920}
  defaultProps={{}}
/>

Bước 5: Kiểm tra và Báo cáo

  1. Chạy npm run lint để kiểm tra lỗi TypeScript/ESLint.
  2. Báo cáo cho người dùng link mở Composition trên Remotion Studio (http://localhost:3000) hoặc lệnh render MP4:
    bash
    npx remotion render <TopicName> out/<TopicName>.mp4

Preguntas frecuentes

¿Qué hace la habilidad de IA Remotion Topic Explainer?

Creates professional 50-60s vertical explainer videos (9:16 format, 1080x1920 @ 30fps) for any given topic using Remotion, styled with modern aesthetics and narrated by natural voiceover using edge-tts-universal or CIT Voice Studio (selected via TTS_PROVIDER in .env). Follows remotion-dev/skills best practices for smooth springs, typography, sequence timing, and visual engagement.

¿Por qué usar Remotion Topic Explainer en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Remotion Topic Explainer está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Remotion Topic Explainer en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Cuongyd196/remotion-cuongit-template/tree/main/.agents/skills/remotion-topic-explainer. TypingMind lee su archivo SKILL.md y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Remotion Topic Explainer?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Remotion Topic Explainer?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Remotion Topic Explainer con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Remotion Topic Explainer?

Sí. Cuongyd196 la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇