跳到正文
Skillpedia
其他14k · #11287

buddy-sings

它能做什么

这项技能让你的 Claude Code 宠物(称为 buddy)变成一名歌手。适合希望宠物用 MiniMax 工具生成的音乐演唱一首歌的用户。

适用场景

  • ✓当你要求你的 Claude Code 宠物唱一首歌的时候。
  • ✓当你想要一首关于你的宠物或伙伴的歌曲的时候。
  • ✓当你想在电脑上播放宠物的歌曲的时候。

技能链接

https://github.com/MiniMax-AI/skills/blob/main/skills/buddy-sings/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MiniMax-AI/skills/blob/main/skills/buddy-sings/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请让我的 Claude Code buddy 唱一首简短、欢快的歌,讲讲它的冒险经历。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查你的宠物,根据它的名字和性格建立声音风格,收集少量背景信息,然后用 mmx 工具生成歌曲。接着它会用本地音频播放器播放这首歌。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Buddy Sings — Let Your Claude Code Pet Sing

Turn your Claude Code pet into a singer. Each pet gets a unique vocal identity based on its name and personality — the same pet always sounds the same.

Prerequisites

  • mmx CLI (required for music generation):

    Install:

    npm install -g mmx-cli
    

    Authenticate (first time only):

    mmx auth login --api-key <your-minimax-api-key>
    

    Get your API key from MiniMax Platform.

  • Audio player (for playback — at least one of):

    • mpv (recommended — interactive controls: space = pause, q = quit)
    • ffplay (from FFmpeg)
    • afplay (macOS built-in)

Workflow Overview

Check pet → Build vocal identity → Gather context → Generate music → Play & feedback

Language & Interaction

Detect the user's language from their first message. Respond in the same language throughout the entire session. All examples below are in English — translate them naturally when responding in other languages.

User-facing text localization rule:

  • ALL text shown to the user — including pet info, voice description, lyrics preview, prompt preview, playback info, and feedback prompts — MUST be fully translated into the user's language.
  • The API prompt sent to the model should always be written in English for best generation quality. However, when previewing the prompt to the user, show a localized description in the user's language instead of the raw English prompt. The English prompt is an internal implementation detail — the user does not need to see it.
  • The templates below are written in English as reference. At runtime, translate every label and message into the user's detected language.

The pet sings in the user's language by default. Embed the singing language naturally in the vocal description (e.g., "singing in Japanese" or "singing in Mandarin Chinese") rather than appending a separate language tag. If the user explicitly requests a different language for the lyrics, honor that request.


Step 1: Check for Pet

Read ~/.claude.json and look for the companion field.

If no companion is found or the field is empty, tell the user:

You don't have a pet yet! Type /buddy to adopt one, then come back to let it sing.

Stop here and wait for the user to adopt a pet. Do not proceed without a pet.

If a companion exists, extract its profile:

  • name — the pet's name
  • personality — the pet's personality description

Present the pet to the user:

Found your pet!
   Name: <name>
   Personality: <personality>

Step 2: Build Vocal Identity

Based on the pet's name and personality text, creatively design a unique vocal identity. No template lookups — interpret the personality freely.

How to interpret personality into voice

Read the personality text and craft vocal attributes:

  • Timbre: What does this personality sound like? e.g., "few words" → low, warm, deliberate; "energetic" → bright, punchy; "mysterious" → breathy, dark; "legendary chonk" → thick, warm, cozy
  • Singing style: How would they deliver a song? e.g., "of few words" → sparse, dramatic pauses; "playful" → bouncy, rhythmic; "poetic" → flowing, legato
  • Mood: What emotional tone fits? e.g., "chill" → relaxed, laid-back; "fierce" → intense, powerful

Construct a prompt_fragment that describes the vocal style in English, embedding the singing language naturally. For example:

Vocal: warm low female voice singing in Mandarin Chinese with cozy thick timbre,
sparse minimalist delivery with dramatic pauses giving each word weight, relaxed
laid-back mood.

Voice caching

The vocal identity must be cached so the pet always sounds the same.

  • Cache file: ~/.claude/skills/buddy-sings/voices/<name>.json
  • Cache format:
    {
      "name": "Moth",
      "personality": "A legendary chonk of few words.",
      "prompt_fragment": "Vocal: warm low female voice singing in Mandarin Chinese...",
      "cached_at": "2026-04-07T19:52:15"
    }
    

First time: No cache exists → interpret personality → save to cache file.

Subsequent calls: Read cache → use the saved prompt_fragment directly. Do NOT re-interpret — consistency matters.

Cache invalidation: If the personality in ~/.claude.json differs from what's cached, the pet has changed — regenerate and save a new cache.

Manual regeneration: If the user says "change the vo

常见问题

我需要安装什么?

需要 mmx 命令行工具、一个 MiniMax API 密钥和一个本地音频播放器。

我的宠物每次的声音都一样吗?

是的。这项技能说明同一只宠物始终拥有相同的声音特征。

它用哪种语言回复?

它会根据你第一条消息的语言进行判断,并用该语言回复。

详情

作者的原始描述

Use when user wants their Claude Code pet (/buddy) to sing a song. Triggers on any request that combines the concept of their Claude Code buddy, pet, or companion with singing or music. Supports multilingual triggers — match equivalent phrases in any language.

repo: MiniMax-AI/skills

热度

GitHub 星标
14k
排名
#11287
许可证
MIT
更新时间
2026/4/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能