ironpet-pets
Skill9 starsChanged 12 days agoMITView on GitHub
Create a new pet (character) for ironpet, the macOS desktop pet, as an animated sprite sheet. Use when the user asks to create, build or draw a new ironpet pet or character, for example "create a new ironpet character: a red fox with a scarf".
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/apple-design/AGENTS.mdAGENTS.md
- apple-designSkill
- swiftSkill
- dev-code-reviewSkill
- dev-featureSkill
- dev-open-prSkill
- ironpet-automationsSkill
- ironpet-desktopSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Run swift make_pet.swift <theme> <scratch>/<name>.png.
- Very specific: line 24
Check the size with sips -g pixelWidth -g pixelHeight <file>.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create an ironpet pet
A pet is one PNG sprite sheet. ironpet shows every valid sheet in ~/.ironpet/pets/ as an animated tile in Settings → General → Pets, and the user picks it there. You write the sheet. You do not edit ironpet itself.
Steps
The user's request is the text after the command, for example /ironpet-pets red fox with a scarf.
- Work out a short kebab-case name from the description, without a leading "a", "an" or "the": "a red fox with a scarf" becomes
red-fox-with-a-scarf. The output is~/.ironpet/pets/<name>.png, with~expanded to the user's home folder. If that file exists, or the name is one of the built-in pets (ghost, mochi, hamster, panda, bunny, cat), pick another name. Never overwrite a sheet. Find the reference generator,
make_pet.swift. It is in one of these places, and the request may name one:/Applications/IronPet.app/Contents/Resources/make_pet.swifttools/make_pet.swiftin the ironpet repositoryContents/Resources/make_pet.swiftin any other copy ofIronPet.app(mdfind "kMDItemFSName == 'make_pet.swift'"lists them)
Copy it to a scratch folder and edit the copy. Never edit the original.
- In your copy, add a theme for the new pet to the
themesdictionary. A theme sets the colors (fur,furShade,outline,cream,earPink,blush,iris), markings,tail,cloak,muzzleand so on. Thespeciesvalue (wolf,hamster,panda,bunny,cat) picks the ears, tail and face in theswitch theme.speciesblocks. Reuse the closest species and recolor it. Add a newSpeciescase and a branch in each switch only when no existing one comes close, for example for a fox, long pointed ears and a bushy tail. - Run
swift make_pet.swift <theme> <scratch>/<name>.png. The first argument is the theme name from the dictionary. - Open the PNG and look at it. Check that the character matches the description in the idle, waving, jumping and running rows, and that no cell is cropped. Fix the theme and run again until it does.
- Check the size with
sips -g pixelWidth -g pixelHeight <file>. It must be 1536 x 2704. - Move the finished file into
~/.ironpet/pets/<name>.pngin one step (mkdir -pthe folder, thenmv). ironpet reloads the folder every couple of seconds, so a half-written file would show up as a broken tile. - Tell the user the path and what you drew. They pick the pet in Settings → General → Pets.
Sheet layout
A transparent PNG, 1536 x 2704 pixels. 8 columns and 13 rows, every cell 192 x 208 pixels. The cell at column c, row r starts at x = c * 192, y = r * 208 from the top left. Draw the same character in every cell, facing the viewer, centered, with the feet near the bottom. Leave unused cells transparent.
| Row | Animation | Frames |
| 0 | idle | 6 |
| 1 | run right | 8 |
| 2 | run left | 8 |
| 3 | waving | 4 |
| 4 | jumping | 5 |
| 5 | failed | 8 |
| 6 | waiting | 6 |
| 7 | running | 6 |
| 8 | review | 6 |
| 9, 10 | look directions | 16 in total, 8 per row |
| 11 | drinking (ironpet's own row) | 6 |
| 12 | stretching (ironpet's own row) | 8 |
Frames fill a row from column 0. Rows 9 and 10 hold sixteen head turns. Frame i (row 9 first) has the eyes looking toward the angle i * 22.5 degrees clockwise from straight up. A sheet 2288 pixels tall (rows 0 to 10, the Codex pet v2 layout) also loads, but ironpet then plays the waving row for drinking and stretching, so always draw all 13 rows.
The generator already draws every row for its six pets (ghost, mochi, hamster, panda, bunny, cat), so a recolored or re-themed copy keeps the layout correct.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

