Spotify
Qué hace
Actúa sobre tu cuenta de Spotify, por ejemplo buscando, creando listas de reproducción, guardando canciones y controlando la reproducción. Es para oyentes que quieren gestionar su música con un comando en lugar de una pantalla.
Cuándo usarla
- ✓Cuando quieres crear una lista de reproducción a partir de una lista de canciones.
- ✓Cuando quieres ver lo que suena en este momento.
- ✓Cuando quieres añadir canciones a tu biblioteca o seguir una lista de reproducción.
Link de la skill
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Crea una lista de reproducción de Spotify con canciones indie alegres y añade mis favoritas de la semana pasada.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill llama directamente a la interfaz web de Spotify a través de una herramienta de línea de comandos. Los tokens de acceso se renuevan automáticamente, y cada petición cambia la cuenta de la forma que pediste.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes
¿Necesito una cuenta Premium de Spotify?
Los controles de reproducción necesitan una cuenta Premium con un dispositivo activo. La búsqueda, las listas y la biblioteca funcionan con una cuenta gratuita.
¿Tengo que configurarlo antes?
Sí. Necesita una configuración única con una app de desarrollador de Spotify y tres claves.
¿Qué pasa si la conexión deja de funcionar?
Volver a ejecutar el paso de autorización suele solucionarlo, o hay que corregir la dirección de redirección en el panel de desarrollador.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 20 mil
- Posición en el ranking
- #10459
- Licencia
- MIT
- Actualizada
- 28/10/2026
Comentarios
- …
Más skills de este repositorio
LifeOS
20 milAyuda a tu agente a configurar LifeOS, un sistema personal que relaciona tu situación actual con tu situación ideal mediante una entrevista y un panel.
AnnualReports
20 milAyuda a tu agente a buscar y comparar informes anuales de ciberseguridad de grandes proveedores, como las tendencias de brechas y ransomware, con una fuente para cada cifra.
ApertureOscillation
20 milEnseña a tu agente a probar una pregunta de diseño con un alcance estrecho y otro amplio, y después señalar dónde chocan las dos respuestas antes de construir.
Aphorisms
20 milPermite que tu agente busque, encuentre y registre citas atribuidas de una colección seleccionada, evitando las que se usaron hace poco en tu boletín.
Skills parecidas
blucli
394 milAyuda a tu agente a buscar, reproducir, pausar, agrupar y ajustar el volumen de los altavoces Bluesound y NAD con el comando blu.
camsnap
394 milAyuda a tu agente a capturar fotos, clips cortos o eventos de movimiento de cámaras de red y cámaras web locales que hayas configurado.
eightctl
394 milAyuda a tu agente a consultar y controlar un pod de Eight Sleep, incluida su temperatura, sus alarmas y sus horarios de sueño.