agent-sprite-forge turns one approved generated character still into a full set of keyed, looped and timed sprite animations, exported for engines such as Godot, Aseprite and the web. It replaces the traditional work of cutting frames out of image-generated sheets or keying clips by hand.
Project overview
Its pipeline covers the whole distance from a single master still to engine-ready packages: one image-to-video clip per action, plus gating, soft-matte keying, loop picking, retiming and export in formats including animation.json 3.0 with PNG atlas, VP9-alpha WebM, MP4, Godot SpriteFrames, Aseprite JSON and Tiled, Godot and LDtk maps.
Project type
AI Agent · Image & Vision
Use cases
Image Processing
Deployment
Refer to project documentation
License
MIT
Best for
Creators and developers who want to build game-ready character animation sets from one approved generated still.
Key capabilities
master_still.py writes the prompt, generates takes, fixes a near-miss by edit and approves one still recorded in master.json.
sprite_set.py makes one image-to-video clip per action, gates takes, keys with a soft matte, registers, picks loops, retimes one-shots, finishes and packages.
Exports animation.json 3.0 with PNG atlas, VP9-alpha WebM and MP4, Godot SpriteFrames, Aseprite JSON, and maps for Tiled, Godot and LDtk.
Limitations and risks
Image-to-video models drift on fast limbs and jumps; expect retakes on run and jump actions.
Getting started
Install via the Claude Code plugin marketplace or clone the repo, run pip install Python dependencies, and optionally install ffmpeg and provider keys. First success path: claude plugin marketplace add 0x0funky/agent-sprite-forge --sparse .claude-plugin skills; claude plugin install agent-sprite-forge@agent-sprite-forge; python -m pip install "numpy>=1.26" "Pillow>=10.1" "scipy>=1.11".
Image and video generation use API providers (OpenAI, Gemini, xAI, BytePlus, fal.ai) or local CLI routes (Codex, Antigravity, Grok) via an API key or signed-in CLI; these are optional paid services, and codeart2d can draw when no image model is available.
Evidence and sources
README: Before 0.4, character animation meant cutting frames out of an image-generated sheet, or keying a single clip by hand. 0.4 turns one approved still into the whole set: one image-t…
README: The agent generates a master still with the best image route you have, makes one image-to-video clip per action from it, and deterministic Python tools gate, key, register, loop,…
README: The agent runs `master_still.py generate --takes 3` (every take through `route_media.py`), shows you the takes, fixes a near-miss with `master_still.py edit` ("THE ONLY CHANGE: ..…
README: **Engine exports.** animation.json 3.0 with a PNG atlas, VP9-alpha WebM and packed-alpha MP4, decoded and verified; Godot SpriteFrames and Sprite3D; Aseprite JSON; maps for Tiled,…
README: Use $generate2dsprite to make a master still of Aria, a young swordswoman hero: short dark hair, a teal hooded cloak, a long red scarf and one steel sword.