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.

Install it, pinned
mdr add puntorigen/avatar-skills/video-bg-replace@git:20260709.ec45941

Pins 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

The exact contents, by fingerprint
mdr add puntorigen/avatar-skills/video-bg-replace@sha256:d81d9df953e0b7b1

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_jvmz5u5qc6q6lthn.svg)](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.

versioncommittedcommitsizeaudit
git:20260709.ec45941 latest2026-07-09 ec45941 7,439 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from puntorigen/avatar-skills

asset-generator SKILL.md skill
puntorigen/avatar-skills · asset-generator/SKILL.md · Generate image assets for web and mobile apps using Google Gemini 3 Pro Image (Nano Banana Pro). Supports style presets…
git:20260709.17df43e · audit A · 6 stars
audio-theater SKILL.md skill
puntorigen/avatar-skills · audio-theater/SKILL.md · Turn a dialogue, a story with dialogue, or a one-line idea into multi-character audio using Gemini TTS, with word-level…
git:20260709.b73fd75 · audit A · 6 stars
avatar-ambient-sfx SKILL.md skill
puntorigen/avatar-skills · avatar-ambient-sfx/SKILL.md · Add a spatial ambient SFX layer to a finished avatar reel and deliver it as final-espacial.mp4, without overwriting…
git:20260709.ec45941 · audit A · 6 stars
avatar-camera-angles SKILL.md skill
puntorigen/avatar-skills · avatar-camera-angles/SKILL.md · Generate realistic camera-angle variations of a talking-head avatar from a single reference frame, reusing the…
git:20260717.a87eb1b · audit A · 6 stars
avatar-frames SKILL.md skill
puntorigen/avatar-skills · avatar-frames/SKILL.md · Extract ready avatar reference frames from talking-head videos — single face, face-region sharpness, no burned-in…
git:20260709.ec45941 · audit A · 6 stars
avatar-invent SKILL.md skill
puntorigen/avatar-skills · avatar-invent/SKILL.md · Invent a brand-new FICTIONAL avatar from a text description — no real person, photo or recording needed. Generates a…
git:20260709.ec45941 · audit A · 6 stars
avatar-location SKILL.md skill
puntorigen/avatar-skills · avatar-location/SKILL.md · Create a new LOCATION (a look) for an existing avatar — keep its IDENTITY (face, gestures, cloned voice…
git:20260709.0a5f9c8 · audit A · 6 stars
avatar-reel-composer SKILL.md skill
puntorigen/avatar-skills · avatar-reel-composer/SKILL.md · Turn a script + an existing avatar into a finished reel — 9:16 vertical (TikTok/Reels) or 16:9 landscape (YouTube), set…
git:20260717.a87eb1b · audit A · 6 stars
avatar-talking-video SKILL.md skill
puntorigen/avatar-skills · avatar-talking-video/SKILL.md · Generate a talking-head avatar video from a line of text. Stage 1 synthesizes the text in the avatar's cloned voice via…
git:20260709.ec45941 · audit A · 6 stars
bg-music-hq SKILL.md skill
puntorigen/avatar-skills · bg-music-hq/SKILL.md · Generate high-quality background music and jingles using MiniMax Music 2.5 on Replicate. Supports structure tags…
git:20260709.ec45941 · audit A · 6 stars
bg-music SKILL.md skill
puntorigen/avatar-skills · bg-music/SKILL.md · Generate background music tracks for social media posts, presentations, reels, and app content using ElevenLabs Music…
git:20260709.17df43e · audit A · 6 stars
brand-content-strategy SKILL.md skill
puntorigen/avatar-skills · brand-content-strategy/SKILL.md · Turn a website or personal brand into a research-backed content + channel strategy. Profiles the site's…
git:20260709.ec45941 · audit A · 6 stars

Every file in puntorigen/avatar-skills

Browse by kind, by grade A, or by owner.