sprite-gen turns one reference image into transparent sprite sheets and loops via Python CLI and Codex or Claude skills.
Overview
sprite-gen is a Python command-line tool and installable agent skill that builds game-ready 2D sprites from a single base image. It runs generation row by row to hold character identity, removes chroma backgrounds to real alpha, cuts frames, and emits a runtime atlas plus a manifest with frame layout metadata.
The atlas pipeline produces sprite-sheet-alpha.png and manifest.json.framelayout with absolute rectangles, per-state fps, and loop flags. A separate video pipeline turns stills into seamless transparent GIF, WebP, or strip loops using external video models and ffmpeg tooling. Utilities slice imported grids, recolor finished sheets, export to engines such as Phaser or Flame, and optionally compose scenes from existing assets.
Image and video generation call user-provided Codex, Grok, Claude, or OpenAI credentials; nothing bills through the tool itself. A curation webview supports comparing and rejecting frames before baking. The workflow targets pixel-art and animation states such as idle, walk, and attack.
Installation supports CPython 3.11 and newer as a pip package and as a skill for coding agents following documented contracts in SKILL.md.
Key features
- Component-row atlas generation
- Transparent alpha extraction
- manifest.json frame layout
- Video-to-loop motion pipeline
- Engine exports and recolor tools
- Agent skill for Codex and Claude
- Curation webview for frames
- Scene composition workflow
Use cases
- 2D indie game character sheets
- Pixel art animation loops
- Agent-driven asset pipelines
- Atlas export for game engines