Skip to content
Back to skills

Mage Video Character Swap

ASecurity

Replace the whole person in a video with a different character using Mage: face, hair, body, and the complete outfit change in every frame while the original motion, expressions, camera, and background stay. The Video Character Swap app as a skill, on Cherry 2 Pro by default. Use when: "video character swap", "replace the person in this video with my character", "put my character into this footage", "swap the actor in this clip", "same dance, different person", "make this video star @handle"....

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 19, 2026
ai-agentsexpressapi

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add mage-space/skills --skill mage-video-character-swap --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mage Video Character Swap?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mage Video Character Swap
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mage-space-mage-video-character-swap/badge)](https://www.skillsdirectory.com/skills/mage-space-mage-video-character-swap)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mage-video-character-swap
description: |
  Replace the whole person in a video with a different character using Mage:
  face, hair, body, and the complete outfit change in every frame while the
  original motion, expressions, camera, and background stay. The Video
  Character Swap app as a skill, on Cherry 2 Pro by default. Use when: "video
  character swap", "replace the person in this video with my character", "put
  my character into this footage", "swap the actor in this clip", "same dance,
  different person", "make this video star @handle". NOT for: changing only
  the face (mage-video-face-swap), character swaps in a still image
  (mage-character-swap), other video edits (mage-video-editor), new video of a
  character from scratch (mage-generate), or using a real person's likeness
  without their consent.
license: MIT
compatibility: Requires the Mage connector (https://mcp.mage.space/mcp) and a Mage account with Gems.
metadata:
  author: mage-space
  version: "0.0.0" # x-release-please-version
---

# Mage Video Character Swap

Replace the entire person in a video with another character, body and styling included, keeping the motion, camera, and background. This is the [Video Character Swap app](https://www.mage.space/apps/video-character-swap) as a skill: the same prompt and models, run through the Mage connector.

## Before you start

1. **Mage tools:** `get_model`, `estimate_cost`, `generate`, `get_request`, `list_characters`, and `create_upload` for local files. If they are missing, ask the user to connect Mage (Claude: Customize → Connectors → Add custom connector, `https://mcp.mage.space/mcp`; Claude Code: `/mcp` to sign in if the Mage plugin is installed, otherwise `claude mcp add --transport http mage https://mcp.mage.space/mcp`; others: https://www.mage.space/mcp), then wait.
2. **Inputs are links:** https URLs of the files themselves, data URLs under about 3 MB, uploads from disk (`create_upload`, when you can run commands), or earlier Mage results. Files attached to the chat never reach Mage: ask for a direct link. A page that plays a video (YouTube, Instagram, a Drive preview) is not a file.
3. **The clip's length matters.** Each model accepts a range of clip lengths, and the price depends on the clip's length. Measure it when you can run commands (`ffprobe -v error -show_entries format=duration -of csv=p=0 clip.mp4`); otherwise ask the user how long it is. `estimate_cost` measures a clip that is a `create_upload` URL or an earlier Mage result, and answers `requires_media_measurement` for a clip on another host: upload it with `create_upload` to price it.
4. **Consent.** Harmful deepfakes are forbidden on Mage. Only use a real person's face, body, or voice with that person's permission, and never to deceive, harass, or sexualize. When the user hasn't said whose likeness it is, state this rule in one line with the price instead of questioning them; if they say they lack permission, stop. The user also needs permission for the footage itself.

## UX rules

1. Don't ask for what the request already gives. Ask for everything that is missing in one compact question, then wait.
2. Send the app's prompt below word for word. Fill in only the marked slots; don't rewrite, translate, or add to it.
3. Always quote the model and the price in Gems and wait for a yes before generating.
4. Deliver the link with a one-line label (model, size or length, Gems spent). No prompts, ids, or JSON. Reply in the user's language. Links last 30 days.

## Inputs

Both are required. Ask for whichever is missing.

1. **The video:** one clip, MP4, MOV, or WebM, with the person clearly visible. 4–30 seconds on the default model; other models differ (`references/models.md`).
2. **The character to swap in:** an image showing the character's face, body, and outfit; a full-body image works best. Either an image link, or a saved character by `@handle` (`list_characters` shows them; build one with `mage-character-builder` or save one with `mage-characters`).

## Prompt

The app's swap prompt:

```
Replace the entire person in the video with the character from the reference image.

Modify the whole figure (face, hair, skin, body shape, proportions, and the complete outfit including clothing, footwear, and accessories) to match the character in the reference image in every frame, while preserving the original pose, motion, facial expressions, lip movements, camera angle, framing, and composition of the video.

Carry over the character's full appearance from the reference image — hairstyle, hair color, skin tone, build, and the outfit's garments, colors, and materials — throughout the video.

Match the lighting direction, shadows, motion blur, and color grading of the video so the swapped character blends naturally into the scene in every frame.

Seamlessly blend the replaced character into each frame. Keep the background, other subjects, and all remaining visual content identical to the source video.
```

On a Cherry model, which is the default, the app puts that whole prompt inside this wrapper, in the slot. Send it the same way:

```
Use the provided reference video as the source of truth. Recreate its visual content as closely and faithfully as possible from beginning to end.

Preserve the shot sequence, timing, camera angle, camera movement, framing, composition, subject identity, poses, actions, body movement, facial expressions, environment, background, lighting, color grading, and visual style of the reference video.

Apply only the following requested change:
<the change>

Make the minimum changes necessary to fulfill the request. Everything not explicitly mentioned in the requested change must remain consistent with the reference video. Do not restage the scene, reinterpret the action, alter the camera or motion, add or remove unrelated subjects or objects, or introduce unrelated visual changes unless the request explicitly requires it.
```

- **Image reference:** send the wrapped prompt, with the image in `image`.
- **Saved character:** don't send `image`. Add one line after the whole wrapped prompt, separated by a blank line, so Mage attaches the character: `Reference: @handle`. The prompt still says "the reference image"; the character's image is that reference, as in the app.
- **Models outside the Cherry line** get the swap prompt alone, without the wrapper.

## Settings

- Model: Cherry 2 Pro (`cherry`, `model_id: "cherry-2-pro"`), Mage's default for video. When the user asks for another model, use it.
- `resolution`: `480p`, the cheapest. Offer `720p` or `1080p` with the price when the user wants a final.
- Leave `duration` and `aspect_ratio` out: on Cherry 2 Pro the output follows the clip's length and shape.
- `use_character_voices: false`.
- The clip must be 4 to 30 seconds long. For a shorter clip, say so and offer Lemon, which takes 1 to 15 seconds.

Other models the app offers (Lemon, the other Cherry models, Plum, Plum Max), with their clip limits, fields, and settings: `references/models.md`. Read it before using any model but Cherry 2 Pro.

## Run

```json
{
  "model_id": "cherry-2-pro",
  "resolution": "480p",
  "videos": [
    "<the clip>"
  ],
  "image": "<the reference image>",
  "use_character_voices": false,
  "prompt": "<the wrapped prompt>"
}
```

1. `get_model` for the architecture, once per conversation, to confirm its fields, options, and rules.
2. `estimate_cost` with the exact config. Tell the user the model, resolution, length, and price in Gems, and **wait for a yes**. Video is expensive and the price climbs with resolution and length.
3. `generate` with a new UUID as `idempotency_key`, then `get_request` with `wait_seconds: 120`, repeated quietly until the status is `completed`, `failed`, or `cancelled`. Video takes minutes.

`duration` and `resolution` are strings, written exactly as `get_model` lists them (`"4"`, `"480p"`, and on Plum `"768P"`).

## Check and deliver

Deliver the link with the model, resolution, length, and Gems. Tell the user to watch the whole clip at full size. The swap follows the motion in the source, so it works best when the original person is clearly visible throughout. If only the face should change, use `mage-video-face-swap`.

## Errors

| Code | What to do |
|---|---|
| `insufficient_gems` | Give the price and the balance; Gems are added at https://www.mage.space/api?tab=billing. |
| `invalid_config` | The message names the field, value, or `@handle`. Fix it from `get_model` and retry with a new key. |
| `content_blocked` | Mage's policy or the model's filter refused it. Never try to slip past a filter. |
| `too_many_requests` | 20 generations are already running. Wait, then submit again. |
| `generation_failed` | Usually transient and refunded. Retry once with a new key. |
| `requires_media_measurement` | The clip is on a host `estimate_cost` can't measure. Upload it with `create_upload` and price again. |

## References

- `references/models.md`: every model the app offers for this, with clip limits, fields, settings, the Cherry wrapper prompt, and audio.

Files in this skill

  • SKILL.md8.9 KB
  • references/models.md5.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.