agentleFS
irtazahashmiirtazahashmi/ironpet/skills/ironpet-pets/SKILL.md

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".

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
  1. Very specific:

    Run swift make_pet.swift <theme> <scratch>/<name>.png.

    line 22
  2. Very specific:

    Check the size with sips -g pixelWidth -g pixelHeight <file>.

    line 24

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

  1. 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.
  2. 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.swift
    • tools/make_pet.swift in the ironpet repository
    • Contents/Resources/make_pet.swift in any other copy of IronPet.app (mdfind "kMDItemFSName == 'make_pet.swift'" lists them)

    Copy it to a scratch folder and edit the copy. Never edit the original.

  3. In your copy, add a theme for the new pet to the themes dictionary. A theme sets the colors (fur, furShade, outline, cream, earPink, blush, iris), markings, tail, cloak, muzzle and so on. The species value (wolf, hamster, panda, bunny, cat) picks the ears, tail and face in the switch theme.species blocks. Reuse the closest species and recolor it. Add a new Species case 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.
  4. Run swift make_pet.swift <theme> <scratch>/<name>.png. The first argument is the theme name from the dictionary.
  5. 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.
  6. Check the size with sips -g pixelWidth -g pixelHeight <file>. It must be 1536 x 2704.
  7. Move the finished file into ~/.ironpet/pets/<name>.png in one step (mkdir -p the folder, then mv). ironpet reloads the folder every couple of seconds, so a half-written file would show up as a broken tile.
  8. 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.

RowAnimationFrames
0idle6
1run right8
2run left8
3waving4
4jumping5
5failed8
6waiting6
7running6
8review6
9, 10look directions16 in total, 8 per row
11drinking (ironpet's own row)6
12stretching (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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.