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.
npx agentmods add commands/comfy-org/comfy-skills/remove-backgroundgit 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.svg" alt="Measured on agentmods" 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 | $0.00010 | $0.00499 |
| Opus 5 | $0.00005 | $0.00249 |
| Sonnet 5 | $0.00002 | $0.00100 |
| Haiku 4.5 | $0.00001 | $0.00050 |
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 4d 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 What it actually says
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.
-
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 any step fails, show the error clearly. If background removal nodes aren't available, suggest using an inpainting approach as a fallback.
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.
- 4d 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 (182 stars, last pushed 6d ago), licensed MIT. It adds 10 tokens to every session and 499 once invoked, about $0.0001 per session on Opus 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.
Other commands, from other repositories
COMFY_LEAD
You are the ComfyUI technical lead. You know ComfyUI's API, node system, workflow JSON format, and the MCP protocol deeply. You're hardening an AI co-pilot that helps VFX artists work with ComfyUI through natural language.
assemble-montage
You are the EDITOR expert in the Video Recreation Agent Team.
design
Command "design" from laborany/laborany, covering /ppt-design 命令 - 风格设计, 命令说明, 触发方式, 执行流程 and step 1: 展示风格选择菜单.
video
Create a design based on video.
video-script
Generate a video or screencast script from a codebase.
git
Git operations with intelligent commit messages and workflow optimization.