remotion-best-practices

Provides best-practice rules for creating programmatic videos in React with Remotion.

1|Updated Aug 28, 2026
One-click install
npx skills add https://github.com/mooch10/mochiptos --skill remotion-best-practices-mooch10
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: remotion-best-practices
Source: https://github.com/mooch10/mochiptos/tree/main/frontend/.agents/remotion-best-practices
Command: npx skills add https://github.com/mooch10/mochiptos --skill remotion-best-practices-mooch10

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires remotion, @remotion/media, @remotion/captions, @remotion/three, @remotion/google-fonts, @remotion/fonts, @remotion/lottie, @remotion/gif, @remotion/paths, @remotion/layout-utils, @remotion/media-utils, @remotion/transitions, @remotion/light-leaks, @remotion/zod-types, mediabunny, mapbox-gl, @turf/turf, zod, and includes references (resource) components.

What problem does it solve? Writing Remotion video code without domain knowledge leads to common rendering bugs such as flickering animations, unloaded assets, and out-of-sync captions. This Skill supplies the domain-specific rules needed to write correct Remotion compositions. ## Core Features & Use Cases - Animation Rules: Enforces frame-driven animations via useCurrentFrame() and forbids CSS transitions that break rendering. - Media Handling: Covers importing images, videos, audio, fonts, GIFs, and Lottie files using staticFile() and Remotion components. - Specialized Guides: Includes rules for captions/subtitles, audio visualization, 3D with Three.js, Mapbox map animations, charts, transitions, and FFmpeg trimming. - Use Case: When asked to build a TikTok-style captioned video or an animated data visualization in Remotion, load the relevant rule files to produce correct, render-safe code. ## Quick Start Use the remotion-best-practices skill to create a Remotion composition with a spring-animated title and background music.

Frequently Asked Questions about remotion-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I animate elements in Remotion?▼

Drive all animations with the useCurrentFrame() hook combined with interpolate() or spring(). CSS transitions and Tailwind animation classes are forbidden because they do not render correctly during video export.

How do I add captions or subtitles to a Remotion video?▼

Use the @remotion/captions package with the Caption type. You can transcribe audio, import .srt files with parseSrt(), and display TikTok-style pages with word highlighting using createTikTokStyleCaptions().

Can I use Three.js 3D content in Remotion?▼

Yes, wrap 3D content in ThreeCanvas from @remotion/three with explicit width and height. All 3D animations must be driven by useCurrentFrame(); using useFrame() from @react-three/fiber is forbidden to avoid flickering.

Why does my Remotion video flicker during rendering?▼

Flickering occurs when animations are not driven by useCurrentFrame(), when CSS animations are used, or when assets are not loaded through Remotion components like Img, Video, and Audio that delay rendering until loaded.

How do I trim a video in Remotion?▼

Use the trimBefore and trimAfter props on the Video component from @remotion/media for non-destructive trimming, or run FFmpeg via bunx remotion ffmpeg with re-encoding to avoid frozen frames at the start.