🎥 Video & MediaSkill #41

Remotion Best Practices

Download Authentic SKILL.md (4.1 KB)View Source on GitHub ↗
✓Verified Authentic GitHub File
Supported: Antigravity, Claude Code, Cursor, Windsurf

Instant Browser Download for SKILL.md

No curl, terminal, Node.js, or Git required! Download the official SKILL.md directly into your Downloads folder.

1
Click "Download Authentic SKILL.md"

Your browser immediately downloads the authentic file (4.1 KB) directly into your local Downloads folder.

2
Move file into your project or IDE folder

Place the downloaded SKILL.md into the skills path for your chosen AI assistant:

  • Google Antigravity: <project>/.agents/skills/remotion-best-practices/SKILL.md (or global in ~/.gemini/antigravity/skills/remotion-best-practices/SKILL.md)
  • Claude Code: ~/.claude/skills/remotion-best-practices/SKILL.md
  • Cursor: <project>/.cursor/skills/remotion-best-practices/SKILL.md or ~/.cursor/skills/remotion-best-practices/SKILL.md
  • Windsurf / VS Code: <project>/.agents/skills/remotion-best-practices/SKILL.md
3
Start Prompting

Your agent automatically discovers the skill. You don't need any restart—it's immediately active!

📄 Authentic File: SKILL.md4.1 KB
✓ Authentic From Repository
---
name: remotion-best-practices
description: Router for all Remotion skills
version: 4.0.538
---

## 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](./remotion-create/REFERENCE.md), whether or not a Remotion project already exists.

## New project setup

If no Remotion project currently exists, load [Create a new Remotion project](./remotion-create/REFERENCE.md)

## React Markup Best Practices

If you are writing Remotion React Markup, load [Remotion Markup Best Practices](./remotion-markup/REFERENCE.md)

## Maps

For static maps, animated routes and markers, geographic explainers, Mapbox, MapLibre, MapTiler, GeoJSON, or 3D geographic flyovers, load [Remotion Maps](./remotion-maps/REFERENCE.md).

## Multimedia

For achieving multimedia tasks in the browser, such as trimming, cropping videos, or getting metadata from them, load [Remotion Multimedia](./remotion-multimedia/REFERENCE.md)

## 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](./remotion-interactivity/REFERENCE.md)

## Open the preview

If the user asks to "make" a video, "create" a video, etc.
Don't render the video by default unless they are very explicit. They want to instead see an interactive preview.
As soon as the project can run, start Studio and open the preview in the browser before building or editing the composition. Keep it open while you work so the user can watch progress and steer.

### If you are using Cursor

Run Studio without `--no-open` so it opens the browser automatically:

```bash
npx remotion studio
```

### If you are using another agent client with an in-app browser

You can use the command above to let Studio open the browser, or run:

```bash
npx remotion studio --no-open
```

This will start a long-running process and print the server URL for the preview.  
If the server is already started, it will print the URL.
If you use `--no-open`, open the exact printed URL in the 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`.
You can visit a specific composition by navigating to `/[composition-id]`, for example `http://localhost:3000/MapAnimation`.

:::note
The Studio supports WebMCP tools.
:::

### If you do not have an in-app browser

This will open the Studio in the browser or refocus it if it is already open.

```bash
npx remotion studio
```

### More options

To launch a project in Remotion Studio, open its exact local URL, or configure Studio CLI flags, load [Remotion Studio](./remotion-studio/REFERENCE.md).

## Render the video

Only render if the user is very explicit in asking for it.  
E.g. "Render the video", "Export", "Give me the MP4".

The preview also has a more intuitive rendering interface, so consider using it instead of the command line for rendering.

```
npx remotion render
```

For more options, see [Rendering](./remotion-render/REFERENCE.md).

For advanced rendering beyond simple `npx remotion render`, see: [Rendering Best Practices](./remotion-render/REFERENCE.md)

## Captions

When working with Captions, load [Remotion Captions](./remotion-captions/REFERENCE.md).

## Creating a SaaS, automation or application

Use the [Remotion SaaS skill](./remotion-saas/REFERENCE.md) 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](./remotion-docs/REFERENCE.md).

## Upgrading

To upgrade Remotion, related packages, compatible Mediabunny packages, and installed Remotion Agent Skills, load [Remotion Upgrade](./remotion-upgrade/REFERENCE.md).

In Google Antigravity, skills reside in your project workspace under .agents/skills/remotion-best-practices/SKILL.md or globally in ~/.gemini/antigravity/skills/.

npx skills add https://github.com/remotion-dev/skills --skill remotion-best-practices -y
# Workspace path: .agents/skills/remotion-best-practices/SKILL.md
# Global path: ~/.gemini/antigravity/skills/remotion-best-practices/SKILL.md

In Claude Code, install globally using the official skills CLI or add via the Claude Code plugin marketplace.

npx skills add https://github.com/remotion-dev/skills --skill remotion-best-practices -g -y
# Or inside Claude Code session:
/plugin install remotion-dev/skills

In Cursor, place the skill folder in .cursor/skills/remotion-best-practices/SKILL.md or at the workspace level in .agents/skills/.

npx skills add https://github.com/remotion-dev/skills --skill remotion-best-practices -y
# Or place directly into:
# ~/.cursor/skills/remotion-best-practices/SKILL.md

In Windsurf / VS Code, agent skills can be installed targeting the windsurf profile or loaded as project rules.

npx skills add https://github.com/remotion-dev/skills --skill remotion-best-practices -a windsurf -y

🎯 What It Does & How It Works

Official Remotion skill—programmatic video in React. 30+ rule files: 3D, animations, TikTok captions, FFmpeg, audio visualization, Lottie, light leaks.

Core Operational Guidelines & Directives

▸Preserve user changes
▸Creating a video
▸New project setup
▸React Markup Best Practices
📦Sub-Skills & Architecture:

This skill is completely self-contained in SKILL.md. All workflows, constraints, and instructions are directly embedded in this single file, making it immediately usable with 1-click download.

⏱️ When to Use

Code-to-MP4 pipelines, programmatic social video, data-driven motion graphics.

💡 Context from Repository & Architecture

Official from Remotion maintainers. Capability uplift for agents that don’t natively know Remotion composition patterns.

⚡ Starter Prompt Template

Copy and paste this starter prompt into your AI assistant (Antigravity, Claude, Cursor, ChatGPT) to activate this skill:

Prompt TemplateClick button to copy formatted prompt
Act as an expert using the "Remotion Best Practices" agent skill. Follow the specialized guidelines to accomplish the task according to best practices.

More in Video & Media

🎥 Video & Media#42

AI Video Toolkit

End-to-end AI-native video workspace—voiceover scripts, demo recording, Remotion Studio review, ElevenLabs voiceover, MP4 render.

#video#media#toolkit
Agents:AntigravityClaudeCursorWindsurf
🎥 Video & Media#43

AI Music Album Production

Full-lifecycle AI music—lyrics, Suno-style prompts, per-stem mixing, mastering, release distribution guidance.

#video#media#music#album#production
Agents:AntigravityClaudeCursorWindsurf
🎥 Video & Media#44

Generative Media Skills

Multi-modal generative media for AI agents—image, video, and audio across 100+ models (Kling, Veo, Flux, Suno, etc.). Schema-driven scripts with JSON output for agent workflows. Cross-platform (Claude Code, Cursor, Gemini CLI).

#video#media#generative#skills
Agents:AntigravityClaudeCursorWindsurf
Copied to clipboard!