remove-background

remove-background is a skill for Claude Code from Comfy-Org/comfy-skills. It costs 47 tokens per session (582 once invoked), scanned A, original, MIT.

An image-editing workflow that removes an image's background or replaces it with another one using Comfy Cloud, a hosted image-processing service.

In plain words
What is it for?
Use it to cut out people or products, create transparent PNGs, or place a subject over a new background.
Why use it?
It avoids manually tracing around a subject and can preserve transparent areas for later use.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the comfy-cloud plugin — 12 skills, 12 commands, 1 MCP server shipped together

Good fit Use it to cut out people or products, create transparent PNGs, or place a subject over a new background.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comfy-org/comfy-skills/remove-background
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Comfy-Org/comfy-skills --skill remove-background
Clone the repo
git clone --depth 1 https://github.com/Comfy-Org/comfy-skills

Made for: Claude Code.

Or install comfy-cloud, the plugin that ships this one along with the rest of its 12 skills, 12 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for remove-background

README.md
[![agentmods](https://agentmods.dev/badge/skills/comfy-org/comfy-skills/remove-background/github.svg)](https://agentmods.dev/skills/comfy-org/comfy-skills/remove-background)
Your own site
<a href="https://agentmods.dev/skills/comfy-org/comfy-skills/remove-background"><img src="https://agentmods.dev/badge/skills/comfy-org/comfy-skills/remove-background/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for remove-background

Your own site · 80×15
<a href="https://agentmods.dev/skills/comfy-org/comfy-skills/remove-background"><img src="https://agentmods.dev/badge/skills/comfy-org/comfy-skills/remove-background.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 582 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.00582
Opus 5.5 $0.00019 $0.00233
Sonnet 5.5 $0.00009 $0.00116
Haiku 4.5 $0.00005 $0.00058

Measured 20d ago against content hash 97cb545037bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

remove-background scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-code/skills/remove-background/SKILL.md · 23 lines

How it starts

The opening of the file, as written. The whole thing — 23 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Remove a background

Run this on the hosted Comfy Cloud connector (https://cloud.comfy.org/mcp). The user signs in with that connector's OAuth flow. There is no API key to collect in chat, and there is no local ComfyUI install to start.

The built-in remove-background prompt and the tool descriptions own the call arguments. Discover the current template and nodes. Do not pin a remover by a remembered class name.

What to do

  1. Ask for a source image if they have not attached one. upload_file it and use the returned name.
  2. search_templates for background removal or a transparent background. When one fits, get_template_schema and run_template.
  3. If none fits, search_nodes for removal, matting, or segmentation, then build a short graph: the uploaded image in, the remover, and a save node that keeps transparency (a PNG or the alpha-capable format that node documents). Give every node a _meta.title.
  4. To replace the background, composite the cutout over the new plate in the same graph, or run a second step after the cutout. Re-upload an output before using it as an input in a later job. The save directory and the load directory are not the same store.
  5. Wait with wait_for_job, then get_output. In chat, show the image or the signed URL. When a download command exists and this session has a shell, run it unchanged. Leave the signed query string as returned.
  6. When they asked for a workflow they can reopen, save_workflow and return get_workflow_canvas_url.
  7. When they ask for a different strength or model (another removal model, or a different mask threshold) and the change only touches inputs, rerun with submit_workflow, from_prompt_id of the run being adjusted, and input_overrides of only the changed inputs. Do not rebuild the workflow in that case. If the requested model needs a different node or connections, discover it with search_nodes, edit the workflow, and submit the edited workflow instead. Either way, do not re-upload the source. If you need the workflow or a node id, call get_job_status with include_workflow: true on that prompt id first.

Read the full file on GitHub · 23 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago First seen · 23 lines · 47 tokens per session scan A 97cb545037bb

Subscribe to this mod's changes

remove-background is a skill published in the GitHub repository Comfy-Org/comfy-skills (274 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 582 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

remove-background compared with skills from other repositories

remove-background next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
remove-backgroundComfy-Org/comfy-skillsSkill274todayMITA47Claude Code
claude-md-improveranthropics/claude-plugins-officialSkill49ktodayApache-2.0A82Claude Code
agent-platform-model-registrygoogle/skillsSkill25ktodayApache-2.0A60Claude Code, Codex
gke-reliabilitygoogle/skillsSkill25ktodayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill25ktodayApache-2.0A171Claude Code, Codex
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill25ktodayApache-2.0A132Claude Code, Codex
glance-canonical-layoutsandroid/skillsSkill11k8d agoApache-2.0A56Claude Code