🎥 Make videos programmatically with React
Skills: Open Studio preview before building videos
Jonny Burger0db0aa9fb079
diff --git a/packages/codex-plugin/skills/remotion-best-practices/SKILL.md b/packages/codex-plugin/skills/remotion-best-practices/SKILL.mdindex b0813feffc..6f3477e995 100644--- a/packages/codex-plugin/skills/remotion-best-practices/SKILL.md+++ b/packages/codex-plugin/skills/remotion-best-practices/SKILL.md@@ -40,6 +40,8 @@ For advanced rendering beyond simple `npx remotion render`, see: [Rendering Best## 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](./remotion-studio/REFERENCE.md).## Captions@@ -67,10 +69,14 @@ When running inside Codex, first try starting the Remotion Studio without openinnpx 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:```bashnpx 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.diff --git a/packages/codex-plugin/skills/remotion-best-practices/remotion-create/REFERENCE.md b/packages/codex-plugin/skills/remotion-best-practices/remotion-create/REFERENCE.mdindex ff3edc6cbc..d4f3010e32 100644--- a/packages/codex-plugin/skills/remotion-best-practices/remotion-create/REFERENCE.md+++ b/packages/codex-plugin/skills/remotion-best-practices/remotion-create/REFERENCE.md@@ -22,6 +22,27 @@ npm iReplace `my-video` with a suitable project name.+## Open the preview before building the video++As soon as the project can run, start Studio and open its preview in the browser before writing or changing the composition. For a new project, do this immediately after scaffolding and installing dependencies. For an existing project, do it before editing the video. Keep Studio running while you work so the user can see changes and steer.++In Cursor, run Studio without `--no-open` so it opens the browser automatically:++```bash+npx remotion studio+```++In other agent clients, you can use the same command, or use `--no-open` if you will open the URL in an in-app browser:++```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`.+## Designing a videoKeep the scaffold and add React Markup.@@ -39,19 +60,6 @@ By structuring the React Markup following [Remotion Interactivity Best PracticesIf Tailwind is requested, see [tailwind.md](tailwind.md) for using TailwindCSS in Remotion.-## Open the preview--Start the preview server after building the composition:--```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 an in-harness browser is available, open it there.-You can visit a specific composition by navigating to `/[composition-id]`, for example `http://localhost:3000/MapAnimation`.-## Render the videoOnly render if the user explicitly asks for it.diff --git a/packages/codex-plugin/skills/remotion-best-practices/remotion-markup/REFERENCE.md b/packages/codex-plugin/skills/remotion-best-practices/remotion-markup/REFERENCE.mdindex 2c1b45546d..65ca2f7ff6 100644--- a/packages/codex-plugin/skills/remotion-best-practices/remotion-markup/REFERENCE.md+++ b/packages/codex-plugin/skills/remotion-best-practices/remotion-markup/REFERENCE.md@@ -345,12 +345,21 @@ This goes for `@remotion/*` packages, `mediabunny`, `@mediabunny/*`, `zod`, and## Previewing markup+In Cursor, run Studio without `--no-open` so it opens the browser automatically:++```bash+npx remotion studio```++In other agent clients, you can use the same command, or use `--no-open` if you will open the URL in an in-app browser:++```bashnpx remotion studio --no-open```This will start a long-running process and print the server URL for the preview.If 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`.## Optional: one-frame render checkdiff --git a/packages/codex-plugin/skills/remotion-best-practices/remotion-studio/REFERENCE.md b/packages/codex-plugin/skills/remotion-best-practices/remotion-studio/REFERENCE.mdindex dff6c3716e..b238ce195c 100644--- a/packages/codex-plugin/skills/remotion-best-practices/remotion-studio/REFERENCE.md+++ b/packages/codex-plugin/skills/remotion-best-practices/remotion-studio/REFERENCE.md@@ -4,7 +4,15 @@ description: Preview a Remotion videoversion: 4.0.519----Execute the following command:+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.++In Cursor, run Studio without `--no-open` so the browser opens automatically:++```bash+npx remotion studio+```++In other agent clients, you can also let Studio open the browser automatically with the command above. If you have an in-app browser and intend to use it, run:```bashnpx remotion studio --no-open@@ -13,7 +21,7 @@ npx remotion studio --no-openIf the Studio is already opened, the URL will be printed and the command will exit.Otherwise, a long-running process will start, and the URL will be printed.-Open the URL in the browser.+When using `--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. Do not use `--no-open` if you cannot open the URL in the in-app browser.## Useful flagsdiff --git a/packages/codex-plugin/skills/remotion-create/SKILL.md b/packages/codex-plugin/skills/remotion-create/SKILL.mdindex 501b1d385e..03788ea0bc 100644--- a/packages/codex-plugin/skills/remotion-create/SKILL.md+++ b/packages/codex-plugin/skills/remotion-create/SKILL.md@@ -22,6 +22,27 @@ npm iReplace `my-video` with a suitable project name.+## Open the preview before building the video++As soon as the project can run, start Studio and open its preview in the browser before writing or changing the composition. For a new project, do this immediately after scaffolding and installing dependencies. For an existing project, do it before editing the video. Keep Studio running while you work so the user can see changes and steer.++In Cursor, run Studio without `--no-open` so it opens the browser automatically:++```bash+npx remotion studio+```++In other agent clients, you can use the same command, or use `--no-open` if you will open the URL in an in-app browser:++```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`.+## Designing a videoKeep the scaffold and add React Markup.@@ -39,19 +60,6 @@ By structuring the React Markup following [Remotion Interactivity Best PracticesIf Tailwind is requested, see [tailwind.md](tailwind.md) for using TailwindCSS in Remotion.-## Open the preview--After creating or updating the video, start the preview server by default:--```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.-Open the exact URL in the agent client's available browser. If no browser tool is available, keep the preview server running and provide the URL to the user.-You can visit a specific composition by navigating to `/[composition-id]`, for example `http://localhost:3000/MapAnimation`.-## Render the videoOnly render if the user explicitly asks for it.diff --git a/packages/codex-plugin/skills/remotion-markup/SKILL.md b/packages/codex-plugin/skills/remotion-markup/SKILL.mdindex a988ae47a1..2c8a5b688f 100644--- a/packages/codex-plugin/skills/remotion-markup/SKILL.md+++ b/packages/codex-plugin/skills/remotion-markup/SKILL.md@@ -345,12 +345,21 @@ This goes for `@remotion/*` packages, `mediabunny`, `@mediabunny/*`, `zod`, and## Previewing markup+In Cursor, run Studio without `--no-open` so it opens the browser automatically:++```bash+npx remotion studio```++In other agent clients, you can use the same command, or use `--no-open` if you will open the URL in an in-app browser:++```bashnpx remotion studio --no-open```This will start a long-running process and print the server URL for the preview.If 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`.## Optional: one-frame render checkdiff --git a/packages/codex-plugin/skills/remotion-studio/SKILL.md b/packages/codex-plugin/skills/remotion-studio/SKILL.mdindex dff6c3716e..b238ce195c 100644--- a/packages/codex-plugin/skills/remotion-studio/SKILL.md+++ b/packages/codex-plugin/skills/remotion-studio/SKILL.md@@ -4,7 +4,15 @@ description: Preview a Remotion videoversion: 4.0.519----Execute the following command:+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.++In Cursor, run Studio without `--no-open` so the browser opens automatically:++```bash+npx remotion studio+```++In other agent clients, you can also let Studio open the browser automatically with the command above. If you have an in-app browser and intend to use it, run:```bashnpx remotion studio --no-open@@ -13,7 +21,7 @@ npx remotion studio --no-openIf the Studio is already opened, the URL will be printed and the command will exit.Otherwise, a long-running process will start, and the URL will be printed.-Open the URL in the browser.+When using `--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. Do not use `--no-open` if you cannot open the URL in the in-app browser.## Useful flagsdiff --git a/packages/skills/skills/remotion-best-practices/SKILL.md b/packages/skills/skills/remotion-best-practices/SKILL.mdindex 55bd6288d4..cf95571433 100644--- a/packages/skills/skills/remotion-best-practices/SKILL.md+++ b/packages/skills/skills/remotion-best-practices/SKILL.md@@ -38,11 +38,19 @@ By structuring the Remotion markup well, we can allow users to interactively chaIf 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.-Start the preview server after building the composition:+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 have an in-app browser+### If you are using Cursor-If you are e.g. Codex, GitHub Copilot or any other desktop agent with an in-app browser, run:+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:```bashnpx remotion studio --no-open@@ -50,6 +58,7 @@ npx remotion studio --no-openThis 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@@ -58,7 +67,7 @@ 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.+This will open the Studio in the browser or refocus it if it is already open.```bashnpx remotion studiodiff --git a/packages/skills/skills/remotion-create/SKILL.md b/packages/skills/skills/remotion-create/SKILL.mdindex 7f756fb993..e002c5b70c 100644--- a/packages/skills/skills/remotion-create/SKILL.md+++ b/packages/skills/skills/remotion-create/SKILL.md@@ -38,6 +38,10 @@ cd my-videonpm i```+## Open the preview before building the video++As soon as the project can run, open [Remotion Studio](../remotion-studio/SKILL.md) in the browser before writing or changing the composition. For a new project, do this immediately after scaffolding and installing dependencies. For an existing project, do it before editing the video. Keep Studio running while you work so the user can see changes as they appear and steer the result.+## Designing a videoKeep the scaffold and add React Markup.diff --git a/packages/skills/skills/remotion-studio/SKILL.md b/packages/skills/skills/remotion-studio/SKILL.mdindex 47d820ba4a..a18a054264 100644--- a/packages/skills/skills/remotion-studio/SKILL.md+++ b/packages/skills/skills/remotion-studio/SKILL.md@@ -4,7 +4,15 @@ description: Preview a Remotion videoversion: 4.0.530----Execute the following command:+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.++In Cursor, run Studio without `--no-open` so the browser opens automatically:++```bash+npx remotion studio+```++In other agent clients, you can also let Studio open the browser automatically with the command above. If you have an in-app browser and intend to use it, run:```bashnpx remotion studio --no-open@@ -13,7 +21,7 @@ npx remotion studio --no-openIf the Studio is already opened, the URL will be printed and the command will exit.Otherwise, a long-running process will start, and the URL will be printed.-Open the URL in the browser.+When using `--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. Do not use `--no-open` if you cannot open the URL in the in-app browser.## Useful flags