$npx -y skills add kennethleungty/claude-music --skill playPlay music — start or switch genre/station
| 1 | This skill is part of the claude-music plugin. Only invoke when the user explicitly uses the slash command. |
| 2 | |
| 3 | # Play Music |
| 4 | |
| 5 | Start background music. Optionally specify a genre or station name (e.g. `/play jazz`, `/play groove salad`). |
| 6 | |
| 7 | Run `"${CLAUDE_PLUGIN_ROOT}/scripts/music-controller.sh" play $ARGUMENTS`. |
| 8 | |
| 9 | - If `"status": "playing"`: **♪ Now playing {genre} — {station} ♪** |
| 10 | - If `takeover` is `true`: prefix with *Switched over from another session{prev_genre ? " (was playing {prev_genre})" : ""} —* before the now-playing line |
| 11 | - If `genre_reason` is `"preference"`: add *(resumed from your last session)* |
| 12 | - If `genre_reason` is `"default"`: add *(default genre — use `/play <genre>` to change)* |
| 13 | - If `genre_reason` is `"requested"`: no extra note needed |
| 14 | - If error about no audio player: run the `install_command` (if `has_sudo` is true) or `nosudo_hint` (if false) from the JSON, then retry play automatically. |
| 15 | - If error about both primary and fallback failing: tell the user and suggest trying `/next` or a different genre. |
| 16 | |
| 17 | Genres: lofi, jazz, classical, ambient, electronic, synthwave, lounge, indie. Also accepts station names (e.g. "groove salad"). |