Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

spotify-applescriptspotify applescript 搜索

Agent Skill

spotify-applescript 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

196

周安装

8

GitHub Stars

公开资料未说明

下载量

63
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:spotify-applescript(spotify applescript 搜索)
来源仓库:https://github.com/clawdbot/skills
仓库路径:skills/spotify-applescript
安装命令:
npx skills add clawdbot/skills --skill "spotify-applescript"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add clawdbot/skills --skill "spotify-applescript"

简介

spotify-applescript 用于通过 AppleScript 控制 Spotify 客户端,适合在 macOS 环境下自动化音乐播放流程。

  • 它可执行播放、暂停、下一曲等基础操作,适用于脚本集成或定时任务场景。
  • 安装命令为 npx skills add clawdbot/skills --skill "spotify-applescript",依赖本地运行环境和系统权限。
  • 使用前需确保已安装 Spotify 客户端并授予脚本执行权限,避免因沙盒限制导致失败。
  • 注意该技能可能触发系统级命令调用,建议在测试环境验证后再用于生产流程。

SKILL.md

name
spotify-applescript
description
Control Spotify desktop app via AppleScript. Play playlists, tracks, albums, episodes, and manage playback. Works reliably with macOS Spotify app without API keys or OAuth.
homepage
https://github.com/andrewjiang/HoloClawd-Open-Firmware
metadata
{"clawdbot":{"emoji":"🎵","os":["darwin"]}}
triggers

Spotify AppleScript Control

Control the Spotify desktop app using AppleScript. Works reliably with the macOS Spotify app without API rate limits or OAuth.

Requirements

  • Spotify desktop app installed and running on macOS
  • No setup required - just works

Quick Start

# Play a playlist
spotify play "spotify:playlist:665eC1myDA8iSepZ0HOZdG"
spotify play "https://open.spotify.com/playlist/665eC1myDA8iSepZ0HOZdG"

# Play an episode
spotify play "spotify:episode:5yJKH11UlF3sS3gcKKaUYx"
spotify play "https://open.spotify.com/episode/5yJKH11UlF3sS3gcKKaUYx"

# Play a track
spotify play "spotify:track:7hQJA50XrCWABAu5v6QZ4i"

# Playback control
spotify pause          # Toggle play/pause
spotify next           # Next track
spotify prev           # Previous track
spotify status         # Current track info

# Volume control
spotify volume 50      # Set volume (0-100)
spotify mute           # Mute
spotify unmute         # Unmute

Spotify CLI Wrapper

The spotify command is a wrapper script at {baseDir}/spotify.sh

Commands

CommandDescriptionExample
play <uri>Play track/album/playlist/episodespotify play spotify:track:xxx
pauseToggle play/pausespotify pause
nextNext trackspotify next
prevPrevious trackspotify prev
statusShow current track infospotify status
volume <0-100>Set volumespotify volume 75
muteMutespotify mute
unmuteUnmutespotify unmute

URI Formats

Accepts both Spotify URIs and open.spotify.com URLs:

  • spotify:track:7hQJA50XrCWABAu5v6QZ4i
  • https://open.spotify.com/track/7hQJA50XrCWABAu5v6QZ4i
  • spotify:playlist:665eC1myDA8iSepZ0HOZdG
  • https://open.spotify.com/playlist/665eC1myDA8iSepZ0HOZdG?si=xxx
  • spotify:episode:5yJKH11UlF3sS3gcKKaUYx
  • https://open.spotify.com/episode/5yJKH11UlF3sS3gcKKaUYx
  • spotify:album:xxx
  • spotify:artist:xxx

The script auto-converts URLs to URIs.

Direct AppleScript Commands

For more control, use AppleScript directly:

# Play
osascript -e 'tell application "Spotify" to play track "spotify:playlist:xxx"'

# Pause/Play toggle
osascript -e 'tell application "Spotify" to playpause'

# Next/Previous
osascript -e 'tell application "Spotify" to next track'
osascript -e 'tell application "Spotify" to previous track'

# Get current track
osascript -e 'tell application "Spotify"
  set trackName to name of current track
  set artistName to artist of current track
  return trackName & " by " & artistName
end tell'

# Get player state
osascript -e 'tell application "Spotify" to player state'

# Set volume (0-100)
osascript -e 'tell application "Spotify" to set sound volume to 75'

# Get current position (in seconds)
osascript -e 'tell application "Spotify" to player position'

# Set position (in seconds)
osascript -e 'tell application "Spotify" to set player position to 30'

Available Properties

tell application "Spotify"
  name of current track          -- Track name
  artist of current track        -- Artist name
  album of current track         -- Album name
  duration of current track      -- Duration in ms
  player position                -- Position in seconds
  player state                   -- playing/paused/stopped
  sound volume                   -- 0-100
  repeating                      -- true/false
  repeating enabled              -- true/false
  shuffling                      -- true/false
  shuffling enabled              -- true/false
end tell

Examples

Agent Usage

When the user says:

  • "Play my power hour playlist" → extract playlist URI and run spotify play <uri>
  • "Pause the music" → run spotify pause
  • "Next track" → run spotify next
  • "What's playing?" → run spotify status

Play a specific episode

spotify play https://open.spotify.com/episode/5yJKH11UlF3sS3gcKKaUYx

Get full track info

osascript -e 'tell application "Spotify"
  return "Track: " & (name of current track) & "\nArtist: " & (artist of current track) & "\nAlbum: " & (album of current track) & "\nState: " & (player state as string)
end tell'

Installation

The skill is self-contained. To make the spotify command available system-wide:

chmod +x {baseDir}/spotify.sh
sudo ln -sf {baseDir}/spotify.sh /usr/local/bin/spotify

Or add the skill directory to PATH.

Troubleshooting

"Spotify got an error"

  • Make sure Spotify desktop app is running
  • Spotify must be launched at least once to accept AppleScript commands

Play command does nothing

  • Verify the URI format is correct
  • Try playing from Spotify app first to ensure the content exists

No audio

  • Check system volume and Spotify app volume
  • Ensure correct output device is selected in Spotify preferences

Limitations

  • Requires Spotify desktop app to be running
  • macOS only (uses AppleScript)
  • Cannot search or browse library (use web interface or app for discovery)
  • Cannot manage playlists (add/remove tracks)

For playlist management and search, use the web interface or consider the spotify-player skill (requires OAuth setup).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

mcpjam

28.51%
按下载量换算18

openhands

22.32%
按下载量换算14

junie

15.39%
按下载量换算10

windsurf

12.67%
按下载量换算8

zencoder

7.79%
按下载量换算5

crush

3.06%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills