/mage:mage-video-face-swapfrom mage
Swaps a face and hair into a video while preserving original pose, motion, expressions, lip movements, clothing, and background. Uses Mage's Video Face Swap app via the Mage connector.
Ships in mage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Replace the face and hair of the person in a video with another identity, keeping the performance: pose, motion, expressions, and lip movements. This is the Video Face Swap app as a skill: the same prompt and models, run through the Mage connector.
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.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.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.Both are required. Ask for whichever is missing.
references/models.md).@handle (list_characters shows them; build one with mage-character-builder or save one with mage-characters).The app's swap prompt:
Replace the face and hair of the person in the video with the identity from the reference image.
Modify the entire head region (face, skin, ears, hair, hairstyle, hair color, and visible neck) to match the subject 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.
Replace the hairstyle completely — use the hair length, texture, color, and styling from the reference image throughout the video.
Keep skin tone, texture, and color fully harmonized across the entire head and neck so the swapped face blends naturally with the body in every frame. Match the lighting direction, shadows, motion blur, and color grading of the video.
Seamlessly blend edges between the replaced area and the rest of each frame. Keep the background, clothing, 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.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.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.duration and aspect_ratio out: on Cherry 2 Pro the output follows the clip's length and shape.use_character_voices: false.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.
{
"model_id": "cherry-2-pro",
"resolution": "480p",
"videos": [
"<the clip>"
],
"image": "<the reference image>",
"use_character_voices": false,
"prompt": "<the wrapped prompt>"
}
get_model for the architecture, once per conversation, to confirm its fields, options, and rules.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.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").
Deliver the link with the model, resolution, length, and Gems. Tell the user to watch the whole clip: a swap that looks right in one frame can break during fast motion, profile turns, or when something passes in front of the face. Shorter clips with a steady subject hold up best. If the head shape or the outfit also needs to change, use mage-video-character-swap.
| 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/models.md: every model the app offers for this, with clip limits, fields, settings, the Cherry wrapper prompt, and audio.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub mage-space/skills --plugin mage30 skills in this plugin
/mage-ad-localizerLocalize static ads into other languages and markets with Mage: translate
every line of on-image text naturally (not word for word), keep the offer,
brand voice, product, logo, fonts, and layout, and adjust line breaks,
number and currency formats, and right-to-left layouts so each version
reads as native. Uses GPT Image 2.5 Flare for precise text replacement.
Use when: "translate this ad", "localize this ad", "Spanish and German
versions", "adapt this ad for Japan", "make this ad in French", "ad in
Arabic", "international versions of my ad", "market-specific ad copy".
NOT for: new creative variations (use mage-ad-multiplier), resizing for
placements (mage-ad-resizer), translating video voiceovers, or documents
and websites.
/mage-ad-multiplierTurn one ad into many independent variations with Mage: new talent,
wardrobe, setting, background, color story, or headline, while the product,
brand, layout, and every untouched element stay exactly as they were.
Works on static image ads (Mango 4, GPT Image 2.5 Flare for headline
changes) and on video ads (Cherry 2 Pro edits that keep motion, framing,
cuts, timing, and audio). Use when: "make variations of this ad",
"multiply this ad", "ad variants", "creative testing", "A/B test
versions", "new talent / new model in this ad", "change the setting",
"10 headline variants", "refresh this creative", "same ad with different
people". NOT for: resizing an ad for placements (use mage-ad-resizer),
translating an ad (mage-ad-localizer), creating a first ad from a product
photo (mage-product-photoshoot ad_creative_pack), or UGC videos from
scratch (mage-ugc-video).
/mage-ad-resizerAdapt a static ad to every placement with Mage: square feed, portrait feed,
Stories and Reels, landscape video and display, wide banners, and
Pinterest. Recomposes the layout for each aspect ratio instead of cropping,
extends the background, keeps every word, the product, and the logo, and
respects each platform's safe zones. GPT Image 2.5 Flare for ads with
text, Mango 4 for image-only ads. Use when: "resize this ad", "make this
ad 9:16", "adapt for Stories", "all ad sizes", "placements", "1:1 4:5
9:16", "make a banner version", "reformat for TikTok / Meta / Pinterest /
YouTube / Google Display". NOT for: new creative variations (use
mage-ad-multiplier), translations (mage-ad-localizer), video ads, or
cropping a photo without an ad layout (mage-generate).
/mage-anglesSee an existing image from a new camera angle with Mage: the same subject,
pose, light, and scene, shot by a second camera at a chosen height and side.
The Angles app as a skill, on Mango 4 by default. Use when: "new camera
angle", "show this from the side", "view from above", "low-angle shot of
this image", "back view of this", "three-quarter view", "turn the camera
around it", "more angles of this product", "coverage of this scene for a
storyboard". NOT for: a full turnaround sheet of a character
(mage-character-sheet), relighting (mage-relight), product photography from
scratch (mage-product-photoshoot), or camera moves in a video
(mage-generate).
/mage-character-builderDesign a new AI character from a list of traits with Mage and save it for
reuse: gender, ethnicity, hair, skin, body, eyes, face, features, age, and
clothing become a full-body portrait, then a character with an @handle. The
Character Builder: Attributes app as a skill, on Mango 4 by default. Use when:
"build a character", "create a character from scratch", "character creator",
"design a person: red hair, green eyes, freckles", "make me an AI
influencer", "I need a model with these traits", "generate a character I can
reuse". NOT for: saving an existing photo as a character (mage-characters),
exploring a look from a starter image (mage-character-muse), a turnaround
sheet (mage-character-sheet), or recreating a real person.
/mage-character-consistencyKeep one character the same across a series of images and video shots with
Mage, including profiles, back views, and full turns. Locks the details that
must not change (sides included), makes a full-body master and a
front-side-back sheet on Mango 4, and for video a 360° turntable on Lemon
that rides along as a reference video; then shoots each scene on the right
route, checks every result against the references, and fixes drift by its
cause. Use when: "same character in every shot", "my character keeps
changing", "character drift", "the face changes in my videos", "the back of
her head is different every time", "the tattoo switches sides", "360
turntable of my character", "turnaround video", "a series with the same
character". NOT for: saving a portrait as an @handle (use mage-characters),
a sheet image alone (mage-character-sheet), scripted dramas
(mage-short-drama), product UGC ads (mage-ugc-video), or real people
without their consent.