Agent skill

Image Region Remove Key Color App

by godot-fun in godot-fun/gai

Interactive Gradio UI to paint a region and remove solid key-color background (white / green / magenta) only inside that selection.

MITAuto-check passedGame Development

Install Image Region Remove Key Color App

skills CLI
$ npx skills add godot-fun/gai --skill image-region-remove-key-color-app -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install godot-fun/gai image-region-remove-key-color-app --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/godot-fun/gai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/image-region-remove-key-color-app .claude/skills/image-region-remove-key-color-app && rm -rf skills-src

Use ~/.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/

Facts

Skill name
image-region-remove-key-color-app
GitHub stars
183
Token cost
~1.4k tokens
SKILL.md length
534 words
Files
1
Skills in repo
36
Repo updated
First seen
Licence
MIT

At a glance

Interactive Gradio UI to paint a region and remove solid key-color background (white / green / magenta) only inside that selection.

  • Works in 7 steps: Upload the image via the file control… → Transparent areas appear as gray in the… → Paint over local white / chroma patches… → …
  • Enclosed white islands remain after border/both keying
  • SKILL.md covers Rules, Setup (first run), Quick Start and UI workflow, plus 6 more sections
  • Calls python and pip

What it does

Image Region Remove Key Color App is an agent skill from godot-fun/gai. Interactive Gradio UI to paint a region and remove solid key-color background (white / green / magenta) only inside that selection. Use when enclosed white islands remain after border/both keying, for localized white-background cutout, paint-to-erase chroma patches, or selective color-key cleanup before Godot sprite import.

Its SKILL.md is about 1.4k 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 Game Development, covering Game development and Model hubs and datasets. It works with Gradio, Godot and Python. The repository describes itself as: A lightweight AI agent and skill workflow framework built with Godot. The licence is MIT.

When your agent uses it

  • Enclosed white islands remain after border/both keying
  • For localized white-background cutout
  • Paint-to-erase chroma patches
  • Selective color-key cleanup before Godot sprite import

Example prompts

  • “/image-region-remove-key-color-app”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Upload the image via the file control (or preload via CLI) — do not drop into the editor canvas.
  2. Transparent areas appear as gray in the editor (download still has real alpha).
  3. Paint over local white / chroma patches to remove.
  4. Choose Key color / tolerance / feather if needed.
  5. Click Apply → preview (gray = transparent).
  6. Click Download → browser download with the original name.
  7. Click Stop server when done (or Ctrl+C in the terminal).

What it can do on your machine

Read from SKILL.md and the folder at commit 6394686. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    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.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Image Region Remove Key Color App loads about 1.4k tokens when it runs. Until then it costs about 90 tokens; SKILL.md has 534 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~90
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from godot-fun/gai at commit 6394686, republished under its MIT licence (© godot-fun). 534 words, ~1,443 tokens.

