Community程式設計與開發github.com

remotion-upgrade

升級 Remotion 及相關套件

remotion-upgrade 是什麼?

這個技能用於自動化升級專案中的 Remotion 及相關套件。它會先檢查專案中是否存在 `@remotion/cli`,如果有的話直接使用 `npx remotion upgrade` 命令進行升級,同時也會更新本地的 Remotion 技能檔案。如果沒有 CLI,則會手動升級:透過 `npm view remotion version` 取得最新穩定版本,然後將專案中所有 `remotion` 和 `@remotion/*` 的依賴升級到該版本,並根據 `@remotion/studio` 的依賴對齊輔助套件(如 `zod`、`mediabunny` 和 `@huggingface/transformers`)。升級完成後會更新 lockfile,並提供驗證步驟(如檢查版本一致性以及可選的 `npx remotion versions` 指令)。

相容平台~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. 檢查專案的 manifest 與 lockfile,以識別套件管理工具及工作區(workspace)。保留不相關的變更。

  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 的版本。
    • 執行專案的套件管理工具以更新其 lockfile。
  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. 檢視 manifest 與 lockfile 的差異。確保所有 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

相關技能