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.
Trims invalid border regions (transparent or solid-color padding) from images using Pillow.
$ npx skills add godot-fun/gai --skill image-trim -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install godot-fun/gai image-trim --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/godot-fun/gai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/image-trim .claude/skills/image-trim && 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 "image-trim" agent skill from https://github.com/godot-fun/gai/tree/main/.agents/skills/image-trim into .claude/skills/image-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-trim", 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/godot-fun/gai/tree/main/.agents/skills/image-trimType 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 godot-fun/gai --skill image-trim -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install godot-fun/gai image-trim --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/godot-fun/gai.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/image-trim .agents/skills/image-trim && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "image-trim" agent skill from https://github.com/godot-fun/gai/tree/main/.agents/skills/image-trim into .agents/skills/image-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-trim", 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 godot-fun/gai --skill image-trim -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install godot-fun/gai image-trim --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/godot-fun/gai.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/image-trim .cursor/skills/image-trim && 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 "image-trim" agent skill from https://github.com/godot-fun/gai/tree/main/.agents/skills/image-trim into .cursor/skills/image-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-trim", 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/godot-fun/gai.git --path .agents/skills/image-trim--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 godot-fun/gai --skill image-trim -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install godot-fun/gai image-trim --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/godot-fun/gai.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/image-trim .gemini/skills/image-trim && 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 "image-trim" agent skill from https://github.com/godot-fun/gai/tree/main/.agents/skills/image-trim into .gemini/skills/image-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-trim", 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 godot-fun/gai image-trimInstalls 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 godot-fun/gai --skill image-trim -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/godot-fun/gai.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/image-trim .github/skills/image-trim && 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 "image-trim" agent skill from https://github.com/godot-fun/gai/tree/main/.agents/skills/image-trim into .github/skills/image-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-trim", 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 godot-fun/gai --skill image-trim -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install godot-fun/gai image-trim --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/godot-fun/gai.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/image-trim .opencode/skills/image-trim && 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 "image-trim" agent skill from https://github.com/godot-fun/gai/tree/main/.agents/skills/image-trim into .opencode/skills/image-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-trim", 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.
image-trimTrims invalid border regions (transparent or solid-color padding) from images using Pillow.
Image Trim is an agent skill from godot-fun/gai. Trims invalid border regions (transparent or solid-color padding) from images using Pillow. Default crop preserves the source aspect ratio. Use when the user wants image trim, crop empty borders, remove transparent margins, trim white padding, auto-crop sprites, or tighten cutouts before Godot import.
Its SKILL.md is about 1.9k 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. It works with Godot and Python. The repository describes itself as: A lightweight AI agent and skill workflow framework built with Godot. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit aa1ac71. 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:
pythongitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, 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.
Image Trim loads about 1.9k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 677 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 godot-fun/gai at commit aa1ac71, republished under its MIT licence (© godot-fun). 677 words, ~1,872 tokens.
.claude/skills/image-trim/SKILL.md (or your agent's skills folder).Remove invalid border padding — transparent margins, flat white/green edges, or unused canvas space — with Pillow. Default: preserve the source aspect ratio so trimmed sprites stay proportionally consistent with the original frame.
Unlike --crop on image-remove-white-background (tight alpha bbox only), this skill expands the crop box to match the original width:height ratio while removing as much empty area as possible.
When this skill applies, read and follow skill-dependency-manager — run scripts as documented, install missing tools into .dependency/.
trim.py through the image-trim manifest entry (.dependency/image-trim/.venv/). Never use host python, py, python3, or any interpreter outside .dependency/.--image; directories are not supported.populated: false for image-trim is not a reason to skip. Install first, set populated: true, retry the same command.<image-dir>/image-trim/ by default — no path rewriting; never overwrite sources.bullet_speed.png). Cursor chat attachment paths like empty-window_images_bullet_speed-<uuid>.png are shortened automatically.From project root:
.dependency/python/python -m venv .dependency/image-trim/.venv
.dependency/image-trim/.venv/Scripts/python.exe -m pip install PillowRegister in .dependency/manifest.json:
"image-trim": {
"populated": true,
"bin": ".dependency/image-trim/.venv/Scripts/python.exe"
}Use bin/python on Unix.
Default: create an image-trim/ folder beside the input file and write the output there:
# Auto-detect transparent or solid-color borders (default)
# image/sprites/hero.png → image/sprites/image-trim/hero.png
.dependency/image-trim/.venv/Scripts/python.exe .ai/image-trim/trim.py --image image/sprites/hero.pngCustom output path:
.dependency/image-trim/.venv/Scripts/python.exe .ai/image-trim/trim.py --image image/sprites/hero.png -o image/sprites_trimmed| Mode | Behavior |
|---|---|
auto (default) | Use alpha when the image has transparency; otherwise sample corner color and trim solid borders |
alpha | Trim only by alpha — pixels above --alpha-threshold count as content |
color | Trim pixels matching --color (or corner sample) within --tolerance |
# Force alpha-only trim on RGBA cutouts
.dependency/image-trim/.venv/Scripts/python.exe .ai/image-trim/trim.py --image image/cutout.png --mode alpha
# Trim white padding on opaque JPG/PNG
.dependency/image-trim/.venv/Scripts/python.exe .ai/image-trim/trim.py --image image/foo.jpg --mode color --color FFFFFF| Option | Default | Notes |
|---|---|---|
--image | Required | Single supported image file |
| Output | <image-dir>/image-trim/<name> | Use -o / --output for custom file or directory |
| Aspect ratio | Preserve source | Pass --tight for tight bbox crop (no aspect lock) |
--mode | auto | alpha for transparent PNGs; color for flat backgrounds |
--alpha-threshold | 10 | Lower = stricter transparency detection |
--tolerance | 25 | Color distance for solid-border trim |
--padding | 0 | Extra pixels kept around detected content |
Supported inputs: .png, .jpg, .jpeg, .webp, .gif, .bmp, .tif, .tiff, .avif, .ico.
Default (preserve source): After detecting the content bounding box, the script expands the crop rectangle to the same width:height ratio as the source image, centered on the content. This removes empty borders while keeping frame proportions stable for animation sheets and UI assets.
Tight crop (--tight): Crop exactly to the content bbox (plus --padding) — same behavior as --crop on background-removal skills.
# Tight crop — smallest rectangle around content
.dependency/image-trim/.venv/Scripts/python.exe .ai/image-trim/trim.py --image image/sprites/hero.png --tight
# Keep 4 px breathing room, still preserve aspect ratio
.dependency/image-trim/.venv/Scripts/python.exe .ai/image-trim/trim.py --image image/sprites/hero.png --padding 4image-trim/ next to that file by default.image-remove-background/ outputs to drop excess transparent canvas.git restore; sources are never modified..dependency/ per skill-dependency-manager, retry same command.| Issue | Fix |
|---|---|
image-trim missing in manifest | Follow Setup; update manifest |
Directory passed to --image | Run once per file; this skill accepts image files only |
| Output already exists | Delete the existing output or choose a different -o path |
| Nothing trimmed | Content may already fill the canvas; try --mode color with --color |
| Too much removed | Lower --tolerance or --alpha-threshold; add --padding |
| Borders remain | Raise --tolerance; use --mode color with explicit --color |
| Distorted proportions after trim | Do not pass --tight unless user wants tight bbox |
| JPEG saved with wrong mode | Script converts RGBA → RGB automatically for .jpg output |
| Output has black instead of transparency | Source may be JPEG data saved with a .png extension (Cursor attachments) — re-supply the original RGBA PNG |
| Long Cursor attachment filenames | Script auto-renames to the embedded asset name (bullet_speed.png, etc.) |
Copy-paste commands: cli/image-trim.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
Just SKILL.md in .agents/skills/image-trim of godot-fun/gai.
Open the folder on GitHubat commit aa1ac71
Image Trim 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 |
|---|---|---|---|---|---|---|
| Image Trim this skillgodot-fun/gai | 182 | — | ~1.9k | Automated safety check: Pass | MIT | |
| 2D Map and Scene Generator0x0funky/agent-sprite-forge | 4.4k | — | ~2.9k | Automated safety check: Pass | MIT | |
| Godot E2ERandallLiuXin/GodotMaker | 550 | 1 repos | ~3.9k | Automated safety check: Pass | Custom licence | |
| GdtoolkitRandallLiuXin/GodotMaker | 550 | 1 repos | ~2.2k | Automated safety check: Pass | Custom licence | |
| Godot Gdscript Patterns925236118/AlphaAgent | 103 | 10 repos | ~5k | Automated safety check: Pass | MIT | |
| Godot UI Integrationzimo-xiao-zheng/godot-ui-integration | 277 | — | ~1.5k | Automated safety check: Pass | MIT |
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.
RandallLiuXin/GodotMaker
Write and run E2E (end-to-end) game tests using the godot-e2e framework.
RandallLiuXin/GodotMaker
Lint and format GDScript files using gdtoolkit (gdlint + gdformat).
925236118/AlphaAgent
Master Godot 4 GDScript patterns including signals, scenes, state machines, and optimization.
zimo-xiao-zheng/godot-ui-integration
Build or revise Godot UI from an approved design, separated art, or a visual reference when scene structure, gameplay binding, and runtime visual verification all matter.
godothub/godot-minigame
Apply the bundled self-contained Godot WeChat Mini Game adapter kit to an official Godot checkout.
godot-fun/gai
Zero-shot text-to-speech with voice cloning via IndexTTS2 (index-tts).
godot-fun/gai
Reduces background noise in a single audio file using FFmpeg afftdn.
godot-fun/gai
Applies fade-in and fade-out at the start and end of a single audio file using FFmpeg.
godot-fun/gai
Normalizes a single audio file to consistent LUFS loudness with true-peak limiting using FFmpeg.
godot-fun/gai
Standardizes a single audio file to 44100 or 48000 Hz and exports 16-bit PCM WAV using FFmpeg.
godot-fun/gai
Splits a single audio file into two segments (part 1 before the split point, part 2 after) using FFmpeg.
Categories
Trims invalid border regions (transparent or solid-color padding) from images using Pillow. Image Trim is an agent skill from godot-fun/gai. Trims invalid border regions (transparent or solid-color padding) from images using Pillow.
Image Trim fits situations like: the user wants image trim; crop empty borders; remove transparent margins; trim white padding.
Run `npx skills add godot-fun/gai --skill image-trim -a claude-code`. Or copy the skill folder (.agents/skills/image-trim in godot-fun/gai) into .claude/skills/image-trim in your project. Claude Code loads it when a task matches its description.
Run `npx skills add godot-fun/gai --skill image-trim -a codex`. Or copy the skill folder (.agents/skills/image-trim in godot-fun/gai) into .agents/skills/image-trim 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 godot-fun/gai --skill image-trim -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-trim, .gemini/skills/image-trim, .github/skills/image-trim and .opencode/skills/image-trim in your project.
Going by SKILL.md and its folder, Image Trim needs the command-line tools its instructions call (python and git). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use git, 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.
Image Trim 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.9k tokens (SKILL.md is roughly 7.5k 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 Image Trim: 2D Map and Scene Generator (0x0funky/agent-sprite-forge, 4.4k stars), Godot E2E (RandallLiuXin/GodotMaker, 550 stars), Gdtoolkit (RandallLiuXin/GodotMaker, 550 stars) and Godot Gdscript Patterns (925236118/AlphaAgent, 103 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
godot-fun (a GitHub organization) maintains it in godot-fun/gai, which has 182 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on October 9, 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.