pxl-pixel-art
Installation
SKILL.md
pxl: pixel art as code
You write a small .px.js file; pxl renders PNGs and upscaled previews you can look at. The DSL
is built to avoid writing pixels twice: mirroring, auto-outline, palette-swap variants, reusable
parts, primitives, brushes and tilemaps. Needs Node ≥ 22.18. No install step.
PXL below means node <this skill's directory>/bin/pxl.js.
Workflow
- Write
art.px.js(start from the template below; examples inexamples/). - Build only what you're working on:
PXL build art.px.js --only slime,heart - Look at it: read
out/_preview/<name>.png(upscaled, checkerboard = transparent, grid every pixel, darker every 8). For exact pixel fixes usePXL ascii art.px.js <name>(keys + x/y rulers); it's cheaper than an image. - Fix with small edits (a
grid(x, y, ...)patch, one op) and rebuild. Repeat. - If the user wants to watch: start
PXL serve art.px.jsin the background and give them the URL. It rebuilds on every save and replays the edited asset's painting steps; it also writes the sameout/files, so keep reading previews as usual.