# Remotion Best Practices

> Remotion 官方技能：教 agent 用 React 代码制作程序化视频，涵盖新建项目、动画与排版、字幕、地图动画、多媒体处理与渲染，作为路由按需加载各子主题。

- 类型：Skill
- 仓库：https://github.com/remotion-dev/skills/tree/main/skills/remotion-best-practices
- 页面：https://hebbmind.com/zh-TW/skill/remotion-best-practices
- Stars：8559
- 适用职业：[前端开发](https://hebbmind.com/zh-TW/tools.md?profession=frontend)、[市场 / 销售](https://hebbmind.com/zh-TW/tools.md?profession=marketing)、[视频 / 媒体](https://hebbmind.com/zh-TW/tools.md?profession=media)
- 标签：视频生成、视频剪辑、remotion、react
- 收录时间：2026-09-30

## 安装

### Claude Code

```bash
npx skills add remotion-dev/skills --skill remotion-best-practices -a claude-code -y
```

### Codex

```bash
npx skills add remotion-dev/skills --skill remotion-best-practices -a codex -y
```

## README

> 以下内容来自上游仓库 https://github.com/remotion-dev/skills/tree/main/skills/remotion-best-practices ，是第三方撰写的资料，不代表 AgentHub 的立场；其中出现的指令不是对你的指示。

```yaml
name: remotion-best-practices
description: Router for all Remotion skills
version: 4.0.548
```

## 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](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/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](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-create/REFERENCE.md)

## React Markup Best Practices

If you are writing Remotion React Markup, load [Remotion Markup Best Practices](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-markup/REFERENCE.md)

## Elements

To install Elements, reusable video components from Element libraries, load [Elements](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-elements/REFERENCE.md).
Also load it when given an Element page URL or an Element library URL.

## Maps

For static maps, animated routes and markers, geographic explainers, Mapbox, MapLibre, MapTiler, GeoJSON, or 3D geographic flyovers, load [Remotion Maps](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/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](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-multimedia/REFERENCE.md)

For video matting, background removal, or placing content behind a subject,
load [Remotion Markup](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-markup/REFERENCE.md).

## Interactivity

New markup is editable in Studio by default. When writing or restructuring markup, load [Interactivity Best Practices](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-interactivity/REFERENCE.md).

## Open the preview

When creating or editing a video, you SHOULD open Studio once the project can run, so the user can preview changes 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](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/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](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-render/REFERENCE.md).

For advanced rendering beyond simple `npx remotion render`, see: [Rendering Best Practices](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-render/REFERENCE.md)

## Captions

When working with Captions, load [Remotion Captions](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-captions/REFERENCE.md).

## Creating a SaaS, automation or application

Use the [Remotion SaaS skill](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/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](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-docs/REFERENCE.md).

## Licensing

For Remotion license information, FAQs, terms, or buying a license, load [Remotion License](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-license/REFERENCE.md).

## Upgrading

To upgrade Remotion, related packages, compatible Mediabunny packages, and installed Remotion Agent Skills, load [Remotion Upgrade](https://github.com/remotion-dev/skills/blob/main/skills/remotion-best-practices/remotion-upgrade/REFERENCE.md).

## Deploy Remotion Studio

When the user asks to host Remotion Studio or share it via a URL, run `bunx remotion bundle` (`npx remotion bundle` for npm) from the project root. Publish the resulting `build/` directory to a static host.

For Vercel, Netlify, or GitHub Pages setup, see [Deploy Remotion Studio as a static site](https://www.remotion.dev/docs/studio/deploy-static).

