Pixel Snap Cleanup (AI fake pixels to true pixel art)
/pixel-snap-cleanup
A GameSkill original that turns AI "fake pixel" art into true pixel art at the grid you choose: snap to a real grid with the bundled Pixel Snapper (MIT), force 0/255 alpha and a fixed palette, hit the exact size, then check it is CLEAN and imports crisp into Godot 4. Works on single sprites and on animation frames, which share one grid.
- License
- MIT
- By
- By GameSkill
Tested by GameSkill
43/43 checks passed on Pixel Snapper 1.0.0 (Rust, built with cargo) + Godot 4.7.2 (texture import) (2026-11-09): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.
Test reportGameSkill's tested copy
Written and tested by GameSkill for gameskill.dev. The ZIP holds the whole skill: SKILL.md and its Chinese version, scripts, a runnable example, tests, the self-check list and our test report.
A GameSkill original, released under MIT. The ZIP keeps LICENSE and CREDITS.md, which lists the workflow inspiration, the CC0 test assets and the third-party libraries with their licenses.
Self-check
- 先问清网格大小、调色板、单张还是动画帧 / Ask for the grid size, the palette and whether it is one image or frames
- snap.py 每张图都以 PASS ... CLEAN 结束 / snap.py ends with PASS ... CLEAN for every image
- 透明度只有 0/255,颜色都在调色板里 / Alpha only 0/255 and every colour in the palette
- 动画帧在同一次调用里对齐 / Animation frames were snapped in one call
- Godot 项目用 Nearest 过滤、Lossless 导入 / The Godot project uses the Nearest filter and Lossless import
Install
Tell your AI
Install the skill from https://gameskill.dev/skills/pixel-snap-cleanup/install.md
GameSkill's tested copy
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/pixel-snap-cleanup.zip -o /tmp/gameskill-pixel-snap-cleanup.zip
unzip -oq /tmp/gameskill-pixel-snap-cleanup.zip -d .claude/skills
rm /tmp/gameskill-pixel-snap-cleanup.zipWhat you get
- tools/snap.py: snap, finish, fit and check in one command, with a fixed pixel size for animation frames; PASS / FAIL per image
- tools/pixtool.py: check (binary alpha, colour count, uniform cells, palette), finish, fit, compare, sheet (Aseprite-style JSON), upscale and a fake-pixel generator for tests
- vendor/pixel-snapper: Sprite Fusion Pixel Snapper 1.0.0 source with its MIT licence, unchanged, and tools/build_snapper.sh
- tools/godot_import_check.py: proves the sprite imports into Godot 4 lossless, nearest filter, at the right size
- Our own moss-cap toadstool sprite, an AI-looking copy to practise on, and 30 checks in test/run_tests.py
Good fit
- Sprites, tiles and items from an image model that should be pixel art but have soft edges and hundreds of colours
- Animation frames that jitter because each was snapped on its own grid
- Locking AI art to a game's fixed palette and a fixed size before it goes into Godot or a web game
Not for
- Drawing the art or choosing a style: use style-cards or the art skills
- Images that are not a grid at all (perspective scenes, rotated or mixed-scale art): crop or redraw first
- Upscaling pixel art for print or video
Try this prompt
My image model made a 32x32 mushroom sprite, but it is 230 pixels wide, blurry and has 400 colours. Make it real 32x32 pixel art in the PICO-8 palette and check it imports crisp in Godot.About this skill
A GameSkill original. Image models draw sprites that look like pixel art at a glance but are not: each "pixel" is several real pixels of uneven size, edges are blurred, there are hundreds of colours and the outline is half-transparent. tools/snap.py turns such an image into true pixel art at the grid you ask for: it snaps it to a real grid with the bundled Pixel Snapper (MIT), retries with a fixed pixel size when auto-detection picks the wrong grid, forces 0/255 alpha and your palette, trims or pads only empty rows and columns to the exact size, and checks the result is CLEAN. Animation frames share one pixel size so they do not jitter, and godot_import_check.py proves the sprite imports into Godot 4 crisp.
Agent steps
- Ask for the grid (for example 32x32), the palette or the colour limit, and whether it is one image or frames.
- Build the snapper once with
tools/build_snapper.sh. - Run
snap.py(frames in one--out-dircall) and fix each FAIL from the table in SKILL.md. - Check the result next to the input, make a sheet if needed, and run the Godot import check for a Godot game.
Common problems it fixes
- Soft, half-transparent edges and hundreds of near-identical colours that a plain downscale keeps.
- A grid detected one row off (32x30 instead of 32x32), fixed by the fixed-size retry and an empty-line fit.
- Frames that each land on a different grid, and sprites that look blurry in Godot because of the texture filter.
Credits
The grid snapping is Sprite Fusion Pixel Snapper by Hugo Duprez (MIT), shipped unchanged with its licence. The snap-then-palette flow was inspired by mono-pix (no licence; link only, no code or text used). The tools, the moss-cap example and the text are ours.
Requirements
- Python 3 standard library; no packages
- Rust stable with cargo (tested on 1.85) to build the bundled Pixel Snapper once; its crates come from crates.io, pinned by Cargo.lock
- Godot 4.2+ only for the optional import check (tested on 4.7.2)
Topics
FAQ
AI 2D Asset & Sprite Pipeline Kit
Turn raw AI-generated video clips into crisp transparent 2D sprite sheets: chroma-key + despill commands, 0px foot-root anchor locking, non-linear hit-stop action pacing (4.33s -> 1.88s), and Phaser 3 / Godot 4 SpriteFrames exporters.
Based on Sprite Fusion Pixel Snapper by Hugo Duprez (MIT; source shipped unchanged at 02f9315). Their code ships unchanged in the ZIP with its licence; GameSkill wrote the skill text, tests and example. CREDITS.md lists every source. · Based on mono-pix (idea only) by handsupmin (no licence file, idea only, no code or text used). Ideas only: GameSkill wrote the code and text; CREDITS.md in the ZIP lists every source.
Works well with
Skills the author points to as related or as the better fit for neighbouring tasks.
Style Cards (one art style as hard limits, switch looks by switching cards)
A GameSkill original that writes a game's art style down as a card of measurable limits (canvas, colours and palette, alpha, triangles, shading, materials, textures, voxel grid), pastes it into every asset request and checks every asset against it. Ships 16 cards from pixel (including fixed PICO-8, CGA, four-greens LCD and Endesga 32 palettes) and one-bit to low-poly, voxel and toon, a no-dependency PNG checker, a Blender GLB checker and a palette locker; switch the whole look by switching the card.
Pixel Diorama Game (tiny isometric pixel games with seamless ambience)
A GameSkill original for making a small browser game as an isometric pixel diorama: one place floating on white, a fixed 30-degree camera, a 360x280 canvas scaled by whole pixels, hue-shifted shading, long hard shadows and one physical action, plus rain, ripples, smoke, embers and lamp flicker drawn by code in loops that wrap without a seam. Ships the Pixel Plays renderer (MIT), our ambience kit and a tested example game.
GLB to Godot Acceptance (is this model really done?)
A GameSkill original that decides whether a 3D model is ready for a game: Godot 4 imports the GLB like any file in the project, then checks import errors, triangle budget, size in metres with Y up, origin at the base, materials, colliders, the clips the code plays, a drop test on a floor and runtime errors, with a fix for every failure. Works on any GLB from Blender or an image-to-3D model.
Similar skills
Agent Sprite Forge
Five agent skills that turn one approved character still into a game-ready sprite set: one image-to-video clip per action, then deterministic Python tools key, register, loop, retime, palette-lock and export it for Godot, Aseprite and the web. Also maps, tiles and code-drawn art.
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
Shader Art Coding (GLSL / Shadertoy)
A tested library of 186 GLSL building blocks plus a workflow for procedural fragment shaders: SDF raymarching, 2D distance fields, noise and fBm, terrain, water, clouds, lighting and tonemapping. A Python bundler inlines only the functions a shader uses, and a checker lints it for the mistakes that break WebGL. Good for game backdrops, title screens, portals, pickups and full-screen effects.
Codixel
A pixel-art skill built on one idea: the agent writes code, it is not a painter. It asks for a reference image, then removes the background, pixelates, rigs with bones and animates it in code with a 2,000-line toolkit (core/pixel.js), showing every step on a sheet before making game files.