anton-abyzov/vskill/remotion-best-practices
Claude Code and agent skill by anton-abyzov/vskill
- vendor
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-practicesSKILL.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:
- 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.). - 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: thevskill / Skill Studio hackathon demo (Anthropic / Claude Code "Built withOpus" hackathon, April 2026).** They reflect the look-and-feel of thatproduct — Studio chrome with breadcrumb header, sidebar tree, darkverified-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. Aconsumer-mobile, a finance dashboard, a game, or a B2B SaaS pitch willhave its own visual language, its own pacing, and its own audienceexpectations. A Save-then-Publish flow, averified-skill.com/queuepage,or a Studio sidebar with PROJECT/PERSONAL/PLUGINS counts is content, notcraft.Use this layer as a reference for the underlying technique:the camera-zoom pattern, the cursor-targeting discipline, thecontent-tight highlight rectangle, the in-place state transitions, thevoiceover/script.ts coupling, the render+audio-boost pipeline — thosegeneralize. 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:
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.
Rendering
Common gotchas:
- Passing
Root.tsxas entry → error: "this file does not contain registerRoot". Useindex.ts. TransitionSeriesdoes prop introspection on direct children; do not wrap children in<React.Fragment>. UseflatMapreturning a flat array of<TransitionSeries.Sequence>and<TransitionSeries.Transition>elements.interpolate(frame, [a, b], …)requiresa < bstrictly. If you derivebfrom 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
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 metadataanimations.md—interpolate,spring, easing, frame-based mathtransitions.md—@remotion/transitions(fade, slide, wipe), how to chain them insideTransitionSeriesassets.md—staticFile(),Img,Audio,Video, font loadingfonts.md—@remotion/google-fontsand local font registrationaudio.md— Importing, trimming, volume, speed, pitchcaptions.md,subtitles.md— Caption tracks and syncffmpeg.md— Trimming, concat, audio operations via FFmpeg shell-outsilence-detection.md,extract-frames.md,get-audio-duration.md,get-video-duration.md— Mediabunny utilitiescharts.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.
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-
#e08160body 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, notSubmit a Skill) - Tab order —
Overview · Edit · Tests · Run · Trigger · Versions - Trust badges —
T1 UNSCANNED,Security-Scanned —,Trusted Publisher - Filter input — always above
AVAILABLEin 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:
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:
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":
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:
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.
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
- SKILL.md in the repositoryCheckingskills/remotion-best-practices/SKILL.md
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
[](https://verified-skill.com/skills/anton-abyzov/vskill/remotion-best-practices)