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.
curl -O https://raw.githubusercontent.com/wolfenazz/YzPzCode/main/.agents/skills/object-separation/SKILL.mdgit clone --depth 1 https://github.com/wolfenazz/YzPzCodeWrote 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.
[](https://agentmods.dev/skills/wolfenazz/yzpzcode/object-separation)<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.
<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>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.
| Model | Per session | Once 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 |
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", 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
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.
- 1mo ago First seen · 169 lines · 78 tokens per session scan A cf176a155dd3
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.
object-separation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| object-separationwolfenazz/YzPzCode | Skill | 20 | yesterday | Apache-2.0 | A | 78 | Claude Code, Codex |
| tokf-filtermpecan/tokf | Skill | 200 | 2d ago | MIT | A | 59 | Claude Code, Codex |
| antv-x6-editorantvis/chart-visualization-skills | Skill | 529 | 1mo ago | MIT | A | 253 | Claude Code, Codex |
| gpt-visantvis/chart-visualization-skills | Skill | 529 | 1mo ago | MIT | A | 63 | Claude Code, Codex |
| antv-infographicantvis/chart-visualization-skills | Skill | 529 | 1mo ago | MIT | A | 24 | Claude Code, Codex |
| a-share-swing-sniperhuangrichao2020/pretty-skills | Skill | 55 | 1mo ago | MIT | A | 278 | Claude Code, Codex |
| ai-image-to-pptxhuangrichao2020/pretty-skills | Skill | 55 | 1mo ago | MIT | A | 93 | Claude Code, Codex |