rbrown101010/rileys-skills/remove-image-background
Claude Code and agent skill by rbrown101010/rileys-skills
- community
Checking that the SKILL.md file is still in the repository.
Remove backgrounds from images with remove.bg and save the cutout result locally. Use when Codex needs to cut out a subject from a local image file or image URL, produce a transparent PNG or WebP, export a flat JPG, or verify remove.bg account access before running image background removal.
Install
npx vskill@latest install rbrown101010/rileys-skills/remove-image-backgroundSKILL.md
Remove Image Background
Use this skill to remove the background from a single image through the remove.bg API.
Setup
Store the API key on this machine before the first real run:
Check configuration and account access:
Notes:
setupstores the key in the macOS Keychain by default.REMOVE_BG_API_KEYorREMOVEBG_API_KEYoverrides stored config for one-off runs.- Use
--location globalonly when a plain config file is explicitly preferred over Keychain storage.
Quick Start
Remove the background from a local image and save a sibling output automatically:
Remove the background from an image URL and write to an explicit output path:
Common Options
--output <path>: choose the output path. When omitted, local files become<name>.no-bg.<ext>beside the input file, and URLs save into the current directory with a sanitized filename.--format png|webp|jpg|zip: choose the output format. Default is the--outputfile extension when you provide one, otherwisewebpfor higher-resolution transparent output.--size <value>: pass the remove.bgsizeparameter. Default50MP.--type <value>: pass a foreground hint such asperson,product,car,graphic,animal, ortransportation.--crop: ask remove.bg to crop empty margins.--bg-color <hex>: flatten the output onto a solid background color instead of transparency.--max-retries <n>: retry429responses by honoringRetry-After. Default2.
Workflow
- Run
config:showif background removal has not been configured on this machine yet. - Run
account:getwhen you want to verify the key without spending a removal call. - Use
removewith a local path when the user gives you an attached image or a file on disk. - Use
removewith a URL when the image already lives on the web and downloading it first adds no value. - The default path favors maximum quality:
size=50MPpluswebpwhen no output extension forces another format. - Prefer
pngonly when downstream tooling specifically requires PNG. Usejpgonly when transparency is not needed.
Output
- Successful runs write the processed file locally and print JSON with the output path plus useful response headers such as credits charged and detected foreground type.
- Failed runs exit non-zero and include the HTTP status plus the response body excerpt.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingremove-image-background/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rbrown101010/rileys-skills/remove-image-background)