π₯ Make videos programmatically with React
Skills: Require explicit requests for test changes
Jonny Burgere1495f00eb7a
diff --git a/.agents/skills/add-cli-option/SKILL.md b/.agents/skills/add-cli-option/SKILL.mdindex 1b25c4b4ad..62bd5b4b05 100644--- a/.agents/skills/add-cli-option/SKILL.md+++ b/.agents/skills/add-cli-option/SKILL.md@@ -72,7 +72,7 @@ const myFlag = myFlagOption.getValue({commandLine: parsedCli}).value;For Studio options, this is typically in `packages/cli/src/studio.ts`. For render options, in the relevant render command file.-If the option is consumed by Studio, read [`../studio-config-option-lifecycle/SKILL.md`](../studio-config-option-lifecycle/SKILL.md) completely before wiring it. Classify the option as startup-fixed or reloadable across all Studio consumers; mixed behavior is not allowed. If any consumer requires startup-fixed behavior, pass the startup snapshot to every consumer. Add lifecycle tests that prove the classification.+If the option is consumed by Studio, read [`../studio-config-option-lifecycle/SKILL.md`](../studio-config-option-lifecycle/SKILL.md) completely before wiring it. Classify the option as startup-fixed or reloadable across all Studio consumers; mixed behavior is not allowed. If any consumer requires startup-fixed behavior, pass the startup snapshot to every consumer.## 5. Add to Configdiff --git a/.agents/skills/add-effect/SKILL.md b/.agents/skills/add-effect/SKILL.mdindex b0fbb99891..0696cbb94e 100644--- a/.agents/skills/add-effect/SKILL.md+++ b/.agents/skills/add-effect/SKILL.md@@ -1,6 +1,6 @@---name: add-effect-description: Add a new effect to @remotion/effects, including implementation, package exports, docs, demos, preview images, Remotion skill updates, tests, formatting, and builds.+description: Add a new effect to @remotion/effects, including implementation, package exports, docs, demos, preview images, Remotion skill updates, formatting, and builds.---# Add a new `@remotion/effects` effect@@ -193,18 +193,9 @@ If using a folder implementation, add a top-level file that re-exports from theexport {myEffect, type MyEffectParams} from './my-effect/index.js';```-## 4. Add tests+## 4. Build and verify-Update `packages/effects/src/test/effect-params.test.ts`:--- Import the new effect.-- Add it to the documentation link test.-- Test default params when all fields are optional.-- Test required params if any are required.-- Test invalid values and exact error substrings.-- Test that meaningful params produce distinct `effectKey` values.--Run:+Run the existing tests and build:```bashcd packages/effectsdiff --git a/.agents/skills/add-new-package/SKILL.md b/.agents/skills/add-new-package/SKILL.mdindex cce65be832..5e25980fa6 100644--- a/.agents/skills/add-new-package/SKILL.md+++ b/.agents/skills/add-new-package/SKILL.md@@ -1,6 +1,6 @@---name: add-new-package-description: Add a new package to the Remotion monorepo, including package scaffolding, monorepo registration, documentation, build scripts, tests, and release checklist updates. Use when creating a new @remotion package.+description: Add a new package to the Remotion monorepo, including package scaffolding, monorepo registration, documentation, build scripts, and release checklist updates. Use when creating a new @remotion package.---# Add a new Remotion packagediff --git a/.agents/skills/gh-stack/references/stack-design.md b/.agents/skills/gh-stack/references/stack-design.mdindex 1479b34fd3..5029e596df 100644--- a/.agents/skills/gh-stack/references/stack-design.md+++ b/.agents/skills/gh-stack/references/stack-design.md@@ -20,13 +20,12 @@ means `unstack` and `init` again.Decide the layers first, then write code into them:```-(main) <- todo-app/models <- todo-app/api <- todo-app/frontend <- todo-app/integration+(main) <- todo-app/models <- todo-app/api <- todo-app/frontend```- `todo-app/models` β shared types and schema- `todo-app/api` β routes that use the models- `todo-app/frontend` β components that call the routes-- `todo-app/integration` β tests exercising the whole featureThis is illustrative. Infer the stack topic and layer names from the actual task; do not reuse`todo-app` or these layer names literally.@@ -74,7 +73,7 @@ changes carry over to the new branch. Commit or stash first if you want the newAdd a branch when you start a **different concern that depends on what you have built so far**.Signals:-- Moving from backend to frontend, or from core logic to tests or documentation+- Moving from backend to frontend, or from core logic to documentation or explicitly requested tests- The next changes have a different reviewer audience- The current branch's diff is already large enough to review on its owndiff --git a/.agents/skills/nullable-new-params/SKILL.md b/.agents/skills/nullable-new-params/SKILL.mdindex 14f6894604..790d91b1b4 100644--- a/.agents/skills/nullable-new-params/SKILL.md+++ b/.agents/skills/nullable-new-params/SKILL.md@@ -64,7 +64,7 @@ const after = (frame: number | null) => {};5. Update implementation logic:- Replace truthy checks when `0`, `''`, or `false` are valid values.- Prefer `value !== null` over `value` for nullable numbers/strings/booleans.- - Keep tests and fixtures explicit; do not make large fixtures `Partial<T>` only to dodge the new field.+ - When the user explicitly requests test changes, keep tests and fixtures explicit; do not make large fixtures `Partial<T>` only to dodge the new field.6. For public candidates, preserve backwards compatibility:- Keep the new field optional in the public type.@@ -82,4 +82,4 @@ const after = (frame: number | null) => {};- Every internal caller passes either a real value or `null`.- Public APIs remain backwards-compatible.- Nullable checks do not treat valid falsy values as absent.-- Tests cover at least one explicit `null` path when behavior depends on absence.+- Verify an explicit `null` path with existing checks or manual verification when behavior depends on absence.diff --git a/.agents/skills/pr/SKILL.md b/.agents/skills/pr/SKILL.mdindex 0374adfb3a..6839b6431d 100644--- a/.agents/skills/pr/SKILL.md+++ b/.agents/skills/pr/SKILL.md@@ -6,6 +6,8 @@ description: Open a pull request for the current featureEnsure we are not on the main branch, make a branch if necessary.Check whether a PR already exists for the current branch with `gh pr status` or `gh pr view`. If one exists, update it with local changes.+Keep agent-authored test, fixture, and snapshot changes out of the PR unless the user explicitly requested test changes. Review the diff for this without removing pre-existing user changes.+If the changes add a Remotion Element, read the [Element contribution guide](../../../packages/docs/elements/contributing.mdx) before continuing.Run Oxfmt on the files or package directories affected by the current change. Pass their actual paths; do not assume that the repository root has a `src` directory. Include relevant root-level files, and do not format unrelated packages or the whole repository.diff --git a/.agents/skills/react-scan/SKILL.md b/.agents/skills/react-scan/SKILL.mdindex b298272baa..267e2a3988 100644--- a/.agents/skills/react-scan/SKILL.md+++ b/.agents/skills/react-scan/SKILL.md@@ -71,5 +71,5 @@ Require an improvement in the relevant commit/component metrics without aregression in behavior. Do not optimize every re-render: cheap necessary rendersare often preferable to added memoization complexity.-Report the measured before/after change and the focused tests used to protect+Report the measured before/after change and the checks performed to verifybehavior.diff --git a/.agents/skills/studio-config-option-lifecycle/SKILL.md b/.agents/skills/studio-config-option-lifecycle/SKILL.mdindex 709cc40edd..569019cfa4 100644--- a/.agents/skills/studio-config-option-lifecycle/SKILL.md+++ b/.agents/skills/studio-config-option-lifecycle/SKILL.md@@ -73,15 +73,15 @@ Ensure config reload resets the option before executing the changed file, so delPreserve transactional reload behavior: an invalid changed config must leave the previous valid configuration active.-## Test the lifecycle+## Verify the lifecycle-Add tests that prove the classification:+Use existing checks or a manual workflow to verify the classification:-- Reloadable: change the option after the initial read, cross the intended reload/request boundary, and assert the new value is observed.-- Startup-fixed: capture the initial value, change config state, and assert the initialized consumer still receives the original value.-- Cross-consumer: assert every Studio consumer receives the same startup snapshot when any one consumer requires it.-- Reset: omit a previously set option on reload and assert its default is restored.-- Nullable internal inputs: pass `null` explicitly in fixtures and call sites.+- Reloadable: change the option after the initial read, cross the intended reload/request boundary, and confirm the new value is observed.+- Startup-fixed: capture the initial value, change config state, and confirm the initialized consumer still receives the original value.+- Cross-consumer: confirm every Studio consumer receives the same startup snapshot when any one consumer requires it.+- Reset: omit a previously set option on reload and confirm its default is restored.+- Nullable internal inputs: verify call sites pass `null` explicitly when no value exists.Run focused builds and checks for the affected packages:diff --git a/.agents/skills/v5-breaking-changes/SKILL.md b/.agents/skills/v5-breaking-changes/SKILL.mdindex 3e2794f004..4944013b11 100644--- a/.agents/skills/v5-breaking-changes/SKILL.md+++ b/.agents/skills/v5-breaking-changes/SKILL.md@@ -67,9 +67,8 @@ Before finishing, check that:1. With the flag left as `false as const`, v4 runtime behavior and public types remain compatible.2. Changing only the central flag to `true as const` selects both the v5 runtime path and v5 public types.3. Runtime validation agrees with the conditional TypeScript API.-4. Focused tests cover both versioned outcomes where practical.-5. The migration guide includes the user-facing change.-6. Focused builds, tests, linting, and formatting pass for every affected package.+4. The migration guide includes the user-facing change.+5. Focused builds, existing tests, linting, and formatting pass for every affected package.Do not commit the flag flipped merely to test v5. Restore it to `false as const` on the shared v4/main line.diff --git a/.agents/skills/web-renderer-test/SKILL.md b/.agents/skills/web-renderer-test/SKILL.mdindex c493f445ba..92f08fadce 100644--- a/.agents/skills/web-renderer-test/SKILL.md+++ b/.agents/skills/web-renderer-test/SKILL.md@@ -1,8 +1,10 @@---name: web-renderer-test-description: Add a test case to the web renderer+description: Add or update web renderer tests when the user explicitly requests test changes.---+Use this skill only when the user explicitly requests web renderer test changes.+The web renderer is in `packages/web-renderer` and the test suite is in `packages/web-renderer/src/test`.It uses visual snapshot testing using vitest. A test file can for example be executed using:diff --git a/.agents/skills/writing-tests/SKILL.md b/.agents/skills/writing-tests/SKILL.mdindex 0c95eeb953..3414cf8c2a 100644--- a/.agents/skills/writing-tests/SKILL.md+++ b/.agents/skills/writing-tests/SKILL.md@@ -1,10 +1,12 @@---name: writing-tests-description: Rules for writing and reviewing tests in the Remotion repository. Use whenever adding, editing, or reviewing tests, especially for Studio UI, rendering, CLI, server, media, and cross-package changes, to prefer complete integration workflows over narrow helper tests and implementation details.+description: Guidance for explicitly requested test writing, editing, or review in the Remotion repository. Use only when the user asks for test work.---# Writing Tests+Apply this skill only when the user explicitly requests test work. Do not add or modify tests, fixtures, or snapshots as part of ordinary feature work, bug fixes, refactors, or PR preparation. A request to review tests does not authorize changing them.+The purpose of a test is confidence that a workflow or contract works for a Studio user, CLI user, package consumer, or renderer consumer.> Test the feature at the widest stable boundary that gives useful confidence. Prefer one complete integration workflow; use focused unit tests for genuinely complex logic and E2E tests for critical cross-process workflows.@@ -123,7 +125,7 @@ For a cross-layer feature, first add or identify the primary integration workfloDo not extract or export a trivial helper solely to make it testable. If the helper works but the feature entry point can stop calling it without failing the test, that test is not sufficient primary coverage.-It is acceptable to add no automated test when the only affordable test would assert implementation details and the regression risk is low. Report explicit manual verification rather than adding a misleading green test.+Even when tests are requested, avoid tests that only assert implementation details. Report the limitation and any manual verification performed.## Avoid these anti-patternsdiff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.mdindex 974a0b4330..97580439a3 100644--- a/.github/copilot-instructions.md+++ b/.github/copilot-instructions.md@@ -10,6 +10,12 @@ The **package name** for each folder is `@remotion/[folder-name]`, except for th- To build the project after you made changes, run `bunx turbo make --filter="[package-name]"` and only include the package you are working on. Refer to package naming convention above. For example, the command to build the package in `packages/shapes` is `bunx turbo make --filter="@remotion/shapes"`.- After making code changes, run `bunx prettier src --write` to format the code. Do not run the formatted on the docs.+## Test changes++Do not add or modify tests, test fixtures, or snapshots unless the user explicitly asks for test changes. Feature work, bug fixes, refactors, and PR preparation do not imply permission to write tests. Keep agent-authored test changes out of PRs unless explicitly requested, and preserve pre-existing user changes.++Running existing tests for validation is allowed.+## DocumentationAny new features or settings should be documented in the `packages/docs` folder.diff --git a/AGENTS.md b/AGENTS.mdindex 203cab3d8a..e4552422ba 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -26,6 +26,12 @@ The current Remotion version can be found in `packages/core/src/version.ts`. The- Keep things in one function unless they are composable or reusable.- Do not extract single-use helpers preemptively. Inline the logic at the call site unless the helper is reused, hides a genuinely complex boundary, or has a clear independent name that improves the caller.+## Test changes++Do not add or modify tests, test fixtures, or snapshots unless the user explicitly asks for test changes. Feature work, bug fixes, refactors, and PR preparation do not imply permission to write tests. Keep agent-authored test changes out of PRs unless explicitly requested, and preserve pre-existing user changes.++Running existing tests for validation is allowed.+## Internal API optionalityWhen adding or reviewing TypeScript parameters, React props, or type/interface members, make new internal inputs preferrably nullable (`T | null`), not optional (`?:`). Public exported APIs are exempt when requiring the input would be breaking.