spotify

spotify is a skill for Claude Code, Codex from ericwang915/PythonClaw. It costs 62 tokens per session (733 once invoked), scanned A, original, MIT.

A tool for controlling Spotify, a music streaming service, through its web API. It can manage playback, search for tracks, and control the queue.

In plain words
What is it for?
Use it to play, pause, skip, search for songs, check what is playing, or add tracks to the Spotify queue.
Why use it?
It avoids switching to the Spotify app for routine playback actions and music searches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to play, pause, skip, search for songs, check what is playing, or add tracks to the Spotify queue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ericwang915/pythonclaw/spotify
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ericwang915/PythonClaw --skill spotify
Clone the repo
git clone --depth 1 https://github.com/ericwang915/PythonClaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spotify

README.md
[![agentmods](https://agentmods.dev/badge/skills/ericwang915/pythonclaw/spotify/github.svg)](https://agentmods.dev/skills/ericwang915/pythonclaw/spotify)
Your own site
<a href="https://agentmods.dev/skills/ericwang915/pythonclaw/spotify"><img src="https://agentmods.dev/badge/skills/ericwang915/pythonclaw/spotify/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spotify

Your own site · 80×15
<a href="https://agentmods.dev/skills/ericwang915/pythonclaw/spotify"><img src="https://agentmods.dev/badge/skills/ericwang915/pythonclaw/spotify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 733 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00733
Opus 5.5 $0.00025 $0.00293
Sonnet 5.5 $0.00012 $0.00147
Haiku 4.5 $0.00006 $0.00073

Measured 1mo ago against content hash 8a99097a8bb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spotify scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (spotify_ctl.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pythonclaw/templates/skills/media/spotify/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spotify

Control Spotify playback via the Spotify Web API.

When to Use

✅ USE this skill when:

  • "Play some jazz music"
  • "Skip this song"
  • "What's currently playing?"
  • "Search for songs by The Beatles"
  • "Pause the music"
  • "Add this song to my queue"

When NOT to Use

❌ DON'T use this skill when:

  • Downloading or saving music → Spotify API doesn't support downloads
  • Apple Music or YouTube Music → different APIs/tools
  • Playing local audio files → use system media player
  • Music recognition → use specialised tools (Shazam, etc.)

Setup

  1. Create a Spotify app at https://developer.spotify.com/dashboard
  2. Set redirect URI to http://localhost:8888/callback
  3. Get your Client ID and Client Secret
  4. Configure in pythonclaw.json:
"skills": {
  "spotify": {
    "clientId": "your-client-id",
    "clientSecret": "your-client-secret"
  }
}
  1. Run the auth flow once to get a refresh token:
python {skill_path}/spotify_ctl.py auth

Alternative: spotify-player CLI

If you have spotify_player installed (Rust-based TUI):

brew install spotify_player  # macOS

Then use it directly:

spotify_player playback play
spotify_player playback pause
spotify_player search "query"

Commands

Current playback

python {skill_path}/spotify_ctl.py now-playing

Search

python {skill_path}/spotify_ctl.py search "The Beatles" --type track
python {skill_path}/spotify_ctl.py search "Chill Vibes" --type playlist

Playback control

python {skill_path}/spotify_ctl.py play
python {skill_path}/spotify_ctl.py pause
python {skill_path}/spotify_ctl.py next
python {skill_path}/spotify_ctl.py previous

Play a specific track or playlist

python {skill_path}/spotify_ctl.py play --uri spotify:track:4iV5W9uYEdYUVa79Axb7Rh
python {skill_path}/spotify_ctl.py play --uri spotify:playlist:37i9dQZF1DXcBWIGoYBM5M

Queue a track

python {skill_path}/spotify_ctl.py queue spotify:track:4iV5W9uYEdYUVa79Axb7Rh

Read the full file on GitHub · 125 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 125 lines · 62 tokens per session scan A 8a99097a8bb1

Subscribe to this mod's changes

spotify is a skill published in the GitHub repository ericwang915/PythonClaw (45 stars, last pushed 10d ago), licensed MIT. It adds 62 tokens to every session and 733 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.