Comprehensive skill for programmatic video generation using the Remotion framework. Enables creating, scaffolding, and rendering React-based videos via Python orchestration. Supports both Local (CLI) and Cloud (Lambda) rendering.
This skill provides the capabilities to generate videos programmatically using Remotion (React-based video framework). It bridges the gap between Python agents and the Node.js/React rendering engine.
System Requirements:
Python Packages:
run uv add remotion-lambda python-dotenv
Remotion Project Setup: If no project exists, initialize one:
npx create-remotion@latest ./remotion_projects/my-video --template=helloworld
Before rendering, you must understand what data the video needs.
src/Root.tsx or src/compositions/.z.object schemas used in <Composition schema={...} />.Use the provided helper script: .claude/skills/video-remotion/scripts/remotion_wrapper.py.
Best for quick checks, debugging, or when offline.
props.json) matching the composition's schema.python .claude/skills/video-remotion/scripts/remotion_wrapper.py \
--mode local \
--project-dir /path/to/remotion-project \
--composition MyCompId \
--props props.json \
--output out/video.mp4
Best for long videos, final outputs, and speed. Requires AWS Setup.
remotion-lambda-user and remotion-lambda-role.npx remotion lambda sites create src/index.ts
npx remotion lambda functions deploy
Capture the Serve URL and Function Name.# Ensure env vars are set: REMOTION_APP_REGION, REMOTION_APP_SERVE_URL, REMOTION_APP_FUNCTION_NAME
python .claude/skills/video-remotion/scripts/remotion_wrapper.py \
--mode lambda \
--project-dir /path/to/remotion-project \
--composition MyCompId \
--props props.json
To create a NEW type of video:
src/compositions/.src/Root.tsx.AbsoluteFill for layout, Sequence for timing, and spring/interpolate for motion.staticFile('image.png') (put files in public/).public/ folder is correctly deployed with the site.calculateMetadata in the composition to dynamically set durationInFrames.node_modules are installed, or use npx remotion.npx remotion lambda policies user to fix.--concurrency.