Agent Skill
2/7/2026remotion-best-practices
Best-practice guidance for Remotion (React video). Use when building or reviewing Remotion compositions, timing, assets, audio, captions, or rendering.
J
jscraik
2GitHub Stars
1Views
npx skills add jscraik/Agent-Skills
SKILL.md
| Name | remotion-best-practices |
| Description | Best-practice guidance for Remotion (React video). Use when building or reviewing Remotion compositions, timing, assets, audio, captions, or rendering. |
name: remotion-best-practices description: Best-practice guidance for Remotion (React video). Use when building or reviewing Remotion compositions, timing, assets, audio, captions, or rendering.
Remotion Best Practices
Scope and triggers
- You are writing or reviewing Remotion code and need domain-specific guidance.
- You need patterns for compositions, timing, assets, audio, captions, transitions, or Mediabunny utilities.
- You want a rule-backed checklist before implementing a Remotion feature.
Required inputs
- Question or code context (optional file paths or snippets).
- Desired topic area (optional): compositions, timing, assets, audio, captions, transitions, rendering, or mediabunny.
- Constraints (performance, render target, platform, deadlines).
Deliverables
- Rule-backed guidance with pointers to the most relevant rule files.
- Suggested patterns or code approaches grounded in the rules.
- Risks and verification steps when applicable.
- Include
schema_version: 1if outputs are contract-bound.
Principles
- Use the timeline as the source of truth: timing and sequencing should be explicit.
- Prefer deterministic, testable animations and asset handling.
- Keep render performance in mind; avoid unnecessary work per frame.
- Use rule files as the authoritative reference; do not invent APIs or behavior.
Variation
- Adapt recommendations to the render target (preview vs final render) and platform constraints.
- Vary guidance based on media type (video, audio, captions, images, 3D).
- For complex compositions, expand sequencing and timing guidance with explicit tradeoffs.
Procedure
- Clarify the goal and constraints (composition type, duration, render target).
- Select the most relevant rule files from
rules/. - Summarize the recommended approach and key do/don'ts.
- Call out risks and verification steps (preview, render, or test).
Validation
- Fail fast: stop at the first failed validation gate.
- Ensure guidance maps to an existing rule file.
- If suggesting code changes, recommend a minimal verification step (preview or render).
Anti-patterns
- Guessing Remotion behavior without a rule reference.
- Mixing timing logic across multiple sources (timeline drift).
- Heavy per-frame computation that can be precomputed.
- Skipping captions or audio handling best practices when they are required.
- DO NOT invent APIs, props, or behaviors not covered in rules or official docs.
- NEVER assume remote assets are safe without validating decode support.
Constraints
- Redact secrets/PII by default.
- Do not add dependencies without explicit approval.
- Do not claim official API behavior unless supported by a rule or verified source.
Rules index
Read individual rule files for detailed explanations and code examples:
- rules/3d.md - 3D content in Remotion using Three.js and React Three Fiber
- rules/animations.md - Fundamental animation skills for Remotion
- rules/assets.md - Importing images, videos, audio, and fonts into Remotion
- rules/audio.md - Using audio and sound in Remotion - importing, trimming, volume, speed, pitch
- rules/calculate-metadata.md - Dynamically set composition duration, dimensions, and props
- rules/can-decode.md - Check if a video can be decoded by the browser using Mediabunny
- rules/charts.md - Chart and data visualization patterns for Remotion
- rules/compositions.md - Defining compositions, stills, folders, default props and dynamic metadata
- rules/display-captions.md - Displaying captions in Remotion with TikTok-style pages and word highlighting
- rules/extract-frames.md - Extract frames from videos at specific timestamps using Mediabunny
- rules/fonts.md - Loading Google Fonts and local fonts in Remotion
- rules/get-audio-duration.md - Getting the duration of an audio file in seconds with Mediabunny
- rules/get-video-dimensions.md - Getting the width and height of a video file with Mediabunny
- rules/get-video-duration.md - Getting the duration of a video file in seconds with Mediabunny
- rules/gifs.md - Displaying GIFs synchronized with Remotion's timeline
- rules/images.md - Embedding images in Remotion using the Img component
- rules/import-srt-captions.md - Importing .srt subtitle files into Remotion using @remotion/captions
- rules/lottie.md - Embedding Lottie animations in Remotion
- rules/measuring-dom-nodes.md - Measuring DOM element dimensions in Remotion
- rules/measuring-text.md - Measuring text dimensions, fitting text to containers, and checking overflow
- rules/sequencing.md - Sequencing patterns for Remotion - delay, trim, limit duration of items
- rules/tailwind.md - Using TailwindCSS in Remotion
- rules/text-animations.md - Typography and text animation patterns for Remotion
- rules/timing.md - Interpolation curves in Remotion - linear, easing, spring animations
- rules/transcribe-captions.md - Transcribing audio to generate captions in Remotion
- rules/transitions.md - Scene transition patterns for Remotion
- rules/trimming.md - Trimming patterns for Remotion - cut the beginning or end of animations
- rules/videos.md - Embedding videos in Remotion - trimming, volume, speed, looping, pitch
Examples
- "How should I structure Remotion compositions for a 3-scene explainer?"
- "Best practices for audio timing and captions in Remotion?"
- "What is the right way to check video decode support before render?"
Resources
references/contract.yamlreferences/evals.yaml
Remember
The agent is capable of extraordinary work in this domain. These guidelines unlock that potential—they do not constrain it. Use judgment, adapt to context, and push boundaries when appropriate.
<!-- skill-score-boost-v1 -->Philosophy and tradeoffs
- Use this skill when consistent decision-making matters more than one-off execution because project context should drive the approach.
- Principle and mindset: prioritize tradeoffs and constraints over rigid checklists; understand why each step exists.
- Ask this to keep outcomes robust: Why is this the right default, and what could change this outcome?
- How do we adapt if constraints shift?
- What evidence is needed before choosing one path over another?
Anti-patterns and caveats
- Avoid applying this playbook generically without checking repository-specific context.
- NEVER skip required validation gates when behavior changes.
- DO NOT use this skill as a rigid replacement for engineering judgment.
- DON'T ignore warnings or assume one pattern fits all repos.
- Common pitfall: treating anti-patterns as optional.
- Incorrect assumptions here can lead to fragile guidance.
- Warning: wrong sequencing can create avoidable regressions.
Variation and adaptation
- Vary the workflow by team size, risk, and deployment target.
- Use different strategies for small, medium, and large changes.
- Adapt recommendations to the specific environment and avoid repetitive templates.
- Avoid generic or cookie-cutter responses; craft context-specific alternatives.
- Keep outputs diverse and not repetitive.
- Converge on a custom path only after evidence review.
- Different constraints should produce different, non-generic recommendations.
Empowering execution style
- Be capable of exploring multiple options and enabling the team to make safe decisions.
- Unlock confidence by explaining options and tradeoffs clearly.
- Feel free to be creative while staying rigorous and precise.
- Push boundaries with practical alternatives when simple recipes fail.
- Enable outcomes-oriented problem solving.
Decision feedback protocol (required):
- If post-run feedback capture is enabled for this runtime, emit a non-blocking
post_run_feedbackevent viarequest_user_inputafter result delivery. - Capture:
decision(accepted|partial|rejected|deferred),outcome(good|neutral|bad|unknown), andconfidence(high|medium|low). - Persist with:
python3 utilities/skill-creator/scripts/record_skill_feedback.py --skill-path <path/to/SKILL.md> --decision <...> --outcome <...> --confidence <...> --notes "...". - The recorder tags
subject(for exampleui,code_review,backend,security) for cross-domain quality analytics.
Skills Info
Original Name:remotion-best-practicesAuthor:jscraik
Download