Download SKILL.mdSave it as .claude/skills/image-region-remove-key-color-app/SKILL.md (or your agent's skills folder).
name
image-region-remove-key-color-app
description
Interactive Gradio UI to paint a region and remove solid key-color background (white / green / magenta) only inside that selection. Use when enclosed white islands remain after border/both keying, for localized white-background cutout, paint-to-erase chroma patches, or selective color-key cleanup before Godot sprite import.

Image Region Remove Key Color App

Paint a region mask in a local Gradio UI, then remove key-color pixels only inside that region (global keying scoped to the brush). Preserves white/light subject pixels outside the paint strokes.

Use after image-remove-white-background when edge flood fill leaves enclosed white islands (e.g. gaps inside a silhouette).

Rules

When this skill applies, read and follow skill-dependency-manager — run scripts as documented, install missing tools into .dependency/.

  • Run app.py through the image-region-remove-key-color-app manifest entry (.dependency/image-region-remove-key-color-app/.venv/). Never use host python, py, python3, or any interpreter outside .dependency/.
  • Do not hand-write a one-off Gradio app — use the bundled script at .ai/image-region-remove-key-color-app/app.py.
  • populated: false is not a reason to skip. Install first, set populated: true, retry the same command.
  • This skill is interactive: launch the UI, give the user the local URL, wait for them to paint / Apply / Download.

Setup (first run)

From project root:

bash
.dependency/python/python -m venv .dependency/image-region-remove-key-color-app/.venv
.dependency/image-region-remove-key-color-app/.venv/Scripts/python.exe -m pip install Pillow gradio

If python -m venv fails (missing venv / ensurepip), create the env with virtualenv from another populated skill venv, then install packages into the new env:

bash
.dependency/rembg/.venv/Scripts/python.exe -m pip install virtualenv
.dependency/rembg/.venv/Scripts/python.exe -m virtualenv .dependency/image-region-remove-key-color-app/.venv
.dependency/image-region-remove-key-color-app/.venv/Scripts/python.exe -m pip install Pillow gradio

Register in .dependency/manifest.json:

json
"image-region-remove-key-color-app": {
  "populated": true,
  "bin": ".dependency/image-region-remove-key-color-app/.venv/Scripts/python.exe"
}

Use bin/python on Unix.

Quick Start

bash
# Preload an image (opens http://127.0.0.1:7860)
.dependency/image-region-remove-key-color-app/.venv/Scripts/python.exe .ai/image-region-remove-key-color-app/app.py path/to/sprite.png

# Custom port, no auto-open browser (agent / headless)
.dependency/image-region-remove-key-color-app/.venv/Scripts/python.exe .ai/image-region-remove-key-color-app/app.py path/to/sprite.png --port 7861 --no-browser

Download uses the same filename as the source (forced .png). No share / no save-to-disk folder.

UI workflow

  1. Upload the image via the file control (or preload via CLI) — do not drop into the editor canvas.
  2. Transparent areas appear as gray in the editor (download still has real alpha).
  3. Paint over local white / chroma patches to remove.
  4. Choose Key color / tolerance / feather if needed.
  5. Click Apply → preview (gray = transparent).
  6. Click Download → browser download with the original name.
  7. Click Stop server when done (or Ctrl+C in the terminal).

Key color

Use the UI color picker (default #FFFFFF). CLI --preset only sets the initial color and tolerance:

--presetKey colorDefault tolerance
white (default)#FFFFFF25
green#00FF0040
magenta#FF00FF40
Show full SKILL.md (228 more words)Show less

Agent workflow

  1. When — user needs selective / painted removal of flat key-color patches; full-image global would damage white subjects; border/both left enclosed islands.
  2. Ensure deps — manifest entry + venv with Pillow + Gradio.
  3. Launch — run app.py with the user image path; prefer --no-browser if the agent cannot open a GUI browser, and print http://127.0.0.1:<port>.
  4. Hand off — tell the user to paint, Apply, then Download (same filename as source).
  5. Verify — after the user confirms download, they are done; do not overwrite sources.
  6. Stop — click Stop server in the UI, or terminate the Gradio process when the user is done.

Defaults

OptionDefaultNotes
Download namesame as source (.png)Prepared on Apply via DownloadButton
--presetwhiteMatch the batch key skill
--tolerancepreset-specificRaise for gray fringes
--feather2Softens hole edges inside the paint mask
--port7860Change if busy
Shareoffshare=False; no share UI

Troubleshooting

IssueFix
Manifest / venv missingFollow Setup; update manifest
No paint strokes foundBrush visibly over the white islands; ensure strokes are on the editor layers
Subject holes outside paintOnly paint the background islands — strokes gate keying
Leftover fringe in regionRaise tolerance by 5–10
Port in usePass --port 7861 (etc.)
Gradio import errorReinstall in the skill venv: pip install -U Pillow gradio

CLI

Copy-paste commands: cli/image-region-remove-key-color-app.md

© godot-fun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/image-region-remove-key-color-app of godot-fun/gai.

Open the folder on GitHubat commit 6394686

Compare with similar skills

Image Region Remove Key Color App 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.

Image Region Remove Key Color App compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Image Region Remove Key Color App this skillgodot-fun/gai183—~1.4kAutomated safety check: PassMIT
Text To 3D AssetLaurentiuGabriel/unreal-game-assets-creation-skill148—~2.1kAutomated safety check: PassNone
2D Map and Scene Generator0x0funky/agent-sprite-forge4.4k—~2.9kAutomated safety check: PassMIT
Godot E2ERandallLiuXin/GodotMaker5501 repos~3.9kAutomated safety check: PassCustom licence
GdtoolkitRandallLiuXin/GodotMaker5501 repos~2.2kAutomated safety check: PassCustom licence
Hugging Face ZeroGPUhuggingface/skills11k2 repos~4.6kAutomated safety check: PassApache-2.0

Similar skills

  • Text To 3D Asset

    LaurentiuGabriel/unreal-game-assets-creation-skill

    Generate a game-ready 3D asset by running the local AI pipeline sequentially: Fooocus (SDXL text-to-image) - Hunyuan3D-2 (image-to-textured-GLB) - optional Blender FBX convert + Unreal import.

    148 GitHub stars~2.1k tokensUpdated 2 mo ago
    Game DevelopmentAuto-check passed
  • 2D Map and Scene Generator

    0x0funky/agent-sprite-forge

    Plans and builds 2D game maps and scenes, from tilemaps and parallax backgrounds to HD-2D plates, with collision checks, a playable HTML preview and Tiled, Godot or LDtk export.

    4.4k GitHub stars~2.9k tokensUpdated 5 days ago
    Game DevelopmentAuto-check passed
  • Godot E2E

    RandallLiuXin/GodotMaker

    Write and run E2E (end-to-end) game tests using the godot-e2e framework.

    550 GitHub starsUsed in 1 repo~3.9k tokens
    Testing & QAAuto-check passed
  • Gdtoolkit

    RandallLiuXin/GodotMaker

    Lint and format GDScript files using gdtoolkit (gdlint + gdformat).

    550 GitHub starsUsed in 1 repo~2.2k tokens
    DevelopmentAuto-check passed
  • Hugging Face ZeroGPU

    huggingface/skills

    Official

    Covers the rules for writing Gradio Spaces on ZeroGPU hardware: the @spaces.GPU decorator, duration and quota tuning, process isolation and CUDA build limits.

    11k GitHub starsUsed in 2 repos~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Huggingface Spaces

    huggingface/skills

    Official

    Build, deploy, and maintain applications on Hugging Face Spaces — Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging, buckets, inference providers, community…

    11k GitHub starsUsed in 1 repo~4.4k tokens
    AI & LLM EngineeringAuto-check passed

More from godot-fun/gai

All 36 skills in this repo
  • AI Text To Speech

    godot-fun/gai

    Zero-shot text-to-speech with voice cloning via IndexTTS2 (index-tts).

    184 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Audio Denoise

    godot-fun/gai

    Reduces background noise in a single audio file using FFmpeg afftdn.

    184 GitHub stars~465 tokensUpdated today
    Auto-check passed
  • Audio Fade

    godot-fun/gai

    Applies fade-in and fade-out at the start and end of a single audio file using FFmpeg.

    184 GitHub stars~652 tokensUpdated today
    Auto-check passed
  • Normalizes a single audio file to consistent LUFS loudness with true-peak limiting using FFmpeg.

    184 GitHub stars~684 tokensUpdated today
    Auto-check passed
  • Standardizes a single audio file to 44100 or 48000 Hz and exports 16-bit PCM WAV using FFmpeg.

    184 GitHub stars~638 tokensUpdated today
    Auto-check passed
  • Audio Split

    godot-fun/gai

    Splits a single audio file into two segments (part 1 before the split point, part 2 after) using FFmpeg.

    184 GitHub stars~554 tokensUpdated today
    Auto-check passed

Questions about Image Region Remove Key Color App

What does Image Region Remove Key Color App do?

Interactive Gradio UI to paint a region and remove solid key-color background (white / green / magenta) only inside that selection. Image Region Remove Key Color App is an agent skill from godot-fun/gai. Interactive Gradio UI to paint a region and remove solid key-color background (white / green / magenta) only inside that selection.

When should I use Image Region Remove Key Color App?

Image Region Remove Key Color App fits situations like: enclosed white islands remain after border/both keying; for localized white-background cutout; paint-to-erase chroma patches; selective color-key cleanup before Godot sprite import.

How do I install Image Region Remove Key Color App in Claude Code?

Run `npx skills add godot-fun/gai --skill image-region-remove-key-color-app -a claude-code`. Or copy the skill folder (.agents/skills/image-region-remove-key-color-app in godot-fun/gai) into .claude/skills/image-region-remove-key-color-app in your project. Claude Code loads it when a task matches its description.

How do I install Image Region Remove Key Color App in Codex?

Run `npx skills add godot-fun/gai --skill image-region-remove-key-color-app -a codex`. Or copy the skill folder (.agents/skills/image-region-remove-key-color-app in godot-fun/gai) into .agents/skills/image-region-remove-key-color-app in your project. Codex loads it when a task matches its description.

Can I use Image Region Remove Key Color App in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add godot-fun/gai --skill image-region-remove-key-color-app -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/image-region-remove-key-color-app, .gemini/skills/image-region-remove-key-color-app, .github/skills/image-region-remove-key-color-app and .opencode/skills/image-region-remove-key-color-app in your project.

What does Image Region Remove Key Color App need to run?

Going by SKILL.md and its folder, Image Region Remove Key Color App needs the command-line tools its instructions call (python and pip). Our summary lists: Python 3.

Does Image Region Remove Key Color App access the network?

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.

Is Image Region Remove Key Color App safe to install?

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.

What licence does Image Region Remove Key Color App use?

Image Region Remove Key Color App is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Image Region Remove Key Color App use?

About 1.4k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Image Region Remove Key Color App?

Skills that share tags, products or a category with Image Region Remove Key Color App: Text To 3D Asset (LaurentiuGabriel/unreal-game-assets-creation-skill, 148 stars), 2D Map and Scene Generator (0x0funky/agent-sprite-forge, 4.4k stars), Godot E2E (RandallLiuXin/GodotMaker, 550 stars) and Gdtoolkit (RandallLiuXin/GodotMaker, 550 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Image Region Remove Key Color App?

godot-fun (a GitHub organization) maintains it in godot-fun/gai, which has 183 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on October 10, 2026.

Source: godot-fun/gai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.