Remotion best practices

From wulaosiji/skills · View interactive version

Remotion best practices is an AI agent skill from the GitHub repository wulaosiji/skills. Best practices and domain-specific knowledge for Remotion — programmatic video creation in React. Covers animations, audio, captions, 3D, charts, compositions, transitions, text effects, FFmpeg operations, and 30+ specialized rule files with code examples. Use when: "remotion", "React视频", "programma

How to use this skill

Skill file

Remotion Best Practices

Domain-specific knowledge and best practices for creating videos programmatically with Remotion (React-based video framework).

When to Use

Use this skill whenever you are dealing with Remotion code to obtain the domain-specific knowledge, including:

Do NOT use this skill if:

Typical triggers:

Workflow

  1. 探查 (Probe)

确认用户正在处理的 Remotion 具体领域(动画 / 音频 / 字幕 / 3D / 图表 / 转场 / 资源管理 / FFmpeg),确认项目使用的 Remotion 版本和相关依赖。

  1. 约束 (Constrain)

设定 Remotion 项目约束:使用官方推荐的组件和 API,不绕过 Remotion 的渲染管线。对于 FFmpeg 操作,确认系统已安装 ffmpeg。不降级交付——若缺少依赖,先指导安装。

  1. 证据 (Evidence)

所有最佳实践和代码示例来自本技能的 rules/ 目录下的规则文件。根据具体领域加载对应的规则文件获取详细说明和代码示例,不凭记忆编造 API 用法。

  1. 执行 (Execute)

根据领域加载对应的规则文件(见下方 "How to use" 和规则文件列表),应用其中的最佳实践和代码模式到用户的 Remotion 项目中。对于常见操作:

  1. 验证 (Verify)

验证 Remotion 代码:确认组件导入正确、props 类型匹配、时间计算(frame/fps)准确、资源路径有效。对于渲染问题,建议用户运行 npx remotion render 或 npx remotion studio 验证输出。

  1. 交付 (Deliver)

返回应用了最佳实践的 Remotion 代码或修改建议,引用对应的规则文件来源。对于多文件修改,总结每个文件的变更点。不保留临时文件。

Output

Remotion code snippets, component implementations, or modification guidance based on the relevant rule files. Output includes: correct component usage, prop configurations, animation timing patterns, asset import statements, and references to the specific rules/*.md file that supports each recommendation. For FFmpeg operations, returns command-line instructions.

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.

How to use

Read individual rule files for detailed explanations and code examples:

Guardrails

Source & Attribution

Anti-patterns

Constraints

Related Skills

About UniqueClub

Part of the UniqueClub toolkit. This skill curates third-party Remotion best practices within the UniqueClub skill ecosystem.

🌐 https://uniqueclub.ai

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.