AgentSkillsCN

youtube-music-openclaw

通过自然语言操控YouTube Music——搜索、播放、暂停、跳过、调节音量、随机播放。

SKILL.md
--- frontmatter
name: youtube-music-openclaw
description: Control YouTube Music with natural language - search, play, pause, skip, volume, shuffle
user-invocable: true
metadata: {"openclaw":{"emoji":"🎵","os":["darwin"],"requires":{"bins":["osascript","yt-dlp","jq"]},"install":[{"id":"yt-dlp","kind":"brew","formula":"yt-dlp","bins":["yt-dlp"],"label":"Install yt-dlp"},{"id":"jq","kind":"brew","formula":"jq","bins":["jq"],"label":"Install jq"}]}}

YouTube Music Control (Kaset)

Playback Commands

bash
osascript -e 'tell application "Kaset" to <command>'
CommandDescription
playPlay/resume
pausePause
next trackNext song
previous trackPrevious song
set volume NVolume 0-100
toggle muteMute on/off
toggle shuffleShuffle on/off
like trackLike current
get player infoGet state as JSON

Search and Play

bash
# 1. Search (returns JSON array with id, title)
{baseDir}/bin/youtube-search "artist or song name"

# 2. Play by ID
{baseDir}/bin/play-video VIDEO_ID

When user wants to play something, search first, pick a random result, then play it.