SKILL274.3K installs16

Codex Pet

Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into `${CODEX_HOME:-$HOME/.codex}/pets/<name>/` and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as `runcomfy run openai/gpt-image-2/edit` to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no `$imagegen`, no OPENAI_API_KEY required, only RUNCOMFY_TOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.

Type
Skill
Author
runcomfy-com
Category
Design
GitHub stars
16
Installs
274.3K
Last updated
October 21, 2026

Install

npx skills add https://github.com/runcomfy-com/skills --skill codex-pet

Use cases


Frequently Asked Questions

What size and layout does the generated spritesheet use?

It produces a 1536x1872 PNG or WebP atlas with 8 columns and 9 rows of 192x208 cells, covering 9 animation states.

Do I need an OpenAI API key to run this skill?

No — only RUNCOMFY_TOKEN is required, since the skill calls OpenAI GPT Image 2 edit once through the local RunComfy CLI.

Where do I put the output so Codex finds it?

Place spritesheet.webp and pet.json in ${CODEX_HOME:-$HOME/.codex}/pets/<name>/, where Codex picks it up alongside the 8 built-ins.


About this skill

Builds a Codex-compatible pet spritesheet and pet.json from a single reference image, producing the exact atlas Codex expects (1536x1872, 8 columns by 9 rows, 192x208 cells, 9 animation states). It calls OpenAI GPT Image 2 edit once to generate a canonical pose, then assembles the animation rows with ImageMagick micro-transforms, requiring only RUNCOMFY_TOKEN. Drop the output into `${CODEX_HOME:-$HOME/.codex}/pets/<name>/` and Codex picks it up alongside the 8 built-ins.

Summary written with AI assistance from the project's public description.


Categories


More from runcomfy-com


Similar Skills