AI Image Generation and Editing
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
Remove backgrounds from images using local AI (rembg). An agent skill from peterkrueck/Claude-Code-Development-Kit.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill bg-remove -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit bg-remove --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/bg-remove .claude/skills/bg-remove && rm -rf skills-srcUse ~/.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/
Install the "bg-remove" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/bg-remove into .claude/skills/bg-remove/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bg-remove", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/bg-removeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill bg-remove -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit bg-remove --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/bg-remove .agents/skills/bg-remove && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "bg-remove" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/bg-remove into .agents/skills/bg-remove/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bg-remove", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill bg-remove -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit bg-remove --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/bg-remove .cursor/skills/bg-remove && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "bg-remove" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/bg-remove into .cursor/skills/bg-remove/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bg-remove", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/peterkrueck/Claude-Code-Development-Kit.git --path skills/bg-remove--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill bg-remove -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit bg-remove --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/bg-remove .gemini/skills/bg-remove && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "bg-remove" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/bg-remove into .gemini/skills/bg-remove/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bg-remove", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install peterkrueck/Claude-Code-Development-Kit bg-removeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill bg-remove -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/bg-remove .github/skills/bg-remove && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "bg-remove" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/bg-remove into .github/skills/bg-remove/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bg-remove", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add peterkrueck/Claude-Code-Development-Kit --skill bg-remove -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install peterkrueck/Claude-Code-Development-Kit bg-remove --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/peterkrueck/Claude-Code-Development-Kit.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/bg-remove .opencode/skills/bg-remove && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "bg-remove" agent skill from https://github.com/peterkrueck/Claude-Code-Development-Kit/tree/main/skills/bg-remove into .opencode/skills/bg-remove/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bg-remove", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
bg-removeRemove backgrounds from images using local AI (rembg). An agent skill from peterkrueck/Claude-Code-Development-Kit.
Bg Remove is an agent skill from peterkrueck/Claude-Code-Development-Kit. Remove backgrounds from images using local AI (rembg). Use when removing backgrounds from character art, mascot images, photos, or any image that needs a transparent background.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Media & Creative, covering Image editing. The repository describes itself as: Claude Code Workflow for beginners & intermediate users. Tutorial and Installer included. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ba85375. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
python3pipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Bg Remove loads about 1.3k tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 415 words of instructions outside code blocks.
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.
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.
The full file from peterkrueck/Claude-Code-Development-Kit at commit ba85375, republished under its MIT licence (© peterkrueck). 415 words, ~1,312 tokens.
.claude/skills/bg-remove/SKILL.md (or your agent's skills folder).Remove backgrounds from images using rembg (local, offline, no data sent externally). Outputs RGBA PNG with proper transparency.
Arguments after /bg-remove:
--trim (optional) — auto-trim transparent padding after removal--output <path> (optional) — custom output path. Default: same directory, <name>-transparent.pngExamples:
/bg-remove assets/character/mascot.png/bg-remove image.png --trim/bg-remove image.png --output ~/Desktop/result.pngrembg is installed in a dedicated venv. Always activate it before use:
source ~/.claude/tools/rembg-env/bin/activateIf the venv doesn't exist, install it:
python3 -m venv ~/.claude/tools/rembg-env && source ~/.claude/tools/rembg-env/bin/activate && pip install "rembg[cpu,cli]"Model files are cached in ~/.u2net/ (downloaded on first use per model, ~170MB for birefnet-general).
sips -g pixelWidth -g pixelHeight <path>Use the birefnet-general model — validated in testing on illustrated/character art and general photos, producing clean edges across both.
source ~/.claude/tools/rembg-env/bin/activate && rembg i -m birefnet-general <input> <output>Model choice: Default to birefnet-general. In side-by-side testing it gave clean edges on both illustrated subjects and photographic ones. Avoid anime-trained models (e.g. isnet-anime): on non-anime and even some illustrated inputs they tend to add artifacts and leave dark patches around edges. If birefnet-general underperforms on a specific image, compare against another general model rather than an anime-specific one.
The Read tool renders transparency as black, so you MUST verify by compositing on a colored background:
source ~/.claude/tools/rembg-env/bin/activate && python3 -c "
from PIL import Image
import numpy as np
# Load result
img = Image.open('<output>').convert('RGBA')
alpha = np.array(img)[:,:,3]
total = alpha.size
transparent = np.sum(alpha == 0)
opaque = np.sum(alpha == 255)
print(f'Dimensions: {img.size}')
print(f'Transparent: {transparent/total*100:.1f}%')
print(f'Opaque: {opaque/total*100:.1f}%')
print(f'Corners alpha: TL={alpha[0,0]} TR={alpha[0,-1]} BL={alpha[-1,0]} BR={alpha[-1,-1]}')
# Composite on magenta for visual verification
bg = Image.new('RGBA', img.size, (255, 0, 255, 255))
bg.paste(img, (0, 0), img)
bg.save('<output_dir>/verify-magenta.png')
print('Verification image saved')
"Then view the magenta verification image with the Read tool. The magenta should only show where background was removed.
If --trim was requested, trim transparent padding:
source ~/.claude/tools/rembg-env/bin/activate && python3 -c "
from PIL import Image
import numpy as np
img = Image.open('<output>').convert('RGBA')
alpha = np.array(img)[:,:,3]
# Find bounding box of non-transparent pixels
rows = np.any(alpha > 0, axis=1)
cols = np.any(alpha > 0, axis=0)
rmin, rmax = np.where(rows)[0][[0, -1]]
cmin, cmax = np.where(cols)[0][[0, -1]]
# Add small padding (2% of dimensions)
pad_h = max(int(img.height * 0.02), 4)
pad_w = max(int(img.width * 0.02), 4)
rmin = max(0, rmin - pad_h)
rmax = min(img.height - 1, rmax + pad_h)
cmin = max(0, cmin - pad_w)
cmax = min(img.width - 1, cmax + pad_w)
cropped = img.crop((cmin, rmin, cmax + 1, rmax + 1))
cropped.save('<output>')
print(f'Trimmed: {img.size} -> {cropped.size}')
"Done: background removed
Source: <input_path>
Output: <output_path>
Dimensions: <width>x<height>
Transparent pixels: <percent>%
Model: birefnet-general (local, offline)Verify before shipping: open the output in Preview.app (or any viewer that shows the checkerboard pattern) to confirm real transparency. The Read tool renders transparency as solid black, so it cannot distinguish a transparent background from a black one — composite-over-a-color (Step 3) or a checkerboard viewer is the only reliable check.
birefnet-general — in side-by-side testing it produced the cleanest edges on both illustrated and photographic inputs; anime-trained models added artifacts. Only switch models if it visibly underperforms on a specific image.© peterkrueck, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/bg-remove of peterkrueck/Claude-Code-Development-Kit.
Open the folder on GitHubat commit ba85375
Bg Remove 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Bg Remove this skillpeterkrueck/Claude-Code-Development-Kit | 1.4k | — | ~1.3k | Automated safety check: Pass | MIT | |
| AI Image Generation and Editingzhayujie/CowAgent | 47k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Media Useedenfunf/reelmimic | 1.7k | 2 repos | ~2k | Automated safety check: Pass | MIT | |
| Generate Imageynulihao/AgentSkillOS | 617 | 10 repos | ~1.7k | Automated safety check: Notes | None | |
| GPT Image Generation CLIwuyoscar/GPT-Image2-Skill | 5.7k | — | ~2.5k | Automated safety check: Notes | MIT | |
| HyperFrames Media Useheygen-com/hyperframes | 59k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 |
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
edenfunf/reelmimic
Agent Media OS, the single skill for every media need in a HyperFrames project.
ynulihao/AgentSkillOS
Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.
wuyoscar/GPT-Image2-Skill
Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.
heygen-com/hyperframes
Finds, generates and edits media for HyperFrames video projects: music, sound effects, images, icons, logos, voiceovers, captions and color grades.
ReScienceLab/opc-skills
Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro).
peterkrueck/Claude-Code-Development-Kit
Edit images with precision — crop, resize, mirror, rotate, trim, and reframe.
peterkrueck/Claude-Code-Development-Kit
Generate character art and image variations using AI image generation (Google Gemini) with reference images for style and character consistency.
peterkrueck/Claude-Code-Development-Kit
Fetch CURRENT library/framework/API/CLI documentation via Context7 instead of relying on training data.
peterkrueck/Claude-Code-Development-Kit
Get a second opinion from OpenAI's Codex CLI running locally.
peterkrueck/Claude-Code-Development-Kit
Test and deploy changes safely. An agent skill from peterkrueck/Claude-Code-Development-Kit.
peterkrueck/Claude-Code-Development-Kit
Get a second opinion from Google's Gemini Pro via the locally installed Gemini CLI (defaults to gemini-3.1-pro-preview; override with the CLAUDESECONDOPINIONMODEL env var).
Categories
Remove backgrounds from images using local AI (rembg). An agent skill from peterkrueck/Claude-Code-Development-Kit. Bg Remove is an agent skill from peterkrueck/Claude-Code-Development-Kit. Remove backgrounds from images using local AI (rembg).
Bg Remove fits situations like: removing backgrounds from character art; any image that needs a transparent background.
Run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill bg-remove -a claude-code`. Or copy the skill folder (skills/bg-remove in peterkrueck/Claude-Code-Development-Kit) into .claude/skills/bg-remove in your project. Claude Code loads it when a task matches its description.
Run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill bg-remove -a codex`. Or copy the skill folder (skills/bg-remove in peterkrueck/Claude-Code-Development-Kit) into .agents/skills/bg-remove in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add peterkrueck/Claude-Code-Development-Kit --skill bg-remove -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bg-remove, .gemini/skills/bg-remove, .github/skills/bg-remove and .opencode/skills/bg-remove in your project.
Going by SKILL.md and its folder, Bg Remove needs the command-line tools its instructions call (python3 and pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
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.
Bg Remove is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Bg Remove: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), Media Use (edenfunf/reelmimic, 1.7k stars), Generate Image (ynulihao/AgentSkillOS, 617 stars) and GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
peterkrueck (a GitHub user) maintains it in peterkrueck/Claude-Code-Development-Kit, which has 1,385 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on July 22, 2026.
Source: peterkrueck/Claude-Code-Development-Kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.