Установка
SKILL.md
Spotify — Printing Press CLI
Prerequisites: Install the CLI
This skill drives the spotify-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:<!-- -->npx -y @mvanhorn/printing-press-library install spotify --cli-only - Verify:
spotify-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.5 or newer):
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/spotify/cmd/spotify-pp-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
You can use Spotify's Web API to discover music and podcasts, manage your Spotify library, control audio playback, and much more. Browse our available Web API endpoints using the sidebar at left, or via the navigation bar on top of this page on smaller screens.
In order to make successful Web API requests your app will need a valid access token. One can be obtained through <!-- --><a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/"><!-- -->OAuth 2.0<!-- --></a><!-- -->.
The base URI for all Web API requests is https://api.spotify.com/v1.
Need help? See our <!-- --><a href="https://developer.spotify.com/documentation/web-api/guides/"><!-- -->Web API guides<!-- --></a><!-- --> for more information, or visit the <!-- --><a href="https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer"><!-- -->Spotify for Developers community forum<!-- --></a><!-- --> to ask questions and connect with other developers.
Command Reference
albums — Manage albums
spotify-pp-cli albums get-an— Get Spotify catalog information for a single album.spotify-pp-cli albums get-multiple— Get Spotify catalog information for multiple albums identified by their Spotify IDs.
artists — Manage artists
spotify-pp-cli artists get-an— Get Spotify catalog information for a single artist identified by their unique Spotify ID.spotify-pp-cli artists get-multiple— Get Spotify catalog information for several artists based on their Spotify IDs.
audio-analysis — Manage audio analysis
spotify-pp-cli audio-analysis <id>— Get a low-level audio analysis for a track in the Spotify catalog.
audio-features — Manage audio features
spotify-pp-cli audio-features get— Get audio feature information for a single track identified by its unique Spotify ID.spotify-pp-cli audio-features get-several— Get audio features for multiple tracks based on their Spotify IDs.
audiobooks — Manage audiobooks
spotify-pp-cli audiobooks get-an— Get Spotify catalog information for a single audiobook.spotify-pp-cli audiobooks get-multiple— Get Spotify catalog information for several audiobooks identified by their Spotify IDs.
browse — Manage browse
spotify-pp-cli browse get-a-categories-playlists— Get a list of Spotify playlists tagged with a particular category.spotify-pp-cli browse get-a-category— Get a single category used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).spotify-pp-cli browse get-categories— Get a list of categories used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).spotify-pp-cli browse get-featured-playlists— Get a list of Spotify featured playlists (shown, for example, on a Spotify player's 'Browse' tab).spotify-pp-cli browse get-new-releases— Get a list of new album releases featured in Spotify (shown, for example, on a Spotify player’s “Browse” tab).
chapters — Manage chapters
spotify-pp-cli chapters get-a— Get Spotify catalog information for a single audiobook chapter.spotify-pp-cli chapters get-several— Get Spotify catalog information for several audiobook chapters identified by their Spotify IDs.
episodes — Manage episodes
spotify-pp-cli episodes get-an— Get Spotify catalog information for a single episode identified by its unique Spotify ID.spotify-pp-cli episodes get-multiple— Get Spotify catalog information for several episodes based on their Spotify IDs.
markets — Manage markets
spotify-pp-cli markets— Get the list of markets where Spotify is available.
me — Manage me
spotify-pp-cli me add-to-queue— Add an item to be played next in the user's current playback queue.spotify-pp-cli me check-current-user-follows— Check to see if the current user is following one or more artists or other Spotify users.spotify-pp-cli me check-library-contains— Check if one or more items are already saved in the current user's library.spotify-pp-cli me check-users-saved-albums— Check if one or more albums is already saved in the current Spotify user's 'Your Music' library.spotify-pp-cli me check-users-saved-audiobooks— Check if one or more audiobooks are already saved in the current Spotify user's library.spotify-pp-cli me check-users-saved-episodes— Check if one or more episodes is already saved in the current Spotify user's 'Your Episodes' library.spotify-pp-cli me check-users-saved-shows— Check if one or more shows is already saved in the current Spotify user's library.spotify-pp-cli me check-users-saved-tracks— Check if one or more tracks is already saved in the current Spotify user's 'Your Music' library.spotify-pp-cli me create-playlist— Create a playlist for the current Spotify user.spotify-pp-cli me follow-artists-users— Add the current user as a follower of one or more artists or other Spotify users. Note: This endpoint is deprecated.spotify-pp-cli me get-a-list-of-current-users-playlists— Get a list of the playlists owned or followed by the current Spotify user.spotify-pp-cli me get-a-users-available-devices— Get information about a user’s available Spotify Connect devices.spotify-pp-cli me get-current-users-profile— Get detailed profile information about the current user (including the current user's username).spotify-pp-cli me get-followed— Get the current user's followed artists.spotify-pp-cli me get-information-about-the-users-current-playback— Get information about the user’s current playback state, including track or episode, progress, and active device.spotify-pp-cli me get-queue— Get the list of objects that make up the user's queue.spotify-pp-cli me get-recently-played— Get tracks from the current user's recently played tracks. Note: Currently doesn't support podcast episodes.spotify-pp-cli me get-the-users-currently-playing-track— Get the object currently being played on the user's Spotify account.spotify-pp-cli me get-users-saved-albums— Get a list of the albums saved in the current Spotify user's 'Your Music' library.spotify-pp-cli me get-users-saved-audiobooks— Get a list of the audiobooks saved in the current Spotify user's 'Your Music' library.spotify-pp-cli me get-users-saved-episodes— Get a list of the episodes saved in the current Spotify user's library.spotify-pp-cli me get-users-saved-shows— Get a list of shows saved in the current Spotify user's library.spotify-pp-cli me get-users-saved-tracks— Get a list of the songs saved in the current Spotify user's 'Your Music' library.spotify-pp-cli me get-users-top-artists— Get the current user's top artists based on calculated affinity.spotify-pp-cli me get-users-top-tracks— Get the current user's top tracks based on calculated affinity.spotify-pp-cli me pause-a-users-playback— Pause playback on the user's account. This API only works for users who have Spotify Premium.spotify-pp-cli me remove-albums-user— Remove one or more albums from the current user's 'Your Music' library. Note: This endpoint is deprecated.spotify-pp-cli me remove-audiobooks-user— Remove one or more audiobooks from the Spotify user's library. Note: This endpoint is deprecated.spotify-pp-cli me remove-episodes-user— Remove one or more episodes from the current user's library. Note: This endpoint is deprecated.spotify-pp-cli me remove-library-items— Remove one or more items from the current user's library.spotify-pp-cli me remove-shows-user— Delete one or more shows from current Spotify user's library. Note: This endpoint is deprecated.spotify-pp-cli me remove-tracks-user— Remove one or more tracks from the current user's 'Your Music' library. Note: This endpoint is deprecated.spotify-pp-cli me save-albums-user— Save one or more albums to the current user's 'Your Music' library. Note: This endpoint is deprecated.spotify-pp-cli me save-audiobooks-user— Save one or more audiobooks to the current Spotify user's library. Note: This endpoint is deprecated.spotify-pp-cli me save-episodes-user— Save one or more episodes to the current user's library. Note: This endpoint is deprecated.spotify-pp-cli me save-library-items— Add one or more items to the current user's library.spotify-pp-cli me save-shows-user— Save one or more shows to current Spotify user's library. Note: This endpoint is deprecated.spotify-pp-cli me save-tracks-user— Save one or more tracks to the current user's 'Your Music' library. Note: This endpoint is deprecated.spotify-pp-cli me seek-to-position-in-currently-playing-track— Seeks to the given position in the user’s currently playing track.spotify-pp-cli me set-repeat-mode-on-users-playback— Set the repeat mode for the user's playback. This API only works for users who have Spotify Premium.spotify-pp-cli me set-volume-for-users-playback— Set the volume for the user’s current playback device. This API only works for users who have Spotify Premium.spotify-pp-cli me skip-users-playback-to-next-track— Skips to next track in the user’s queue. This API only works for users who have Spotify Premium.spotify-pp-cli me skip-users-playback-to-previous-track— Skips to previous track in the user’s queue. This API only works for users who have Spotify Premium.spotify-pp-cli me start-a-users-playback— Start a new context or resume current playback on the user's active device.spotify-pp-cli me toggle-shuffle-for-users-playback— Toggle shuffle on or off for user’s playback. This API only works for users who have Spotify Premium.spotify-pp-cli me transfer-a-users-playback— Transfer playback to a new device and optionally begin playback. This API only works for users who have Spotify Premium.spotify-pp-cli me unfollow-artists-users— Remove the current user as a follower of one or more artists or other Spotify users.
playlists — Manage playlists
spotify-pp-cli playlists change-details— Change a playlist's name and public/private state. (The user must, of course, own the playlist.)spotify-pp-cli playlists get— Get a playlist owned by a Spotify user.
recommendations — Manage recommendations
spotify-pp-cli recommendations get— Recommendations are generated based on the available information for a given seed entity and matched against similarspotify-pp-cli recommendations get-genres— Retrieve a list of available genres seed parameter values for
shows — Manage shows
spotify-pp-cli shows get-a— Get Spotify catalog information for a single show identified by its unique Spotify ID.spotify-pp-cli shows get-multiple— Get Spotify catalog information for several shows based on their Spotify IDs.
spotify_web_search — Manage spotify web search
spotify-pp-cli spotify-web-search— Get Spotify catalog information about albums, artists, playlists, tracks, shows
tracks — Manage tracks
spotify-pp-cli tracks get— Get Spotify catalog information for a single track identified by its unique Spotify ID.spotify-pp-cli tracks get-several— Get Spotify catalog information for multiple tracks based on their Spotify IDs.
users — Manage users
spotify-pp-cli users <user_id>— Get public profile information about a Spotify user.
Finding the right command
When you know what you want to do but not which command does it, ask the CLI directly:
spotify-pp-cli which "<capability in your own words>"
which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.
Auth Setup
Run spotify-pp-cli auth setup for the URL and steps to obtain a token (add --launch to open the URL). Then store it:
spotify-pp-cli auth set-token YOUR_TOKEN_HERE
Or set SPOTIFY_OAUTH_2_0 as an environment variable.
Run spotify-pp-cli doctor to verify setup.
Agent Mode
Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.
-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —
--selectkeeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:spotify-pp-cli audio-analysis mock-value --agent --select id,name,status -
Previewable —
--dry-runshows the request without sending -
Offline-friendly — sync/search commands can use the local SQLite store when available
-
Non-interactive — never prompts, every input is a flag
-
Explicit retries — use
--idempotentonly when an already-existing create should count as success, and use--ignore-missingonly when a missing delete target should count as success
Response envelope
Commands that read from the local store or the API wrap output in a provenance envelope:
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}
Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal AND no machine-format flag (--json, --csv, --compact, --quiet, --plain, --select) is set — piped/agent consumers and explicit-format runs get pure JSON on stdout.
Paths and state
Agents should treat the CLI's path resolver as part of the runtime contract:
-
Use
--home <dir>за один вызов или задатьSPOTIFY_HOME=<dir>чтобы переместить все четыре вида путей под один корень. -
Используйте переменные окружения для отдельных видов, только когда конкретный вид должен отличаться:
SPOTIFY_CONFIG_DIR,SPOTIFY_DATA_DIR,SPOTIFY_STATE_DIR,SPOTIFY_CACHE_DIR. -
Порядок разрешения — переменная окружения для вида,
--home,SPOTIFY_HOME, XDG (XDG_CONFIG_HOME,XDG_DATA_HOME,XDG_STATE_HOME,XDG_CACHE_HOME), затем платформенные значения по умолчанию. -
configсодержит настройки, такие какconfig.tomlи профили.dataсодержитcredentials.toml,data.db, cookies и вспомогательные файлы аутентификации.stateсодержит сохранённые запросы, задачи иteach.log.cacheсодержит регенерируемые файлы HTTP/кэша. -
Сохранённые секреты находятся в
credentials.tomlв каталоге данных. Существующие устаревшиеconfig.tomlсекреты читаются для совместимости и покидаютconfig.tomlпри первой записи аутентификации. -
Запустите
spotify-pp-cli doctor --fail-on warnчтобы выявить предупреждения о путях и расположении учётных данных.agent-contextпредоставляет схему v4pathsблок для агентов, которым нужны разрешённые каталоги. -
Для MCP передавайте перемещение через конфигурацию хоста MCP. Бинарный файл MCP не наследует флаги CLI:
{ "mcpServers": { "spotify": { "command": "spotify-pp-mcp", "env": { "SPOTIFY_HOME": "/srv/spotify" } } } }
Приоритет флота: унаследованная переменная окружения для вида переопределяет явный --home для этого вида. Используйте SPOTIFY_HOME или переменные для отдельных видов как долговременные рычаги флота, а --home только для одного вызова. Перемещение необратимо при снятии переменных окружения; переместите файлы вручную перед очисткой SPOTIFY_HOME, or doctor не найдёт учётные данные, оставленные под прежним корнем.
Обратная связь агента
Когда вы (или агент) замечаете что-то неладное в этом CLI, запишите это:
spotify-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
spotify-pp-cli feedback --stdin < notes.txt
spotify-pp-cli feedback list --json --limit 10
Записи хранятся локально как feedback.jsonl в разрешённом каталоге данных. Они никогда не отправляются POST, если не SPOTIFY_FEEDBACK_ENDPOINT задано И либо --send передано, либо SPOTIFY_FEEDBACK_AUTO_SEND=true. Поведение по умолчанию — только локально.
Пишите то, что удивило вас, а не отчёт об ошибке. Коротко, конкретно, одной строкой: именно эта часть накапливается.
Доставка вывода
Каждая команда принимает --deliver <sink>. Вывод направляется в указанный приёмник в дополнение к stdout (или вместо него), чтобы агенты могли маршрутизировать результаты команд без ручной передачи через конвейер. Поддерживаются три приёмника:
| Приёмник | Эффект |
|---|---|
stdout | По умолчанию; запись только в stdout |
file:<path> | Атомарно записать вывод в <path> (tmp + переименование) |
webhook:<url> | Отправить тело вывода POST на URL (application/json or application/x-ndjson когда --compact) |
Неизвестные схемы отклоняются со структурированной ошибкой, называющей поддерживаемый набор. Сбои webhook возвращают ненулевой код и логируют URL + HTTP-статус в stderr.
Именованные профили
Профиль — это сохранённый набор значений флагов, переиспользуемый между вызовами. Используйте его, когда запланированный или повторяющийся агент переиспользует одни и те же сохранённые флаги, предоставляя разные входные данные при каждом запуске.
spotify-pp-cli profile save briefing --json
spotify-pp-cli --profile briefing audio-analysis mock-value
spotify-pp-cli profile list --json
spotify-pp-cli profile show briefing
spotify-pp-cli profile delete briefing --yes
Явные флаги всегда имеют приоритет над значениями профиля; значения профиля имеют приоритет над значениями по умолчанию. agent-context перечисляет все доступные профили под available_profiles чтобы интроспектирующие агенты обнаруживали их во время выполнения.
Коды выхода
| Код | Значение |
|---|---|
| 0 | Успех |
| 2 | Ошибка использования (неверные аргументы) |
| 3 | Ресурс не найден |
| 4 | Требуется аутентификация |
| 5 | Ошибка API (проблема вышестоящего сервиса) |
| 7 | Ограничение частоты (подождите и повторите) |
| 10 | Ошибка конфигурации |
Разбор аргументов
Разобрать $ARGUMENTS:
- Пусто,
help, or--help→ показатьspotify-pp-cli --helpвывод - Начинается с
install→ заканчивается наmcp→ установка MCP; иначе → см. Предварительные требования выше - Что-либо ещё → Прямое использование (выполнить как команду CLI с
--agent)
Установка MCP-сервера
Установите бинарный файл MCP из опубликованной записи публичной библиотеки этого CLI или готового релиза, затем зарегистрируйте его:
claude mcp add spotify-pp-mcp -- spotify-pp-mcp
Проверка: claude mcp list
Прямое использование
- Проверить, установлено ли:
which spotify-pp-cliЕсли не найдено, предложите установить (см. Предварительные требования в начале этого навыка). - Сопоставьте запрос пользователя с лучшей командой из разделов «Уникальные возможности» и «Справочник команд» выше.
- Выполнить с флагом
--agent:<!-- -->spotify-pp-cli <command> [subcommand] [args] --agent - Если неоднозначно, углубитесь в справку подкоманды:
spotify-pp-cli <command> --help.
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: pp-spotify](https://darkplay.ru/ai/skills/mvanhorn-printing-press-library-pp-spotify)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
save-to-spotifyanthropics · Создание качественных аудиоэпизодов с озвучкой TTS, таймлайнами, обложками и сохранением…
spotify-ads-apianthropics · Управление рекламными кампаниями Spotify на естественном языке: создание кампаний, групп…
vpe-advisoralirezarezvani · Советник VP of Engineering: анализ пропускной способности (метрики DORA и узкие места…
claude-code-musicanthropics · Подбирает музыку Spotify под настроение и активность при работе с Claude Code.
save-to-spotifyanthropics · Сохраняет аудиозаписи в Spotify и даёт слушать с любого устройства. Через Claude Code…
spotify-ads-apianthropics · Управление рекламными кампаниями Spotify на естественном языке.
tts-attention-alertanthropics · Уведомления для ИИ-агентов только под Windows: когда агент ждёт разрешения, задаёт вопрос…
pm-peoplemohitagw15856 · Навыки лидерства: performance review, рубрика найма, планирование офсайта, 360-фидбек…
reddit-skillartwist-polyakov · Reddit API на shell-скриптах: пользователи, сабреддиты, посты, комментарии, поиск.
x-researchartwist-polyakov · Исследование X/Twitter через xAI Grok API: дайджесты, треды, тренды, поиск.Лучшие ИИ-инструменты для музыки, голоса и озвучки
Подборка нейросетей для генерации музыки, голоса и озвучки. Сервисы, которые помогают создавать треки, синтезировать речь и чистить аудио без студии и дикторов. Подходит для видеом
BigspeakBigspeak
WavToolWavtool
LoquoraLoquora
WunjoWunjo
NexaraNexara
pitch coachApple
audio-transcription.ruAudio-transcription
SoundfulSoundfulЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachat