Remotion Topic Explainer logo

Remotion Topic Explainer

Community
Cuongyd196
remotion-topic-explainer

Tạo video ngắn 50-60s dạng video dọc (9:16, 1080x1920 @ 30fps) giải thích bất kỳ chủ đề lập trình/công nghệ nào bằng Remotion. Kết hợp giọng đọc AI Voiceover tự nhiên từ edge-tts-universal hoặc CIT Voice Studio (chọn qua TTS_PROVIDER trong .env), căn giữa nội dung trực quan, huy hiệu thương hiệu kênh phía trên và phụ đề 1 dòng gãy gọn.

Overview

PublisherCuongyd196
Repositoryremotion-cuongit-template
Skill nameremotion-topic-explainer
Stars
241
Forks
137
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Cuongyd196 on GitHub. Read the source before you install it.

Installation

Install the Remotion Topic Explainer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Cuongyd196/remotion-cuongit-template/tree/main/.claude/skills/remotion-topic-explainer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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/.claude/skills/remotion-topic-explainer .claude/skills/remotion-topic-explainer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Remotion Topic Explainer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Remotion Topic Explainer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Remotion Topic Explainer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Remotion Topic Explainer Skill for Claude (50-60s Explainer Videos)

Kỹ năng này giúp Claude tự động tạo các video ngắn 50–60 giây (tỷ lệ dọc 9:16, chuẩn 1080x1920 @ 30fps cho TikTok, YouTube Shorts, Facebook Reels) từ bất kỳ chủ đề lập trình hay công nghệ nào bằng Remotion.


1. Các Tính năng Cốt lõi

  1. Visual Engine: Remotion + TailwindCSS + Spring Physics (spring()) + Clamping Interpolations.
  2. AI Voiceover: Chọn provider qua TTS_PROVIDER trong .env:
    • edge: edge-tts-universal (online, miễn phí, không cần API key) - xuất .mp3.
    • cit: CIT Voice Studio (offline, giọng tiếng Việt chất lượng phòng thu) - xuất .wav/.mp3. Tải app tại github.com/Cuongyd196/cit-voice-studio, tài liệu API: docs/cit-voice-studio.md.
  3. Đồng bộ Thời lượng Frame-Accurate: Script tự động đo độ dài audio (MP3/WAV) và tính toán số frame chính xác (durationInFrames) cho từng phân cảnh.
  4. Bố cục Chuẩn Mobile:
    • Thương hiệu kênh: Huy hiệu ⚡ [CHANNEL_NAME] ở đỉnh giữa (top: 150px), tránh thanh tìm kiếm của TikTok/Shorts.
    • Khối trung tâm: Toàn bộ thẻ trích dẫn, sơ đồ luồng, biểu đồ so sánh nằm ở chính giữa màn hình.
    • Phụ đề 1 dòng (Single-Line Caption): Nằm thoáng đãng phía dưới (mt-64), tự động tách 5–7 từ/lần, đồng bộ chuyển cụm từ theo nhịp phát âm.
    • Chuyển cảnh dồn dập (Snappy Transition): Buffer chỉ +3 frames giữa các phân cảnh giúp video liên tục, cuốn hút.

2. Cấu hình Môi trường (.env)

