mate
यह क्या करती है
यह स्किल MiMo Desktop के लिए कस्टम एनिमेटेड डेस्कटॉप साथी डिज़ाइन करती है। यह उन लोगों के लिए है जो डेस्कटॉप पर अपना खुद का पेट कैरेक्टर चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप कोई कस्टम डेस्कटॉप पेट या साथी डिज़ाइन करना चाहते हैं।
- ✓जब आपको किसी पेट कैरेक्टर के एनीमेशन फ़्रेम की स्प्राइटशीट चाहिए।
- ✓जब आप अपना पेट MiMo Desktop की Mate सेटिंग्स में लोड करना चाहते हैं।
Skill का लिंक
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/mate/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मुझे एक छोटी नारंगी लोमड़ी का डेस्कटॉप पेट चाहिए, जिसमें इडल एनीमेशन और एक हाथ हिलाने वाला एनीमेशन हो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट WebP स्प्राइटशीट बनाता है जिसमें एनीमेशन फ़्रेम होते हैं, और एक मैनिफ़ेस्ट जो हर एनीमेशन का वर्णन करता है। आप फ़ोल्डर को MiMo Desktop के pets फ़ोल्डर में रखते हैं और सेटिंग्स में Refresh दबाकर उसे लोड करते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
पेट को किन फ़ाइलों की ज़रूरत है?
पेट फ़ोल्डर में manifest.json फ़ाइल और spritesheet.webp इमेज होनी चाहिए।
अपना पेट कैसे लोड करूँ?
फ़ोल्डर को कस्टम pets फ़ोल्डर में रखें, फिर Settings में Mate के नीचे Refresh पर क्लिक करें।
क्या पेट को इडल एनीमेशन चाहिए?
हाँ। मैनिफ़ेस्ट में कम से कम एक इडल एनीमेशन होना ज़रूरी है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 14k
- रैंकिंग में स्थान
- #11331
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
effect
14kआपके एजेंट को Effect TypeScript फ़्रेमवर्क के सवालों के जवाब देने में मदद करती है, याददाश्त पर भरोसा करने के बजाय उसका सोर्स कोड और दस्तावेज़ जाँचकर।
arxiv
14kआपके एजेंट को arXiv पर शोधपत्र खोजने, पढ़ने, उद्धृत करने और उन पर नज़र रखने में मदद करती है, जिसमें सार, BibTeX उद्धरण, PDF डाउनलोड और उद्धरण लिंक शामिल हैं।
claude-code
14kआपके एजेंट को कोडिंग का काम Claude Code कमांड-लाइन टूल को सौंपने में मदद करती है, एक बार चलने वाले रन, इंटरैक्टिव सेशन या पृष्ठभूमि जॉब के रूप में।
codex
14kआपके एजेंट को बिना चैट विंडो के OpenAI Codex कमांड-लाइन टूल चलाने में मदद करती है, कोडिंग काम, स्क्रिप्ट और स्वचालित पाइपलाइन के लिए।
मिलती-जुलती skills
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।