简介
ClawSpotify
原始描述
Control Spotify playback: play, pause, resume, skip, previous, restart, search, queue, set volume, shuffle, repeat, and view now-playing status.
通过你的 Agent 添加
安装目录:clawspotify/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: clawspotify
Control Spotify playback — play, pause, skip, search, queue, volume, and view now-playing status from OpenClaw.
description: "Control Spotify playback: play, pause, resume, skip, previous, restart, search, queue, set volume, shuffle, repeat, and view now-playing status." metadata: openclaw: emoji: "🎵" requires: bins: ["bash", "python3"]
clawspotify
Control your Spotify playback directly from your OpenClaw agent. Search songs, control playback, manage volume, and view what's currently playing.
Trigger
Use when the user asks to:
- Play, pause, resume, skip, previous, or restart a song or playlist
- Search for a song, artist, or playlist (without playing)
- Add something to the queue
- Check what's playing now
- Change volume or shuffle/repeat settings
- Set up their Spotify session (first-time)
Commands
Now playing status
clawspotify status # full now-playing info + device
Search music (without playing)
clawspotify search "Bohemian Rhapsody" # search tracks and show top 5 results
clawspotify search-playlist "Workout" # search playlists and show top 5 results
Search and play
clawspotify play "Bohemian Rhapsody" # search tracks and play first result
clawspotify play "Bohemian Rhapsody" --index 2 # pick result #2 (0-indexed)
clawspotify play-playlist "Lofi Girl" # search playlists and play first result
Playback controls
clawspotify pause
clawspotify resume
clawspotify skip # skip to next track
clawspotify prev # go to previous track
clawspotify restart # restart current track from beginning
Queue
clawspotify queue "Stairway to Heaven" # search and add to queue
clawspotify queue "spotify:track:3z8h0TU..." # add by URI directly
Volume
clawspotify volume 50 # set volume to 50%
clawspotify volume 0 # mute
clawspotify volume 100 # max volume
Shuffle / Repeat
clawspotify shuffle on
clawspotify shuffle off
clawspotify repeat on
clawspotify repeat off
Session setup (first time only)
clawspotify setup --sp-dc "AQC..." --sp-key "07c9..." --id "my_account"
Notes
- Session is stored at
~/.config/spotapi/session.json— only needs to be set up once. - Default session identifier is
"default". Use--idto manage multiple accounts. sp_dcandsp_keycookies can be found in browser DevTools → Application → Cookies → open.spotify.com.- Commands target the currently active Spotify device (PC, phone, or web).
- Script location:
{skill_folder}/clawspotify.sh - Platform note: If your human is on Windows, they'll need WSL, Git Bash, or Cygwin to run this skill since it uses a Bash wrapper.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。