matting SKILL.md skillA

matting from zrong/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add zrong/skills/matting@v26.36.56

Pins v26.36.56 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
zrong/skills
Path
matting/SKILL.md
Versions recorded
1
Latest version
v26.36.56, committed Sep 3, 2026
Size
5,188 bytes
Repository stars
13
License
none declared

通过独立 matting-api 为本地图片抠图、去背景并输出透明 PNG。每次先读取服务状态、队列、实时算法和模型能力,再检查输入图的 alpha、边框颜色、均匀度与亮度特征,自动选择可用的 BiRefNet、InSPyReNet、Luma 或 CorridorKey 组合;也支持显式算法/模型。用户提到抠图、去背景、透明底、绿幕/蓝幕、人物/产品/Logo/特效分离,或 image-generation 生成图需要透明化时都应使用。配置缺失或服务不可用时,由调用方明确回退到现有本地方法,不能伪装成 matting-api 成功。.

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

# Matting

通过严格、非交互的 CLI 调用独立 `matting-api`。算法名、模型名和运行状态以本次服务探测结果为准;不要把 Sorb 数据库配置、历史文档或模型名称猜测当作实时能力。

## 路径

- `{SKILL_DIR}`:本文件所在目录
- `{SCRIPTS_DIR}`:`{SKILL_DIR}/scripts`
- CLI 前缀:`uv run --project {SCRIPTS_DIR} matting`

## 必须遵守

1. 处理图片前先查看原图,确认主体、背景、半透明边缘和用户要求。
2. 每次推荐或执行前都调用实时状态与能力端点;只从返回的算法和模型交集中选择。
3. 自动推荐是技术启发式:它能判断已有 alpha、纯色边框、绿/蓝幕和亮度型素材,不能仅凭统计可靠识别人像、发丝、玻璃或烟雾。语义证据更强时可显式覆盖算法,但仍要通过能力校验。
4. 配置缺失、无效、服务不可达或能力为空时明确报告不可用。不得声称已使用 matting-api;由上层流程决定是否回退。
5. 服务已经通过探测后,任务提交、轮询或下载失败必须如实失败,不能静默换算法或换成本地处理。
6. 输出只写 `.png`,默认拒绝覆盖;用户明确要求覆盖时才使用 `--force`。
7. 不输出认证 header、API key 或环境变量值。

## 工作流

### 1. 检查配置与实时状态

```bash
uv run --project {SCRIPTS_DIR} matting status
uv run --project {SCRIPTS_DIR} matting algorithms
```

`status` 同时请求 `/api/status` 与 `/api/capabilities`。`algorithms` 会列出服务本次广告的 method/model,以及 CLI 能证明兼容的组合。若服务只返回独立列表而没有 model-method 映射,CLI 只对已知协议或配置中显式声明的组合做自动选择。

配置查找顺序为:当前工作目录、skill 目录、当前 Git 项目根目录、`~/.agents/agent_config.toml`。也可用 `--config PATH` 或 `MATTING_CONFIG` 显式指定;显式路径不存在时停止。配置字段见 [references/configuration.md](references/configuration.md)。

### 2. 检查图片并获取推荐

```bash
uv run --project {SCRIPTS_DIR} matting inspect --input ./source.png
```
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add zrong/skills/matting@sha256:b0b6c769eac5d8ab

