sprite-stacking is a trending agent skill repo that turns four flat pixel art views into a spinnable fake-3D sprite, with a Python slicer, HTML turntable viewer, and one-command install via the skills CLI. The GitHub project by Daniel White crossed 1,300 stars in late November 2026 as developers wire Claude Code, Cursor, and Codex into game jam workflows.
This is not a neural 3D model. It is the classic voxel carve trick: a pixel survives only where all four orthographic views agree, then layers stack into pseudo-depth you can rotate. Agents handle the boring glue: drawing views, running views_to_slices.py, and dropping assets into Godot or web demos.
Quick facts from the README
| Item | Detail |
|---|---|
| Install | npx skills add danielwh2/sprite-stacking (Node 22.20+) |
| Agents | Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Pi |
| Core script | skills/sprite-stacking/scripts/views_to_slices.py |
| License | MIT |
| Stars (late Nov 2026) | About 1.3k on GitHub (1,306 stars) |
| Prior art | Sprite stacking in indie games; repo adds four-view agent workflow |
How the pipeline works
Sprite-stacking pipeline from four orthographic views to slice strips
Image: Daniel White
The README breaks the skill into four steps:
- Views: one row with top, side, front, back, orthographic.
- Carve: voxels survive only under all four masks.
- Slices: volume cut into horizontal layers, ground first.
- Render: layers rotated, pitch squashed, lifted one pixel per layer.
The CLI example:
python3 skills/sprite-stacking/scripts/views_to_slices.py views.png slices.png \
--slices 36 --preview check.png --html viewer.html
Use --slices 15-20 for chunky props and 32-48 for detailed ones. Flags like --round carve cylinders instead of blocks; --normals and --emissive export matching strips for lit scenes.
Agents can invoke this after generating views.png, which is why the repo is classified as a skill rather than a standalone app.
Viewer features worth demoing
Six fake-3D pixel art props rotating in the sprite-stacking viewer
Image: Daniel White
The generated viewer.html is more than a GIF preview. The README advertises:
- Turntable and scene diorama modes with procedural props
- Slice scan and exploded views for debugging voxels
- Play mode with WASD driving across infinite grids
- Time of day, draggable sun shadows, rain and snow weather
- 16-direction baked PNG sprite sheet export
Performance notes claim vectorized NumPy carving and a typed-array rasterizer hitting sub-millisecond frames in Chrome for typical props. Your mileage depends on slice count and prop complexity.
How to talk to your agent
The README suggests prompts like:
- "Make a rotatable pixel art car."
- "Sprite stack this 4-view sheet and give me a turntable."
- "Add a fake 3D pixel art tree to my Godot game."
That lines up with how explainx.ai readers already use Replica skill and Claude animated shorts skills: repeatable commands, not one-off vibe coding.
For pixel effects rather than fake 3D, see pixelfx. For short films without a video model, see Lemo Opuscar.
Install paths and folders
| Agent | Skills folder |
|---|---|
| Claude Code | ~/.claude/skills/ |
| Codex, Cursor, OpenCode, Gemini CLI, Pi | ~/.agents/skills/ |
The npx skills path is fastest for jam weekends. Corporate machines should still run python3 tests/check.py from the repo if you fork it, per CONTRIBUTING expectations.
Game-dev context: Steam volume and AI slop
Valve cancelled February 2027 Steam Next Fest citing review backlog from rising submissions, as we noted in our Steam Next Fest update. Tools like sprite-stacking do not fix discovery, but they lower the cost of distinct pixel art that does not look like generic AI wallpaper.
Pair art skills with honest AI disclosure on Steamworks forms. Players increasingly punish undifferentiated slop even when tools are legal.
Security and licensing notes
- MIT license allows commercial jam games.
- Running
npx skillspulls packages; pin versions on CI machines. - Generated HTML viewers run local JavaScript; audit before hosting publicly if you embed untrusted agent output.
Testing the skill locally
From the repo root, python3 tests/check.py should print ok, per README. After install, verify:
- Agent places
views.pngwith four panels. - Slicer outputs
slices.pngand optionalviewer.html. - Game engine imports sheet or slices with correct pixel scale.
Workshops and team adoption
Studios adopting Claude Code for art pipelines can pair this skill with AI builder workshops so designers and engineers share vocabulary on orthographic constraints and slice counts.
Step-by-step: first fake 3D prop in one session
- Scaffold views. Ask the agent for a 512×128 strip: TOP | SIDE | FRONT | BACK with 1:1 orthographic pixels and a shared palette of 16–32 colors.
- Run the slicer. From the repo root after skill install:
python3 skills/sprite-stacking/scripts/views_to_slices.py assets/tree-views.png assets/tree-slices.png \
--slices 28 --preview assets/tree-check.png --html assets/tree-viewer.html
- Open
tree-viewer.htmllocally. Confirm turntable rotation; tweak--slicesif the canopy looks stepped. - Export sheet. Use viewer export for 16 directions if your engine expects pre-baked angles instead of runtime slice rendering.
- Import to Godot 4. Use a Sprite3D stack or a shader that steps through slice textures; keep pixel scale consistent with your tilemap.
If carving leaves holes, the README says views may be mis-ordered. Force order with --order reading.
Flag reference for builders
| Flag | When to use |
|---|---|
--round | Towers, balloons, tree canopies |
--side-nose right | Side view faces right; fixes asymmetric vehicles |
--colours N | Force shared palette size; 0 keeps all colors |
--normals path.png | Lit scenes needing normal maps |
--emissive path.png | Windows, headlights, neon accents |
The viewer's weather and time-of-day modes are overkill for jam demos but great for trailer GIFs when you want motion without learning Blender.
How sprite-stacking compares to other agent art skills
| Skill / repo | Output | Best for |
|---|---|---|
| sprite-stacking | Rotatable voxel stack | Retro 3D illusion from pixel art |
| pixelfx | New 2D effects | FX sheets and palette tricks |
| Lemo Opuscar | Short film storyboards | Cinematic sequences, not engines |
| Replica skill | UI clones | Apps, not in-game sprites |
Pick sprite-stacking when your game design doc says "Octopath-style props" or "FF6 boat on world map" vibes.
Performance and repo hygiene
The README cites NumPy vectorization and a software rasterizer optimized for Chrome. For CI:
- Pin Pillow and NumPy versions in a
requirements-sprite.txt - Store views and slices in
assets/source/so agents do not overwrite production sheets - Run
python3 tests/check.pyafter modifying skill scripts
Contributors should respect MIT terms and credit prior art when streaming builds.
Troubleshooting common agent mistakes
Problem: Carve erases the whole object.
Fix: Ensure opaque pixels align across all four views; agents love semi-transparent anti-aliasing that fails the all-views intersect rule.
Problem: Colors drift per view.
Fix: Use --colours to quantize, or preprocess with a shared palette PNG.
Problem: Skill not found in Claude Code.
Fix: Copy skills/sprite-stacking to ~/.claude/skills/ and restart the session; confirm with /skills listing.
Problem: Viewer blank in Safari.
Fix: README optimizes for Chrome; test Chromium first for jam deadlines.
Steam, AI disclosure, and jam strategy
With Valve cancelling February 2027 Next Fest over review backlog, demos submitted outside fest windows still face longer review. Distinct pixel stacks help store pages look authored, not template mush, but they do not replace honest AI disclosure on Steamworks forms.
Read our Steam Next Fest update for Valve's stated reasons versus community AI-volume analysis.
Team rollout
Studios adopting Claude Code should add sprite-stacking to an approved skills list beside Jane Street tutor skills and AG-UI experiments. Run a 90-minute internal jam using AI builder workshops so art and engineering share the same four-view spec.
Godot, Unity, and web export notes
Godot 4 teams usually mount slice strips on Sprite3D nodes or custom shader_quads that offset Y per layer. Keep texel density identical across views before carving, or voxel height looks uneven. Export 16-angle sheets from the HTML viewer when mobile targets need pre-baked frames.
Unity users can treat slices as Texture2DArray slices in a custom shader, but the repo targets indie Godot workflows in community examples. Web Phaser jams can load the viewer HTML as a reference and port the draw loop manually.
When not to use this skill
Skip sprite-stacking when:
- You need true mesh normals for dynamic lighting beyond emissive strips
- Your art is hand-painted single view billboards in 3D (use billboard shaders instead)
- You require rigged skeletal animation (this is stack rotation, not bones)
For Binding of Isaac-scale AI music drama on Steam, see Suno disclosure backlash — orthogonal problem, same platform trust theme.
Historical context for readers
Sprite stacking appeared in 1990s shareware and DOS demoscene tricks before voxel engines went mainstream. Daniel White's README is explicit: the technique is not new; the agent skill packaging is. That distinction matters for portfolio reviews — interviewers may ask whether you understand voxels or only prompted a script.
Studying one manual carve without agents (draw four views in Aseprite, run CLI yourself) teaches failure modes agents hide when they auto-repair mismatched pixels.
If your studio maintains a skills registry, document sprite-stacking beside Clipy screen recorder and Claude trading skills entries so producers know which agent affordances are approved for jams versus client work.
License recap: MIT means commercial use is allowed with attribution. You still must respect trademark and Steam rules on AI disclosure when shipping builds that used agents to generate art. sprite-stacking does not grant IP in Nintendo-style characters you prompt into existence.
