Spotify-Linux
БесплатноЗапускает вложенные скриптыНе проверенControl Spotify on Linux via MPRIS DBus. Use when: launching Spotify from command line, playing/pausing/skipping tracks, searching songs and switching…
от lxp7311 134 установки в других каталогахОб этом скилле
Spotify Linux Control
Control Spotify desktop client on Linux through MPRIS DBus — no browser automation, no simulated clicks.
⚠️ Scope and Warnings
This skill controls the real Spotify client on the local desktop. Every command takes effect immediately:
OpenUristarts the track playing right away, at the current volume, and replaces the current playback context. Confirm the track/album/playlist URI matches what the user asked for before calling it.- Playback state and volume changes are live — they alter what the user is currently hearing.
- Launching starts Spotify as a desktop background process managed by a systemd
--userunit namedspotify-skill-launch; §9 shows how to inspect and stop it. - The launcher only ever uses the invoking user's own graphical-session credentials, and refuses to run with elevated privileges.
Use this skill only on your own desktop session.
Prerequisites
- Spotify desktop client installed. The launcher auto-detects any of these install methods:
- native package providing a
spotifyexecutable (Arch/AUR, Debian/Ubuntu .deb) spotify-launcher(the community launcher, common on Fedora)- Flatpak:
flatpak install com.spotify.Client - Snap:
snap install spotify
- native package providing a
- An active X11 session (or Wayland with XWayland) for the invoking user
dbus-send(bundled with DBus, always present);python3and a Chromium-based browser are needed only for the fallback search (§2a)systemd --usermanager (present in every desktop session on systemd-based distributions)
Declared Scope
Everything this skill does stays inside the invoking user's own desktop session. This list is the complete declared footprint — if a task appears to need more, stop and tell the user instead of improvising.
- Tools declared:
BashandWebSearch(frontmatterallowed-tools). Nothing else is required. - Commands used:
dbus-send(MPRIS control and property reads),systemctl --user/systemd-run --user(start, inspect and stop thespotify-skill-launchunit),pgrep(process check),curlinside the launcher (reachability probe only,-o /dev/null), and — only for the §2a fallback search — a Chromium-based browser in headless mode pluspython3to parse the dumped DOM. - Privileges: the whole skill runs as the invoking desktop user. The launcher aborts if the effective user is not the session owner; no step requests elevation.
- Commands never used: no package installation, no configuration-file edits, no remote payload download or execution, no reads of other users' data.
- Sensitive data: none. The §2a fallback renders Spotify's public search page from a throwaway browser profile it creates itself — no cookies, saved logins, or browser session data are read or copied, and the throwaway profile is deleted on exit.
- Files written: only the §2a throwaway profile and DOM dump (both inside one
mktemp -ddirectory, removed by atrap), plus the launcher's own systemd--userunit state. Playback control itself only sends messages on the session bus.
Quick Start
# Pause/Play toggle
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
# Next/Previous
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
1. Launch Spotify (Managed Background Process)
Use the bundled launcher — it resolves the session credentials and proxy settings safely and hands Spotify to the user's systemd manager, so the process is tracked and can be stopped cleanly. Its complete source ships at scripts/launch_spotify.sh in this package.
Always call it by absolute path. The launcher ships at scripts/launch_spotify.sh relative to the skill directory — the directory that holds this SKILL.md. An agent's working directory is usually not the skill directory, so a relative scripts/launch_spotify.sh fails with "No such file or directory". Resolve the skill directory once and reuse it:
# <skill-dir> is the absolute path of the directory holding this SKILL.md;
# the runtime that loaded the skill knows it (DSH reports the loaded skill's path).
SKILL_DIR="<skill-dir>"
"$SKILL_DIR/scripts/launch_spotify.sh" # start (or confirm it is already running)
"$SKILL_DIR/scripts/launch_spotify.sh" --check # diagnose without launching anything
"$SKILL_DIR/scripts/launch_spotify.sh" --stop # stop the managed instance
If the runtime does not report a path for the loaded skill, ask the user for the skill directory. Do not search the filesystem for the launcher: a search can silently pick a stale copy of the package, and installing skills in several locations is common.
What the launcher does:
- Uses
$DISPLAYand$XAUTHORITYfrom the e
Установить Spotify-Linux в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashWebSearchFAQ
Что делает скилл Spotify-Linux?
Control Spotify on Linux via MPRIS DBus. Use when: launching Spotify from command line, playing/pausing/skipping tracks, searching songs and switching playback to a specific track, any Spotify playback control task on Linux.
Как установить скилл Spotify-Linux?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Spotify-Linux запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic