sprite-gen
Generate clean 2D game sprites and animation atlases: state rows, alpha cleanup, frame extraction, runtime atlases.
- License
- Apache-2.0
- By
- By GameSkill
Tested by GameSkill
54/54 checks passed on Python 3.13 (2026-10-29): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.
Test reportWhat this skill does
What the AI learns
Generate game sprites and images through GPT or Grok, then turn them into engine-ready atlases, loops, logos and palette swaps.
When it triggers
When you ask for sprites, an image, a title logo, a palette swap, an animation atlas or a video loop. The SKILL.md description lists English and Korean trigger words.
Example result
A transparent sprite-sheet-alpha.png plus manifest.json with frame rectangles, per-state fps and loop flags.
GameSkill's tested copy
GameSkill's tuned build of this skill: the skill files from commit 419f02cd54b4, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.
License: based on aldegad/sprite-gen by aldegad, under Apache-2.0. The ZIP keeps the license files (LICENSE, NOTICE) and lists everything GameSkill added in CHANGES.md.
Self-check
- 先跑 sprite-gen workflow --kind sprite 看引导,只补问缺的服务商和动作 / Run sprite-gen workflow --kind sprite first and only ask for the missing provider or motion choices
- 只在作者说的 .venv 里运行,不用系统 Python / Run only from the .venv the author asks for, not the system Python
- 红色或品红附近的角色用绿色抠像底,不用品红 / Use a green chroma key, not magenta, for red or magenta-adjacent subjects
- 交付前看每个状态的 GIF 和接触表,确认没有底色残边 / Check each state's GIF and contact sheet for chroma fringes before delivery
- 走路和跑步循环在 motion QA 通过前都算实验品 / Walk and run loops stay experimental until motion QA passes
- 视频转循环:角色身上没有绿色时用 --spill full(或 --spill auto 加 --reference 原图),否则两腿之间的窄缝会留绿 / Video loops: use --spill full (or --spill auto with --reference) for a subject with no green, or the slit between the legs stays green
- 多方向走路循环跑 video-cycle-align,正面或背面认不出脚时用 --foot 指定 / Run video-cycle-align across a walk's directions and name the foot with --foot where a front or back view cannot tell
- 生图和视频用你自己的 codex、grok 登录或 API key,key 不写进项目 / Generation uses your own codex or grok login or API key; never write keys into the project
Install
Tell your AI
Install the skill from https://gameskill.dev/skills/sprite-gen/install.md
GameSkill's tested copy
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/sprite-gen.zip -o /tmp/gameskill-sprite-gen.zip
unzip -oq /tmp/gameskill-sprite-gen.zip -d .claude/skills
rm /tmp/gameskill-sprite-gen.zipHow to use
Make a sprite atlas from base.png with idle, walk and attack rows.Make a title logo that says STARFALL in a painted fantasy style.Recolor this sprite sheet into three palette variants.What you should get (per the author's docs)
Per the README, the agent checks access, asks only for missing provider or motion choices, runs the pipeline and delivers the files; the curation view is optional. You get per-state GIFs and contact sheets for QA. Walk and run loops stay experimental unless motion QA passes, and the logo step refuses a misspelt title.
What you get
- A sprite-sheet with alpha plus manifest.json for your engine
- State rows such as idle, walk, run, jump and attack from one base image
- Optional loop repair for walk, run and jump cycles
Good fit
- Turning one character still into game-ready animation atlases
- 2D games in any engine
Not for
- 3D assets
Overview
sprite-gen is a component-row pipeline for 2D characters. You start from one base image. The tool prepares prompts and guides, generates every animation state row, removes the chroma background, extracts frames and composes a runtime atlas with a manifest.
A second path turns short generated videos into transparent loops, with cycle-length alignment across directions. It works as a Codex or Claude skill, and the CLI can also be used on its own.
Requirements
- Python 3 with a virtualenv (the only supported interpreter)
- For video loops: ffmpeg, img2webp and a Grok login, XAI_API_KEY or a video MCP on your agent
FAQ
AI 2D Asset & Sprite Pipeline Kit
Turn raw AI-generated video clips into crisp transparent 2D sprite sheets: chroma-key + despill commands, 0px foot-root anchor locking, non-linear hit-stop action pacing (4.33s -> 1.88s), and Phaser 3 / Godot 4 SpriteFrames exporters.
- FFmpeg colorkey + despill frame extraction builder
- 0px foot-root anchor packer (zero character float or jitter)
Based on aldegad/sprite-gen by aldegad (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.
Similar skills
Universal Modder
Skills, tools and a fal MCP that let Claude Code mod PC games you own: recon, reverse engineering, generated assets, in-game testing.
Agent Sprite Forge
Five agent skills that turn one approved character still into a game-ready sprite set: one image-to-video clip per action, then deterministic Python tools key, register, loop, retime, palette-lock and export it for Godot, Aseprite and the web. Also maps, tiles and code-drawn art.
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
Create Game Assets
Plan, generate, source, normalize, and validate cohesive visual game assets.