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.
git clone --depth 1 https://github.com/Comfy-Org/comfy-skillsWrote 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.
[](https://agentmods.dev/commands/comfy-org/comfy-skills/remove-background)<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/remove-background"><img src="https://agentmods.dev/badge/commands/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.
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/remove-background"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/remove-background.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00010 | $0.00998 |
| Opus 5.5 | $0.00004 | $0.00399 |
| Sonnet 5.5 | $0.00002 | $0.00200 |
| Haiku 4.5 | $0.00001 | $0.00100 |
Grade A, and why
remove-background scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
8. Call `get_output` to retrieve the result. Pass a short `description` parameter (e.g. "transparent-portrait") so the suggested filename is descriptive, then run the returned curl command in the user's shell to download How it starts
The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Remove the background from an image using Comfy Cloud: $ARGUMENTS
Follow these steps exactly:
-
Use
search_templateswith queries like "remove background", "background removal", or "transparent background" to find a pre-built background removal workflow template. If a good template exists, use it as the base workflow instead of building from scratch. -
If no suitable template was found, use
search_nodesto find background removal nodes. Search for "RMBG", "background removal", "SAM", or "segment". Common nodes: RMBG (fast automatic removal), SAM (segment anything for precise masks), BiRefNet (high-quality matting). -
The user must provide an input image. Use
upload_fileto upload it to Comfy Cloud. Use the returned filename in a LoadImage node. -
Build a ComfyUI API-format workflow JSON for background removal. A typical workflow uses: LoadImage → background removal node (e.g. RMBG) → SaveImage (with PNG format to preserve transparency). If the user wants to replace the background rather than make it transparent, add a second image and composite them. Give EVERY node a
_meta.titlethat names its role in plain words (e.g. "Load driving video", "Remove background", "Overlay graphic 1", "Save video"). The canvas shows these titles; without them the user sees only class names. -
Validate the workflow has inputs and outputs before submitting. Confirm the JSON contains:
- At least one input node (
LoadImagefor the source image). - At least one output/save node wired to the final image (
SaveImagewith PNG format to preserve transparency).
Without an output node the job runs successfully but produces nothing retrievable, wasting compute. Do not skip this check.
- At least one input node (
-
Call
submit_workflowwith the workflow JSON. -
Poll
get_job_statusevery 3 seconds until the job is completed. Show the user a brief status update while waiting. If the user asks to cancel, usecancel_jobwith the prompt_id. -
Call
get_outputto retrieve the result. Pass a shortdescriptionparameter (e.g. "transparent-portrait") so the suggested filename is descriptive, then run the returned curl command in the user's shell to download the file. -
Display the result to the user. Note that the output is a PNG with transparency if background was removed (not replaced).
-
If the user asked to BUILD or CREATE a workflow (not just for an output), after the run completes call
save_workflowwith the same JSON, a descriptivename, andoverwrite: false— on a name collision choose a new name rather than replacing the user's existing workflow. Then callget_workflow_canvas_urlwith theworkflow_idfrom the save result; if the save result omitsworkflow_id, find it withlist_saved_workflows— never pass the filename (saved_workflow_filenamepublishes a PUBLIC share snapshot). If you ran a template withrun_template, callget_template, apply the sameinput_overridesyou ran with to that body (same node ids or slot paths; inputs you did not override keep the template defaults), andsave_workflowthe result instead, so the canvas matches the run. If you adjusted the run withsubmit_workflow+from_prompt_idreruns, apply each rerun'sinput_overrideson top, in run order, to whichever JSON you save (the built workflow or the template body), so the saved workflow matches the latest run rather than the first one. Give the user the canvas link. Mention that the saved layout is auto-generated and may need tidying. If you ran a subgraph template instead, tell the user the canvas shows one collapsed subgraph node and how to open it (double-click the node body, not its title, to step inside it, or right-click it and choose Unpack Subgraph to flatten it onto the canvas). -
If the user asks for a different strength/model (e.g. a different removal model or mask threshold), rerun via
submit_workflowwithfrom_prompt_idset to the prompt_id of the run being adjusted andinput_overridesholding ONLY the changed inputs ({nodeId: {inputName: value}}); do not re-upload the source and do not rebuild the workflow. If you do not know the node id, callget_job_statuswithinclude_workflow: trueon that prompt_id first. Then continue from step 7.
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.
- 20d ago Changed 36db670dad9f
- 21d ago Changed · +2 lines 4db6b8a23c04
- 1mo ago Changed · +2 lines e716d203fcb4
- 3mo ago First seen · 32 lines · 10 tokens per session scan A 2bc27f32ce20
remove-background is a command published in the GitHub repository Comfy-Org/comfy-skills (274 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 998 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
remove-background compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| remove-backgroundComfy-Org/comfy-skills | Command | 274 | today | MIT | A | 10 | Claude Code |
| cancel-ralphanthropics/claude-plugins-official | Command | 49k | today | Apache-2.0 | A | 4 | Claude Code |
| constraintsvinvcn/addyosmani-agent-skills-zh | Command | 59 | 1mo ago | MIT | A | 20 | Claude Code |
| releasekomunite/kalfa | Command | 246 | 7mo ago | MIT | A | 13 | Claude Code |
| rclone_config_dumpchaunsin/agent-skills | Command | 2 | 12d ago | Apache-2.0 | A | 7 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |