sprite-gen: from one still to usable 2D sprite sheets
An open-source Codex/Claude skill and Python CLI that locks character identity, cuts transparent frames, and writes a sprite atlas with a manifest, or transparent loops. Generation uses your own subscription or API key. Checked on December 3, 2026.

Official links
Overview
sprite-gen is a Codex/Claude skill and a Python CLI. The official README contrasts it with asking an image model for a one-shot “sprite sheet.” You start from one base image. It generates state rows, locks the character’s look, turns a chroma background into real alpha, extracts clean frames, and writes sprite-sheet-alpha.png plus a manifest.json with frame_layout. The same still can go through a video model to make a transparent loop per motion. An optional curation view lets you compare, reject, and nudge frames before baking.
What it can do
The README also covers cutout and sheet slicing, exports to Aseprite / Phaser / Flame, deterministic recolors, tiled backgrounds, projected shadows, and optional scenes from existing assets. It does not ship a model or any credentials.
How to install
sprite-gen can be installed as a skill or as an ordinary command-line tool; the two paths are not the same.
If you use Codex, the simplest path is to send https://github.com/aldegad/sprite-gen to it and ask it to follow the README and install the sprite-gen skill. The official Codex skill-installer command, if you want to run it yourself, is: python3 ~/.codex/skills/.system/skill-installer/scripts/install-skill-from-github.py --repo aldegad/sprite-gen --path . --name sprite-gen. The project also describes itself as a Claude skill, but the README does not give a separate Claude Code install command; if you use Claude, follow the official docs as they stand, and do not invent a command.
If you prefer the CLI: clone the repo, use CPython 3.11 or later (3.10 is no longer supported; CI runs 3.14), and have a working venv / ensurepip. In the repo folder run python3 -m venv .venv && source .venv/bin/activate, then pip install -e ., and check sprite-gen --help.
How to use
This is not a click-once canvas. It is a pipeline from a base image to a usable sprite sheet. In everyday use you can tell the agent: “Use sprite-gen to build a pixel sprite sheet with walk, idle, and attack rows from this character base.” or “Use sprite-gen to make a transparent status atlas of this slime for Phaser.”
The steps are: sprite-gen prepare to set up the run folder and prompts, sprite-gen gen-set --provider codex to generate each state row, sprite-gen extract to cut transparent frames, and sprite-gen compose-atlas to write the atlas and manifest; sprite-gen curation is optional. Video loops use a separate sprite-gen video-set pipeline; the docs require ffmpeg, img2webp, and a grok login or XAI_API_KEY. Generation uses your own credentials — a signed-in Codex (ChatGPT) subscription by default, or grok, or OPENAI_API_KEY when you explicitly choose it. Do not put secrets in this site’s repository. See the official README and the Chinese guide for the full detail.
Compatible platforms
The official text presents it as a Codex/Claude skill and a standalone CLI, with engine exports for Phaser, Flame, and Aseprite. Documented image providers include codex, grok, and openai; pixel-draw can use a Claude Code subscription or ANTHROPIC_API_KEY. This page did not find a Cursor-specific install command in the official README, so it does not claim Cursor support.
Notes and license
Checked on December 3, 2026 (Beijing time): GitHub showed 4,452 stars. The license is Apache-2.0. SKILL.md in the repo listed version 4.4.0. This page is a short intro; follow the official README for commands and providers.