跳到正文
Skillpedia
其他41k · #6557

spotify

它能做什么

这个技能让 AI 智能体在 Spotify 中播放、暂停和切歌,并查找歌曲和播放列表。适合希望通过提问来控制音乐的人。

适用场景

  • ✓当你想在电脑上的 Spotify 应用中播放、暂停或切歌的时候。
  • ✓当你想知道现在正在播放哪首曲目的时候。
  • ✓当你想在 Spotify 上搜索音乐,或查看你某个播放列表中的歌曲的时候。

技能链接

https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/spotify/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/spotify/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请暂停我的音乐,并告诉我刚才在播放哪首歌?”

每周 5 个新技能,1 分钟读完。

工作原理

在 Mac 上,智能体会直接控制 Spotify 桌面应用。对于搜索和播放列表,它使用 Spotify 连接,并在每次操作后检查播放器状态。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Spotify

When to use

Playing, pausing, skipping, identifying the current track, searching for music, and reading playlists.

Setup

Two paths:

  1. Local control (macOS, no setup). The Spotify desktop app must be running, or say so: osascript -e 'tell application "Spotify" to playpause'
  2. Web API (search, playlists, other platforms). Requires an authorized Spotify connection with suitable scopes; report missing access without asking the user to paste a token into chat: GET api.spotify.com/v1/search, /v1/me/playlists, /v1/playlists/{id}.

Workflow

  1. Prefer local control for transport (play/pause/next/previous/current track). Use the requested play or pause verb; playpause is a toggle and cannot safely be retried after an uncertain result. Verify player state afterward.
  2. Use available Web API endpoints for search and playlist contents. Check current app-access restrictions; do not promise the restricted Recommendations API. Handle 403/429 responses without bypassing access or rate limits.
  3. Report artist, track, album, and playlist names verbatim.

Non-goals

  • Do not change playlists (add/remove/reorder) unless asked.
  • Do not download or rip audio.
  • Do not handle the user's Spotify password.

Reference: Spotify API changes.

常见问题

它会更改我的播放列表吗?

不会。技能说明,除非你要求,否则不会添加、删除或重新排序播放列表中的歌曲。

我需要分享我的 Spotify 密码吗?

不需要。技能说明,它不会处理你的密码,也不会要求你把令牌粘贴到聊天中。

没有打开 Spotify 应用也能使用吗?

在 Mac 上进行本地控制时,必须运行 Spotify 桌面应用,如果没有运行,智能体会告诉你。

详情

作者的原始描述

Control Spotify playback and search the library and playlists. Use when: spotify, music, playlist, play, pause, or what's playing.

repo: codewhale-hq/Codewhale

热度

GitHub 星标
41k
排名
#6557
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能