# Replace in video

> Replace in video is an open-source agent skill for design and media. Swaps one on-camera element in a video while motion, camera and audio stay intact. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Runware/runware-skills/tree/main/skills/replace-in-video
- **Repository:** https://github.com/runware/runware-skills
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** replace-in-video
- **Collection:** https://github.com/Runware/runware-skills
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-03

## About

This skill replaces a single on-camera element in an existing clip, such as a character, a product, or a garment, using one to three reference images. The source video keeps its motion, timing, camera movement, lighting, background and audio, so only the named subject changes.

The workflow centers on a prompt that names what to replace and what to preserve, with the reference images defining how the new element should look. The skill walks the agent through checking the live model schema, uploading the source and references, and running the video job asynchronously before polling for the finished file. It also covers reviewing the result for identity or object fidelity and retrying with clearer references when details drift.

It expects a source video you have rights to, clean reference photos, and access to the Runware tooling it names, including the runware-run and runware-models skills. Output resolution, frame rate and whether source audio is kept or lip-synced are set as options. No scripts are bundled; the skill is instructions and reference examples.

## When your agent uses it

> Swap one on-camera element in an existing video while everything else stays put. Use when the user says "recast this character", "put a different actor in this clip", "swap the product she's holding", "change the shirt he's wearing", "change the car's color", "repaint the jacket", "drop my mascot into this scene", or "replace X but keep the rest". Keeps the original motion, timing, camera, lighting, and audio untouched. For a whole-frame restyle or relight, use edit-video instead.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Runware/runware-skills/tree/HEAD/skills/replace-in-video)
- [License: MIT](https://github.com/Runware/runware-skills/tree/HEAD/skills/replace-in-video)

## Features

- **Targeted element swap:** Replaces one named subject in a clip while leaving the rest of the frame as it was.
- **Reference-driven appearance:** Uses up to three reference images to define the look of the new character or object.
- **Prompt templates for preservation:** Provides a pattern for naming the element to replace and the elements to keep unchanged.
- **Async job workflow:** Describes submitting a video task, polling for completion, and retrieving the output URL.
- **Audio and resolution options:** Covers choices for keeping or stripping source audio, lip sync, resolution and frame rate.
- **Quality review guidance:** Lists failure modes such as camera-motion drift and small detail loss, with retry advice.

## Good for

- Recast the actor in an existing clip without reshooting it
- Swap the product a person is holding for a different item
- Change the color or style of a garment worn by someone in the video
- Drop a mascot or character into an existing scene
- Replace one car or object in footage while keeping the background

## Install

### Claude Code

This skill ships in the `skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Runware/runware-skills
/plugin install skills@runware
```

Or copy only this skill to `~/.claude/skills/replace-in-video`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Runware/runware-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/replace-in-video &&
cp -R "$tmp/skills/replace-in-video" ~/.claude/skills/replace-in-video &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/replace-in-video` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/replace-in-video` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Runware/runware-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/replace-in-video &&
cp -R "$tmp/skills/replace-in-video" ~/.agents/skills/replace-in-video &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/replace-in-video` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/replace-in-video` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Runware/runware-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/replace-in-video &&
cp -R "$tmp/skills/replace-in-video" ~/.cursor/skills/replace-in-video &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/replace-in-video` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Runware/runware-skills.git --path skills/replace-in-video
```

Or copy the folder to `~/.gemini/skills/replace-in-video` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/replace-in-video`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Runware/runware-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/replace-in-video &&
cp -R "$tmp/skills/replace-in-video" ~/.copilot/skills/replace-in-video &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/replace-in-video` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Runware/runware-skills.git
```

Then copy `runware-skills/skills/replace-in-video` into your agent's skills folder as `replace-in-video`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What inputs does Replace in video need?

A source video you have rights to, one to three reference images of the new element, and a description of what to replace and what to keep.

### Does Replace in video change the camera, lighting or audio?

It is designed to keep the source motion, timing, camera, lighting and audio untouched. Source audio is preserved by default and can be turned off.

### When should I use a different skill?

For a whole-frame restyle or relight, the skill points to edit-video instead.

### Which model does Replace in video use?

It names the Pruna P-Video-Replace model by default and tells the agent to confirm the model is live and check its input fields before calling it.

### How do I install Replace in video in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/replace-in-video to use it in all your projects, or to .claude/skills/replace-in-video in one project. Or install the skills plugin, which includes it: /plugin marketplace add Runware/runware-skills, then /plugin install skills@runware.

### Does Replace in video run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Replace in video?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Replace in video?

The closest alternatives to Replace in video are Edit video, Product ad video, Animate image, Multi shot video and Video.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Edit video](https://ai-powered.com/skills/edit-video): Edit video is an open-source agent skill for design and media.
- [Product ad video](https://ai-powered.com/skills/product-ad-video): Product ad video is an open-source agent skill for design and media.
- [Animate image](https://ai-powered.com/skills/animate-image): Animate image is an open-source agent skill for design and media.
- [Multi shot video](https://ai-powered.com/skills/multi-shot-video): Multi shot video is an open-source agent skill for design and media.
- [Video](https://ai-powered.com/skills/video): Video is an open-source agent skill for design and media.
- [Image to video shots](https://ai-powered.com/skills/image-to-video-shots): Image to video shots is an open-source agent skill for design and media.
- [Cinematic video](https://ai-powered.com/skills/cinematic-video): Cinematic video is an open-source agent skill for design and media.
- [Talking avatar](https://ai-powered.com/skills/talking-avatar): Talking avatar is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/replace-in-video
