spotify-cli-macos: Skill for Claude Code

.claude/skills/spotify/SKILL.md

spotify is a skill for Claude Code from pwittchen/spotify-cli-macos. It costs 84 tokens per session (670 once invoked), scanned A, original, Apache-2.0.

A command-based connection to the Spotify desktop app on macOS, using the installed spotifycli program to control playback and show the current track.

In plain words
What is it for?
Use it to start, pause, skip, restart, or inspect playback, activate or quit Spotify, and check whether the app is running.
Why use it?
It lets an agent operate Spotify through defined commands instead of needing to control the app manually.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is pwittchen/spotify-cli-macos's own configuration. It tells Claude Code how to work on spotify-cli-macos itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything spotify-cli-macos configures →

Reuse

Borrowing it

Nothing to install: this file belongs to pwittchen/spotify-cli-macos. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/pwittchen/spotify-cli-macos/master/.claude/skills/spotify/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/pwittchen/spotify-cli-macos

Made for: Claude Code.

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/pwittchen/spotify-cli-macos/spotify/github.svg)](https://agentmods.dev/skills/pwittchen/spotify-cli-macos/spotify)
Your own site
<a href="https://agentmods.dev/skills/pwittchen/spotify-cli-macos/spotify"><img src="https://agentmods.dev/badge/skills/pwittchen/spotify-cli-macos/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/pwittchen/spotify-cli-macos/spotify"><img src="https://agentmods.dev/badge/skills/pwittchen/spotify-cli-macos/spotify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 670 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.
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.00084 $0.00670
Opus 5.5 $0.00034 $0.00268
Sonnet 5.5 $0.00017 $0.00134
Haiku 4.5 $0.00008 $0.00067

Measured 2mo ago against content hash 86d88f786f90, 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 2mo ago.

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.

.claude/skills/spotify/SKILL.md · 52 lines

How it starts

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

spotify

Wrapper skill for the spotifycli shell tool, which drives Spotify on macOS through AppleScript (osascript).

Prerequisites

  • macOS with the Spotify desktop app installed.
  • spotifycli available on PATH. If command -v spotifycli returns nothing, tell the user to run make install in the spotify-cli-macos repo and stop — do not fall back to invoking AppleScript directly.

Commands

Invoke via Bash as spotifycli <command>:

Command Effect
activate Bring Spotify to the foreground (launches it if not running).
status Prints running or off.
play Start playback.
pause Pause playback.
playpause Toggle play/pause.
next Skip to next track.
prev Go to previous track (the underlying script calls it twice so it actually moves back instead of restarting the current track).
restart Seek current track to position 0.
track Print <song> - <artist> for the current track.
quit Quit the Spotify app.
help Print usage.

How to use

  • Map natural-language requests to the matching command. Examples:
    • "what's playing" / "what song is this" → spotifycli track
    • "pause" / "stop the music" → spotifycli pause
    • "skip" / "next song" → spotifycli next
    • "go back" / "previous track" → spotifycli prev
    • "restart this song" → spotifycli restart
    • "is Spotify running" → spotifycli status
    • "open Spotify" → spotifycli activate
    • "close Spotify" → spotifycli quit
  • For ambiguous requests like "play X" where X is a song/artist/playlist name, this tool cannot search or queue — explain the limitation. It only controls the currently loaded track.
  • Before play, pause, next, prev, track, or restart, run spotifycli status if there's any chance Spotify isn't running; the AppleScript commands will launch Spotify implicitly but track against a stopped app returns nothing useful.
  • quit closes the user's music app — confirm with the user before running it unless they asked explicitly.

Read the full file on GitHub · 52 lines

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. 2mo ago First seen · 52 lines · 84 tokens per session scan A 86d88f786f90

Subscribe to this mod's changes

spotify is a skill published in the GitHub repository pwittchen/spotify-cli-macos (26 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 84 tokens to every session and 670 once invoked, about $0.0003 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.

Related

spotify compared with skills from other repositories

spotify next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spotifypwittchen/spotify-cli-macosSkill266mo agoApache-2.0A84Claude Code
frame-macos-notificationwolfenazz/YzPzCodeSkill20yesterdayApache-2.0A30Claude Code, Codex
social-spotify-cardwolfenazz/YzPzCodeSkill20yesterdayApache-2.0A30Claude Code, Codex
terminal-helpertermlnk/termlnkSkill12yesterdaynoneC16Claude Code
create-skillwarpdotdev/warpSkill66ktodayAGPL-3.0A64Claude Code, Codex
figma-create-design-system-ruleswarpdotdev/warpSkill66ktodayAGPL-3.0A71Claude Code
figma-generate-librarywarpdotdev/warpSkill66ktodayAGPL-3.0A95Claude Code