Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Spotify-Linux

БесплатноЗапускает вложенные скриптыНе проверен

Control Spotify on Linux via MPRIS DBus. Use when: launching Spotify from command line, playing/pausing/skipping tracks, searching songs and switching…

lxp731от 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:

  • OpenUri starts 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 --user unit named spotify-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 spotify executable (Arch/AUR, Debian/Ubuntu .deb)
    • spotify-launcher (the community launcher, common on Fedora)
    • Flatpak: flatpak install com.spotify.Client
    • Snap: snap install spotify
  • An active X11 session (or Wayland with XWayland) for the invoking user
  • dbus-send (bundled with DBus, always present); python3 and a Chromium-based browser are needed only for the fallback search (§2a)
  • systemd --user manager (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: Bash and WebSearch (frontmatter allowed-tools). Nothing else is required.
  • Commands used: dbus-send (MPRIS control and property reads), systemctl --user / systemd-run --user (start, inspect and stop the spotify-skill-launch unit), pgrep (process check), curl inside the launcher (reachability probe only, -o /dev/null), and — only for the §2a fallback search — a Chromium-based browser in headless mode plus python3 to 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 -d directory, removed by a trap), plus the launcher's own systemd --user unit 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:

  1. Uses $DISPLAY and $XAUTHORITY from the e
Полный SKILL.md на ClawHub

Установить Spotify-Linux в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
WebSearch

FAQ

Что делает скилл 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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить Spotify-Linux с