Communitygithub.com

Remotion 及关联包升级

升级 Remotion 及其关联依赖包,确保项目一致性与最新特性。

Remotion 及关联包升级 是什么?

该技能专门用于升级项目中的 Remotion 及相关依赖包。它首先检查项目清单和锁文件,识别包管理器和工作区,并保留无关更改。若 `@remotion/cli` 本地可用,优先使用 `npx remotion upgrade` 进行自动升级,同时更新本地的 Remotion 相关技能。当 CLI 不可用时,则通过 npm 获取最新稳定版本,手动升级所有 `remotion` 和 `@remotion/*` 依赖,并参考 `@remotion/studio` 的依赖关系对齐辅助包(如 zod、mediabunny、@huggingface/transformers)的版本,最后更新锁文件和本地技能。升级完成后,会审查清单和锁文件差异,确保所有 Remotion 包版本一致,辅助包版本符合推荐,并能通过 `npx remotion versions` 验证。该技能适用于任何使用 Remotion 的项目,无论是直接安装 CLI 还是手动管理依赖。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Hownameee/short-videos/tree/HEAD/.agent/skills/remotion-upgrade

在你喜欢的 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-interactivity 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 11 individual skills — each has its own dedicated page.

Hownameee/short-videos

Generate, revise or troubleshoot local Kokoro narration, pronunciation and scene word timing. Reuse verified unchanged clips; inspect the Python environment before setup changes. Exclude research, visuals, music composition and publishing.

Hownameee/short-videos

Router for all Remotion skills

Hownameee/short-videos

Transcribing, displaying and animating captions

Hownameee/short-videos

Structure Remotion markup for interactivity

Hownameee/short-videos

Remotion Map animation knowledge

Hownameee/short-videos

Content, animation and effects best practices

Hownameee/short-videos

>- Run Phase 1 of the shared short-video workflow: turn a raw topic or prompt into a sourced research pack and 2–4 distinct video directions, each with a defensible tension hook, promise, payoff, beats, visual approach, duration range, and risks. Use whenever the user asks for video ideas, angles, research, facts, hooks, topic analysis, or choices before scriptwriting. Stop for the user's direction choice and do not silently continue into script or production.

Hownameee/short-videos

Produce an approved short video or correct an existing video's background sound, emotion, captions, mix or export. Generate only changed narration, render and review a current preview, run technical and editorial QC, then export. Exclude script-only and general audio-advice requests.

Hownameee/short-videos

>- Run Phase 2 of the shared short-video workflow: convert an explicitly selected direction and its research into a reviewable beat sheet, narration, flexible scene timing, on-screen text, visual plan, captions, music and SFX cues, pronunciation notes, payoff, takeaway, and contextual CTA. Use whenever a user asks to write, revise, preview, or approve a short-video script. Stop for script approval and do not generate TTS or render video yet.

Hownameee/short-videos

>- Design and review a coherent visual system for short-form video before and during Remotion implementation. Use for video art direction, scene UI, typography, layout, color, diagrams, captions, motion, transitions, platform safe areas, or visual-quality review. Use Remotion skills separately for API, timeline, media, Studio, and rendering behavior; do not use this skill for narration-only or research-only work.

Hownameee/short-videos

Coordinate prompt-to-short-video discovery, scripting and production. Resume existing projects and route soundtrack or mix corrections directly to production. Preserve direction choice and script approval; exclude general audio advice.

相关技能