AGENT SKILL

remotion

Generate programmatic video using Remotion — React-based video generation. Use when the user wants to create videos with code, animate React components to video, render data-driven video, generate explainer animations, or produce MP4/GIF outputs from JSX. Trigger phrases include "remotion", "programmatic video", "react video", "animate to video", "code video", "render video from code", "data driven video", "video generation", "animated explainer".

License 许可
Apache-2.0
最近更新
2026-06-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
remotion
description
Generate programmatic video using Remotion — React-based video generation. Use when the user wants to create videos with code, animate React components to video, render data-driven video, generate explainer animations, or produce MP4/GIF outputs from JSX. Trigger phrases include "remotion", "programmatic video", "react video", "animate to video", "code video", "render video from code", "data driven video", "video generation", "animated explainer".

03 SKILL.md 正文

Remotion

Create videos programmatically using React components.

Quick Start

npx create-video@latest
cd my-video
npm start          # opens Remotion Studio at localhost:3000
npm run build      # renders to out/video.mp4

Core Concepts

Composition

// src/Root.tsx
import { Composition } from 'remotion';
import { MyVideo } from './MyVideo';

export const RemotionRoot = () => (
  <>
    <Composition
      id="MyVideo"
      component={MyVideo}
      durationInFrames={150}   // 5s at 30fps
      fps={30}
      width={1920}
      height={1080}
      defaultProps={{ title: 'Hello' }}
    />
  </>
);

Animation with useCurrentFrame

import { useCurrentFrame, interpolate, spring, useVideoConfig } from 'remotion';

export const MyVideo: React.FC<{ title: string }> = ({ title }) => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();

  // Linear interpolation: fade in over first 20 frames
  const opacity = interpolate(frame, [0, 20], [0, 1], { extrapolateRight: 'clamp' });

  // Spring animation
  const scale = spring({ frame, fps, config: { damping: 200 } });

  return (
    <div style={{ opacity, transform: `scale(${scale})`, width: '100%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
      <h1 style={{ fontSize: 80, color: 'white' }}>{title}</h1>
    </div>
  );
};

Sequences and Timing

import { Sequence } from 'remotion';

// Sequence: offset child's time by `from` frames
<Sequence from={30} durationInFrames={60}>
  <SubtitleText text="Second scene" />
</Sequence>

Audio and Video Assets

import { Audio, Video, staticFile } from 'remotion';

<Audio src={staticFile('background.mp3')} volume={0.5} />
<Video src={staticFile('clip.mp4')} startFrom={0} endAt={90} />

Rendering

# Render with CLI
npx remotion render MyVideo out/video.mp4

# Render with custom props
npx remotion render MyVideo out/video.mp4 --props='{"title":"Custom"}'

# Render still (single frame)
npx remotion still MyVideo out/thumb.png --frame=30

# Render GIF
npx remotion render MyVideo out/animation.gif

Common Compositions

Instagram Reel (9:16, 30fps)

<Composition id="Reel" component={Reel}
  durationInFrames={900} fps={30} width={1080} height={1920} />

YouTube Thumbnail Reveal (16:9)

<Composition id="Thumbnail" component={ThumbnailReveal}
  durationInFrames={60} fps={30} width={1280} height={720} />

Lambda Rendering (Scale)

npx remotion lambda functions deploy
npx remotion lambda render MyVideo

Key Packages

Package Purpose
@remotion/shapes SVG shape primitives
@remotion/motion-blur Per-frame motion blur
@remotion/gif Render GIFs
@remotion/lambda Cloud render on AWS Lambda
@remotion/google-fonts Web font loading
@remotion/noise Perlin noise utilities

04 同仓库更多 Skills

dawsonblock
dawsonblock/agent_eval_skills_merged_clean

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use when the user asks to build a complex web artifact, scaffold a React artifact project, bundle a single-file artifact, or generate shadcn/ui-based interactive UI components.

★ 0
dawsonblock
dawsonblock/agent_eval_skills_merged_clean

theme-factory

Generate production-ready UI themes and token systems for CSS, Tailwind, and shadcn/ui. Use when users ask to apply a theme, theme an existing app, change colors and fonts, map dark/light mode tokens, or turn a palette into semantic variables. Trigger phrases include "apply a theme", "theme this app", "change the colors", and "re-theme this UI". Do not use for brand identity extraction, logo work, or full UI redesigns; use brand-guidelines or frontend-design instead.

★ 0
dawsonblock
dawsonblock/agent_eval_skills_merged_clean

frontend-design

Design and implement distinctive, production-grade frontend interfaces for web pages, components, and apps. Use when users ask for UI design, layout polish, landing pages, dashboards, React components, HTML/CSS styling, or visual redesign. Trigger phrases include "design this UI", "build a landing page", "make this look better", "frontend component", "dashboard UI", and "polish the interface".

★ 0
dawsonblock
dawsonblock/agent_eval_skills_merged_clean

excalidraw

Generate architecture diagrams as .excalidraw files from codebase analysis. Use when the user asks to create architecture diagrams, system diagrams, visualize codebase structure, or generate excalidraw files.

★ 0
dawsonblock
dawsonblock/agent_eval_skills_merged_clean

brand-guidelines

Extract, normalize, and apply a brand system across UI, docs, and assets. Use when users ask for a brand kit, style guide, design tokens, tone rules, or brand-consistent output. Trigger phrases include "brand guidelines", "brand identity", "brand kit", "style guide", "brand colors", "brand fonts", "design tokens", and "make this on-brand".

★ 0
dawsonblock
dawsonblock/agent_eval_skills_merged_clean

pm-skills

Project management workflows — planning, tracking, and coordination for software and product teams. Use when the user wants to create a project plan, write a PRD, create tickets, define sprint goals, write a RACI matrix, run a retrospective, or manage project scope. Trigger phrases include "project plan", "project management", "sprint planning", "PRD", "product requirements", "roadmap", "milestone", "retro", "standup", "RACI", "risk register", "project timeline".

★ 0