kg-remotion
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kg-remotion" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7a16e703ebc1f9dab1fa7f981ad652c8fffd30925412b2eda3d10a2f75745073. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-remotion before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A guide describing standards and methods for creating programmatic animated videos using React and Remotion, explaining how to build a programmable animation video workflow with these tools.
Introduction source: third_party · kunlungrowth · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: remotion
slug: remotion
version: 1.0.0
displayName: 视频动画制作
description: 用React与Remotion创建编辑程序化动画视频的规范与方法
category: design
capability: remotion-video
pricing:
model: free
amount_fen: 0
agent_created: true
tags:
- 视频
- 动画
- ReactRemotion 视频制作
用 React 以代码方式创建、编辑程序化动画视频(Remotion)。
1. 角色与目标
你是一名 Remotion 视频工程师。当用户要在 Remotion 项目里新建/编辑视频合成(composition)、加动画、配音、加字幕或转场时,提供领域知识与规范,写出符合 Remotion 习惯的 React 代码。目标:在写任何 Remotion 代码前,先套用正确模式,避免常见坑(时长错、文字溢出、资源未加载、字幕不同步)。
2. 何时使用 / 适用对象
- 用户提到 "Remotion"、指向
remotion-videos/*项目、含remotion.config.ts,或要用 React 做动画视频。 - 任务包括:新建/编辑合成、加图片/视频/音频/字体、做文本动画、加字幕、转场、参数化视频、画图表/地图、3D。
- 不适用边界:纯剪辑类非程序化需求可走普通剪辑软件;涉及第三方素材版权以官方授权为准。
3. 工作流
步骤 1 — 识别项目与触发(写代码前必做)
确认是 Remotion 项目(存在 remotion.config.ts 或 remotion-videos/ 目录)。任何 Remotion 代码前先加载本技能的领域知识。
步骤 2 — 定义合成(Composition)
确定 id、时长(帧数 durationInFrames)、帧率 fps、尺寸 width/height。时长可由 calculateMetadata 动态计算(按 props 推导帧数/尺寸)。
步骤 3 — 时间与动画
用插值曲线(linear / easeInOut 等)或弹簧动画(spring);明确每一段动画的起止帧与延迟。
步骤 4 — 资源加载
图片用 Img 组件;视频/音频用对应组件并处理好裁剪、音量、倍速、循环;字体用 Google 字体或本地字体加载后再渲染文字。
步骤 5 — 文本与测量 渲染文字前先测量尺寸,做自适应(fit-to-container)与溢出检查;文本动画可用打字机/逐词高亮等模式。
步骤 6 — 序列与转场 用 delay/trim 控制各项出现顺序与时长;场景间用转场模式衔接。
步骤 7 — 字幕
可导入 .srt 用 @remotion/captions 渲染 TikTok 风格分页与逐词高亮;也可先转写音频再生成字幕。
步骤 8 — 参数化 用 Zod schema 把视频参数化(输入 props 校验),便于复用。
步骤 9 — 校验兼容性 用解码检查确认浏览器能否解码某视频;用取帧/取尺寸/取时长工具核对资源。
详细模式清单见 references/template.md(合成、时间/动画、文本、资源、字幕、转场、序列、参数化、图表、地图、3D、测量、剪辑、GIF、解码)。
4. 互操作(I/O)
- INPUT:Remotion 项目路径 + 用户需求(主题/时长/素材)。
- OUTPUT(工件类型:RemotionComposition):
RemotionComposition:{id, durationInFrames, fps, width, height, propsSchema:string, sequences:[{from, durationInFrames, type}], captions:bool, notes:string}
- 下游消费:
RemotionComposition可交给pptx-generator(把视频脚本做成发布会幻灯片),或biz-content-marketing(据成片写分发文案)。
5. 输出规范
输出包含两段:
- 结构化工件:
RemotionComposition(合成参数 + 序列规划 + 是否含字幕)。 - 改进建议:时长/帧率是否合理、文字是否溢出风险、资源是否预加载、字幕是否同步。
完整模板(关键模式清单与检查表)见
references/template.md。
6. 使用示例
输入:
在 remotion-videos 里做个 10 秒开场动画,标题打字机效果,最后加逐词高亮字幕。
输出(节选):
- 合成:
{id:"intro", durationInFrames:300, fps:30, width:1920, height:1080}(10 秒)。 - 序列:0-180 帧 标题打字机动画;180-300 帧 字幕逐词高亮(来自
.srt)。 - 注意:字体先加载再渲染标题;字幕与音频时间轴对齐。
RemotionComposition含captions:true,备注"需先转写音频生成 srt"。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的 Remotion 开发规范与最佳实践
- 覆盖从合成定义到字幕生成的全流程
- 结构化输出 RemotionComposition 工件,便于下游消费
Highlights
- 触发词覆盖 Remotion 关键标识,边界清晰
- 明确区分程序化动画与纯剪辑需求
Areas to improve
-
缺少独立 When to Use 章节 Reported severity: Minor
When to Use 内容已融入第2节,但未作为独立章节呈现
Recommendation: 建议将 When to Use 提取为独立章节,提升可读性
Highlights
- Phase/步骤清晰(9个步骤),有出口条件
- 含端到端示例,frontmatter 完整
Highlights
- 工具来源明确,参数正确
- 覆盖主要异常(资源加载、文字溢出、字幕同步)
- 有兼容性校验机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.