Skip to content
中

Create

Making a figure pack

Every body the pet has comes from a figure pack; Coo and the DeepSeek Whale are one each. Make a figure pack, and a whole new character can live on the bottom of the screen.

Can’t code? That’s fine. Copy the text below into an AI coding assistant: it reads this page and the figure pack docs first, asks you step by step what kind of character you want, and then writes the figure pack for you.

Prompt for your AI coding assistantShow the full text
I want to make a figure pack for the Coopanion desktop pet. First, read these:
- The guide's "Making a figure pack" page: https://coo.palailab.org/guide/en/make-figure/
- The Whale figure pack, explained in full: https://github.com/Pal-AI-Lab/Coopanion/blob/main/packages/cortico-world-desktop-pet/examples/whale/README.md
- The figure pack format and rules: https://github.com/Pal-AI-Lab/Coopanion/blob/main/packages/cortico-world-desktop-pet/README.md#形象包

Then work it out with me step by step:
1. Ask me what the character is like: its shape, colours and personality, which faces and motions it should have, whether it has outfits to switch between (hair colour, clothes…), and whether I have artwork it can use. Ask a few questions at a time, not everything at once.
2. Propose a plan from my answers: how it is drawn, its outfits, and its faces and motions. Wait for my OK before writing anything. Use the ready-made body, kit/body.js, if it fits, and only write the drawing.
3. In a new folder, write figure.json (manifest 2, api 2), the code, a thumbnail and the assets it needs. Use lowercase letters, digits and - for the id, and avoid the built-in IDs coo and whale. List every expression and motion in vocab. Reference files with asset() and declare audio in sounds.
4. Check every field of figure.json and every file path against the docs, then zip the folder. If updating a pack, keep its published option, expression and motion IDs.
5. Tell me how to install it with Import on the Dress up page. If it fails to load, tell me where to find the error in Dress up or Chat.

Note: don't use any artwork or character I don't have the rights to, and say where the assets come from and under what licence in license and credits.

If importing fails, share the reason shown on Dress up with the coding assistant. For runtime failures, also check Chat or the run log.

A folder with a figure.json at its root, plus the code and images that draw the body.

  • Drawing and motion. The pack draws the figure, moves it and responds to interactions. Use kit.createBody to reuse the built-in body behavior.
  • Sandbox. Imported packs can read their own files with fetch(asset('path')). Remote network access, settings and conversations are unavailable to the pack. A pack with needs: ["windows"] can read window geometry for effects such as standing on window edges.

The Whale is a complete figure pack, and her instructions are the best place to start:

Field What to write
manifest, api The format and runtime contract versions, both 2
id The pack’s name: lowercase letters, digits and -; not coo or whale
name, about Names per language; about says what the body looks like, and Coo reads it
entry, export The code file and the function it exports
axes, presets The ways it can be dressed (hair colour, clothes…), one row each on the Dress up page; and named combinations
vocab Every face and motion the body can do; Coo picks from these as it talks
sounds Sound files (.ogg, .mp3, .wav) and categories. Set repeat to layer repeated sounds (overlap, the default), start over (restart), or let the current sound finish and skip the new trigger (finish)
thumb The thumbnail shown on the Dress up page
author, license, credits, version Credits, licence and version
  1. Drop the pack’s folder (or a zip of it) onto the Dress up page of the settings window, or click Import at the end of the figure row.

  2. Tick it and confirm. An older version with the same id is replaced, so you can import again after every change.

  3. Select it in the figure row and check the preview and the desktop pet. A load failure appears on Dress up or Chat and is recorded in the run log.

If a figure pack takes more than 20 seconds to become ready or fails at runtime, the pet switches to the built-in Coo.

Coopanion’s compatibility promise starts at manifest: 2 and api: 2. When updating your pack, keep published option, expression and motion IDs so saved looks continue to work. See the figure pack compatibility promise.

Zip the pack’s folder and share it on GitHub, in the community group or on a file share; others install it with Import. Say where the artwork comes from and under what licence in license and credits.