---
name: remotion-dev-update-version
description: "Update `AvailableFrom` in a PR to the next Remotion patch version (`main` + `0.0.1`)."
license: "NOASSERTION"
metadata:
  decimalai-skill-id: "99370a99-9116-4481-ae28-5ee496b56000"
  decimalai-version-id: "70cbfe23-5e9c-4192-9ad3-0e2a6ed4d44b"
  decimalai-version: "1"
  decimalai-body-sha256: "2b8ec68e59c9bbdd083a2450f5ca90e085eadbed4ec0e28da6942de0cb33e4bd"
  decimalai-name: "remotion-dev/update-version"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "documentation"
  decimalai-source: "https://app.decimal.ai/s/remotion-dev-update-version@1/SKILL.md"
---
Use this when a PR contains docs changes with `<AvailableFrom v="...">` and the value should reflect the next release version.

1. Get the canonical version from `main`:

```bash
git fetch origin main --quiet
git --no-pager show origin/main:packages/core/src/version.ts
```

Read `VERSION` from that file (for example: `4.0.468`), then compute the next patch version by incrementing the patch number by 1 (`4.0.469`).

2. Find `AvailableFrom` entries changed in the current PR:

```bash
git --no-pager diff origin/main...HEAD -- packages/docs | rg 'AvailableFrom v="'
```

3. Update only `AvailableFrom` values touched by this PR so they match the computed next patch version from step 1.

4. Do not change unrelated `AvailableFrom` values outside the PR diff.

5. Commit and push the update.
