Back to Skills

hatch-pet

Create, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual references. Use when a user wants a lightweight-worker Codex pet workflow, a non-pixel custom pet style, a prospect or company mascot pet, or a full 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. This skill composes the installed $imagegen system skill for visual gen

24,156stars1,637forksUpdated 7/25/2026

Security Assessment

Safe(92/100)
Security Score92/100

About hatch-pet

hatch-pet is an OpenAI/Codex skill (Apache-2.0) for creating, repairing, validating, visually QAing, and packaging Codex-compatible animated pets and pet spritesheets. It solves the problem of turning a concept, brand cue, company/prospect name, or reference image into a complete 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. It combines an installed $imagegen system skill for visual generation with bundled deterministic Python scripts for spritesheet assembly, so creative generation and reproducible geometry stay separated.

The workflow accepts optional user inputs and infers a pet name, description, and base art when omitted (generating from text first, then reusing that base as the canonical reference for each animation row). All normal visual generation is delegated to $imagegen rather than direct image-API calls, and the skill's own scripts handle deterministic tasks: preparing layout guides and prompts, mirroring an approved running-left row, extracting frames, validating rows, composing the final atlas, and building contact-sheet and motion-preview QA media. It includes explicit storage controls to keep image generation isolated in lightweight workers and avoid bloating rollout payloads, plus an optional brand-discovery subagent that uses web search of official brand sources when only a company or product name is given. Reference files document the animation rows, the Codex pet contract, and a QA rubric.

It targets Codex users, brand and marketing teams, and creative developers who want a custom or mascot animated pet without hand-building sprite atlases. Operations are creative asset generation, local file assembly, and optional read-only web research; a CLI fallback path for image generation requires local API credentials and explicit user confirmation.

FAQ

What inputs does hatch-pet need?

All user-facing inputs are optional. You can provide a concept, brand cue, company or prospect name, or reference images. If a name, description, or base art is missing, the skill infers or generates it, using a text-generated base as the canonical reference for every animation row.

How is image generation handled?

Through the installed $imagegen system skill, not by calling the Image API or CLI directly. The skill's own scripts are used only for deterministic work like frame extraction, row validation, atlas composition, and QA media.

What does it output?

A full 8x9 animated pet atlas with transparent unused cells, contact-sheet and motion-preview QA media, and pet.json packaging compatible with Codex pets.

How does brand-based generation work?

If given only a brand, company, product, or prospect name, it runs a lightweight discovery subagent that uses web search, preferring official sources (brand site, product, docs, about, press pages), to extract visual and personality cues before preparing the pet run.

Are there storage or credential considerations?

Yes. The skill isolates image generation in lightweight workers and manages generated PNGs to limit rollout storage. An optional $imagegen CLI fallback requires local API credentials and explicit user confirmation before use.

All Files

14 files
scripts/inspect_frames.py8.8 KB
View
scripts/validate_atlas.py5.3 KB
View
agents/openai.yaml0.2 KB
View
LICENSE.txt10.5 KB
View
scripts/compose_atlas.py5.6 KB
View
scripts/make_contact_sheet.py2.9 KB
View
SKILL.md36.4 KB
View
references/animation-rows.md1.7 KB
View
scripts/extract_strip_frames.py13.6 KB
View
scripts/render_animation_previews.py2.5 KB
View
references/codex-pet-contract.md0.8 KB
View
references/qa-rubric.md4.1 KB
View
scripts/derive_running_left_from_running_right.py5.0 KB
View
scripts/prepare_pet_run.py32.1 KB
View

Install hatch-pet

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

openai/skills