Перейти к содержанию
Skillpedia
Разное20k · #10459

Spotify

Что он делает

Работает с вашим аккаунтом Spotify: ищет, составляет плейлисты, сохраняет треки и управляет воспроизведением. Он нужен слушателям, которые хотят управлять музыкой командой, а не через экран.

Когда использовать

  • ✓Когда вы хотите создать плейлист из списка песен.
  • ✓Когда вы хотите узнать, что играет прямо сейчас.
  • ✓Когда вы хотите добавить треки в свою медиатеку или подписаться на плейлист.

Ссылка на скилл

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

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Создай плейлист Spotify из бодрых инди-песен и добавь мои любимые за прошлую неделю.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Скилл напрямую обращается к веб-интерфейсу Spotify через инструмент командной строки. Токены доступа обновляются автоматически, а каждый запрос меняет аккаунт именно так, как вы просили.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с 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.
Частые вопросы

Нужен ли платный аккаунт Spotify?

Управление воспроизведением требует Premium с активным устройством. Поиск, плейлисты и медиатека работают и на бесплатном аккаунте.

Нужно ли сначала что-то настроить?

Да. Нужна однократная настройка с приложением для разработчиков Spotify и тремя ключами.

Что если соединение перестанет работать?

Обычно помогает повторный шаг авторизации, или нужно исправить адрес перенаправления в панели разработчика.

Подробности

Оригинальное описание автора

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

Популярность

Звёзды на GitHub
20k
Место в рейтинге
#10459
Лицензия
MIT
Обновлён
28.10.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы