Skip to content
Skillpedia
Images & icons14k Β· #11331

mate

What it does

This skill designs a custom animated desktop companion for MiMo Desktop. It is for people who want their own pet character on the desktop.

When to use it

  • βœ“When you want to design a custom desktop pet or companion.
  • βœ“When you want a spritesheet of animation frames for a pet character.
  • βœ“When you want your pet loaded into MiMo Desktop's Mate settings.

Skill link

https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/mate/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/mate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI want to create a desktop pet of a small orange fox with an idle animation and a wave.”

5 new skills a week. 1 minute to read.

How it works

The agent builds a WebP spritesheet of animation frames and a manifest that describes each animation. You place the folder in the MiMo Desktop pets folder and refresh the settings to load it.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Mate Pet Creator

Create animated desktop pet characters for MiMo Desktop's Mate (ζ‘Œι’δΌ™δΌ΄) system.

Output Structure

A valid custom pet lives in a folder with this structure:

<pet-id>/
β”œβ”€β”€ manifest.json     # Required β€” animation metadata
└── spritesheet.webp  # Required β€” all animation frames in a grid

The user places this folder in their MiMo Desktop custom pets directory (userData/pets/<pet-id>/), then clicks "Refresh" in Settings β†’ Mate to load it.

Manifest Schema

{
  "id": "my-pet",
  "name": "My Pet",
  "description": "A cute custom pet",
  "version": 1,
  "spritesheet": "spritesheet.webp",
  "frameWidth": 240,
  "frameHeight": 240,
  "columns": 8,
  "totalFrames": 16,
  "animations": {
    "idle": { "row": 0, "frames": 8, "fps": 8, "loop": true }
  }
}

Required Fields

Field Type Description
id string Unique identifier (kebab-case)
name string Display name
version number Always 1
spritesheet string Filename of the spritesheet image
frameWidth number Width of each frame in pixels
frameHeight number Height of each frame in pixels
columns number Number of columns in the spritesheet grid
totalFrames number Total number of frames across all animations
animations object At minimum must include idle

Optional Fields

Field Type Description
description string Shown in settings UI
anchorX number Horizontal anchor (0–1, default 0.5) for centering

Animation Definition

Each animation entry:

Field Type Description
row number Row index in the spritesheet (0-based)
frames number Number of frames in this animation
fps number Playback speed (recommended: 6–12)
loop boolean Whether the animation loops

The idle animation is required β€” it plays by default when the pet is loaded.

Spritesheet Layout

  • Frames are arranged left-to-right, top-to-bottom in a grid.
  • Each row corresponds to one animation (matched by the row field in the animation definition).
  • All frames must have identical dimensions (frameWidth Γ— frameHeight).
  • Transparent background (alpha channel) is required β€” the pet window has no background.
  • Recommended frame size: 240Γ—240 px (renders well at 1Γ— scale on desktop).
  • Format: WebP with transparency (lossless or near-lossless for crisp pixel art).

Workflow

Step 1: Understand the Character

Ask the user:

  • What animal/creature/character?
  • Art style preference (pixel art, cartoon, flat vector, kawaii)?
  • Any specific colors or features?

Step 2: Generate the Spritesheet

Use the imagegen skill to generate the spritesheet image. Construct the prompt with these guidelines:

  • Request a sprite sheet with specific grid layout (e.g., "8 frames in a single horizontal row, each frame 240Γ—240 pixels")
  • Specify transparent background (alpha channel)
  • Describe the idle animation motion: gentle breathing, blinking, tail wag, bobbing, etc.
  • Keep the character centered in each frame with consistent sizing
  • Style: match the user's preference; default to cute/kawaii if unspecified

If the generated image is already WebP, use it directly. If it is PNG or another format, convert to WebP:

# Convert to lossless WebP preserving transparency
cwebp -lossless -q 100 spritesheet.png -o spritesheet.webp

If cwebp is not available, check for sips (macOS Ventura+ supports WebP export):

sips -s format webp spritesheet.png --out spritesheet.webp

If neither tool is available, instruct the user to install one:

brew install webp   # provides cwebp

Do NOT silently rename a PNG to .webp β€” the file must have valid WebP encoding (RIFF/WEBP header). If conversion genuinely cannot be performed, fail explicitly and tell the user what tool to install.

If imagegen is unavailable (skill not enabled or image generation fails), fall back to generating pixel-art frames directly as SVG, then rasterize. Compute dimensions from the manifest:

# Calculate actual spritesheet dimensions from manifest
WIDTH=$((frameWidth * columns))
HEIGHT=$((frameHeight * rows))  # rows = max animation row index + 1

# Rasterize SVG to PNG, then convert to WebP
rsvg-convert -w $WIDTH -h $HEIGHT spritesheet.svg -o spritesheet.png
cwebp -lossless spritesheet.png -o spr
FAQ

What files does a pet need?

A pet folder needs a manifest.json file and a spritesheet.webp image.

How do I load my pet?

Put the folder in the custom pets folder, then click Refresh in Settings under Mate.

Does a pet need an idle animation?

Yes. The manifest must include at least an idle animation.

Details

Original description by the author

Create custom desktop pet (Mate) characters with spritesheet and manifest. Use when the user asks to 'create a pet', 'make a desktop companion', 'design a mate character', 'generate a spritesheet for my pet', or wants to customize their desktop buddy. Generates a WebP spritesheet + manifest.json that can be loaded by MiMo Desktop's Mate system.

repo: XiaomiMiMo/MiMo-Code

Popularity

GitHub stars
14k
Ranking position
#11331
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills