video-bg-replace SKILL.md skillA
video-bg-replace from puntorigen/avatar-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add puntorigen/avatar-skills/video-bg-replace@git:20260709.ec45941Pins git:20260709.ec45941 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- puntorigen/avatar-skills
- Path
video-bg-replace/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260709.ec45941, committed Jul 9, 2026
- Size
- 7,439 bytes
- Repository stars
- 6
- License
- MIT
Replace the background of a talking-head clip by matting the speaker (Robust Video Matting on Replicate) and compositing them over a NEW background — a generated/animated B-roll clip, a provided video, or a still image. The speaker layer gets a temporally-stable alpha matte, then ffmpeg lays it over the new background (alpha-mask + original RGB, or green-screen + chromakey), with optional edge feather, grounding drop-shadow and a unifying color grade, while preserving the speaker's original…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Video BG Replace Put a talking-head speaker on a **new background**. The speaker is matted with **Robust Video Matting (RVM)** on Replicate — a recurrent net with temporal memory, so the matte stays stable frame-to-frame instead of flickering like per-image background removers — then composited over a new background video/image with ffmpeg. This is the compositing counterpart to `broll-generator`: that skill generates a silent animated background, this skill marries the matted speaker to it. ## The key idea Both "mask the speaker and drop them on a new bg" and "put an animated video behind the front video" reduce to the **same layer stack**: ``` [ new background video/image ] ← bottom layer [ matted speaker (with alpha) ] ← top layer ``` There's no way to see "behind" the front clip without transparency, so the speaker **must be matted**. Talking-head clips from `avatar-talking-video` / `p-video-avatar` / seedance are rendered full-frame with their own background, so matting is always required (you can't skip it by generating on green). ## Setup Shares the Replicate token with the other Replicate-based skills, so if any of them is configured it's found automatically. …
Read the whole file at its exact version.
How to install
mdr add puntorigen/avatar-skills/video-bg-replace@sha256:d81d9df953e0b7b1The line at the top of this page pins the label git:20260709.ec45941, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_jvmz5u5qc6q6lthn)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jul 9, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (7439 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
puntorigen/avatar-skills · 6 stars · license MIT · pushed 2026-09-15 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_jvmz5u5qc6q6lthn GET https://markdownregistry.com/api/v1/resolve?ref=puntorigen/avatar-skills/video-bg-replace GET https://markdownregistry.com/api/v1/blob/d81d9df953e0b7b13835f52643b99167503cffcac2895f879d3d606a927be40c
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.