The line at the top of this page pins the label v26.36.56, 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_vzdlsjwwq22vo565.svg)](https://markdownregistry.com/a/art_vzdlsjwwq22vo565)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Sep 3, 2026.

versioncommittedcommitsizeaudit
v26.36.56 latest2026-09-03 bc5b503 5,188 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 (5188 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

zrong/skills · 13 stars · license none declared · pushed 2026-10-29 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_vzdlsjwwq22vo565
GET https://markdownregistry.com/api/v1/resolve?ref=zrong/skills/matting
GET https://markdownregistry.com/api/v1/blob/b0b6c769eac5d8abd65e005634aa15b08f22155500d25c6b5834c3963a62f803

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 zrong/skills

AGENTS.md AGENTS.md file
zrong/skills · AGENTS.md
git:20261029.0fd22c3 · audit A · 13 stars
CLAUDE.md CLAUDE.md file
zrong/skills · CLAUDE.md
git:20260501.79b5b28 · audit B · 13 stars
dns-manager SKILL.md skill
zrong/skills · dns-manager/SKILL.md · DNS 解析记录管理工具。用于查询、新增、修改、删除域名解析记录(A / CNAME / TXT / MX / AAAA 等), 当前支持腾讯云 DNSPod,操作幂等(重复执行不产生重复记录)。当用户提到…
git:20260915.05c706e · audit A · 13 stars
email SKILL.md skill
zrong/skills · email/SKILL.md · 邮件处理工具(基于 IMAP)。搜索、读取、下载附件、移动邮件。 触发场景: - 用户需要查看、搜索、管理邮件 - 用户需要下载邮件附件 - 用户需要移动、归档邮件 - 用户提到"邮件"、"邮箱"、"收件箱"、"附件"
git:20260401.b7b7462 · audit A · 13 stars
feishu-image SKILL.md skill
zrong/skills · feishu-image/SKILL.md · Send images and screenshots via Feishu (Lark) messaging platform. Use when the user asks to send screenshots, images…
git:20260305.abac67b · audit A · 13 stars
filebrowser SKILL.md skill
zrong/skills · filebrowser/SKILL.md · FileBrowser Quantum 一体化 CLI。包含两类操作: 1) 文件管理:浏览(info/list-dir)、读写(update)、创建目录(mkdir)、删除(delete)、 移动/重命名/复制(move)、搜索(sear…
git:20261011.2d26329 · audit A · 13 stars
git-commit SKILL.md skill
zrong/skills · git-commit/SKILL.md · 在 CalVer 仓库中执行用户明确要求的提交、打标签、推送或提交历史整理。普通开发和准备 PR 不自动触发提交或历史改写。
git:20260915.ddfa54c · audit A · 13 stars
image-generation SKILL.md skill
zrong/skills · image-generation/SKILL.md · AI 图片生成、编辑与透明背景后处理。使用统一 CLI 调用 OpenAI Images(含 gpt-image-2 原生透明背景)、Google Gemini 原生图片 API、火山方舟 Seedream 及…
v26.37.59 · audit A · 13 stars
immich SKILL.md skill
zrong/skills · immich/SKILL.md · 将本地图像和视频上传到 Immich 服务器,并管理服务器端资产:批量上传、相簿(Album)批量创建/校验/共享、文件夹浏览、外部图库重扫、批量视觉打标(tag 管理)。网络资源下载由 video-downloader…
git:20261011.3944ea3 · audit A · 13 stars
jellyfin SKILL.md skill
zrong/skills · jellyfin/SKILL.md · Jellyfin 媒体库命名与服务器维护工具。当用户需要按照 Jellyfin 命名规范重命名电影/剧集文件夹和文件(rename-folder)、处理多部电影共用一个目录的平铺目录批量重命名(rename-flat,如 TopNNN…
git:20261011.3944ea3 · audit A · 13 stars
joplin SKILL.md skill
zrong/skills · joplin/SKILL.md · 完整的 Joplin REST API 客户端,支持笔记(Notes)、笔记本(Folders)、标签(Tags)、资源/附件(Resources)的 CRUD 操作,以及搜索、修订版本和事件流。
git:20261011.da39543 · audit A · 13 stars
mcp-deploy SKILL.md skill
zrong/skills · mcp-deploy/SKILL.md · MCP 服务器自动部署工具。当用户说"部署 MCP"、"安装 MCP"、"配置 MCP"时使用。支持智谱 MCP、Minimax MCP、Gitea MCP 等平台的自动配置。
git:20260303.10320d4 · audit C · 13 stars

Every file in zrong/skills

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