anton-abyzov/vskill/remotion-best-practices

Claude Code and agent skill by anton-abyzov/vskill

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Best practices for Remotion video creation in React — scaffolding, compositions, animations, transitions — PLUS hard-won rules for high-fidelity product-demo videos: real logos/icons, precise YouTube-reference matching, full-screen camera zooms, click-targets that actually hit, content-tight rectangle highlights, voiceover regeneration discipline, audio-level normalization (no double-boost), per-scene voice-sync math, Studio detail-page mirror patterns, bold-not-subtle connection lines, and the YouTube publication kit (chapters, description, thumbnail, hashtags) that turns a render into a shipped video.

Install

npx vskill@latest install anton-abyzov/vskill/remotion-best-practices

SKILL.md

The same SKILL.md was published earlier as anton-abyzov/vskill/remotion-best-practices.

/remotion-best-practices

Use this skill any time you are writing a Remotion composition — animated demo videos, product walkthroughs, hackathon submissions, narrated presentations — anything rendered to MP4 via npx remotion render.

The skill bundles two layers of knowledge:

  1. Remotion fundamentals — the upstream rule files maintained by the Remotion team at github.com/remotion-dev/skills (compositions, animations, fonts, audio, transitions, FFmpeg, captions, etc.).
  2. Demo-video craft rules — lessons captured from a long iteration cycle building the vskill / Skill Studio hackathon demo. These are the rules that, when broken, produce a "slideshow" instead of a believable product walkthrough.

Read both layers before authoring.


Scope and applicability

