ui-extractor SKILL.md skillA

ui-extractor 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/ui-extractor@git:20260616.798a4ec

Pins git:20260616.798a4ec in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
zrong/skills
Path
ui-extractor/SKILL.md
Versions recorded
1
Latest version
git:20260616.798a4ec, committed Jun 16, 2026
Size
4,064 bytes
Repository stars
13
License
none declared

从静态图片中提取前景元素并分离 UI 组件,支持棋盘格背景去除、绿幕/蓝幕/白幕/黑幕关键色抠图、透视校正。当用户说"提取 UI 元素"、"分离组件"、"去除背景"、"棋盘格背景"、"绿幕抠图"、"checkerboard 抠图"、"抠图"时使用。.

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

# UI Extractor

从静态图片中自动识别背景类型(棋盘格 / 关键色),去除背景,分离独立的 UI 组件,输出透明 PNG。

## 触发场景

- 需要从带棋盘格背景的 UI 设计图中提取组件
- 需要从绿幕/蓝幕/白幕/黑幕拍摄图中抠出主体
- 需要将 UI 套件拆分为独立的组件图片
- 需要校正倾斜拍摄的棋盘格图片

## 工作流程

1. **确认图片路径**:用户提供带背景的图片路径。
2. **确认需求**:背景类型(auto/chroma/checkerboard)、是否分离元素、是否做透视校正。如果 `$ARGUMENTS` 非空,解析其中的参数。
3. **执行处理**:

```bash
cd scripts && uv run ui_extractor.py --input <图片路径> [选项]
```

### 参数

| 参数 | 默认值 | 说明 |
|------|--------|------|
| `--input` / `-i` | (必填) | 输入图片路径 |
| `--output-dir` / `-o` | 输入同目录 | 输出目录 |
| `--bg-type` | `auto` | 背景类型: `auto` / `chroma` / `checkerboard` |
| `--bg-color` | `auto` | chroma 模式背景色: `auto` / `green` / `blue` / `white` / `black` |
| `--pattern-size` | `9 6` | 棋盘格内角点 (cols rows) |
| `--min-element-area` | `500` | 元素最小面积(像素²) |
| `--no-extract` | `false` | 只去背景,不分离元素 |
| `--warp` | `false` | 启用透视校正(仅 checkerboard 模式) |
| `--debug` | `false` | 输出调试图(mask/标注) |
| `--non-interactive` | `false` | 强制非交互模式 |

### 示例

```bash
# 自动检测背景类型
uv run ui_extractor.py --input ui-design.png

# 明确指定绿幕背景
uv run ui_extractor.py --input photo.jpg --bg-type chroma --bg-color green

# 只去背景不分离元素
uv run ui_extractor.py --input photo.jpg --no-extract

# 棋盘格 + 透视校正
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add zrong/skills/ui-extractor@sha256:9b27e861eb41f392

The line at the top of this page pins the label git:20260616.798a4ec, 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_mjabgjtzjiaqlto6.svg)](https://markdownregistry.com/a/art_mjabgjtzjiaqlto6)

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

Versions

The registry has recorded 1 version of this file, committed on Jun 16, 2026.

versioncommittedcommitsizeaudit
git:20260616.798a4ec latest2026-06-16 798a4ec 4,064 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 (4064 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_mjabgjtzjiaqlto6
GET https://markdownregistry.com/api/v1/resolve?ref=zrong/skills/ui-extractor
GET https://markdownregistry.com/api/v1/blob/9b27e861eb41f39200de1809f976ceff5a99a07bff8401b4ba81dbf80e639d5a

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
matting SKILL.md skill
zrong/skills · matting/SKILL.md · 通过独立 matting-api 为本地图片抠图、去背景并输出透明 PNG。每次先读取服务状态、队列、实时算法和模型能力,再检查输入图的 alpha、边框颜色、均匀度与亮度特征,自动选择可用的…
v26.36.56 · audit A · 13 stars

Every file in zrong/skills

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