cd /news/ai-agents/sprite-stacking-agent-skill-turns-fo… · home › topics › ai-agents › article
[ARTICLE · art-179004] src=explainx.ai ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

sprite-stacking: Agent Skill Turns Four Pixel Views Into Spinning Fake 3D Art

Daniel White's sprite-stacking GitHub repository, an agent skill that converts four orthographic pixel-art views into a rotatable fake-3D sprite, passed 1,306 stars in late November 2026. The MIT-licensed skill installs via `npx skills add danielwh2/sprite-stacking` on Node 22.20+ and works with Claude Code, Codex, Cursor, OpenCode, Gemini CLI and Pi, running a Python slicer (`views_to_slices.py`) that carves voxels surviving all four views and outputs slice strips plus an HTML turntable viewer. The repo is classified as a skill rather than a standalone app because agents generate the views, run the script and drop assets into Godot or web demos.

key takeaway

The skill's `views_to_slices.py` script carves voxels only where all four orthographic views agree, with `--slices 15-20` recommended for chunky props and 32-48 for detailed ones, and `--round`, `--normals` and `--emissive` flags for cylinders and lit-scene strips.

by read8 min views7 publishedDec 1, 2026
sprite-stacking: Agent Skill Turns Four Pixel Views Into Spinning Fake 3D Art
Image: Explainx (auto-discovered)

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:

  1. Views: one row withtop, side, front, back , orthographic.
  2. Carve: voxels survive only underall four masks.
  3. Slices: volume cut into horizontal layers, ground first.
  4. 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 andscene diorama modes with procedural props
  • Slice scan andexploded 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 skills pulls 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:

  1. Agent places views.png with four panels.
  2. Slicer outputs slices.png and optional** viewer.html** .
  3. 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 #

  1. Scaffold views. Ask the agent for a512×128 strip:TOP | SIDE | FRONT | BACK with1:1 orthographic pixels and ashared palette of16–32 colors .
  2. 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
  1. Open tree-viewer.html locally. Confirmturntable rotation; tweak**--slices** if the canopy looksstepped .
  2. Export sheet. Use viewer export for16 directions if your engine expectspre-baked angles instead ofruntime slice rendering .
  3. Import to Godot 4. Use aSprite3D stack or ashader that steps through slice textures; keeppixel scale consistent with yourtilemap .

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 andNumPy versions in a**requirements-sprite.txt**
  • Store views andslices in**assets/source/** so agents do not overwriteproduction sheets
  • Run python3 tests/check.py after 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 fordynamic lighting beyond emissive strips
  • Your art is hand-painted single view billboards in3D (usebillboard shaders instead)
  • You require rigged skeletal animation (this isstack rotation , notbones )

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.

── more in #ai-agents 4 stories · sorted by recency
── more on @daniel white 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/sprite-stacking-agen…] indexed:0 read:8min 2026-12-01 · —