remotion-best-practices

Best practices for Remotion - Video creation in React

v
remotionvideoreactanimationcomposition

Skill Instructions

## When to use

Use this skills whenever you are dealing with Remotion code to obtain the domain-specific knowledge.

## How to use

Read individual rule files for detailed explanations and code examples:

- [rules/3d.md](rules/3d.md) - 3D content in Remotion using Three.js and React Three Fiber
- [rules/animations.md](rules/animations.md) - Fundamental animation skills for Remotion
- [rules/assets.md](rules/assets.md) - Importing images, videos, audio, and fonts into Remotion
- [rules/audio.md](rules/audio.md) - Using audio and sound in Remotion - importing, trimming, volume, speed, pitch
- [rules/calculate-metadata.md](rules/calculate-metadata.md) - Dynamically set composition duration, dimensions, and props
- [rules/can-decode.md](rules/can-decode.md) - Check if a video can be decoded by the browser using Mediabunny
- [rules/charts.md](rules/charts.md) - Chart and data visualization patterns for Remotion
- [rules/compositions.md](rules/compositions.md) - Defining compositions, stills, folders, default props and dynamic metadata
- [rules/display-captions.md](rules/display-captions.md) - Displaying captions in Remotion with TikTok-style pages and word highlighting
- [rules/extract-frames.md](rules/extract-frames.md) - Extract frames from videos at specific timestamps using Mediabunny
- [rules/fonts.md](rules/fonts.md) - Loading Google Fonts and local fonts in Remotion
- [rules/get-audio-duration.md](rules/get-audio-duration.md) - Getting the duration of an audio file in seconds with Mediabunny
- [rules/get-video-dimensions.md](rules/get-video-dimensions.md) - Getting the width and height of a video file with Mediabunny
- [rules/get-video-duration.md](rules/get-video-duration.md) - Getting the duration of a video file in seconds with Mediabunny
- [rules/gifs.md](rules/gifs.md) - Displaying GIFs synchronized with Remotion's timeline
- [rules/images.md](rules/images.md) - Embedding images in Remotion using the Img component
- [rules/import-srt-captions.md](rules/import-srt-captions.md) - Importing .srt subtitle files into Remotion using @remotion/captions
- [rules/lottie.md](rules/lottie.md) - Embedding Lottie animations in Remotion
- [rules/measuring-dom-nodes.md](rules/measuring-dom-nodes.md) - Measuring DOM element dimensions in Remotion
- [rules/measuring-text.md](rules/measuring-text.md) - Measuring text dimensions, fitting text to containers, and checking overflow
- [rules/sequencing.md](rules/sequencing.md) - Sequencing patterns for Remotion - delay, trim, limit duration of items
- [rules/tailwind.md](rules/tailwind.md) - Using TailwindCSS in Remotion
- [rules/text-animations.md](rules/text-animations.md) - Typography and text animation patterns for Remotion
- [rules/timing.md](rules/timing.md) - Interpolation curves in Remotion - linear, easing, spring animations
- [rules/transcribe-captions.md](rules/transcribe-captions.md) - Transcribing audio to generate captions in Remotion
- [rules/transitions.md](rules/transitions.md) - Scene transition patterns for Remotion
- [rules/trimming.md](rules/trimming.md) - Trimming patterns for Remotion - cut the beginning or end of animations
- [rules/videos.md](rules/videos.md) - Embedding videos in Remotion - trimming, volume, speed, looping, pitch
- [rules/parameters.md](rules/parameters.md) - Make a video parametrizable by adding a Zod schema
- [rules/maps.md](rules/maps.md) - Add a map using Mapbox and animate it

