Zum Inhalt springen
Skillpedia
Sonstiges20k · #10459

Spotify

Was er macht

Dieser Skill arbeitet mit deinem Spotify Konto, etwa Suchen, Playlists erstellen, Titel speichern und die Wiedergabe steuern. Er ist für Hörer gedacht, die ihre Musik mit einem Befehl statt über einen Bildschirm verwalten wollen.

Wann du ihn nutzt

  • ✓Wenn du aus einer Liste von Songs eine Playlist erstellen willst.
  • ✓Wenn du sehen willst, was gerade läuft.
  • ✓Wenn du Titel zu deiner Bibliothek hinzufügen oder einer Playlist folgen willst.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Erstelle eine Spotify Playlist mit fröhlichen Indie Songs und füge meine Favoriten von letzter Woche hinzu.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill ruft die Web Schnittstelle von Spotify direkt über ein Kommandozeilen Werkzeug auf. Zugriffstoken werden automatisch erneuert, und jede Anfrage ändert das Konto so, wie du es verlangt hast.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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.
Häufige Fragen

Braucht er ein bezahltes Spotify Konto?

Wiedergabesteuerung braucht ein Premium Konto mit einem aktiven Gerät. Suche, Playlists und Bibliothek funktionieren auch mit einem kostenlosen Konto.

Muss ich ihn vorher einrichten?

Ja. Er braucht eine einmalige Einrichtung mit einer Spotify Entwickler App und drei Schlüsseln.

Was ist, wenn die Verbindung nicht mehr funktioniert?

Eine erneute Autorisierung behebt es meist, sonst muss die Weiterleitungsadresse im Entwickler Dashboard korrigiert werden.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
20k
Platz im Ranking
#10459
Lizenz
MIT
Aktualisiert
28.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills