/instagram-ai-plugin:instagram-video-remakefrom instagram-ai-plugin
This skill should be used when the user asks to "remake this reel with another person", "replace the woman/man in this video", "swap the person in a clip", "put me (or someone) in this video", "recreate this video with a different character", "extend / continue this shot", or wants a new video that keeps the performance, camera, scene and bystanders of an existing one while changing who appears. Runs MiniMax H3 character swap and shot continuation in a local ComfyUI, puts the result back over the original, joins the timeline and keeps the music continuous. Local and free, with no paid service, nothing published.
Ships in instagram-ai-plugin. 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; scripts run unread.
Remake a video the user is allowed to remake: replace ONE person with another (face, hair, body,
wardrobe), keep everything else, optionally continue a shot past its end, and deliver a finished
file with sound. Generation is MiniMax H3 in the user's own ComfyUI. Every step is a command of
scripts/main.ts and is recorded in remake.json (schema ig.remake.v1) inside the run folder.
npx -y bun scripts/main.ts --help # run from this skill's folder
This edits a real person's likeness. Refuse to proceed, and say why, unless both hold:
init
stores the statement (--consent). Do not invent it, and do not soften it into "it is public".Never: remove clothing or sexualise beyond what the source shows, depict a minor, put words in someone's mouth, or imitate a public figure to mislead. A faithful recast of an existing scene is in scope; anything in that list is not, whatever consent is claimed.
The result is realistic AI video of a real person. Tell the user to label it as AI-generated
wherever they publish it (Instagram has an "AI label" setting; the instagram skill sets it with
post reel --ai-label), and to check the platform's current rules themselves. This skill never
publishes.
Run doctor first. It checks ffmpeg/ffprobe, the ComfyUI server (loopback only), the node classes
and the seven model files (about 45 GB). When something is missing, read references/setup.md:
it lists every file, its source and licence, and the one node pack to install. Ask before
downloading; state size and source. The kept runs used a 32 GB GPU; less memory is untested.
Read references/workflow.md once before the first remake: it has the decision rules, the
measured timings and the failures behind each rule. In short:
instagram-video-breakdown skill (shots, who appears,
where). Decide per shot: keep as is, swap, or continue.init the run folder with the source, ONE identity photo and the consent statement.
Use the same photo for every shot; identity drifts when references change. init measures
the cuts of the source to the frame; scenes <run> lists the shots as frame ranges. Check them
against the breakdown (and fix them with scenes --set if a flash or a fast move was taken
for a cut): every stretch is planned on these, not on approximate times.references/prompts.md: the same character card in every shot,
plus that shot's framing, light and "keep the performance and everyone else".swap each shot where the person appears, as --scene <n> (cut to cut; add --start to
begin later, it still ends on the cut). One stretch per run, up to 10 s. A stretch that crosses
a cut, or stops or starts within 8 frames of one, is refused: those frames would show the
original person for an instant at the cut.
--tier 768, default detection.--point x,y on the person, in source-frame pixels.--crop w:h:x:y around them (9:16, about 2-3x their height),
--tier 480, --point, --expand 32. Only the crop is regenerated.--reverse. Tracking starts where the person is clear; the result is flipped back.
Each run prints the first frame the model sees. Look at it: the point must be on the person.place each shot: a cropped shot is blended back inside its own area (outside it the
picture is the original); a full-frame shot is fitted to the frame. The placed clip has exactly
as many frames as the stretch it replaces, repeating frames where the source repeats them; it
reports cadence (frames that stand still while the source moves). Then WATCH placed.mp4 in motion.approve what is good. Re-run swap with one thing changed for what is not (a new
attempt; nothing is overwritten). references/troubleshooting.md maps each defect to a change.continue when the user wants the shot to go on (the shot must be approved first):
describe the movement in order, in the same tempo words as the shot; the last 25 frames of the
shot are anchored automatically.assemble the timeline from stretches of the source and placed shots, in order. Never
close a gap between two shots with a few frames of the source: in a shot where the person is
replaced those frames show the original person, and assemble refuses them. Remake the shot
so it reaches the cut instead.audio --rights "<basis>": by default the source's own sound. If the remake is longer
than the source, the music must carry on, never loop: give a longer recording of the same track
(--file) and let --match find where the source's sound sits in it. --rights is always
required: ask the user on what basis the video may be published with that sound, and write
down their answer, not yours. "Review copy only, not for publication" is a valid answer.compare, then have the user watch final.mp4 with sound before anything is published.Show the user frames and the comparison video at every review point; do not describe them.
| Command | Does |
|---|---|
doctor | checks tools, server, nodes, models |
init <run> --source --identity --consent [--character] | creates the run folder |
scenes <run> [--set f1,f2] | the source's shots as exact frame ranges (cuts measured at init) |
swap <run> --shot (--scene n [--start] | --start --duration) [...] | regenerates one stretch with the person replaced |
continue <run> --shot --after --seconds --prompt | extends a shot |
place <run> --shot [--attempt] [--feather] | fits the generated clip to the source frame, keeping the source's rhythm |
approve <run> --shot | records that the placed shot was watched and accepted |
assemble <run> --segments "source:0-7.5,shot:far,..." | joins the timeline |
| `audio --rights [--file --match | --start]` |
audio-offset --clip --track | finds a clip's sound inside a longer recording |
compare <run> / status <run> | side-by-side video / what is done and what is next |
Generation takes minutes (about 45 s for a 2 s crop at 480, 4-5 min for 5 s at 768 on a 32 GB
GPU). If a command times out, the job keeps running: run the same command again with
--resume <prompt-id> (printed, and in status), or --resume last when no job id was ever
printed. Never submit the same shot twice to "retry".
One command at a time per run folder: a second one is refused while the first is working.
--recover) is only for shots with one person: it can jump to
someone else.--scene), not on breakdown times: those are off by a
frame or two, and one frame of the original person at a cut is visible.swap sends the model only the
distinct frames and place repeats them where the source did. Sending all of them let the
model's own 30->24 resampling drop real frames and keep repeats: the motion stalled two frames
in five. Keep that default (--all-frames turns it off) and read cadence after place.final.mp4.references/workflow.md — decision rules per shot type, timings, what was tried and rejected.references/prompts.md — character card, shot card, swap and continuation prompt structure.references/setup.md — models (files, sources, sizes, licences), the node pack, ComfyUI.references/troubleshooting.md — each visible defect or error and the one change to try.references/manifest.md — the ig.remake.v1 record and how to resume from it.assets/workflows/h3_swap.api.json — the character-swap graph (MIT, see its NOTICE).assets/workflows/NOTICE.md (opens in a new tab)assets/workflows/h3_swap.api.json (opens in a new tab)references/manifest.md (opens in a new tab)references/prompts.md (opens in a new tab)references/setup.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/workflow.md (opens in a new tab)scripts/audio.ts (opens in a new tab)scripts/cadence.ts (opens in a new tab)scripts/comfy.ts (opens in a new tab)scripts/ff.ts (opens in a new tab)scripts/graphs.ts (opens in a new tab)scripts/main.ts (opens in a new tab)scripts/manifest.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/instagramDrives the user's own Instagram account from the terminal through the same private endpoints instagram.com's web client uses, authenticated with the user's browser session cookies (no Graph API app, no Apify). Signs in via Chrome or imported cookies, reads profiles, posts, reels, comments, hashtags and search, computes account metrics, and publishes photos, carousels, reels and stories, edits captions and replies to comments (it never deletes), always as a dry run until the user approves. This skill should be used when the user says "post this to Instagram", "upload a reel", "publish a carousel", "log in to Instagram", "import my Instagram cookies", "post a story", "edit the caption on", "am I logged in to Instagram", "show my recent posts", "get stats for this post", "get this profile's posts", "reply to that comment", or mentions an instagram.com URL, even without saying "Instagram skill"./instagram-adsPlans and evaluates paid campaigns that run on Instagram (Meta Ads with Instagram feed, Stories and Reels placements). It picks which organic posts to promote using real performance pulled through the user's web session, writes ad copy and creative briefs, sets up Andromeda-era campaign structure, and makes kill, keep and scale decisions from numbers the user pastes. This skill should be used when the user asks to "run Instagram ads", "boost this post", "which post should I promote", "write Instagram ad copy", "set up a Meta campaign for Instagram", "is my Instagram ad working", "when should I kill this ad", "creative testing for Reels ads", or mentions ROAS, CPA, CPM or partnership ads on Instagram.npx claudepluginhub proyecto26/instagram-ai-plugin --plugin instagram-ai-plugin