Win-Hao

Hatch Pet Claude — Development skill for Claude Code

Development community

Claude Code skill for generating animated pixel art pet sprites.

How to install Hatch Pet Claude

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Win-Hao/hatch-pet-claude and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Hatch Pet Claude does

Claude Code skill for generating animated pixel art pet sprites. Adapted from OpenAI Codex hatch-pet with interactive setup, preview gate, and centroid alignment.

Alternatives in Development

  • Agent Monitor — Claude Code Agent Team GUI Monitor - Tauri v2 + React + TypeScript macOS desktop app with pixel art office vie 50 ★
  • Deskpet Firmware — A pixel desk pet that reacts to Claude Code over BLE, running on M5 Cardputer 35 ★
  • Claude VS Codex — A 93-second pixel-art cartoon about Clawd and Codex, written entirely in code by Claude — one-shot, 1 user tur 19 ★

README

hatch-pet-claude

[English](README.en.md)

一个用于生成像素风动画宠物精灵图的 Claude Code 技能。输出兼容 Codex 格式的 1536x1872 精灵图集,支持多达 9 种动画状态。

基于 [OpenAI hatch-pet](https://github.com/openai/skills/tree/main/skills/.curated/hatch-pet) 改编,适配 Claude Code,支持任意 OpenAI 兼容的图片生成 API。

**⚠️ 重要:本技能仅对 GPT-Image-2 适配最好。** GPT-Image-2 是唯一能在一张图中精确绘制多个动画帧的模型。其他模型(Kling、DALL-E 3、Flux、Stable Diffusion 等)无法理解"水平排列 N 个角色帧"的指令,生成效果不可用。

![Pipeline](https://img.shields.io/badge/流水线-准备→预览→生成→提取-blue) ![Cost](https://img.shields.io/badge/费用-约¥3(medium)-green) ![Atlas](https://img.shields.io/badge/图集-1536x1872-orange)

示例

Homelander — pixel 风格,medium 质量

基准形象 精灵图集
idle running waving failed

Dark Knight — pixel 风格,low 质量(智能选色:自动从 magenta 切换到 cyan)

基准形象 精灵图集
idle running waving failed

工作原理

pet.json → prepare.py → generate.py --preview → generate.py → extract.py → spritesheet.webp
 (配置)      (免费)         (~¥0.3)              (~¥3)          (免费)         (完成!)
  1. 你描述想要的宠物角色(可选提供参考图)
  2. Claude 引导你选择风格、质量、动画状态、配置 API
  3. 预览生成 1 张基准图供你确认(medium 质量约 ¥0.3)
  4. **批量生成