← Back to Skills Marketplace
terrycarter1985

Home Music

by terrycarter1985 · GitHub ↗ · v1.1.0 · MIT-0
darwin ✓ Security Clean
35
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install home-music-tc
Description
Control whole-house music scenes combining Spotify playback with Airfoil speaker routing. Quick presets for morning, party, chill, focus, dinner, sleep modes.
README (SKILL.md)
    ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫
    
    🏠  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 🐸


🎯 What Does This Skill Do?

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:

  • You wake up → home-music morning → Gentle tunes in the bathroom
  • Friends arrive → home-music party → All speakers blasting rock
  • Time to relax → home-music chill → Lounge vibes everywhere
  • Deep work mode → home-music focus → Instrumental focus on your desk
  • Dinner is served → home-music dinner → Jazz in the living room
  • Bedtime → home-music sleep → Ambient sounds, barely a whisper
  • Done for the day → home-music off → Silence. Peace. Serenity.

📋 Dependencies

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!


🎬 Scenes

🌅 Morning

A gentle start to your day

home-music morning
  • Speaker: Sonos Move
  • Volume: 40%
  • Playlist: Morning Playlist
  • Vibe: ☕ Coffee + good vibes

🎉 Party

Time to celebrate!

home-music party
  • Speaker: ALL (Computer, MacBook, Sonos Move, Living Room TV)
  • Volume: 70%
  • Playlist: Rock Party Mix
  • Vibe: 🤘 Neighbors hate this one trick

😌 Chill

Pure relaxation

home-music chill
  • Speaker: Sonos Move
  • Volume: 30%
  • Playlist: Chill Lounge
  • Vibe: 🧘 Om...

🎯 Focus

Deep concentration for work-from-home

home-music focus
  • Speaker: Computer only
  • Volume: 35%
  • Playlist: Deep Focus
  • Vibe: 💻 In the zone, no distractions

Why this scene? Morning/Chill/Party all use Sonos Move or all speakers, but nothing supports the WFH use case — quiet, localized, instrumental-only to sustain deep work without disturbing the rest of the house.


🍽️ Dinner

Elegant background for meals and entertaining

home-music dinner
  • Speaker: Sonos Move + Living Room TV
  • Volume: 25%
  • Playlist: Dinner Jazz
  • Vibe: 🍷 Conversation-friendly, never overpowering

Why this scene? Party is too loud, Chill is bedroom-scale, but dinner needs multi-room coverage at low volume so music enhances — never competes with — conversation.


🌙 Sleep

Gentle wind-down for bedtime

home-music sleep
  • Speaker: Computer only
  • Volume: 15% (near-whisper)
  • Playlist: Sleep / Ambient
  • Vibe: 🌛 Drift off gently

Why this scene? No existing scene addresses the end-of-day transition. Sleep uses the quietest possible volume on the nearest speaker with a calming playlist designed to fade into silence.


🔇 Off

Silence

home-music off
  • Pauses Spotify
  • Disconnects all speakers
  • Vibe: 🤫 Finally, peace and quiet

📊 Status

What's playing right now?

home-music status

Shows:

  • Current Spotify track
  • Connected speakers

🔧 Installation

# 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! 🎉


🎨 Custom Playlists & Scenes

Changing Playlists

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:

  1. Right-click on a playlist in Spotify
  2. "Share" → "Copy Spotify URI"
  3. Or copy the URL and extract the /playlist/ part

Adding a New Scene

Add 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
        ;;

Available Speakers

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.


🐛 Troubleshooting

❌ "Speaker won't connect"

Check 1: Is Airfoil running?

pgrep -x Airfoil || echo "Airfoil is not running!"

Check 2: Is the speaker on the network?

  • Open the Airfoil app
  • Check if the speaker appears in the list
  • Try connecting manually

Check 3: Is the name exactly correct?

  • Speaker names are case-sensitive!
  • Open Airfoil and copy the exact name

❌ "No sound"

Check 1: Is Spotify playing?

~/clawd/skills/spotify-applescript/spotify.sh status

