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.
mdr add zrong/skills/matting@v26.36.56Pins 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
mdr add zrong/skills/matting@sha256:b0b6c769eac5d8abThe 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.
[](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.
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 (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
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.