**The Layer 2 craft rules below were derived from one specific project: the
vskill / Skill Studio hackathon demo (Anthropic / Claude Code "Built with
Opus" hackathon, April 2026).** They reflect the look-and-feel of that
product — Studio chrome with breadcrumb header, sidebar tree, dark
verified-skill.com pages with mono fonts, terminal scenes, an editorial
"Inter is AI-slop, distinctive serif is excellence" thesis.
Do not apply these rules verbatim to unrelated demos. A
consumer-mobile, a finance dashboard, a game, or a B2B SaaS pitch will
have its own visual language, its own pacing, and its own audience
expectations. A Save-then-Publish flow, a verified-skill.com/queue page,
or a Studio sidebar with PROJECT/PERSONAL/PLUGINS counts is content, not
craft.
Use this layer as a reference for the underlying technique:
the camera-zoom pattern, the cursor-targeting discipline, the
content-tight highlight rectangle, the in-place state transitions, the
voiceover/script.ts coupling, the render+audio-boost pipeline — those
generalize. The exact constants (1.72× zoom, x=1488 button center,
v1.0.0 → v1.0.1 version pill, "Tier-1 patterns · Tier-2 LLM · Socket"
attribution) are Skill Studio specifics — translate, do not copy.

Layer 1 — Remotion fundamentals

Mirrors the upstream remotion-best-practices skill at https://github.com/remotion-dev/skills/blob/HEAD/skills/remotion/SKILL.md.

New project setup

When in an empty folder or workspace with no existing Remotion project, scaffold one using:

bash
npx create-video@latest --yes --blank --no-tailwind my-video
Starting preview

Start the Remotion Studio to preview a video. Studio HMR live-reloads as files change — you do NOT need a separate preview_start mechanism, and Bash run_in_background is the right way to keep it alive across edits.

bash
npx remotion studio --port=3030
Rendering
bash
# Entry point must be the file that calls registerRoot() (usually src/remotion/index.ts)
npx remotion render src/remotion/index.ts <CompositionId> out/video.mp4 --concurrency=8 --log=info

Common gotchas:

  • Passing Root.tsx as entry → error: "this file does not contain registerRoot". Use index.ts.
  • TransitionSeries does prop introspection on direct children; do not wrap children in <React.Fragment>. Use flatMap returning a flat array of <TransitionSeries.Sequence> and <TransitionSeries.Transition> elements.
  • interpolate(frame, [a, b], …) requires a < b strictly. If you derive b from constants, sanity-check at scene-budget design time — Remotion throws "inputRange must be strictly monotonically increasing" on the very first evaluated frame and the whole composition fails to load.
One-frame render check
bash
npx remotion still <composition-id> --scale=0.25 --frame=30
Subjects covered by the upstream rule files

(Load on demand from the upstream skill repo — github.com/remotion-dev/skills/tree/HEAD/skills/remotion/rules/.)

  • compositions.md — Defining compositions, stills, folders, default props, dynamic metadata
  • animations.md — interpolate, spring, easing, frame-based math
  • transitions.md — @remotion/transitions (fade, slide, wipe), how to chain them inside TransitionSeries
  • assets.md — staticFile(), Img, Audio, Video, font loading
  • fonts.md — @remotion/google-fonts and local font registration
  • audio.md — Importing, trimming, volume, speed, pitch
  • captions.md, subtitles.md — Caption tracks and sync
  • ffmpeg.md — Trimming, concat, audio operations via FFmpeg shell-out
  • silence-detection.md, extract-frames.md, get-audio-duration.md, get-video-duration.md — Mediabunny utilities
  • charts.md, gifs.md, light-leaks.md, 3d.md — Specialized rendering recipes

Layer 2 — Demo-video craft rules

These are the rules earned over a long iteration cycle. Treat them as defaults, not optional polish — most of them came from "this looks weird, fix it" feedback that took multiple rounds to resolve.

A. Reference fidelity
A1. Always pull the real reference

If the user says "make it look like 2:43 of this YouTube video," extract the frame and study it. Don't approximate from memory.

bash
SOURCE="/Users/antonabyzov/Movies/.../Source.mov"
DEST_DIR=".specweave/.../assets/keyframes"
for t in 102 105 108 110 112; do
ffmpeg -y -ss "$t" -i "$SOURCE" -frames:v 1 -q:v 2 "$DEST_DIR/at-${t}s.jpg" -loglevel error
done

Then Read each JPG and design from what's actually on screen — typography, exact button labels, badge colors, sidebar tree layout, search-input positioning, count values (e.g. PROJECT (1), PERSONAL (0 of 12), PLUGINS (0 of 50), AVAILABLE (62)).

A2. Use real logos and icons, not approximations
  • Bell-badge `skill-studio-logo.png` — copy into every Studio scene as <Img src={staticFile("...")} />. Don't render a ✷ glyph and call it a logo.
  • Provider icons — fetch the real SVG/PNG for Claude, Anthropic, OpenAI, OpenRouter, Ollama, LM Studio (e.g., from lobehub/static-png). Don't substitute emoji.
  • Mascots — draw with styled divs to match shape exactly. The Claude Code mascot is a peach-#e08160 body with two square eyes, two side hand-nubs at mid-body, and two pairs of legs underneath (▪ ▪ ▪ ▪). Not ASCII art.
  • App-window chrome — when showing a website in a "Chrome browser", render a real Chrome browser frame: rounded corners, traffic-light dots, ‹ › ↻ nav, locked-padlock URL bar with a real URL (localhost:3000/hero, no extra spaces, no middle dot).
A3. Match YouTube reference layouts pixel-for-pixel

Before redesigning a scene from imagination, list the visible elements in the reference frame and check each one against your output:

  • Banner text — exact wording (Submit skills for verification, not Submit a Skill)
  • Tab order — Overview · Edit · Tests · Run · Trigger · Versions
  • Trust badges — T1 UNSCANNED, Security-Scanned —, Trusted Publisher
  • Filter input — always above AVAILABLE in the sidebar
  • Counts — keep them consistent across slides (PERSONAL (0 of 12) everywhere, not (11) on one slide and (0 of 12) on another)
  • Header right-side controls (in this order): 🔍 Find skills [⌘K] · + New Skill · ● Model selector · 🔔 bell
B. Camera zoom
B1. Camera zoom is full-canvas, not section-scaled

Do not scale a single panel inside the chrome. Wrap the entire chrome (top bar + body) in a transform div and scale + translate that:

tsx
<div
style={{
width: "100%",
height: "100%",
transform: `translate(${cameraTx}px, ${cameraTy}px) scale(${cameraScale})`,
transformOrigin: "50% 50%",
willChange: "transform",
}}
>
{/* TOP BAR + BODY */}
</div>

Cursor + click-ripple SVGs go inside this wrapper so they scale with the chrome and stay glued to their target.

B2. Click first, then zoom

The viewer needs to see the click target in context, then be transported in for the consequence. Ordering:

frame 130 cursor approaches button
frame 174 click ripple
frame 184 button shows "Running…"
frame 188 camera zoom-in starts (1.0 → 1.55+ over ~30 frames)
frame 220+ zoom held — pass cascade / results / scroll-up reveal happens here

Zooming first then clicking feels like a presentation slide. Clicking first then zooming feels like the user did the action and the camera followed.

B3. Pick a scale that actually pushes chrome off canvas

A modest 1.1× barely changes anything. For "the top bar leaves the canvas top," you need ≥ 1.5× combined with a translate that brings the focal point to canvas center. Compute target ≥ (canvasHalfHeight) / (distance from focal point to top bar) — for a row at y=540 and a 64-px top bar, that's ≥ ~1.5×. Use 1.55–1.85× as defaults for "fill the viewport."

C. Cursor click targets
C1. Hit the actual element

When the cursor lands on the wrong button (+ New Skill vs the model-selector pill), the viewer thinks the demo is broken. Re-derive the target from the layout each time — don't guess pixel values.

For a flex right-aligned controls strip with padding: "0 22px":

// Right edge → 22 pad → bell (32) → 14 → model (~290) → 14 → New Skill (~120) → 14 → Find skills (~150)
NEW_SKILL_PILL_X = 1920 - 22 - 32 - 14 - 290 - 14 - 60 // = 1488 (button center)
FIND_PILL_X = 1920 - 22 - 32 - 14 - 290 - 14 - 120 - 14 - 75 // = 1339

Once you have the constant, use it from both the cursor approach interpolation and the cursor leave interpolation so the click ripple lands exactly on the pill, not 200 px to the right of it.

C2. Highlight the target as the cursor approaches

Add a *Active prop on shared header components (e.g., findActive, newSkillActive on StudioHeader) that the cursor scene flips on for the approach + click window. The button gets:

  • 1.08× scale
  • Soft indigo or purple ring via box-shadow: 0 0 0 4px rgba(99,102,241,0.30)
  • transition: all 0.15s ease
D. Highlights and rectangles
D1. Highlight rectangles are content-width, not full-line

When the user wants a red rectangle around two terminal lines, do not wrap the parent flex column — that stretches across the row. Use:

tsx
<div
style={{
display: "inline-flex",
flexDirection: "column",
alignSelf: "flex-start",
width: "fit-content",
border: "2px solid #dc2626",
borderRadius: 6,
padding: "10px 16px",
backgroundColor: "transparent",
}}
>
{/* the two lines, nothing more */}
</div>

Anything that should be outside the rectangle (e.g., the third "Generating component…" line) must be a sibling, not a child.

D2. Annotations: prefer rectangles over ellipses

A hand-drawn-style rectangle stroke around a row reads as "highlighter on the canvas," which is what most users mean by "highlight this." An ellipse can feel decorative.

tsx
<svg viewBox="0 0 1000 100" preserveAspectRatio="none">
<rect
x="6" y="6" width="988" height="88" rx="6" ry="6"
fill="none"
stroke="#ea580c"
strokeWidth="3.6"
strokeDasharray="2160"
strokeDashoffset={2160 * (1 - progress)}
/>
</svg>
D3. Use orange (#ea580c) for "this is what's new" and red (#dc2626) for "this is the bug"

The same demo can carry both. Don't mix.

E. Layout patterns for product chrome
E1. Studio header is a single shared component

Use one StudioHeader.tsx with this canonical layout, called from every Studio scene:

  • Left: logo image (40 × 40 PNG) + "Skill Studio" wordmark + breadcrumb [Authoring|Available] / [scope] / [folder] / [skill]
  • Right: 🔍 Find skills [⌘K] · ✦ + New Skill · ● Model selector · 🔔 Bell

Pass breadcrumb, bellBadge, findActive, newSkillActive as props. Every scene's header is then pixel-stable.

E2. Sidebar has a constant filter input above AVAILABLE

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 91 of 100Pattern checks on the skill's files. Certified 14 May 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
30
Repository forks
6
Repository npm downloads, 7 days
10,587
7-day trend score
37

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 29 Apr 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/anton-abyzov/vskill/remotion-best-practices/badge)](https://verified-skill.com/skills/anton-abyzov/vskill/remotion-best-practices)

Something wrong with this skill or its page? Tell us.