Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

spotify-agentspotify Agent 搜索

Agent Skill

spotify-agent 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,634

周安装

112

GitHub Stars

公开资料未说明

下载量

923
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:spotify-agent(spotify Agent 搜索)
来源仓库:https://github.com/cdmichaelb/spotify-agent
安装命令:
openclaw skills install spotify-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install spotify-agent

简介

通过 Spotify Web API 控制播放、搜索音乐和管理播放列表。

  • 适用于需要播放控制、音乐发现或收听习惯分析的场景。
  • 使用自然语言指令触发,如“播放周杰伦的歌”或“创建跑步歌单”。
  • 需配置 Spotify API 凭据并授权相关权限方可正常使用。
  • spotify-agent 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
spotify
description
Control Spotify playback, search music, manage playlists, generate discovery playlists, and analyze listening habits via the Spotify Web API. Use when asked to play/pause/skip music, search for songs, manage playlists, get recommendations, check what's playing, or anything Spotify-related. Triggers on "spotify", "play music", "what song", "playlist", "spotify play", "spotify pause", "spotify search".
env
description
Spotify app client ID (or set in config.json)
required
false
description
Spotify app client secret (or set in config.json)
required
false
description
OAuth redirect URI (default http://127.0.0.1:3000/callback)
required
false

Spotify Skill

Control Spotify playback, manage your library, discover music, and analyze listening habits.

Prerequisites

  1. Create a Spotify app at developer.spotify.com
  2. Add a redirect URI (e.g. http://127.0.0.1:3000/callback)
  3. Copy config.example.json to config.json and fill in your credentials
  4. Required scopes are auto-requested during auth
cp config.example.json config.json
# Edit config.json with your client_id and client_secret

First-Time Authorization

python3 scripts/auth.py auth

Opens a browser for OAuth2. After authorizing, paste the code parameter from the redirect URL:

python3 scripts/auth.py auth <code>

Tokens are saved to config.json and auto-refreshed. For headless setups, run auth on a machine with a browser, then copy config.json.

Commands

Run via python3 scripts/spotify.py <command> [args]

Playback

CommandArgsDescription
now-playingCurrent track, artist, album, progress
play[uri]Resume playback, optionally with a specific track URI
pausePause playback
nextSkip to next track
prevPrevious track
seekposition_msSeek to position in ms
volume0-100Set volume percentage
shuffle`on\off`Toggle shuffle
repeat`off\track\context`Set repeat mode
queue-adduriAdd track to queue
queueGet current queue
devicesList available devices
transferdevice_idTransfer playback to device

Search & Discover

CommandArgsDescription
searchquerySearch tracks, artists, albums, playlists
recommendations[track_id]Get recommendations seeded from a track
audio-featurestrack_idDanceability, energy, tempo, key, etc.

Library

CommandArgsDescription
saved-tracks[limit]Get saved/liked tracks
saveid1 id2 ...Save tracks to library
playlists[limit]List your playlists
playlist-tracksplaylist_idGet tracks in a playlist
create-playlistname [description]Create a new playlist
edit-playlistplaylist_id [new_name]Edit playlist name/description
add-to-playlistplaylist_id uri1 ...Add tracks to playlist
remove-from-playlistplaylist_id uri1 ...Remove tracks from playlist
play-playlistplaylist_idStart playing a playlist from the beginning
smart-playlistname [source] [limit] [time_range]Auto-generate playlist (see below)
claw-list[name] [seeds] [per_seed]Discovery playlist (see below)

User Data

CommandArgsDescription
meYour Spotify profile
top-tracks`[short\medium\long_term]`Your top tracks
top-artists`[short\medium\long_term]`Your top artists
recent[limit]Recently played tracks

Smart Playlists

smart-playlist auto-generates playlists from your listening data:

# From your top tracks (last 6 months)
python3 scripts/spotify.py smart-playlist "My Favorites" top 30 medium_term

# From your liked/saved tracks
python3 scripts/spotify.py smart-playlist "Liked Mix" saved 20

# Recommendations based on your top tracks (discovers new music)
python3 scripts/spotify.py smart-playlist "Discover Weekly DIY" top-recs 30 short_term

Sources: top (most played), saved (liked songs), top-recs (recommendations from top tracks) Time ranges: short_term (~4 weeks), medium_term (~6 months), long_term (years)

Claw-List (Discovery Playlists)

claw-list creates a discovery playlist with diverse seeds from your top/saved tracks, plus mood-matched related tracks:

# Default: 5 seeds × 5 related tracks = 30 tracks
python3 scripts/spotify.py claw-list "My Mix"

# Custom: 8 seeds, 3 related each = 32 tracks
python3 scripts/spotify.py claw-list "Quick Mix" 8 3

# Larger: 10 seeds, 7 related each = 80 tracks
python3 scripts/spotify.py claw-list "Deep Dive" 10 7

How it works:

  1. Picks diverse seed tracks from your top 50 + saved tracks (deduplicates by artist for variety)
  2. For each seed: analyzes audio features (energy, valence, danceability, etc.) to determine mood
  3. Adds 2 same-artist deep cuts + (per_seed - 2) mood-matched discovery tracks via search
  4. Creates the playlist with all tracks interleaved (seed, related, seed, related...)

Agent Usage Patterns

  1. "Play [song name]"search the song, then play the first result's URI
  2. "What's playing?"now-playing
  3. "Skip/pause/next" → direct command
  4. "Make me a playlist of..."search for tracks, create-playlist, add-to-playlist
  5. "Music like X"recommendations seeded from X's track ID
  6. "My top artists this month"top-artists short_term
  7. "Make me a discovery mix"claw-list with desired size

URIs

Spotify uses URIs like spotify:track:4cOdK2wGLETKBW3PvgPWqT. Extract the ID from URLs like https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT — the ID is the part after /track/.

API Migration Notes (February 2026)

Spotify's February 2026 API migration removed several endpoints for dev-mode apps. This skill handles them:

  • Playlist tracks: Uses /playlists/{id}/items (new) instead of /tracks (removed). Response field changed from track to item.
  • Create playlist: Uses /me/playlists instead of /users/{id}/playlists (removed).
  • Recommendations: /recommendations and /related-artists may return 404/403 in dev mode. Claw-list uses search-based discovery as a fallback.
  • Batch endpoints: /tracks, /artists, /albums, /browse/new-releases are removed in dev mode.

Apps in Extended Quota Mode are unaffected. Request extended quota at the Spotify Developer Dashboard if needed.

Config

  • config.json stores OAuth2 tokens and credentials — do not commit or share
  • Tokens auto-refresh via auth.py (called transparently by spotify.py)
  • config.example.json is the template for new setups
  • Env vars SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET, SPOTIFY_REDIRECT_URI override config.json if set

Requirements

  • Python 3.8+
  • A Spotify Premium account (for playback controls)
  • No external Python packages needed — uses only stdlib

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.05%
按下载量换算877

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills