mate
Fungsinya
Skill ini mendesain pendamping desktop beranimasi khusus untuk MiMo Desktop. Skill ini ditujukan untuk orang yang menginginkan karakter peliharaan mereka sendiri di desktop.
Kapan dipakai
- βSaat Anda ingin mendesain peliharaan atau pendamping desktop khusus.
- βSaat Anda menginginkan spritesheet bingkai animasi untuk karakter peliharaan.
- βSaat Anda ingin peliharaan Anda dimuat ke dalam pengaturan Mate MiMo Desktop.
Link skill
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/mate/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βSaya ingin membuat peliharaan desktop berupa rubah oranye kecil dengan animasi diam dan lambaian tangan.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membuat spritesheet WebP berisi bingkai animasi dan manifes yang mendeskripsikan setiap animasi. Anda menaruh folder itu di folder peliharaan MiMo Desktop dan menyegarkan pengaturan untuk memuatnya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
rowfield 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
Pertanyaan umum
File apa saja yang dibutuhkan peliharaan?
Folder peliharaan membutuhkan file manifest.json dan gambar spritesheet.webp.
Bagaimana cara memuat peliharaan saya?
Taruh folder di folder peliharaan kustom, lalu klik Refresh di Pengaturan pada bagian Mate.
Apakah peliharaan memerlukan animasi diam?
Ya. Manifes harus menyertakan setidaknya animasi diam.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 14k
- Peringkat
- #11331
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
effect
14kMembantu agent Anda menjawab pertanyaan tentang kerangka kerja TypeScript Effect dengan memeriksa kode sumber dan dokumentasinya, bukan mengandalkan ingatan.
arxiv
14kMembantu agent Anda mencari, membaca, mengutip, dan melacak makalah akademik di arXiv, mencakup abstrak, sitasi BibTeX, unduhan PDF, dan tautan sitasi.
claude-code
14kMembantu agent Anda menyerahkan tugas pemrograman ke alat baris perintah Claude Code, sebagai satu kali jalan, sesi interaktif, atau pekerjaan latar belakang.
codex
14kMembantu agent Anda menjalankan alat baris perintah OpenAI Codex tanpa jendela obrolan, untuk tugas pemrograman, skrip, dan alur kerja otomatis.
Skill serupa
gifgrep
394kMemungkinkan agent Anda mencari GIF, melihat pratinjau hasil, mengunduh GIF, dan mengambil satu bingkai diam atau lembar kontak darinya.
meme-maker
394kMemungkinkan agent Anda memilih templat meme, menambahkan teks sendiri, dan membuat meme sebagai gambar SVG atau PNG.
ios-icon-gen
280kMemungkinkan agent Anda membuat ikon untuk aplikasi iOS. Menggunakan simbol Apple atau ikon dari sumber lain untuk membuat file yang tepat.