Agent skill

remotion-best-practices

Best practices for Remotion - Video creation in React

Stars 1
Forks 1

Install this agent skill to your Project

npx add-skill https://github.com/dparedesi/agent-global-skills/tree/main/remotion-best-practices

Metadata

Additional technical details for this skill

tags
remotion, video, react, animation, composition

SKILL.md

When to use

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

Critical: Trimming Videos

NEVER trim videos with one-off ffmpeg commands. Always use a script approach:

  1. Create scripts/trim-videos.sh that trims ALL source files
  2. Output to public/trimmed/ subfolder (keep originals untouched)
  3. Reference trimmed files in your composition
  4. Re-run script when timestamps change

See rules/troubleshooting.md for the full script template.

How to use

Read individual rule files for detailed explanations and code examples:

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

Expand your agent's capabilities with these related and highly-rated skills.

dparedesi/agent-global-skills

llms-dashboard

Generate and update HTML dashboards for LLM usage (Claude, Gemini, Kiro, VS code, Cline, etc). Use when the user wants to visualize their AI coding assistant usage statistics, view metrics in a web interface, or analyze historical trends.

1 1
Explore
dparedesi/agent-global-skills

dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", or any browser interaction request.

1 1
Explore
dparedesi/agent-global-skills

humanize

Convert AI-written text to more human-like writing through subtle edits. Use when text reads "too AI", when the user mentions "humanize", "sounds robotic", "AI-written", "make it natural", or when editing for a more conversational voice.

1 1
Explore
dparedesi/agent-global-skills

synap-assistant

Manage a personal knowledge capture system. Use when the user wants to capture ideas, track todos, organize projects, review their synap, or mentions "synap", "brain dump", "capture this", "add to my list", "what's on my plate", "what should I focus on", or "daily review".

1 1
Explore
dparedesi/agent-global-skills

skills-local-setup

Set up AI tool symlinks in a repository for multi-agent compatibility. Use when the user wants to set up skills for Gemini, Claude, or other AI tools, or when they mention "setup skills", "configure agents", or "link AGENTS.md".

1 1
Explore
dparedesi/agent-global-skills

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

1 1
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results