Agent skill

Remove Bg

by ZJU-REAL in ZJU-REAL/Easel

图片去背景 / 抠图 / 换背景:用 AI 语义分割把主体从背景抠出,输出透明 PNG,或直接换成纯色(电商白底)/ 新场景背景。无需绿幕。当用户说 去背景、抠图、抠图换背景、去掉背景、透明背景、白底图、换背景、抠人像、抠产品、扣图、KO图、商品白底 时使用。基于 shared/scripts/removebg.py(rembg u2net)。与 green-screen…

Apache-2.0Auto-check passed

Install Remove Bg

skills CLI
$ npx skills add ZJU-REAL/Easel --skill remove-bg -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ZJU-REAL/Easel remove-bg --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ZJU-REAL/Easel.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/openclaw/remove-bg .claude/skills/remove-bg && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
remove-bg
GitHub stars
3.4k
Token cost
~512 tokens
SKILL.md length
87 words
Files
1
Skills in repo
114
Repo updated
First seen
Licence
Apache-2.0

At a glance

图片去背景 / 抠图 / 换背景:用 AI 语义分割把主体从背景抠出,输出透明 PNG,或直接换成纯色(电商白底)/ 新场景背景。无需绿幕。当用户说 去背景、抠图、抠图换背景、去掉背景、透明背景、白底图、换背景、抠人像、抠产品、扣图、KO图、商品白底 时使用。基于 shared/scripts/removebg.py(rembg u2net)。与 green-screen…

  • Works in 5 steps: 要透明背景必须输出 .png(jpg 不支持透明,脚本会自动改白底并提示)。 → 电商主图用 --bg-color white;换场景用… → 人像优先 u2net_human_seg,商品/通用用 u2net。 → …
  • SKILL.md covers 前置, 输入, 输出(outputs/主题名/) and 执行步骤, plus 3 more sections
  • Calls python

What it does

Remove Bg is an agent skill from ZJU-REAL/Easel. 图片去背景 / 抠图 / 换背景:用 AI 语义分割把主体从背景抠出,输出透明 PNG,或直接换成纯色(电商白底)/ 新场景背景。无需绿幕。当用户说 去背景、抠图、抠图换背景、去掉背景、透明背景、白底图、换背景、抠人像、抠产品、扣图、KO图、商品白底 时使用。基于 shared/scripts/removebg.py(rembg u2net)。与 green-screen 区别:green-screen 处理绿幕视频,本 SKILL 处理任意图片;与 ecom-details-image 区别:那个出电商视觉方案,本 SKILL 只做抠图。

Its SKILL.md is about 510 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: An open-source AI agent for social media — discover trends, create content, publish everywhere, and learn what works across Xiaohongshu, Douyin, Zhihu, Bilibili, and more.🎨一个开源的… The licence is Apache-2.0.

Example prompts

  • “/remove-bg”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 要透明背景必须输出 .png(jpg 不支持透明,脚本会自动改白底并提示)。
  2. 电商主图用 --bg-color white;换场景用 --bg-image(自动等比覆盖裁切)。
  3. 人像优先 u2net_human_seg,商品/通用用 u2net。
  4. 抠图质量取决于主体与背景对比度;复杂/低对比图无法保证完美。
  5. 产物统一进 outputs/主题名/。

What it can do on your machine

Read from SKILL.md and the folder at commit 278f420. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Remove Bg loads about 512 tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 87 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~512

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ZJU-REAL/Easel at commit 278f420, republished under its Apache-2.0 licence (© ZJU-REAL). 87 words, ~512 tokens.

