Spotify
What it does
Acts on your Spotify account, such as searching, building playlists, saving tracks and controlling playback. It is for listeners who want to manage their music with a command rather than a screen.
When to use it
- ✓When you want to create a playlist from a list of songs.
- ✓When you want to see what is playing right now.
- ✓When you want to add tracks to your library or follow a playlist.
Skill link
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Create a Spotify playlist of upbeat indie songs and add my favorites from last week.”
5 new skills a week. 1 minute to read.
How it works
The skill calls the Spotify web interface directly through a command-line tool. Access tokens refresh automatically, and each request changes the account in the way you asked.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Spotify
Acts on the principal's real Spotify account through Tools/Spotify.ts — a deterministic CLI that calls the Spotify Web API directly. No MCP, no server process, no session registration: any session can invoke it via Bash immediately.
bun ~/.claude/skills/Spotify/Tools/Spotify.ts <command> [flags] # --help for the full list
Ideal State
- Every requested account change (follow, playlist build, library read, queue, playback) is one
Tools/Spotify.tscall keyed by IDs or URIs, and the account state afterwards matches the request. - Auth is set up once and never repeated by hand: tokens refresh per invocation, and a dead token or redirect mismatch is traced to its real fix (re-run
auth, or fix the dashboard URI). - Playback is attempted only on a Premium account with an active device, so a Free account still gets search, playlists and library.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| Authorize | "set up spotify", "authorize spotify", "connect spotify", auth broken | Intents/Authorize.md |
| Manage | play / search / playlists / queue / library ops | Intents/Manage.md |
| File | Read when |
|---|---|
Setup.md |
first-time install: the developer app, the three .env keys, the proof command |
Tools/ |
Spotify.help.md is the full flag reference (same as --help); EnvText.ts is the pure env-file helper Spotify.ts writes tokens with |
Data & Config
This skill reads no files under LIFEOS/USER/. Credentials are env-only: SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET and SPOTIFY_REFRESH_TOKEN in ~/.claude/.env (names only here, never values). First-time setup, the Spotify developer app and the proof command are in Setup.md. Tokens auto-refresh per invocation; a missing refresh token means run Intents/Authorize.md. With the credentials missing, the tool exits 1 and points at Setup.md.
Gotchas
searchworks before user auth (client-credentials fallback); every other command needs the refresh token.- 401 on every call → the refresh token died (password change, revoked access); re-run
auth(Intents/Authorize.md). The tool persists rotated refresh tokens automatically. /me/playlistsreturnstracks: nullon playlist rows (observed) — never assumetracks.totalexists; the CLI omits the count when absent.
Examples
- "Add this playlist link to my Spotify" → Manage → the playlist is followed with
follow-playlist --id <ID>(ID from the URL) and shows inplaylists. - "Make me a focus-music playlist and fill it" → Manage → a new playlist from
create-playlist, holding the trackssearchresolved, added withadd-tracks. - "What's playing?" → Manage → the
now-playingresult. - "Skip this / turn it down" → Manage →
next/volume --percent 30on the active Premium device.
FAQ
Does it need a paid Spotify account?
Playback controls need a Premium account with an active device. Search, playlists and library work on a free account.
Do I need to set it up first?
Yes. It needs a one-time setup with a Spotify developer app and three keys.
What if the connection stops working?
Re-running the authorization step usually fixes it, or the redirect address needs correcting in the developer dashboard.
Details
Original description by the author
Acts on the principal's Spotify account via a deterministic CLI (Tools/Spotify.ts): search, playlists, now-playing, library, and playback across devices. USE WHEN spotify, play on spotify, add to my spotify, follow this playlist, save playlist, create a spotify playlist, add tracks, what's playing, my playlists, queue this, skip track, set volume, spotify search, control spotify, my spotify library. NOT FOR music taste or recommendations, generating songs, editing audio (AudioEditor).
repo: danielmiessler/LifeOS
Popularity
- GitHub stars
- 20k
- Ranking position
- #10459
- License
- MIT
- Updated
- 10/28/2026
Comments
- …
More skills from this repository
LifeOS
20kHelps your agent set up LifeOS, a personal system that maps your current state to your ideal state through an interview and a dashboard.
AnnualReports
20kHelps your agent find and compare cybersecurity annual reports from major vendors, such as breach and ransomware trends, with a source for every figure.
ApertureOscillation
20kTeaches your agent to test one design question at a narrow scope and a wide scope, then name where the two answers clash before you build.
Aphorisms
20kLets your agent find, match, and track attributed quotes from a curated collection, avoiding ones recently used in your newsletter.
Similar skills
blucli
394kHelps your agent find, play, pause, group, and adjust the volume of Bluesound and NAD speakers through the blu command.
camsnap
394kHelps your agent grab snapshots, short clips, or motion events from network cameras and local webcams that you have set up.
eightctl
394kHelps your agent check and control an Eight Sleep pod, including its temperature, alarms, and sleep schedules.