- Home
- Skills
- Game Development
- Pixel-Grid Sprite Compiler
Pixel-Grid Sprite Compiler
Compile text-based pixel grids and palettes into transparent RGBA PNGs using a pure Python stdlib encoder.
$2
Pixel-Grid Sprite Compiler
Example session with this skill installed
Create a 16x16 JSON spec for a red heart sprite with a black outline and compile it to heart.png with a scale factor of 4.
- Read your context and instructions
- Compiled the pixel-grid sprite compiler
I have generated the JSON specification for the red heart sprite and compiled it into a PNG. The validator confirmed all rows are equal length and all palette keys are mapped.
Pixel-Grid Sprite Specification
{
"name": "red-heart",
"scale": 4,
"palette": {
".": "transparent",
"X": "#000000",
"R": "#FF0000",
"H": "#FF7777"
},
"grid": [
"................",
"....XXXX..XXXX..",
"...XRRRRXXRRRRX.",
"..XRRRRRRRRRRRRX",
"..XRRRRRRRRRRRRX",
"..XRRRHHHHHRRRRX",
"..XRRRHHHHHRRRRX",
"...XRRRRRRRRRRX.",
"....XRRRRRRRRX..",
".....XRRRRRRX...",
"......XRRRRX....",
".......XRRX.....",
"........XX......",
"................",
"................",
"................"
]
}
Compilation Report
- Output Path: heart.png
- Dimensions: 64x64 (16x16 source * 4 scale)
- Opaque Pixels: 74
- Transparent Pixels: 182
- SHA256: 5f4dcc3b5aa765d61d8327deb882cf99
Next steps
- Run
python3 scripts/compile_pixel_grid.py heart.json -o heart.pngto regenerate the binary. - Adjust the
scalevalue if you need a larger preview size. - Use the
--validate-onlyflag to test new color palettes without writing files.
Connects securely to your tools. The creator never sees your data.
About this skill
Lets any text or coding agent design crisp transparent sprites with zero image tools: describe a sprite as a plain palette-plus-grid JSON spec and compile it to a real RGBA PNG with a pure-stdlib compiler (zlib and struct only — no Pillow, no ImageMagick). The built-in validator refuses ragged grids and unmapped palette keys before anything renders. Two worked examples included. From THE PASSWORD.
Restricted to 8x8 to 64x64 grids. No support for non-integer scaling or photographic editing. Requires Python 3 stdlib.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 14 days ago
Permissions
What's inside
Frequently Asked Questions
New in Game Development
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Game Development.