agentleFS
lordmaculordmacu/nexo-rs/skills/spotify/SKILL.md

Spotify

Skill8 starsChanged 7 months agoApache-2.0View on GitHub

Control Spotify playback via Web API — now playing, search, play/pause/next/previous.

  • Reads credentials

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sonos, heartmula and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • emanueleieloSkill

    sonos

    Control Sonos speakers: discover, play/pause, volume, grouping, favorites, and queue management via sonos CLI.

    Also in 4 projects that use this

  • math-incSkill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 3 projects that use this

  • emanueleieloSkill

    imessage

    Send and read iMessage/SMS via Messages.app using the imsg CLI. List chats, view history, send messages to phone numbers or Apple IDs.

    Also in 5 projects that use this

  • ansvisorSkill

    shopping

    Checks product pages and feed for ChatGPT Shopping (US) and Google Shopping (EU).

    Also in 3 projects that use this

  • ourinesSkill

    forget

    Delete saved knowledge from ~/.claude/learnings/ and optionally clean up knowledge graph.

    Also in 3 projects that use this

  • HyaxiaSkill

    blogwatcher

    Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

    Also in 5 projects that use this

  • +1 more from emanueleielo

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to inspect what is playing, search music, and control playback on any Spotify Connect device.

    line 11
  2. Very specific:

    No device is connected to Spotify Connect → API returns NO_ACTIVE_DEVICE (-32070).

    line 24
  3. Very specific:

    If -32070 NO_ACTIVE_DEVICE: tell the user to open Spotify on a speaker/phone and retry.

    line 62
  4. Very specific:

    If -32011 unauthorized: token expired.

    line 64
  5. Very specific:

    If -32013 rate limited: respect retry_after from the response.

    line 65

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Spotify

Use this skill to inspect what is playing, search music, and control playback on any Spotify Connect device. It calls Spotify Web API directly (no CLI/TUI wrapper).

Use when

  • "what is playing right now?"
  • "play playlist X"
  • "next track"
  • "lower the volume" (with play/device_id to target a specific device)

Do not use when

  • No device is connected to Spotify Connect → API returns NO_ACTIVE_DEVICE (-32070). Open Spotify on a device first.
  • You need local audio synthesis (TTS, non-Spotify playback) → use a different skill.
  • You need library edits/playlist creation → possible via API but out of v0.1 scope.

Auth

Requires SPOTIFY_ACCESS_TOKEN (user scope). The refresh-token flow is managed by the operator (Spotify OAuth 2.0 PKCE or Authorization Code). This extension does not auto-refresh tokens. If a token expires, rotate it externally and update env.

Tools

status

Token presence and endpoint status. Use before issuing playback commands.

now_playing

Returns {is_playing, progress_ms, track, artists, album, uri, device}. 204/"no active device" → {is_playing:false, reason:"no active device"}.

search { query, types?, limit? }

  • types default track; accepts track,artist,album,playlist,show,episode,audiobook
  • limit 1..50 (default 10)

Returns raw /v1/search JSON. Useful as input for a follow-up play.

play { uri?, device_id? }

  • Without uri: resume playback.
  • spotify:track:... plays that track.
  • spotify:album:... / spotify:playlist:... / spotify:artist:... sets context_uri.
  • device_id optional: targets a specific device.

pause { device_id? } · next { device_id? } · previous { device_id? }

Direct playback controls.

Execution guidance

  • If -32070 NO_ACTIVE_DEVICE: tell the user to open Spotify on a speaker/phone and retry.
  • If -32011 unauthorized: token expired; operator must rotate it.
  • If -32013 rate limited: respect retry_after from the response.
  • Save device.id from now_playing for later calls to avoid additional discovery steps.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.