Download SKILL.mdSave it as .claude/skills/remove-bg/SKILL.md (or your agent's skills folder).
name
remove-bg
description
图片去背景 / 抠图 / 换背景:用 AI 语义分割把主体从背景抠出,输出透明 PNG,或直接换成纯色(电商白底)/ 新场景背景。无需绿幕。当用户说 去背景、抠图、抠图换背景、去掉背景、透明背景、白底图、换背景、抠人像、抠产品、扣图、KO图、商品白底 时使用。基于 shared/scripts/remove_bg.py(rembg u2net)。与 green-screen 区别:green-screen 处理绿幕视频,本 SKILL 处理任意图片;与 ecom-details-image 区别:那个出电商视觉方案,本 SKILL 只做抠图。
layer
produce

图片去背景 / 抠图换背景

用 rembg(AI 语义分割)把主体抠出,输出透明 PNG 或换新背景。无需绿幕。全部走 skills/shared/scripts/remove_bg.py。

绿幕视频抠像见 green-screen;电商视觉方案见 ecom-details-image; 常规缩放/裁切/水印见 image-editing。

前置

首次运行自动下载模型(~4-170MB,视模型而定),需外网代理(脚本读 EASEL_PROXY/http(s)_proxy,未设则直连)。先自检:

bash
python skills/shared/scripts/remove_bg.py check

输入

字段必填说明
图片是要抠图的图片(没给就问)
输出背景否透明(默认)/ 纯色 / 换图片背景
模型否通用 / 人像 / 精细,见下表

输出(outputs/主题名/)

  • 抠好的图片(透明用 .png)
  • 报告:所用模型、背景形态

执行步骤

脚本路径(相对项目根):skills/shared/scripts/remove_bg.py(remove -h 看参数)。

bash
# 透明背景(务必输出 .png)
python skills/shared/scripts/remove_bg.py remove -i product.jpg \
  -o outputs/主题名/cutout.png

# 电商白底主图
python skills/shared/scripts/remove_bg.py remove -i product.jpg \
  -o outputs/主题名/white.jpg --bg-color white

# 换新场景背景
python skills/shared/scripts/remove_bg.py remove -i person.jpg \
  -o outputs/主题名/scene.png --bg-image scene.jpg

# 人像 + 毛发边缘细腻
python skills/shared/scripts/remove_bg.py remove -i portrait.jpg \
  -o outputs/主题名/cut.png --model u2net_human_seg --alpha-matting

模型选择

模型适用
u2net(默认)通用主体
u2netp轻量快速(质量略低)
u2net_human_seg人像专用
isnet-general-use更精细的通用分割
silueta体积小的通用模型

抠不干净/边缘毛糙时:换更精细的模型,或加 --alpha-matting(慢但边缘更好,适合头发/毛绒)。

规则

  1. 要透明背景必须输出 .png(jpg 不支持透明,脚本会自动改白底并提示)。
  2. 电商主图用 --bg-color white;换场景用 --bg-image(自动等比覆盖裁切)。
  3. 人像优先 u2net_human_seg,商品/通用用 u2net。
  4. 抠图质量取决于主体与背景对比度;复杂/低对比图无法保证完美。
  5. 产物统一进 outputs/主题名/。

参考来源

去背景用 rembg(u2net 系列显著性目标检测/分割模型)+ onnxruntime CPU 推理,是无 GPU 抠图的 主流方案。换背景合成用 Pillow alpha_composite。把模型加载、代理注入、背景合成封装成确定性脚本。

© ZJU-REAL, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/openclaw/remove-bg of ZJU-REAL/Easel.

Open the folder on GitHubat commit 278f420

Compare with similar skills

Remove Bg next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Remove Bg compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Remove Bg this skillZJU-REAL/Easel3.4k—~512Automated safety check: PassApache-2.0
Dead Code Removercode-yeongyu/oh-my-openagent70k—~1.8kAutomated safety check: PassCustom licence
Remove Bg AutomationComposioHQ/awesome-claude-skills77k3 repos~738Automated safety check: PassNone
Remove AI Slopscode-yeongyu/oh-my-openagent70k—~5.3kAutomated safety check: PassCustom licence
Warp Feature Flag Removalwarpdotdev/warp65k1 repos~1.1kAutomated safety check: PassAGPL-3.0
Remove Option Or Flaggetsentry/sentry46k—~3kAutomated safety check: PassCustom licence

Similar skills

  • Dead Code Remover

    code-yeongyu/oh-my-openagent

    Finds unused code in a TypeScript project, confirms each candidate has no references through the language server, then hands removals to parallel agents.

    70k GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Remove Bg Automation

    ComposioHQ/awesome-claude-skills

    Automate Remove Bg tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.

    77k GitHub starsUsed in 3 repos~738 tokens
    Productivity & AutomationAuto-check passed
  • Remove AI Slops

    code-yeongyu/oh-my-openagent

    Removes AI-generated code smells from branch changes or an explicit file list behind regression tests.

    70k GitHub stars~5.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Removes a Warp feature flag once it is stable for everyone, deleting the definition, the Cargo entries and every conditional check.

    65k GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Remove Option Or Flag

    getsentry/sentry

    Official

    Remove a Sentry option or FlagPole feature flag whose rollout is finished, in the correct PR order across sentry, getsentry, and sentry-options-automator.

    46k GitHub stars~3k tokensUpdated yesterday
    Auto-check passed
  • Java Refactoring Remove Parameter

    github/awesome-copilot

    Official

    Refactoring using Remove Parameter in Java Language. An agent skill from github/awesome-copilot.

    40k GitHub starsUsed in 1 repo~738 tokens
    DevelopmentAuto-check passed

More from ZJU-REAL/Easel

All 114 skills in this repo
  • Gzh Design

    ZJU-REAL/Easel

    微信公众号文章排版引擎:把 Markdown / Word(.docx) / PDF / 纯文本转成可直接粘贴进公众号编辑器的 HTML,自动章节编号、关键词标记、引言卡、目录、代码块、图片/GIF、作者签名;主题从 references/theme-index.md…

    3.4k GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • 微信公众号文章自动创作与发布工具。给定参考文章、文字或文档,自动搜索整理全网相关信息、生成图文并茂的公众号文章,并发布到微信公众号草稿箱。特别强调反 AI 检测写作。

    3.4k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Card Design

    ZJU-REAL/Easel

    社媒卡片视觉设计系统:提供配色、中文字体层级、满画幅布局、品类骨架和死空白/密度质检,避免模板化 PPT 与廉价 AI 感。

    3.4k GitHub stars~657 tokensUpdated today
    Auto-check passed
  • Ecom Details Image

    ZJU-REAL/Easel

    生成电商商品视觉方案:主图概念、场景图、详情页视觉方向和 AI 生图 Prompt. An agent skill from ZJU-REAL/Easel.

    3.4k GitHub stars~1.1k tokensUpdated today
    Auto-check: notes
  • Infographic

    ZJU-REAL/Easel

    将数据或文字内容转化为可视化信息图,支持静态(AntV)和动画 GIF 两种模式。当用户需要制作信息图、数据可视化、流程图、对比图、动画图表、GIF 图表、思维导图、SWOT 分析图时调用。本地渲染信息图/GIF 动画;要单张静态图片 URL 用 chart-visualization,要 CSV/JSON→整页报告用 data-report

    3.4k GitHub stars~643 tokensUpdated today
    Auto-check passed
  • Novel Writer

    ZJU-REAL/Easel

    长篇小说/网文连载创作:从世界观、人设和三级大纲写到逐章正文,并用文件化状态维护伏笔、前情和跨章一致性. An agent skill from ZJU-REAL/Easel.

    3.4k GitHub stars~1k tokensUpdated today
    Auto-check passed

Questions about Remove Bg

What does Remove Bg do?

图片去背景 / 抠图 / 换背景:用 AI 语义分割把主体从背景抠出,输出透明 PNG,或直接换成纯色(电商白底)/ 新场景背景。无需绿幕。当用户说 去背景、抠图、抠图换背景、去掉背景、透明背景、白底图、换背景、抠人像、抠产品、扣图、KO图、商品白底 时使用。基于 shared/scripts/removebg.py(rembg u2net)。与 green-screen…. Remove Bg is an agent skill from ZJU-REAL/Easel.

How do I install Remove Bg in Claude Code?

Run `npx skills add ZJU-REAL/Easel --skill remove-bg -a claude-code`. Or copy the skill folder (skills/openclaw/remove-bg in ZJU-REAL/Easel) into .claude/skills/remove-bg in your project. Claude Code loads it when a task matches its description.

How do I install Remove Bg in Codex?

Run `npx skills add ZJU-REAL/Easel --skill remove-bg -a codex`. Or copy the skill folder (skills/openclaw/remove-bg in ZJU-REAL/Easel) into .agents/skills/remove-bg in your project. Codex loads it when a task matches its description.

Can I use Remove Bg in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZJU-REAL/Easel --skill remove-bg -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/remove-bg, .gemini/skills/remove-bg, .github/skills/remove-bg and .opencode/skills/remove-bg in your project.

What does Remove Bg need to run?

Going by SKILL.md and its folder, Remove Bg needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Remove Bg access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Remove Bg safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Remove Bg use?

Remove Bg is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Remove Bg use?

About 512 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Remove Bg?

Skills that share tags, products or a category with Remove Bg: Dead Code Remover (code-yeongyu/oh-my-openagent, 70k stars), Remove Bg Automation (ComposioHQ/awesome-claude-skills, 77k stars), Remove AI Slops (code-yeongyu/oh-my-openagent, 70k stars) and Warp Feature Flag Removal (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Remove Bg?

ZJU-REAL (a GitHub organization) maintains it in ZJU-REAL/Easel, which has 3,376 GitHub stars. The repository holds 114 skills in this directory. The repository was last updated on October 9, 2026.

Source: ZJU-REAL/Easel on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.