Check 2: Is the Airfoil source correct?

  • Open Airfoil
  • Check if "Spotify" is selected as the audio source
  • If not: Click "Source" → Select Spotify

Check 3: Speaker volume?

# Manually check volume
osascript -e 'tell application "Airfoil" to get volume of (first speaker whose name is "Sonos Move")'

❌ "Spotify won't start"

Is Spotify open?

pgrep -x Spotify || open -a Spotify

Is spotify-applescript installed?

ls ~/clawd/skills/spotify-applescript/spotify.sh

❌ "Permission denied"

chmod +x ~/clawd/skills/home-music/home-music.sh

🔊 Direct Airfoil Commands

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'

📁 Files

skills/home-music/
├── SKILL.md        # This documentation
└── home-music.sh   # The main script

💡 Pro Tips

  1. Set aliases for even faster access:

    alias mm="home-music morning"
    alias mp="home-music party"
    alias mc="home-music chill"
    alias mf="home-music focus"
    alias md="home-music dinner"
    alias ms="home-music sleep"
    alias mo="home-music off"
    
  2. Use with Clawdbot:

    "Hey, start party mode" "Put on some chill music" "Stop the music"

  3. Combine scenes: Create a dinner scene with a jazz playlist at 25% – perfect for guests!


🐸 Credits

╭─────────────────────────────────────────────╮
│                                             │
│   Crafted with 💚 by Owen the Frog 🐸      │
│                                             │
│   "Ribbit. Music makes everything better."  │
│                                             │
╰─────────────────────────────────────────────╯

Author: Andy Steinberger (with help from his Clawdbot Owen the Frog 🐸)
Version: 1.1.0
License: MIT
Pond: The one with the water lilies 🪷


Did this skill improve your life? Owen appreciates flies. 🪰

Usage Guidance
Before installing, confirm you trust the local spotify-applescript helper, update the hardcoded path and speaker names for your Mac, and only run the sudo symlink step if you want a global home-music command. Expect this skill to start/pause Spotify and connect, disconnect, or change volume on named Airfoil speakers.
Capability Analysis
Type: OpenClaw Skill Name: home-music-tc Version: 1.1.0 The home-music skill bundle is a legitimate macOS automation tool designed to coordinate Spotify playback and Airfoil speaker routing. The shell script (home-music.sh) uses AppleScript (osascript) to interact with local applications as described, and the installation steps for creating a global symlink are standard for CLI utilities. There is no evidence of data exfiltration, malicious execution, or prompt injection.
Capability Assessment
Purpose & Capability
The code and documentation align with the stated purpose: it starts Spotify playlists and changes Airfoil speaker connections/volumes. This is disclosed and proportionate, but it does affect local audio devices.
Instruction Scope
The skill exposes named, user-invoked scenes such as morning, party, focus, sleep, off, and status. No artifact instructs the agent to override user intent, run continuously, or hide actions.
Install Mechanism
There is no install spec, but SKILL.md tells the user to chmod the script and create a sudo symlink in /usr/local/bin. This is user-directed, but it is a privileged persistent install step.
Credentials
macOS AppleScript, Spotify Desktop, Airfoil, and a spotify-applescript helper are expected for this purpose, but the registry requirements/capability signals do not declare these runtime dependencies.
Persistence & Privilege
The only persistence shown is a user-created global command symlink. There is no evidence of background agents, launch daemons, self-propagation, or hidden persistence.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install home-music-tc
  3. After installation, invoke the skill by name or use /home-music-tc
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
Add 3 new scenes: focus (WFH), dinner (jazz), sleep (ambient). Fork of asteinberger/home-music with extended scenes.
Metadata
Slug home-music-tc
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Home Music?

Control whole-house music scenes combining Spotify playback with Airfoil speaker routing. Quick presets for morning, party, chill, focus, dinner, sleep modes. It is an AI Agent Skill for Claude Code / OpenClaw, with 35 downloads so far.

How do I install Home Music?

Run "/install home-music-tc" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Home Music free?

Yes, Home Music is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Home Music support?

Home Music is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin).

Who created Home Music?

It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v1.1.0.

💬 Comments