Pular para o conteúdo
Skillpedia
Diversos20 mil · #10459

Spotify

O que ela faz

Atua na sua conta do Spotify, como pesquisar, montar playlists, salvar faixas e controlar a reprodução. Ela é para ouvintes que querem gerenciar sua música com um comando, em vez de uma tela.

Quando usar

  • ✓Quando você quer criar uma playlist a partir de uma lista de músicas.
  • ✓Quando você quer ver o que está tocando agora.
  • ✓Quando você quer adicionar faixas à sua biblioteca ou seguir uma playlist.

Link da skill

https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Crie uma playlist de indie animado no Spotify e adicione meus favoritos da semana passada.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill chama diretamente a interface web do Spotify por uma ferramenta de linha de comando. Os tokens de acesso são renovados automaticamente, e cada pedido altera a conta da forma que você pediu.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.ts call 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

  • search works 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/playlists returns tracks: null on playlist rows (observed) — never assume tracks.total exists; 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 in playlists.
  • "Make me a focus-music playlist and fill it" → Manage → a new playlist from create-playlist, holding the tracks search resolved, added with add-tracks.
  • "What's playing?" → Manage → the now-playing result.
  • "Skip this / turn it down" → Manage → next / volume --percent 30 on the active Premium device.
Perguntas frequentes

Precisa de uma conta Spotify paga?

Os controles de reprodução precisam de uma conta Premium com um dispositivo ativo. Pesquisa, playlists e biblioteca funcionam em uma conta gratuita.

Preciso configurar antes?

Sim. É preciso uma configuração única com um app de desenvolvedor do Spotify e três chaves.

E se a conexão parar de funcionar?

Repetir a etapa de autorização geralmente resolve, ou o endereço de redirecionamento precisa ser corrigido no painel de desenvolvedor.

Detalhes

Descrição original do 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

Popularidade

Estrelas no GitHub
20 mil
Posição no ranking
#10459
Licença
MIT
Atualizada em
28/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas