Skip to content

Commit d0ceaec

Browse files
authored
Skills: Add /remotion-upgrade skill (#9288)
* `remotion-monorepo`: Add Remotion upgrade skill * `remotion-monorepo`: Link upgrade skill from best practices * `remotion-monorepo`: Put upgrade guidance last
1 parent c1d4a91 commit d0ceaec

5 files changed

Lines changed: 42 additions & 0 deletions

File tree

.agents/skills/remotion-upgrade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../packages/skills/skills/remotion-upgrade

packages/docs/docs/ai/skills.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ Use this to look up current API references, component props, and package guides
7272

7373
<SuggestedPrompt prompt="/remotion-docs How to set up Remotion Lambda?" />
7474

75+
### `/remotion-upgrade`
76+
77+
Upgrade Remotion, related packages, compatible Mediabunny packages, and installed Remotion Agent Skills.
78+
79+
<SuggestedPrompt prompt="/remotion-upgrade" />
80+
7581
### `/mediabunny`
7682

7783
Guidance for browser-based multimedia handling with Mediabunny.

packages/skills/skills/remotion-best-practices/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ Use the [Remotion SaaS skill](remotion-saas/SKILL.md) for knowledge about Remoti
3636
## Looking up Remotion APIs and documentation
3737

3838
To find and read current Remotion documentation, load [Remotion Docs](remotion-docs/SKILL.md).
39+
40+
## Upgrading
41+
42+
To upgrade Remotion, related packages, compatible Mediabunny packages, and installed Remotion Agent Skills, load [Remotion Upgrade](remotion-upgrade/SKILL.md).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../remotion-upgrade
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: remotion-upgrade
3+
description: Upgrade Remotion, its related packages, compatible Mediabunny packages, and installed Remotion Agent Skills. Use when asked to upgrade or update a Remotion project.
4+
---
5+
6+
# Upgrade Remotion
7+
8+
1. Inspect the project manifests and lockfile to identify the package manager and workspaces. Preserve unrelated changes.
9+
2. Determine whether `@remotion/cli` is locally available. If it is, run:
10+
11+
```bash
12+
npx remotion upgrade
13+
```
14+
15+
Skip the manual package upgrade below.
16+
17+
3. If `@remotion/cli` is not available, upgrade manually:
18+
- Get the latest stable Remotion version with `npm view remotion version`.
19+
- Find every installed `remotion` and `@remotion/*` dependency across the project and upgrade them all to that exact version. Preserve their dependency sections and the project's workspace or catalog conventions.
20+
- Read the current [Mediabunny compatibility page](https://www.remotion.dev/docs/mediabunny/version) and determine the Mediabunny version compatible with the target Remotion version. Upgrade every installed `mediabunny` and `@mediabunny/*` package to the documented compatible version.
21+
- Run the project's package manager to update its lockfile.
22+
4. Update the installed Remotion skills:
23+
24+
```bash
25+
npx remotion skills update
26+
```
27+
28+
5. Review the manifest and lockfile diff. Ensure all Remotion packages use one version and all installed Mediabunny packages use the compatible version. If the CLI is available, run `npx remotion versions` as an additional check.
29+
30+
The [Remotion releases](https://github.com/remotion-dev/remotion/releases) contain the changelog and may be useful for summarizing relevant changes after the upgrade.

0 commit comments

Comments
 (0)