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.
mdr add zrong/skills/ui-extractor@git:20260616.798a4ecPins 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
mdr add zrong/skills/ui-extractor@sha256:9b27e861eb41f392The 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.
[](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.
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 (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
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.