Claude Skill
aldegad/sprite-gen
sprite-gen是一个Claude/Codex技能,通过组件行式管道(含状态行、Alpha清理、帧提取和运行时图集创建)生成干净的2D游戏精灵和动画图集。
概览
仓库信息
安装这个 Skill
pip install -e .Registry 信息
项目简介
一个专为Claude/Codex设计的技能,用于生成干净的2D游戏精灵和动画图集,采用组件行式管道。它处理状态行、Alpha清理、帧提取和运行时图集创建,简化游戏开发者的精灵表制作流程。
Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
要点
- 组件行式管道,实现有序精灵生成
- 状态行管理,支持不同动画状态
- Alpha清理,确保精灵边缘干净
- 从动画中提取帧
- 运行时图集创建,提升渲染效率
使用场景
- 为2D平台游戏生成精灵表
- 为RPG角色创建动画图集
- 自动化像素艺术资产生产管线
- 为游戏引擎构建运行时精灵图集
README 摘要
<p align="center"> <img src="docs/claudecy-idle.gif" width="110" alt="claudecy idle" /> <img src="docs/claudecy-running.gif" width="110" alt="claudecy running" /> <img src="docs/claudecy-success.gif" width="110" alt="claudecy success" /> <img src="docs/claudecy-talking.gif" width="110" alt="claudecy talking" /> <img src="docs/howl-idle.gif" width="110" alt="howl idle" /> <img src="docs/howl-running.gif" width="110" alt="howl running" /> <img src="docs/howl-success.gif" width="110" alt="howl success" /> </p> <h1 align="center">sprite-gen</h1> <p align="center"><b>One drawing in. A game-ready sprite atlas out.</b></p> <p align="center"> **English** · [한국어](README.ko.md) · [日本語](README.ja.md) · [简体中文](README.zh-Hans.md) · [Español](README.es.md) · [Français](README.fr.md) </p> --- Ask an image model for a "sprite sheet" and you know what you get: a character whose face changes every frame, a background that won't key out, poses that overlap and drift off-grid, and a PNG your game engine can't actually consume. Cute demo, useless asset. `sprite-gen` is a Codex/Claude skill that closes that gap. Give it **one base image** and a list of actions — it drives the generation row by row, locks the character's identity, strips the chroma background to real alpha, extracts each pose as a clean transparent frame, and bakes a runtime atlas **with a machine-readable `manifest.json.frame_layout`**. Every sprite above was made this way. And for the last 10% that generation never gets right, there's a **curation webview**: compare frames side by side, reject the broken ones, nudge rotation/scale/position non-destructively, watch the loop live — then bake. The pipeline does the labor; you keep the taste. ```text sprite-request.json → layout guides + prompts → image-