Install
openclaw skills install @mmgongzhu/build-pixel-pet-spritesCreate a production-ready chibi pixel-art virtual desktop pet based on a character reference image, including character design sheets, multi-action animation sprite sheets, transparent RGBA frame assets, action strips, asset inventories, GIF previews, automatic character alignment using alpha edges and connected-component analysis, jitter measurement, asset validation, ZIP packaging, and web integration delivery. Use this for creating virtual desktop pets, pixel mascots, animated sprites, frame-by-frame animations, character animation alignment, or fixing position drift between animation frames.
openclaw skills install @mmgongzhu/build-pixel-pet-spritesCreate a reusable, aligned sprite package from a character reference or repair an existing package whose subject drifts between frames.
sprite-manifest.json; do not
request new images.Collect:
Choose one row per action and chronological frames from left to right. Prefer equal frame counts when the consuming application benefits from a rectangular atlas.
Read and follow the installed imagegen skill. Use its dedicated-subagent workflow so
the main thread receives no image bytes or Base64.
Generate in this order:
Pass local references with referenced_image_paths. Keep later revisions with the same
generating subagent. Use the prompt patterns in references/prompting.md.
For transparent assets, generate on uniform #FF00FF, then use the imagegen skill's
installed remove_chroma_key.py helper. Do not modify scripts/image_gen.py.
Create a package configuration using references/package-config.md, then run:
python scripts/build_sprite_package.py <transparent-atlas.png> <config.json> <output-dir> --character-master <master.png>
The script normalizes the atlas with nearest-neighbor sampling and produces the atlas, action strips, individual frames, previews, manifest, and ZIP.
Always align generated animation frames, even when visual inspection looks acceptable:
python scripts/align_sprite_frames.py <package-dir> <aligned-output-dir>
The aligner:
If the complete content cannot move without clipping, regenerate or package with more transparent padding. Do not silently crop the main subject.
Run:
python scripts/validate_sprite_package.py <aligned-output-dir>
Require all checks to pass:
Inspect generated visual content only in the generating subagent. Use script reports for dimensions, alpha, edges, anchors, and jitter.
Return:
Keep the unaligned source package. Never overwrite existing assets; create a versioned sibling. Do not return Base64, discarded variants, or high-volume image tool output.
Recommend loading one atlas plus sprite-manifest.json rather than requesting every
frame separately. Render the atlas with Canvas or CSS background positioning, disable
image smoothing, and use the manifest's duration, loop, row, dimensions, and anchor data.