mcpField
R
remotion-best-practices

remotion-best-practices

github.com/remotion-devCreative & media69.1k229 installsUpdated today
Repository

About remotion-best-practices

A set of agent instructions for working on Remotion projects, covering video creation, editing, rendering, and troubleshooting. It directs agents to load task-specific skills and emphasizes preserving user changes and checking the Studio preview.

Key features

  1. 01Routes tasks to specialized Remotion skills
  2. 02Preserves unexpected user edits
  3. 03Guidance for video and project creation
  4. 04Studio preview workflow
  5. 05Codex Studio troubleshooting

Use cases

  1. 01Creating or editing a Remotion video
  2. 02Selecting guidance for maps or multimedia
  3. 03Checking Studio previews in Codex

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/remotion-dev/remotion --skill remotion-best-practices

After installing, type/remotion-best-practicesin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

agents/
openai.yaml
remotion-captions/
import-srt-captions.md
REFERENCE.md
display-captions.md
transcribe-captions.md
remotion-captions/agents/
openai.yaml
remotion-create/
video-layout.md
tailwind.md
REFERENCE.md
remotion-create/agents/
openai.yaml
remotion-docs/
REFERENCE.md
remotion-docs/agents/
openai.yaml
remotion-interactivity/
REFERENCE.md
remotion-interactivity/agents/
openai.yaml
remotion-maps/
REFERENCE.md
remotion-maps/agents/
openai.yaml
remotion-maps/techniques/cesium/
TECHNIQUE.md
remotion-maps/techniques/cesium/assets/
cesium-path.json
city-path.json
flight-path.ts
sample-river.geojson
remotion-maps/techniques/cesium/references/
3d-data-sources.md
3d-flyover-architecture.md
3d-troubleshooting.md
remotion-maps/techniques/cesium/scripts/
prep-cesium-path.mjs
remotion-maps/techniques/mapbox/
TECHNIQUE.md
remotion-maps/techniques/mapbox/references/
render-stability.md
remotion-maps/techniques/maplibre/references/
render-stability.md
remotion-maps/techniques/maptiler/
TECHNIQUE.md
remotion-maps/techniques/maptiler/assets/
MapTilerVectorElement.ts

Details

From the project README

Preserve user changes

Users may make edits in the code outside of the conversation.

If you detect a surprising change made in the meanwhile, don't overwrite it, assume it was intentional or ask for confirmation.

Creating a video

If the user asks to make, create, or build a new video or composition, load Create a new Remotion video, whether or not a Remotion project already exists.

New project setup

If no Remotion project currently exists, load Create a new Remotion project

React Markup Best Practices

If you are writing Remotion React Markup, load Remotion Markup Best Practices

Maps

For static maps, animated routes and markers, geographic explainers, Mapbox, MapLibre, MapTiler, GeoJSON, or 3D geographic flyovers, load Remotion Maps.

Multimedia

For achieving multimedia tasks in the browser, such as trimming, cropping videos, or getting metadata from them, load Remotion Multimedia

Improving Interactivity

By structuring the Remotion markup well, we can allow users to interactively change things in the Studio and write back to code. If relevant: Interactivity Best Practices

Rendering

For advanced rendering beyond simple npx remotion render, see: Rendering Best Practices

Opening Remotion Studio

When creating or editing a video, start Studio and open its preview as soon as the project can run, before building the composition. Keep it open while you work so the user can see changes and steer.

To launch a project in Remotion Studio, open its exact local URL, or configure Studio CLI flags, load Remotion Studio.

Captions

When working with Captions, load Remotion Captions.

Creating a SaaS, automation or application

Use the Remotion SaaS skill for knowledge about Remotion-powered SaaS apps, such as <Player>, rendering on Lambda, Vercel, Cloudflare, via Express.js, client-side rendering, or for finding the right SaaS template.

Looking up Remotion APIs and documentation

To find and read current Remotion documentation, load Remotion Docs.

Upgrading

To upgrade Remotion, related packages, compatible Mediabunny packages, and installed Remotion Agent Skills, load Remotion Upgrade.

Codex troubleshooting

When running inside Codex, first try starting the Remotion Studio without opening the system browser:

npx remotion studio --no-open

Open the exact printed URL in the Codex in-app browser and verify that Studio loads. Once a composition exists, verify that its video preview loads. If you cannot open it there, run Studio without --no-open.

Only if that fails with file watcher limits such as EMFILE: too many open files, watch, retry with polling and without opening a browser from Codex:

npx remotion studio --no-open --webpack-poll 1000

After retrying, open the exact printed URL in the Codex in-app browser and verify that Studio loads. Once a composition exists, verify that its video preview loads. If you cannot open it there, retry without --no-open.

If Studio still fails to start from Codex, ask the user to start it manually from their macOS Terminal and then continue using the already-running Studio. Sandbox errors while launching Chromium from Codex are likely caused by the Codex/macOS sandbox rather than the Remotion project.

Comments

Markdown supported