SkillsMar 29, 2026·2 min read

Remotion Rule: Videos

Remotion skill rule: Embedding videos in Remotion - trimming, volume, speed, looping, pitch. Part of the official Remotion Agent Skill for programmatic video in React.

Agent ready

Ready-to-run agent install

This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Established
Entrypoint
Remotion Rule: Videos
Direct install command
npx -y tokrepo@latest install 3260bbfa-8ec9-463a-9cba-3e03f8862984 --target codex

Run after dry-run confirms the install plan.

TL;DR
Remotion agent skill rule for embedding, trimming, and controlling video playback in programmatic React compositions.
§01

What it is

The Remotion Videos rule is part of the official Remotion Agent Skill that teaches AI coding agents how to embed and manipulate video clips inside Remotion compositions. It covers trimming start and end frames, adjusting volume, changing playback speed, enabling loops, and shifting pitch.

This rule targets developers and AI agents building programmatic videos in React with Remotion. If you use Claude Code or another AI assistant to generate Remotion projects, this rule ensures the agent produces correct video embedding code on the first try.

§02

How it saves time or tokens

Without this rule, an AI agent guesses at Remotion's video API and often produces incorrect prop names or missing imports. The rule preloads the correct patterns so the agent generates working code in one shot, saving iteration cycles and token spend. The rule is estimated at around 500 tokens to install.

§03

How to use

  1. Install the Remotion skills pack:
npx skills add remotion-dev/skills
  1. The Videos rule activates automatically when the agent detects video embedding tasks in a Remotion project.
  2. Write a prompt like 'Add a background video trimmed to 3 seconds with 50% volume' and the agent applies the correct Remotion API.
§04

Example

import { Video, staticFile } from 'remotion';

export const MyComp: React.FC = () => {
  return (
    <Video
      src={staticFile('background.mp4')}
      startFrom={30}
      endAt={120}
      volume={0.5}
      playbackRate={1.2}
      loop
    />
  );
};
§05

Related on TokRepo

§06

Common pitfalls

  • Forgetting that startFrom and endAt use frame numbers, not seconds. Multiply seconds by fps to get the right value.
  • Setting volume above 1.0 causes clipping in most browsers. Stick to the 0-1 range.
  • Using loop on very long clips without setting endAt leads to unexpectedly long compositions that break rendering.

Frequently Asked Questions

What does the Remotion Videos rule cover?+

It covers embedding video files in Remotion compositions with controls for trimming (startFrom/endAt), volume, playback speed (playbackRate), looping, and pitch shifting. The rule is part of the official Remotion Agent Skill pack.

How do I install the Remotion Videos rule?+

Run 'npx skills add remotion-dev/skills' in your project. The Videos rule activates automatically when the AI agent detects a video embedding task inside a Remotion project. No manual configuration is needed beyond the install command.

Does this rule work with Claude Code?+

Yes. The Remotion Agent Skill is designed for AI coding agents including Claude Code. Once installed, Claude Code reads the rule and applies the correct Remotion video API patterns without extra prompting.

Can I trim a video to a specific time range?+

Yes. Use the startFrom and endAt props with frame numbers. For example, at 30 fps, to start at 1 second and end at 4 seconds, set startFrom={30} and endAt={120}. The rule teaches the agent this conversion automatically.

What formats does Remotion support for embedded videos?+

Remotion supports MP4 (H.264), WebM, and MOV files. MP4 with H.264 encoding is the most reliable across browsers and rendering targets. Place video files in the public folder and reference them with staticFile().

Citations (3)
🙏

Source & Thanks

Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule: videos

Part of the Remotion AI Skill collection on TokRepo.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets