
Remotion Best Practices
Load Remotion-specific rules when your agent writes or refactors React video compositions, captions, audio, and render pipelines.
Overview
Remotion Best Practices is an agent skill for the Build phase that supplies Remotion-specific rules and examples whenever you generate or edit React video composition code.
Install
npx skills add https://github.com/vercel-labs/json-render --skill remotion-best-practicesWhat is this skill?
- Points the agent to 20+ focused rule modules (animations, compositions, audio, charts, 3D, fonts, assets)
- Dedicated subtitles/captions guidance via rules/subtitles.md when working on timed text
- Covers metadata, decode checks (Mediabunny), frame extraction, and dynamic composition props
- Structured navigation: read individual rule files instead of guessing Remotion APIs
- Tagged for remotion, react, video, animation, and composition workflows
- 20+ dedicated Remotion rule modules referenced in the skill index
- Separate subtitles rule file for caption and subtitle work
Adoption & trust: 789 installs on skills.sh; 15k GitHub stars; 1/3 security scanners passed (skills.sh audits).
What problem does it solve?
Generic React advice causes broken Remotion timelines, wrong asset handling, and caption bugs that only show up at render time.
Who is it for?
Solo builders using Claude Code or Cursor to ship Remotion marketing videos, product demos, or data-driven motion graphics in an existing React repo.
Skip if: Teams not using Remotion, one-off FFmpeg-only pipelines, or projects that need legal/clearance review of stock media without human review.
When should I use this skill?
Use whenever you are dealing with Remotion code to obtain domain-specific knowledge; load subtitles.md when working on captions or subtitles.
What do I get? / Deliverables
Your agent follows Remotion rule modules for the task at hand so compositions, media, and subtitles stay consistent with framework expectations.
- Remotion composition and component changes aligned with rule modules
- Caption/subtitle implementations following the subtitles guidance
Recommended Skills
Journey fit
How it compares
Domain rule pack for Remotion React code—not a generic Frontend Development checklist or an MCP media server.
Common Questions / FAQ
Who is remotion-best-practices for?
Indie developers and small teams building programmatic video with Remotion in React who want their coding agent to load focused Remotion guidance instead of generic frontend patterns.
When should I use remotion-best-practices?
Use it during Build (frontend) whenever you add compositions, fix render errors, tune audio/captions, or explore charts and 3D in Remotion; also when validating a prototype clip before Ship if the prototype is Remotion-based.
Is remotion-best-practices safe to install?
It is instructional markdown rules without built-in shell or network side effects; review the Security Audits panel on this Prism page and inspect the rule files in your checkout before trusting automated edits to production render configs.
SKILL.md
READMESKILL.md - Remotion Best Practices
## When to use Use this skills whenever you are dealing with Remotion code to obtain the domain-specific knowledge. ## Captions When dealing with captions or subtitles, load the [./rules/subtitles.md](./rules/subtitles.md) file for more information. ## 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/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/light-leaks.md](rules/light-leaks.md) - Light leak overlay effects using @remotion/light-leaks - [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/transitions.md](rules/transitions.md) - Scene transition patterns for Remotion - [rules/transparent-videos.md](rules/transparent-videos.md) - Rendering out a video with transparency - [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 import { loadFont } from "@remotion/google-fonts/Inter"; import React from "react"; import { AbsoluteFill, spring, useCurrentFrame, useVideoConfig, } from "remotion"; /* * Highlight a word in a sentence with a spring-animated wipe effect. */ // Ideal composition size: 1280x720 const COLOR_BG = "#ffffff"; const COLOR_TEXT = "#000000"; const COLOR_HIGHLIGHT = "#A7C7E7"; const FULL_TEXT = "This is Remotion."; const HIGHLIGHT_WORD = "Remo