buddy-sings
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.
What this skill does
# 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:**
```bash
npm install -g mmx-cli
```
**Authenticate (first time only):**
```bash
mmx auth login --api-key <your-minimax-api-key>
```
Get your API key from [MiniMax Platform](https://platform.minimaxi.com/).
- **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:
```json
{
"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 voice" or "regenerate voice":
delete the cache file and re-interpret from scratch.
### Present the voice to the user
```
<name>'s unique voice:
Timbre: <timbre description>
Style: <style description>
Mood: <mood description>
Let's pick what <name> should sing about!
```
---
## Step 3: Understand Intent & Gather Context
**Do NOT always present a mode menu.** Instead, analyze the user's request to
determine what context is needed, and auto-gather it.
### Auto-context detection
When the user's request implies personal context, **automatically** scan for
relevant information without asking. Triggers include:
- **Time-based references**: "today", "this week", "recently", "yesterday" → scan
current conversation history and memory files for what happened in that period
- **Personal references**: "my work", "my day", "what I did" → scan memory
and conversation for the user's activities
- **Relationship references**: "our story", "what we did together" → scan memory for
shared experiences between user and pet/Claude
### Context gathering (auto, not mode-gated)
When context is needed, scan these sources in order:
1. **Current conversation context**: Look at what the user has been doing in
this Claude Code session — files edited, commands run, topics discussed.
This is the richest source for "today" type requests.
2. **Memory files**: Scan for relevant memories:
```bash
find ~/.claude/projects/*/memory/ -name "*.md" 2>/dev/null | head -20
```
Also check `~/.claude/memory/` if it exists.
Read found files and extract themes relevant to the user's request.
3. **Git history** (if in a repo): For work-related songs, check recent commits:
```bash
git log --oneline --since="today" 2>/dev/null | head -10
```
Use gathered context to enrich the lyrics prompt — make the song personal and
specific to what actually happened, not generic.
### When NO context is needed
If the user's request is a clear standalone scene (e.g., "sing a rainy day song",
"sing a lullaby"), skip context gathering and proceed directly to music generation.
### When context is ambiguous
Only ask for clarification when you genuinely can't determine what the user wants.
Don't present a mode menu — ask a specific question:
```
What should <name> sing about?
For example:
- "Today's work" — I'll check what you've been up to
- "My pet waiting by the window for me to come home"
- Or let me pick a random theme?
```
### Fallback to random
If context gathering finds nothing useful (no memory files, no conversation
history, no git log), fall back to random theme generation based on the pet's
personality:
- Quiet/reserved personality → midnight lullaby, gentle sunset, quiet morning
- Energetic personality → party jam, adventure song, victory march
- Mysterious personality → moonlit serenade, secret whisper, dream journey
Tell the user what theme was picked.
---
## Step 4: Generate Music
Combine the vocal identity with the chosen theme.
1. **Construct the full prompt**: The prompt has two parts that MUST both be present:
**Part A — Vocal identity (MUST come first)**: Always start the prompt with the
cached `prompt_fragment`. This is the most important part — it defines who is
singing. Place it at the beginning of the prompt so the API prioritizes it.
**Part B — Genre/style/mood tags**: Choose tags that **match the theme**, NOT
a default set. Vary the genre deliberately based on what the song is about.
Write proRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.