Transparent Cutout Cleanup

Use when removing backgrounds from generated sprites to get clean alpha edges with no halo, fringe, or leftover background pixels.

49 stars 6 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add 0xheycat/isometric-game-skills --skill transparent-cutout-cleanup
Manual install
git clone --depth 1 https://github.com/0xheycat/isometric-game-skills.git /tmp/isometric-game-skills
mkdir -p ~/.claude/skills
cp -r /tmp/isometric-game-skills/skills/transparent-cutout-cleanup ~/.claude/skills/transparent-cutout-cleanup

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Transparent Cutout Cleanup

## Overview

AI-generated sprites come on a background. Naive removal leaves a colored halo or jagged edge that screams amateur when tiles are placed together. This skill produces clean, premultiplied-safe alpha cutouts.

## When to Use

- Any generated sprite needs a transparent background.
- Placed sprites show a white/gray halo or fringe.
- Edges look jagged or have leftover background color.

## Process

1. Generate on a PLAIN flat background (easier to key out than a busy one).
2. Use a background-removal model (e.g. InSPyReNet / rembg) rather than a hard color key.
3. Inspect edges at 400% zoom for halo or fringe pixels.
4. Defringe / decontaminate edge color so no background tint remains.
5. Erode the alpha by 1px if a faint halo persists.
6. Save as PNG with straight alpha; verify on both light and dark backgrounds.
7. Batch the cleaned sprites for the atlas packer.

Pair this with the ComfyUI rembg node in `seamless-isometric-terrain/scripts`.

## Rationalizations (Stop Lying to Yourself)

| Excuse | Reality |
|---|---|
| "A white halo is barely visible" | On a dark tile it is glaring. Defringe every sprite. |
| "Hard color-key is faster" | It eats anti-aliased edges and looks jagged. Use a proper matting model. |

## Red Flags - STOP if you catch yourself:

- Visible halo/fringe when placed on a contrasting background.
- Jagged, aliased cutout edges.
- Background color contaminating semi-transparent pixels.

## Verification
Read the full skill on GitHub

Details

Skill name
transparent-cutout-cleanup
Path
skills/transparent-cutout-cleanup/SKILL.md
License
MIT
Repo updated
12 August 2026

FAQ

What does the Transparent Cutout Cleanup skill do?

Use when removing backgrounds from generated sprites to get clean alpha edges with no halo, fringe, or leftover background pixels.

How do I install the Transparent Cutout Cleanup skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add 0xheycat/isometric-game-skills --skill transparent-cutout-cleanup. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Transparent Cutout Cleanup popular?

It lives in 0xheycat/isometric-game-skills, which has 49 GitHub stars and 6 forks, and is included in 1 curated skill list.

Related skills

Animated Sprite Generation

49

0xheycat/isometric-game-skills

Use when creating looping animated isometric sprites (water, fire, windmills, flags) as frame strips that play back smoothly in-engine.

OtherIn 1 list

Asset Pipeline Automation

49

0xheycat/isometric-game-skills

Use when automating the path from generated sprites to a shipped atlas + map so re-generating art does not mean hours of manual rework.

Productivity & NotesIn 1 list

Autotiling Transitions

49

0xheycat/isometric-game-skills

Use when making different terrain types (grass, water, sand) blend with automatic edge and corner transition tiles instead of hard seams.

OtherIn 1 list

Bcm

43

NVIDIA/AI-Factory-Operations-Agent

Inspect Base Command Manager (BCM) inventory and health evidence, and make explicitly requested changes when Base Command Manager edit mode is enabled.

Other18

Tlaplus Add Variable

49

tlaplus/AgentSkills

Add a new variable to an existing TLA+ specification without changing its semantics. Ensures the variable is declared, initialized, and added to all UNCHANGED statements. Use when the user asks to add, introduce, or declare a new variable in a TLA+ spec, or mentions UNCHANGED statements.

Other

Checklist Decision

49

kangarooking/poor-charlies-almanack-skill

当用户面临重要决策且需要系统化排查遗漏、用户过度自信于自己的经验/判断力、用户是领域专家但正在处理复杂或高风险情境、或用户需要将自己的思维模型编排为可重复的决策流程时激活。典型触发信号:用户说"我很有经验,不需要清单";用户在高压环境下做决策;用户承认"事后发现遗漏了关键因素"。不适用于简单、低风险的日常小决策或纯创意/探索性思考。

Other16

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.