YzPzCode: Skill for Claude Code

.agents/skills/object-separation/SKILL.md

object-separation is a skill for Claude Code, Codex from wolfenazz/YzPzCode. It costs 78 tokens per session (2,654 once invoked), scanned A, original, Apache-2.0.

A computer-vision workflow for separating a person, product, or other subject from a video's background using SAM 2. It runs on the user's computer and saves a highlighted video plus a mask for each frame.

In plain words
What is it for?
Use it to cut out a subject from video, inspect the separation in a green preview, and save the frame-by-frame masks.
Why use it?
It removes the need to isolate the subject manually frame by frame and keeps the video on the user's own machine.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is wolfenazz/YzPzCode's own configuration. It tells Claude Code and Codex how to work on YzPzCode itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything YzPzCode configures →

Reuse

Borrowing it

Nothing to install: this file belongs to wolfenazz/YzPzCode. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/wolfenazz/YzPzCode/main/.agents/skills/object-separation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/wolfenazz/YzPzCode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for object-separation

README.md
[![agentmods](https://agentmods.dev/badge/skills/wolfenazz/yzpzcode/object-separation/github.svg)](https://agentmods.dev/skills/wolfenazz/yzpzcode/object-separation)
Your own site
<a href="https://agentmods.dev/skills/wolfenazz/yzpzcode/object-separation"><img src="https://agentmods.dev/badge/skills/wolfenazz/yzpzcode/object-separation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for object-separation

Your own site · 80×15
<a href="https://agentmods.dev/skills/wolfenazz/yzpzcode/object-separation"><img src="https://agentmods.dev/badge/skills/wolfenazz/yzpzcode/object-separation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,654 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.02654
Opus 5.5 $0.00031 $0.01062
Sonnet 5.5 $0.00016 $0.00531
Haiku 4.5 $0.00008 $0.00265

Measured 1mo ago against content hash cf176a155dd3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

object-separation scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

ff = subprocess.Popen(["ffmpeg", "-v", "error", "-y", "-f", "rawvideo", "-pix_fmt", "bgr24",
.agents/skills/object-separation/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Object separation

Separate one subject from the background in a video. Everything runs on the user's computer and nothing is uploaded. The result is the same video with the subject highlighted in green, so the user can see exactly what was separated, plus a mask for every frame saved to disk.

You write and run the Python as you go. The code blocks below are tested; adapt them rather than starting from scratch.

1. Set up in a folder that can be deleted

Needs python 3.10+ and ffmpeg. Install everything into a virtual environment in the project folder, so removing that one folder removes it all:

python3 -m venv .object-separation
.object-separation/bin/pip install torch transformers opencv-python-headless pillow numpy

On Windows use .object-separation\Scripts\pip. With an NVIDIA card on Windows, install the CUDA build of torch from pytorch.org first, because plain pip gives the slower CPU build. Run all the Python below with the venv's python.

2. Scan the computer and pick the model

Run the scan first and tell the user what it found: the device, the model it picked, the download size, and what speed to expect.

Machine Model Download
NVIDIA GPU with 12 GB+ facebook/sam2.1-hiera-large 898 MB
NVIDIA GPU under 12 GB, or Apple Silicon facebook/sam2.1-hiera-base-plus 323 MB
No GPU (CPU only) facebook/sam2.1-hiera-tiny 156 MB

On a CPU it works but it is slow: about 5 seconds per frame, so a 10 second clip at 30 fps takes around half an hour. It uses under 2 GB of RAM. A GPU is much faster. If the clip is long and there is no GPU, suggest separating only the part the user needs.

# Set these from the user's request. Frame numbers start at 0; the video must be constant frame rate.
VIDEO = "clip.mp4"
START, END = 0, 89              # frames to separate. Click points are picked on the START frame.
PTS = [[480, 270], [100, 60]]   # click points in 960-wide pixels: on the subject first, then on things to leave out
LBL = [1, 0]                    # 1 = this is the subject, 0 = this is NOT the subject

Read the full file on GitHub · 169 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 169 lines · 78 tokens per session scan A cf176a155dd3

Subscribe to this mod's changes

object-separation is a skill published in the GitHub repository wolfenazz/YzPzCode (20 stars, last pushed yesterday), licensed Apache-2.0. It adds 78 tokens to every session and 2,654 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-07.

Related

object-separation compared with skills from other repositories

object-separation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
object-separationwolfenazz/YzPzCodeSkill20yesterdayApache-2.0A78Claude Code, Codex
tokf-filtermpecan/tokfSkill2002d agoMITA59Claude Code, Codex
antv-x6-editorantvis/chart-visualization-skillsSkill5291mo agoMITA253Claude Code, Codex
gpt-visantvis/chart-visualization-skillsSkill5291mo agoMITA63Claude Code, Codex
antv-infographicantvis/chart-visualization-skillsSkill5291mo agoMITA24Claude Code, Codex
a-share-swing-sniperhuangrichao2020/pretty-skillsSkill551mo agoMITA278Claude Code, Codex
ai-image-to-pptxhuangrichao2020/pretty-skillsSkill551mo agoMITA93Claude Code, Codex