remotion

SKILL.md

Rendering

bun /root/code/render-video-modal.ts \
  --entry-file src/index.ts \
  --composition <CompositionId> \
  --output output/video.mp4 \
  --props '{"key": "value"}'

The script automatically:

  1. Bundles the Remotion project locally

  2. Uploads the bundle to R2

  3. Submits to Modal GPU for rendering

  4. Polls until complete, then copies the result back

  5. Reuse the existing project — don't re-scaffold The Remotion project lives at /root/code/src/ with node_modules already installed. For new videos, write new compositions there directly. Never run npm install or bun install unless dependencies are actually missing.

  6. Edit in-place for style changes When a user asks for a color/style tweak (like gold instead of purple), only edit the composition .tsx file and re-render. Do not recreate the project or modify index.ts unless the composition ID or structure changes.

  7. Use the GPU render command directly

bun /root/code/render-video-modal.ts
--entry-file src/index.ts
--composition
--output output/video.mp4 Always offload to Modal GPU — never attempt local rendering first.

  1. Output path discipline: Render directly to the session directory output path. Call yield_output with changeType: "new" on first render and changeType: "updated" on revisions — not "new" each time.

  2. Confirm render complete before reporting done: Don't report the video as finished until the render script has exited successfully. Check the output file exists before calling yield_output.

  3. Keep compositions short and self-contained: For simple animations (text, transitions), keep everything in one .tsx file. Avoid splitting into multiple components unless the user requests complexity.

Captions

When dealing with captions or subtitles, load the ./rules/subtitles.md file for more information.

Using FFmpeg

For some video operations, such as trimming videos or detecting silence, FFmpeg should be used. Load the ./rules/ffmpeg.md file for more information.

Audio visualization

When needing to visualize audio (spectrum bars, waveforms, bass-reactive effects), load the ./rules/audio-visualization.md file for more information.

Sound effects

When needing to use sound effects, load the ./rules/sound-effects.md file for more information.

How to use

Read individual rule files for detailed explanations and code examples:

Weekly Installs
6
First Seen
11 days ago
Installed on
opencode6
github-copilot6
codex6
kimi-cli6
gemini-cli6
cursor6