Đảm bảo file .env tại thư mục gốc có các biến sau (đầ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
EDGE_TTS_RATE=+10%

# 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

CHANNEL_NAME="CƯỜNG IT"

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.

3. Cấu trúc Kịch bản 6 Phân cảnh (50-60s / 1200-1800 frames)

Phân cảnhVai tròMục tiêu & Bố cục Visual
Scene 1: HookMở đầu giật gân (0s - 5s)Tiêu đề lớn (text-8xl font-black), câu hỏi tò mò, icon 3D/SVG nổi bật.
Scene 2: Pain PointNỗi đau / Bối cảnh (5s - 12s)Thẻ trích dẫn tâm lý (text-5xl), so sánh Local vs Server / Trước vs Sau.
Scene 3: Solution Part 1Giải pháp cốt lõi (12s - 20s)Card Container / Hộp đóng gói linh kiện, hiệu ứng spring trồi vào.
Scene 4: Solution Part 2Quy trình hoạt động (20s - 30s)Sơ đồ luồng dọc 3 bước (VD: Dockerfile -> Image -> Container) kèm mũi tên.
Scene 5: BenefitsLợi ích vượt trội (30s - 40s)3 thẻ so sánh thông số (Tốc độ 10x, Tiết kiệm tài nguyên, Deploy mọi nơi).
Scene 6: Outro & CTAĐúc kết & Kêu gọi (40s - 50s)Thẻ tổng kết phát sáng, 2 nút CTA (Thả tim & Follow kênh đón xem video mới).

4. Quy trình Tạo Video Khi Người Dùng Yêu Cầu

Khi nhận lệnh: "Tạo video giải thích về [Chủ đề X]", Claude thực hiện tuần tự 5 bước:

Bước 1: Soạn kịch bản Voiceover 6 cảnh

Soạn 6 câu thoại súc tích, tự nhiên, đánh trúng tâm lý người xem (mỗi câu 15-25 từ).

Bước 2: Sinh Voiceover (provider theo TTS_PROVIDER)

Tạo script scripts/generate-<topic>-audio.ts gọi generateTopicVoices từ generate-tts.ts, chạy npx tsx scripts/generate-<topic>-audio.ts. Audio lưu vào public/audio/<TopicName>/ (.mp3 với edge, .wav với cit), manifest.json sinh tự động. src/<TopicName>/audioData.ts chỉ được sinh khi thư mục src/<TopicName>/ đã tồn tại, nên tạo thư mục này trước khi chạy script:

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

const scenes = [
  { id: "scene1_hook", text: "..." },
  { id: "scene2_problem", text: "..." },
  { id: "scene3_container", text: "..." },
  { id: "scene4_flow", text: "..." },
  { id: "scene5_benefits", text: "..." },
  { id: "scene6_outro", text: "..." },
];

generateTopicVoices("<TopicName>", scenes).catch((error) => {
  console.error(error);
  process.exitCode = 1;
});
  • 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.

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

Tạo cấu trúc component:

text
src/<TopicName>/
├── <TopicName>.tsx          # Composition chính, chứa BrandHeader và Series các scene
├── types.ts                 # Props schema với zColor, z.string()
├── audioData.ts             # Lưu metadata frame sinh ra từ manifest.json
├── components/
│   ├── BrandHeader.tsx      # Huy hiệu kênh cố định top: 150px
│   └── SubtitleBox.tsx      # Hộp phụ đề 1 dòng (5-7 từ/lần) mt-64
└── scenes/
    ├── Scene1Hook.tsx
    ├── Scene2Problem.tsx
    ├── Scene3Solution.tsx
    ├── Scene4Flow.tsx
    ├── Scene5Benefits.tsx
    └── Scene6Outro.tsx

Bước 4: Nguyên tắc Code Remotion

  1. Spring Animation: Luôn dùng spring({ frame, fps, config: { damping: 12, stiffness: 100 } }).
  2. Clamped Interpolation: Luôn có { extrapolateLeft: "clamp", extrapolateRight: "clamp" }.
  3. Căn giữa nội dung: <AbsoluteFill className="flex flex-col items-center justify-center px-10 text-white">.
  4. Phụ đề: Đặt <SubtitleBox text="..." durationInFrames={d} className="mt-64" /> ngay dưới khối trung tâm.
  5. Thời lượng cảnh: const d1 = audioManifest.scenes[0].durationInFrames - 10 + 3; (Buffer snappy +3 frames). Giá trị trong manifest đã gồm 10 frame đệm, nên trừ đi trước khi cộng buffer.
  6. Đường dẫn audio: Luôn dùng staticFile(audioManifest.scenes[i].audioPath), KHÔNG hardcode đuôi .mp3 (provider cit xuất .wav).

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 5: Đăng ký Composition vào src/Root.tsx

Thêm <Composition> vào src/Root.tsx với width={1080}, height={1920}, fps={30} và tổng durationInFrames.


5. Lệnh Kiểm tra & Render

  • Xem trước trong Remotion Studio: npm run dev -> Mở http://localhost:3000.
  • Kiểm tra ảnh tĩnh (Still): npx remotion still <TopicName> out/preview.png --frame 200.
  • Render video MP4 hoàn chỉnh: npx remotion render <TopicName> out/<TopicName>.mp4.

Frequently asked questions

What does the Remotion Topic Explainer AI skill do?

Tạo video ngắn 50-60s dạng video dọc (9:16, 1080x1920 @ 30fps) giải thích bất kỳ chủ đề lập trình/công nghệ nào bằng Remotion. Kết hợp giọng đọc AI Voiceover tự nhiên từ edge-tts-universal hoặc CIT Voice Studio (chọn qua TTS_PROVIDER trong .env), căn giữa nội dung trực quan, huy hiệu thương hiệu kênh phía trên và phụ đề 1 dòng gãy gọn.

Why use Remotion Topic Explainer on TypingMind?

Because you install it once and use it with any model. Remotion Topic Explainer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Remotion Topic Explainer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Cuongyd196/remotion-cuongit-template/tree/main/.claude/skills/remotion-topic-explainer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Remotion Topic Explainer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Remotion Topic Explainer?

As many as you like. As long as a model supports skills, you can use Remotion Topic Explainer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Remotion Topic Explainer AI skill free?

Yes. It is published on GitHub by Cuongyd196 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