Included Files

  • SKILL.md(3.5 KB)
  • _archive/skill-package.zip(41.3 KB)
  • rules/3d.md(2.2 KB)
  • rules/animations.md(0.8 KB)
  • rules/assets.md(1.6 KB)
  • rules/assets/charts-bar-chart.tsx(3.3 KB)
  • rules/assets/text-animations-typewriter.tsx(2.1 KB)
  • rules/assets/text-animations-word-highlight.tsx(2.3 KB)
  • rules/audio.md(3.7 KB)
  • rules/calculate-metadata.md(2.9 KB)
  • rules/can-decode.md(1.5 KB)
  • rules/charts.md(1.7 KB)
  • rules/compositions.md(3.6 KB)
  • rules/display-captions.md(3.6 KB)
  • rules/extract-frames.md(5.4 KB)
  • rules/fonts.md(3.4 KB)
  • rules/get-audio-duration.md(1.3 KB)
  • rules/get-video-dimensions.md(1.6 KB)
  • rules/get-video-duration.md(1.3 KB)
  • rules/gifs.md(3.8 KB)
  • rules/images.md(2.7 KB)
  • rules/import-srt-captions.md(2.1 KB)
  • rules/lottie.md(1.7 KB)
  • rules/maps.md(11.1 KB)
  • rules/measuring-dom-nodes.md(1 KB)
  • rules/measuring-text.md(2.9 KB)
  • rules/parameters.md(2.3 KB)
  • rules/sequencing.md(2.7 KB)
  • rules/tailwind.md(0.4 KB)
  • rules/text-animations.md(0.7 KB)
  • rules/timing.md(3.8 KB)
  • rules/transcribe-captions.md(0.8 KB)
  • rules/transitions.md(3.6 KB)
  • rules/trimming.md(1.2 KB)
  • rules/videos.md(3.4 KB)

Related Skills

about-agentman

Comprehensive brand voice guide for the Agentman product family: Agentman.ai (healthcare-first agentic platform) and myAgentSkills.ai (cross-industry AI skills registry). Use when creating any content for either product. Step 1: Identify which product the content is for. Step 2: Apply the shared voice principles. Step 3: Apply the product-specific rules. Ensures healthcare content stays calm, outcome-led, and governance-forward while skills content stays practical, platform-neutral, and broadly accessible.

aeo-blog-generator

This skill should be used when generating blog posts optimized for AI answer engine citation and visibility. It produces content structured for extraction by ChatGPT, Google AI Overviews, Perplexity,

agentman-app-styleguide

Agentman desktop app design system AND component system — the portable styleguide for building or restyling an Electron/Next.js/React + Tailwind app in the Agentman house style (warm Burnt Peach brand over warm neutrals, dense information-first UI, shadcn/Radix primitives). Use this whenever the user is building UI, adding or designing a component (button, card, badge, input, select, dialog/modal, table, toast, layout/shell, sidebar, tabs, empty state, skeleton), choosing colors, picking spacing/radius/typography, setting up a tailwind.config, restyling a page, doing a design or component review, or asks 'what color/font/spacing should I use', 'how should this component work', 'make it match our style', 'is this on-brand', 'set up the design tokens or component library'. Apply it even when the user doesn't say 'styleguide' but is making any visual or component decision in an app meant to look like Agentman's. Ships copy-paste tailwind tokens, two color-registry helper files (status-tone, category-colors), a full visual reference, and a prescriptive component-system reference (primitive contracts, data-table pattern, app shell, feedback/overlays, enforcement).

agentman-docx-style

Agentman brand styling for DOCX report generation using docx-js (JavaScript). Use when generating ANY Word document report. Provides mandatory color constants, table styling helpers, paragraph style builders, and a pre-generation checklist. Ensures every DOCX uses the Agentman warm terracotta/charcoal palette with Inter for headings and Calibri for body text.

agentman-image-gen

Generate on-brand images guided by Agentman’s brand voice. Use for diagrams, carousels, covers, thumbnails.

agentman-landing-page-writer

Generate structured, calm, outcome-led landing pages for Agentman. Use when writing any homepage, solution page, healthcare page, or security page. Enforces page structure, blocks hype and marketplace language, and ensures copy remains relatable to small healthcare practices.

Ready to use this skill?

Connect this skill to your AI assistant or attach it to your Agentman agents.