From pixel-art-gen
This skill should be used when the user asks to "create pixel art", "generate pixel art", "make a pixel art sprite", "draw pixel art", "8-bit style image", "retro pixel image", "pixel art of", "make me pixel art", or requests creating pixel art, sprites, or retro-style pixel graphics. Claude designs the art itself and renders it to PNG using a bundled script — no external API needed.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pixel-art-gen:pixel-art-genThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate pixel art PNGs from text descriptions. You design the art yourself and render it with the bundled Python script.
Generate pixel art PNGs from text descriptions. You design the art yourself and render it with the bundled Python script.
Before generating pixel art, ensure:
pip install PillowIf Pillow is missing, install it before proceeding.
When a user requests pixel art, follow these steps:
Pick a grid size based on subject complexity:
| Complexity | Grid | Examples |
|---|---|---|
| Simple icons | 8x8 | heart, star, arrow, smiley |
| Standard sprites | 16x16 | character, animal, item |
| Detailed scenes | 32x32 | landscape, building, vehicle |
If the user specifies a size (e.g., "10x10"), use that instead.
Constrain yourself to 4-8 colors. Fewer colors = better pixel art. Pick colors that suit the subject. See ${CLAUDE_PLUGIN_ROOT}/skills/pixel-art-gen/references/pixel-art-guide.md for suggested palettes.
Think through the design systematically:
Create a JSON object using the sparse coordinate format. Only list non-background pixels:
{
"width": 8,
"height": 8,
"background": "#FFFFFF",
"grid_lines": false,
"pixel_size": 32,
"pixels": [
{"x": 3, "y": 0, "color": "#FF0000"},
{"x": 4, "y": 0, "color": "#FF0000"}
]
}
Important rules:
x is column (left to right), y is row (top to bottom)."#FF6B35") for precision. CSS named colors (e.g., "red") and "transparent" are also supported.pixel_art.json)python3 "${CLAUDE_PLUGIN_ROOT}/skills/pixel-art-gen/scripts/render_pixel_art.py" \
pixel_art.json \
-o pixel_art.png
Script arguments:
| Argument | Required | Default | Description |
|---|---|---|---|
input | Yes | - | JSON file path, or - for stdin |
-o, --output | No | pixel_art.png | Output PNG file path |
-p, --pixel-size | No | 32 | Size of each logical pixel in the output |
-g, --grid-lines | No | off | Enable 1px grid lines at pixel boundaries |
--no-grid-lines | No | - | Explicitly disable grid lines (overrides JSON) |
After displaying the result, offer to adjust:
When a user requests pixel art:
| Issue | Solution |
|---|---|
Pillow not installed | Run pip install Pillow |
| Garbled output | Check x,y coordinates are within grid bounds (0 to width-1, 0 to height-1) |
| Colors look wrong | Use hex codes for precision; named colors may vary |
| Image too small/large | Adjust -p pixel size (default 32) |
npx claudepluginhub thejacedev/claude-code-skills --plugin pixel-art-genCreates pixel art sprites from scratch with Aseprite tools for canvas setup, layer management, and drawing primitives including pixels, lines, rectangles, circles, fills, and palettes.
Generates pixel-art sprites, tiles, icons, and portraits at fixed resolutions (16×16 to 128×128) with grid alignment, limited palette, and retro styling. Useful when building 2D games that need crisp pixel assets.
Generates pixel art sprites, animations, sprite sheets, and converts images to pixel art using 30+ palettes, dithering algorithms, and automated quality scoring for retro/indie game art.