Community编程与开发github.com

remotion-upgrade

升级 Remotion 及其相关包

remotion-upgrade 是什么?

此技能用于自动化升级 Remotion 项目及其相关依赖。它通过检测项目清单和锁文件自动识别包管理器和工作区,并优先尝试使用 `npx remotion upgrade` 命令进行快速升级。如果 `@remotion/cli` 本地不可用,则执行手动升级流程:获取最新稳定版本、统一更新所有 Remotion 包以及辅助包(如 `zod`、`mediabunny`、`@huggingface/transformers`)的版本,并更新锁文件。该技能支持 Claude Code、Cursor、Codex 等 AI 代理平台,确保升级过程无遗漏、版本一致,并保留项目原有工作区和目录约定。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/remotion-dev/skills/tree/main/skills/remotion-upgrade

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

升级 Remotion

  1. 检查项目清单和锁文件,以识别包管理器和工作区。保留无关的更改。

  2. 确定 @remotion/cli 是否本地可用。如果是,则运行:

    npx remotion upgrade
    

    此操作还会更新项目本地的 Remotion 技能。跳过下面的手动升级步骤。

  3. 如果 @remotion/cli 不可用,则手动升级:

    • 使用 npm view remotion version 获取最新的稳定 Remotion 版本。
    • 查找项目中所有已安装的 remotion 和 @remotion/* 依赖,并将它们全部升级到该确切版本。保留它们的依赖部分以及项目的工作区或目录约定。
    • 使用 npm view @remotion/studio@<version> dependencies --json 读取目标 Remotion 版本的 @remotion/studio 依赖关系。将已安装的辅助包(例如 zod、mediabunny 和 @huggingface/transformers)与其中列出的版本对齐。对于已安装的 @mediabunny/* 包,使用 mediabunny 的版本。
    • 运行项目的包管理器以更新其锁文件。
  4. 如果 @remotion/cli 不可用,则更新已安装的 Remotion 技能:

    npx skills update remotion-best-practices remotion-captions remotion-create remotion-docs remotion-elements remotion-interactivity remotion-license remotion-maps remotion-markup remotion-multimedia remotion-render remotion-saas remotion-studio remotion-upgrade --yes
    
  5. 审查清单和锁文件的差异。确保所有 Remotion 包使用同一个版本,并且已安装的辅助包使用其推荐的版本。如果 CLI 可用,请运行 npx remotion versions 作为额外检查。

Remotion 发布页面 包含变更日志,在升级后总结相关更改时可能有用。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

mediabunny

Multimedia handling with the Mediabunny library

remotion-best-practices

Router for all Remotion skills

remotion-captions

Dealing with captions in Remotion

remotion-captions

Transcribing, displaying and animating captions

remotion-create

Creating a new Remotion video

remotion-create

Create a new Remotion video

remotion-docs

Search Remotion documentation

remotion-docs

Search and fetch Remotion documentation pages

remotion-elements

Installs Elements, reusable video components such as titles, backgrounds, charts and caption styles, into a Remotion project with `npx remotion elements use`. Registers Element libraries in Remotion Studio with `npx remotion elements add-library`. Use when given an Element page URL or an Element library URL, or when a video needs a ready-made component.

remotion-interactivity

Best practices for writing Remotion animations that stay intuitive for agents and editable in Remotion Studio Visual Mode.

remotion-interactivity

Structure Remotion markup for interactivity

remotion-license

Find Remotion license information, FAQs, terms, and where to buy a license.

remotion-maps

Remotion Map animation knowledge

remotion-markup

Content, animation and effects best practices

remotion-markup

Best practices for writing Remotion React Markup

remotion-multimedia

Interacting with Mediabunny

remotion-render

Best practices for rendering videos

remotion-saas

Build an app with Remotion

remotion-saas

Building video apps with Remotion - framework, rendering and Player advice

remotion-studio

Preview a Remotion video

相关技能