结合 Spotify 播放和 Airfoil 扬声器路由来控制全屋音乐场景。快速预设早晨、聚会、放松模式。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install home-music或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install home-music⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/home-music/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: home-music description: Control whole-house music scenes combining Spotify playback with Airfoil speaker routing. Quick presets for morning, party, chill modes. homepage: local metadata: {"clawdbot":{"emoji":"🏠","os":["darwin"]}} triggers: - music scene - morning music - party mode - chill music - house music - stop music ---
♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫
🏠 H O M E M U S I C 🎵
╔══════════════════════════════════════════╗
║ Whole-House Music Scenes ║
║ One command. All speakers. Perfect. ║
╚══════════════════════════════════════════╝
♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫
> "Why click 17 times when one command does the job?" – Owen 🐸
---
Home Music combines Spotify + Airfoil into magical music scenes. One command – and the right playlist plays on the right speakers at the perfect volume.
Imagine:
home-music morning → Gentle tunes in the bathroomhome-music party → All speakers blasting rockhome-music chill → Lounge vibes everywherehome-music off → Silence. Peace. Serenity.---
| What | Why | Link | |------|-----|------| | 🍏 macOS | This skill uses AppleScript | — | | 🟢 Spotify Desktop App | The music source! Must be running. | spotify.com | | 📡 Airfoil | Routes audio to AirPlay speakers | rogueamoeba.com | | 🎵 spotify-applescript | Clawdbot skill for Spotify control | skills/spotify-applescript/ |
> ⚠️ Important: Both Spotify and Airfoil must be running before you start any scenes!
---
A gentle start to your day
home-music morning
---
Time to celebrate!
home-music party
---
Pure relaxation
home-music chill
---
Silence
home-music off
---
What's playing right now?
home-music status
Shows:
---
# Make the script executable
chmod +x ~/clawd/skills/home-music/home-music.sh
# Symlink for global access
sudo ln -sf ~/clawd/skills/home-music/home-music.sh /usr/local/bin/home-music
Now home-music works from anywhere in your terminal! 🎉
---
Open home-music.sh and find the playlist configuration:
# === PLAYLIST CONFIGURATION ===
PLAYLIST_MORNING="spotify:playlist:19n65kQ5NEKgkvSAla5IF6"
PLAYLIST_PARTY="spotify:playlist:37i9dQZF1DXaXB8fQg7xif"
PLAYLIST_CHILL="spotify:playlist:37i9dQZF1DWTwnEm1IYyoj"
How to find Playlist URIs:
/playlist/ partAdd a new case in the main block:
# In home-music.sh after the "scene_chill" function:
scene_workout() {
echo "💪 Starting Workout scene..."
airfoil_set_source_spotify
airfoil_connect "Sonos Move"
sleep 0.5
airfoil_volume "Sonos Move" 0.8
"$SPOTIFY_CMD" play "spotify:playlist:YOUR_WORKOUT_PLAYLIST"
"$SPOTIFY_CMD" volume 100
echo "✅ Workout: Sonos Move @ 80%, Pump it up!"
}
# And in the case block:
workout)
scene_workout
;;
ALL_SPEAKERS=("Computer" "Andy's M5 Macbook" "Sonos Move" "Living Room TV")
You can add any AirPlay speaker – they just need to be visible in Airfoil.
---
Check 1: Is Airfoil running?
pgrep -x Airfoil || echo "Airfoil is not running!"
Check 2: Is the speaker on the network?
Check 3: Is the name exactly correct?
---
Check 1: Is Spotify playing?
~/clawd/skills/spotify-applescript/spotify.sh status
Check 2: Is the Airfoil source correct?
Check 3: Speaker volume?
# Manually check volume
osascript -e 'tell application "Airfoil" to get volume of (first speaker whose name is "Sonos Move")'
---
Is Spotify open?
pgrep -x Spotify || open -a Spotify
Is spotify-applescript installed?
ls ~/clawd/skills/spotify-applescript/spotify.sh
---
chmod +x ~/clawd/skills/home-music/home-music.sh
---
If you want to control Airfoil manually:
# Connect a speaker
osascript -e 'tell application "Airfoil" to connect to (first speaker whose name is "Sonos Move")'
# Set speaker volume (0.0 - 1.0)
osascript -e 'tell application "Airfoil" to set (volume of (first speaker whose name is "Sonos Move")) to 0.5'
# Disconnect a speaker
osascript -e 'tell application "Airfoil" to disconnect from (first speaker whose name is "Sonos Move")'
# List connected speakers
osascript -e 'tell application "Airfoil" to get name of every speaker whose connected is true'
# Set audio source
osascript -e 'tell application "Airfoil"
set theSource to (first application source whose name contains "Spotify")
set current audio source to theSource
end tell'
---
skills/home-music/
├── SKILL.md # This documentation
└── home-music.sh # The main script
---
```bash alias mm="home-music morning" alias mp="home-music party" alias mc="home-music chill" alias mo="home-music off" ```
> "Hey, start party mode" > "Put on some chill music" > "Stop the music"
dinner scene with a jazz playlist at 25% – perfect for guests!---
╭─────────────────────────────────────────────╮
│ │
│ Crafted with 💚 by Owen the Frog 🐸 │
│ │
│ "Ribbit. Music makes everything better." │
│ │
╰─────────────────────────────────────────────╯
Author: Andy Steinberger (with help from his Clawdbot Owen the Frog 🐸) Version: 1.0.0 License: MIT Pond: The one with the water lilies 🪷
---
Did this skill improve your life? Owen appreciates flies. 🪰
安装 家庭音乐 后,可以对 AI 说这些话来触发它
Help me get started with Home Music
Explains what Home Music does, walks through the setup, and runs a quick demo based on your current project
Use Home Music to control whole-house music scenes combining Spotify playback with Ai...
Invokes Home Music with the right parameters and returns the result directly in the conversation
What can I do with Home Music in my design & creative workflow?
Lists the top use cases for Home Music, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/home-music/ 目录(个人级,所有项目可用),或 .claude/skills/home-music/(项目级)。重启 AI 客户端后,用 /home-music 主动调用,或让 AI 根据上下文自动发现并使用。
家庭音乐 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
家庭音乐 可免费安装使用。请查阅仓库了解许可证信息。
结合 Spotify 播放和 Airfoil 扬声器路由来控制全屋音乐场景。快速预设早晨、聚会、放松模式。
家庭音乐 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Home Music
Identifies repetitive steps in your workflow and sets up Home Music to handle them automatically