spotify-cli
Skill by gregoryg
Lets an AI assistant control Spotify through the standalone spotify-cli JSON tool. It covers search, playback, devices, queue, playlists, saved library items, followed artists and podcasts.
Install spotify-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gregoryg/AIPIHKAL /tmp/AIPIHKAL && mkdir -p ~/.claude/skills && cp -r /tmp/AIPIHKAL/skills/spotify-cli ~/.claude/skills/spotify-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gregoryg/AIPIHKAL /tmp/AIPIHKAL && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/AIPIHKAL/skills/spotify-cli ~/.gemini/antigravity-cli/skills/spotify-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The spotify-cli skill tells an AI assistant how to use the standalone spotify-cli JSON command line tool for Spotify. It covers authentication, search, playback control, devices, the queue, playlists, saved tracks, albums, shows and episodes, followed artists, and podcast shows and episodes. The skill asks the assistant to prefer compact JSON output and the shortest command path that answers or performs a request.
The assistant first checks whether the tool is on PATH or in a checkout's virtualenv, and it should not invent results if the tool is missing. Playback actions can run directly using known device aliases, and mutations are inspected before retrying after an ambiguous failure. The source describes it for people with Spotify accounts who want an assistant to control playback and curate music. It notes that the CLI is not a listening journal or want-to-listen tracker.
Written from the project's SKILL.md and checked against it.
What it can do
- AuthenticationChecks setup with doctor and auth status, and logs in with auth login.
- Search and playSearches Spotify and plays a likely result with search-and-play.
- Playback controlShows current playback and handles pause, play, next, previous and volume.
- DevicesLists Spotify Connect devices and transfers playback to another device.
- QueueReads the playback queue and adds tracks to it.
- PlaylistsLists playlists and adds or removes items in them.
- LibrarySaves and removes tracks, albums, shows and episodes in the saved library.
- Followed artistsLists followed artists and follows or unfollows them.
- PodcastsSearches shows, lists show episodes and gets episode details.
- Discovery and curationGuides mood-based discovery and playlist building using a curation reference.
What you need
- spotify-cli installed on PATH or in a checkout virtualenv
- Spotify client ID for config init
- Spotify Premium for playback changes
- An active Spotify Connect device
Try asking
- What is playing on Spotify right now?
- Play the album The Road to Ensenada on the Kitchen device.
- Show me the latest episodes of the No Hay Tos podcast.
Good to know
- Playback changes generally require Spotify Premium and an active Spotify Connect device.
- Smart Shuffle cannot reliably be restored after a shuffle change.
- Removed Spotify recommendations endpoints are not a usable fallback for discovery.
- The CLI is not a durable listening journal or want-to-listen tracker.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/spotify-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to spotify-cli
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
spotify-cli: common questions
Does spotify-cli need Spotify Premium?
The source says playback mutations generally require Premium and an active Spotify Connect device. Read-only tasks are not described with that requirement.
Can it play music on a specific device?
Yes. The skill passes a device ID from devices list, or from a known alias table, to search-and-play or playback play.
Can spotify-cli track what I want to listen to?
No. The source says the CLI is not a listening journal or want-to-listen tracker, and that such tracking belongs to a separate user-owned application.
How do I install spotify-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is spotify-cli free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is spotify-cli safe to use?
It scores 56 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to spotify-cli?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
