agentleFS
trac3r00trac3r00/core-skills/skills/spotify/SKILL.md

spotify

Skill0 starsChanged 9 days agoMITView on GitHub

Read and control the Spotify desktop app: playback, player volume, shuffle, repeat, search. Use for Spotify on this Mac. Not for TV.app (apple-tv).

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sonos, heartmula and 10 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 4 projects that use this

  • math-incSkill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 3 projects that use this

  • aboylabsSkill

    debugging-hermes-tui-commands

    Debug Hermes TUI slash commands: Python, gateway, Ink UI.

    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 6 projects that use this

  • aboylabsSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 3 projects that use this

  • +1 more from math-inc
  • +3 more from aboylabs
  • +1 more from emanueleielo

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Only play, toggle, open and open-search may start Spotify.

    line 48

“Common” is measured: kept by at least 6 in 10 of the 22 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

This skill drives Spotify.app through its AppleScript dictionary. It does not change macOS system volume; volume changes Spotify's own player volume.

Commands

python3 scripts/spotify.py --json status
python3 scripts/spotify.py --json play [spotify:URI]
python3 scripts/spotify.py --json pause
python3 scripts/spotify.py --json toggle
python3 scripts/spotify.py --json next
python3 scripts/spotify.py --json previous
python3 scripts/spotify.py --json seek SECONDS
python3 scripts/spotify.py --json volume [0-100]          # no value: read only
python3 scripts/spotify.py --json shuffle on|off
python3 scripts/spotify.py --json repeat on|off
python3 scripts/spotify.py --json open-search QUERY
python3 scripts/spotify.py --json open URI

--json is accepted anywhere before a -- separator (tokens after -- are data). Read status first and change playback only when asked. For clicks, typing, or window control that this helper doesn't cover, use the opencua skill (OpenCUA, formerly apple-cua; CLI opencua); never write an ad-hoc input script or use OmO's native computer-use.

status reports player state, track name, artist, album, duration in milliseconds, position in seconds, Spotify URI, Spotify player volume, shuffle, and repeat. Successful mutating commands include the resulting status.

Boundaries and exit codes

  • macOS only; the helper uses Python's standard library and /usr/bin/osascript.
  • Exit 0 means success. Exit 1 means Spotify rejected the operation or returned an app-level error, always as {"error": "..."} on stdout.
  • Exit 2 means invalid arguments, non-macOS, missing osascript, or denied Automation permission.
  • Only play, toggle, open and open-search may start Spotify. Every other command (pause, next, previous, seek, volume, shuffle, repeat) exits 1 with "Spotify is not running" instead of launching it, because a launch can resume playback on its own. status never launches it.
  • volume is Spotify's own sound volume and never changes system volume. Setting it is verified by a separate read-back (one +1 compensation when Spotify stores the value a step low); a value Spotify cannot hold (99 reads back as 100) exits 1 and names the actual volume. status never mixes fields from two tracks: a track change during the read is retried once, then reported as an error.
  • An already-running Spotify instance is never quit.

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.