Langsung ke konten
Skillpedia
Lain-lain20k Β· #10459

Spotify

Fungsinya

Bekerja pada akun Spotify Anda, misalnya mencari, membuat playlist, menyimpan lagu, dan mengendalikan pemutaran. Skill ini ditujukan untuk pendengar yang ingin mengelola musik mereka dengan perintah, bukan dengan layar.

Kapan dipakai

  • βœ“Saat Anda ingin membuat playlist dari daftar lagu.
  • βœ“Saat Anda ingin melihat apa yang sedang diputar sekarang.
  • βœ“Saat Anda ingin menambahkan lagu ke perpustakaan Anda atau mengikuti playlist.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat playlist Spotify lagu indie yang ceria, dan tambahkan favorit saya dari minggu lalu.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini memanggil antarmuka web Spotify secara langsung melalui alat baris perintah. Token akses diperbarui secara otomatis, dan setiap permintaan mengubah akun sesuai dengan yang Anda minta.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum

Apakah perlu akun Spotify berbayar?

Kontrol pemutaran memerlukan akun Premium dengan perangkat yang aktif. Pencarian, playlist, dan perpustakaan berfungsi di akun gratis.

Apakah perlu disiapkan dulu?

Ya. Skill ini memerlukan penyiapan satu kali dengan aplikasi pengembang Spotify dan tiga kunci.

Bagaimana jika koneksinya berhenti berfungsi?

Menjalankan ulang langkah otorisasi biasanya memperbaikinya, atau alamat redirect perlu dikoreksi di dashboard pengembang.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
20k
Peringkat
#10459
Lisensi
MIT
Diperbarui
28/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa