Skip to content
FramesField
SKILL.md Developer / Local Tooling SKILL.md
Verified Nov 29, 2026

Remotion Video and End-Card Compositor Skill

How to install this SKILL.md

Install this SKILL.md into Claude Code, Cursor, or Codex alongside npx skills add remotion-dev/skills so your agent composites crisp vector end-cards, data callouts, and subtitles cleanly over AI video plates.

Drop-in SKILL.md rulebook for combining AI-generated video clips (Gemini Omni Flash, Kling 4.0, Runway Gen-4.5, Wan 2.2) with razor-sharp programmatic React typography, Recraft V4.1 SVG end-cards, animated lower-thirds, and safe-zone 9:16 overlays inside Remotion—paired with Remotion's official agent skills.

Compatible agent hosts
Claude Code Cursor Codex
Target tool: Remotion (React Video) · License: MIT
  1. STEP 01
    Install FramesField Compositor + Official Remotion Skills

    Run the 1-line raw curl command below (and optionally add Remotion's official npx skills add remotion-dev/skills).

  2. STEP 02
    Drop AI MP4 clips & SVGs into public/

    Place your Gemini Omni Flash, Kling 4.0, or Runway MP4 plates and Recraft V4.1 SVG marks in public/ and reference via staticFile().

  3. STEP 03
    Ask your agent to compose & render

    The agent builds frame-accurate React compositions with locked 9:16/16:9 safe zones, zero shimmer typography, and verified H.264 exports.

1. Install for your tool

Pick the app you use below for the exact verified command or config—zero manual guessing.

Direct raw file (SKILL.md) ↓
Claude Code (.claude/skills/ + Official Remotion Skills) bash
Installs the FramesField AI-video compositor contract into .claude/skills/ and pairs cleanly with Remotion's official skills package.
mkdir -p .claude/skills/remotion-ai-compositor
curl -fsSL https://framesfield.com/raw/skills/remotion-programmatic-video-skill -o .claude/skills/remotion-ai-compositor/SKILL.md
# Optional: also install Remotion's official framework skills
npx skills add remotion-dev/skills

2. Inspect or download the full SKILL.md file

This is the exact raw file served at /raw/skills/remotion-programmatic-video-skill.

Remotion Video and End-Card Compositor Skill SKILL.md
---
name: remotion-ai-compositor
description: Composite AI-generated video plates (Gemini Omni Flash, Kling 4.0, Runway Gen-4.5, Wan 2.2) with deterministic React typography, Recraft V4.1 SVG brand end-cards, safe-zone 9:16 overlays, and frame-accurate audio ducking inside Remotion.
---

# Remotion AI-Video & Vector End-Card Compositor Protocol

Whenever building or editing Remotion compositions that layer graphics, titles, captions, or end-cards over AI-generated video clips, enforce these exact studio rules:

## 1. Never Animate Fine Print in AI Video—Composite in Remotion
- Treat AI MP4 clips strictly as clean visual plates inside `public/plates/` loaded via `<OffthreadVideo src={staticFile('plates/...')} />` (prefer `<OffthreadVideo>` over `<Video>` for deterministic frame-exact rendering).
- Render all brand logos (inline SVG or Recraft V4.1 `.svg`), pricing numbers, URLs, lower-thirds, and closing CTA slates as crisp vector/DOM elements so there is zero temporal shimmer.

## 2. Deterministic Frame Rate & Duration Math
- Match the Remotion `<Composition fps={24} ...>` strictly to the conformed frame rate of your AI video plates (`24` fps for Gemini Omni Flash, or `30` fps if conformed to 30).
- Kling 4.0 and Runway Gen-4.5 do not publish a frame rate, so read it from the file before setting `fps`: `ffprobe -v error -select_streams v:0 -show_entries stream=r_frame_rate -of csv=p=0 public/plates/shot1.mp4`.
- Drive every animation strictly from `useCurrentFrame()` and `interpolate()` / `spring()`—NEVER use CSS `transition`, CSS `@keyframes`, `setTimeout`, or `Math.random()` (use Remotion `random('seed')`).

## 3. Enforce Cross-Platform 9:16 Safe Zones
When `width === 1080 && height === 1920`, constrain ALL React text, pricing badges, and captions strictly inside:
- Top padding: `>= 220px` (clears TikTok/Reels/Shorts top navigation)
- Right padding: `>= 160px` (clears Like/Comment/Share rail)
- Bottom padding: `>= 480px` (clears handle, description, and Shop CTA deck)
- Subtitle band: `y = 1220px – 1420px`, max 3–4 words per cue.

## 4. Audio Layering & Clean Post Loudness
- Load narration and continuous music beds via `<Audio src={staticFile(...)} volume={(f) => ...} />`, smoothly interpolating music volume down (`0.18`) during speech frames and up (`0.55`) during silent B-roll and the closing end-card.
- Gemini Omni Flash and Kling 4.0 clips always carry their own audio track. Pass `muted` to `<OffthreadVideo>` whenever narration and music come from `<Audio>`, so the plate audio never doubles the mix.
- After rendering via `npx remotion render src/index.ts <CompId> out/master.mp4 --codec=h264 --pixel-format=yuv420p`, run EBU R128 `-14 LUFS` conform (or audit with `video-qc-auditor`) before final delivery.

## 5. Frame-Level Visual Verification
Before finishing, render 2–3 still inspection frames (`npx remotion still src/index.ts <CompId> /tmp/check-hook.png --frame=12` and `--frame=<endcard_frame>`) to verify zero text overlap, clean font loading, and crisp layout alignment.

3. Test it right away (sample prompt & result)

Sample prompt / input
"Build a 1080x1920 24fps Remotion composition stitching public/plates/shot1.mp4 (6s), public/plates/shot2.mp4 (6s), and a crisp 3s Swiss editorial SVG end-card with public/audio/vo.wav and ducked public/audio/bed.mp3."
What happens when it runs
- Creates typed Remotion composition using `<Series>` + `<OffthreadVideo>` at 24fps (`360` total frames).
- Places lower-third captions inside `y: 1220–1420px` with `paddingRight: 160` safe margins and builds a vector SVG closing slate (`frames 288–360`).
- Smoothly ducks `<Audio>` music volume from `0.55` to `0.18` during narration frames, renders inspection stills via `npx remotion still`, and exports `yuv420p` H.264 MP4.

What you need & known limits

Requirements

  • Node.js 20+ and an initialized Remotion project (npx create-video@latest)
  • Recommended companion: install Remotion's official skills via npx skills add remotion-dev/skills

Watch out for

  • Remotion uses Chromium for frame rendering—heavy WebGL filters slow render times; stick to crisp SVG, HTML/CSS transforms, and <OffthreadVideo>
  • Remotion carries a free license for individuals/small teams and a paid Company License for larger organizations—verify remotion.dev/license before commercial team rollout

Frequently Asked Questions

Why use Remotion on top of AI video instead of editing everything manually in CapCut or Premiere?
If you are shipping 10 to 50 localized ad variants with different hooks, prices, languages, or product SKUs, Remotion lets a coding agent swap JSON props and batch-render pixel-exact, shimmer-free typography and SVG end-cards in code.
Why does this skill require <OffthreadVideo> instead of standard <Video>?
<OffthreadVideo> decodes exact frames natively via FFmpeg in C++ rather than relying on browser HTML5 video seeking, eliminating dropped frames and A/V stutter during multi-clip AI video renders.
Use this page in AI tools or notes
raw .md