# Spotify

> Control Spotify playback — play, pause, skip, search, and queue tracks. Use when: user asks to play music, search for songs, control playback, or manage Spotify queue. NOT for: downloading music, non-Spotify services (Apple Music, YouTube Music), or audio file playback.

- **Type:** Skill
- **Install:** `agentstack add skill-ericwang915-pythonclaw-spotify`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ericwang915](https://agentstack.voostack.com/s/ericwang915)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ericwang915](https://github.com/ericwang915)
- **Source:** https://github.com/ericwang915/PythonClaw/tree/main/pythonclaw/templates/skills/media/spotify
- **Website:** https://github.com/ericwang915/PythonClaw

## Install

```sh
agentstack add skill-ericwang915-pythonclaw-spotify
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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`:

```json
"skills": {
  "spotify": {
    "clientId": "your-client-id",
    "clientSecret": "your-client-secret"
  }
}
```

5. Run the auth flow once to get a refresh token:

```bash
python {skill_path}/spotify_ctl.py auth
```

### Alternative: spotify-player CLI

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

```bash
brew install spotify_player  # macOS
```

Then use it directly:
```bash
spotify_player playback play
spotify_player playback pause
spotify_player search "query"
```

## Commands

### Current playback

```bash
python {skill_path}/spotify_ctl.py now-playing
```

### Search

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

### Playback control

```bash
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

```bash
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

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

### Volume

```bash
python {skill_path}/spotify_ctl.py volume 50
```

## Notes

- Requires Spotify Premium for playback control
- An active Spotify device must be running (desktop app, mobile, or web player)
- The auth token expires and auto-refreshes via the refresh token
- Search results return Spotify URIs which can be used for playback

## Resources

| File | Description |
|------|-------------|
| `spotify_ctl.py` | Spotify Web API controller |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ericwang915](https://github.com/ericwang915)
- **Source:** [ericwang915/PythonClaw](https://github.com/ericwang915/PythonClaw)
- **License:** MIT
- **Homepage:** https://github.com/ericwang915/PythonClaw

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ericwang915-pythonclaw-spotify
- Seller: https://agentstack.voostack.com/s/ericwang915
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
