用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/trungdo9/ClauKit --skill remotion命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | remotion |
| description | Create programmatic videos in React, render to MP4 |
| category | AI Generation & Multimodal |
| status | active |
Create real MP4 videos programmatically using React components. Combine JavaScript logic, animations, and dynamic data to produce professional videos at scale with render flexibility (local, server-side, or serverless Lambda).
Do NOT use when: Quick one-off videos (use traditional video editors), real-time streaming, or non-deterministic content.
Initialize Project — Run npx create-video@latest to scaffold a Remotion project with example composition.
Create Compositions — Write React components as video scenes. Use CSS or Tailwind for styling, JavaScript for animations, and props for dynamic content.
Parametrize & Preview — Pass data (text, images, JSON) to compositions. Develop and preview in Remotion Studio at http://localhost:3000.
Set Render Config — Define frame rate (30/60fps), dimensions (1080p/4K), codec, and output path.
Render Videos — Choose render target: local (CLI), server-side (Node.js), or serverless (Remotion Lambda). Export as MP4/WebM with optional audio.
A composition is a React component that returns JSX describing your video. Import Composition, Sequence (timeline segments), Img, AbsoluteFill (fullscreen layer), and animation utilities. Example:
export const MyVideo = ({ name, duration }) => (
<AbsoluteFill style={{ background: '#fff' }}>
<h1>{name}</h1>
<motion.div animate={{ opacity: [0, 1] }} transition={{ duration }} />
</AbsoluteFill>
);
Pass props to compositions as JSON or query params. Render videos programmatically with different names, images, colors, durations. Enables batch generation (100s of personalized videos).
npx remotion render on your machine. Quick iteration, CPU-intensive.Use <Sequence> to define when elements appear. Control frameRate, durationInFrames. Compose complex timelines by nesting sequences. Animations sync to frame count, ensuring deterministic output.
Embed audio tracks (MP3, WAV) via <Audio> component. Sync to video duration. Mix multiple audio layers.
Scenario: Generate personalized birthday videos for 100 customers.
Composition:
import { AbsoluteFill, Img, Sequence } from 'remotion';
export const BirthdayVideo = ({ name, imageSrc }) => {
return (
<AbsoluteFill style={{ background: 'linear-gradient(to right, #FF6B6B, #FFE66D)' }}>
<Sequence durationInFrames={120}>
<h1 style={{ fontSize: 64, color: '#fff', textAlign: 'center' }}>Happy Birthday, {name}!</h1>
</Sequence>
<Sequence from={120} durationInFrames={120}>
<Img src={imageSrc} style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
</Sequence>
);
};
Render Script:
const customers = ['Alice', 'Bob', 'Carol'];
customers.forEach(({ name, imageSrc }) => {
render({
composition: BirthdayVideo,
props: { name, imageSrc },
fps: 30,
durationInFrames: 240,
codec: 'h264',
outputPath: `./videos/${name}-birthday.mp4`,
});
});
Result: 100 unique birthday videos, versioned in Git, rendered in parallel via Lambda.
Math.random() or new Date() inside render. Determinism = cacheable, reproducible videos.