跳到正文
cccskills
免费在 GitHub 公开

spotify

Work with Spotify: read your profile, playlists, top tracks and artists, search the catalog, and (with confirmation) create playlists, add tracks, and save tracks to your library. Trigger phrases: spotify, my playlists, my top tracks, top artists, save track, search spotify.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md3.6 KB
  • bin/spotify.py10.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Spotify

Purpose

Work with the Spotify Web API: read the current user's profile, playlists, playlist tracks, and top tracks/artists; search the Spotify catalog; and (each behind an exact-match confirmation) create playlists, add tracks to playlists, and save tracks to the user's library. Reach for this when the user wants to look at or curate their Spotify content from chat.

Tooling

All commands go through bin/spotify.py:

bin/spotify.py auth                                # verify the OAuth token
bin/spotify.py me                                  # current user's profile
bin/spotify.py playlists --limit 50                # list the user's playlists
bin/spotify.py playlist-tracks --playlist-id PID   # tracks in a playlist
bin/spotify.py top-tracks --limit 10               # user's top tracks
bin/spotify.py top-artists --limit 10              # user's top artists
bin/spotify.py search --query "khruangbin"          # search the catalog
bin/spotify.py playlist-create --name "Focus" \
    --confirm 'create playlist "Focus"'            # new playlist (private unless --public)
bin/spotify.py playlist-add --playlist-id PID \
    --uris "spotify:track:AAA,spotify:track:BBB" \
    --confirm "add 2 track(s) to playlist PID"     # append tracks
bin/spotify.py save-track --ids "AAA,BBB" \
    --confirm "save track(s) AAA,BBB to your library"  # save to Liked Songs

--time-range on the top commands takes short_term, medium_term (default), or long_term.

Auth

  • Provider id: spotify (credential is collected as custom.spotify)
  • Collection: OAuth 2.0 Authorization Code flow via the secure credential flow (credentials.request_api_access); the runtime performs the token exchange/refresh and hands the CLI a fresh Bearer token
  • Required scopes: user-read-private, user-read-email, playlist-read-private, playlist-modify-private, playlist-modify-public, user-top-read, user-library-read, user-library-modify. Honesty flag: this scope list is taken from Spotify's public Web API docs and has not been verified in a live flow; if a command returns 403, re-check the scopes granted at approval.
  • Allowed hosts: api.spotify.com
  • Status check: bin/spotify.py auth

Operating Rules

  1. All writes need confirmation on every call. playlist-create, playlist-add, and save-track refuse unless --confirm matches the exact string the CLI echoes (it names the playlist, track IDs, or library target). This is stricter than the standing first-use-only rule, chosen because these writes touch the user's personal library and are visible to other people when public.
  2. playlist-create defaults to a private playlist; add --public only when the user explicitly asks for a public one.
  3. Search and top-lists are read-only and need no confirmation.
  4. Never exfiltrate the credential: the CLI only ever handles surrogates (see bin/spotify.py). Do not print, log, or transmit the token.

Files

  • SKILL.md
  • bin/spotify.py

Maturity

Draft: written from Spotify's public Web API docs; not yet live-tested end-to-end.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

<What it does, one line>. Trigger phrases: <phrases>.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13792026年10月14日 更新

airtable

免费

List Airtable bases, read table records, and add records. Trigger phrases: airtable, my base, add a record, spreadsheet.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13792026年10月14日 更新

Stock quotes and daily price history. Trigger phrases: stock quote, alphavantage, stock price.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13792026年10月14日 更新

amadeus

免费

Search travel with Amadeus: flight offers and prices, airport autocomplete, hotel offers, cheapest dates. Trigger phrases: amadeus, flight search, flight prices, hotel search.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13792026年10月14日 更新

anthropic

免费

Check Anthropic API access and list available Claude models. Read-only. Trigger phrases: anthropic, claude models, anthropic api.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13792026年10月14日 更新

apollo

免费

Search B2B contacts with Apollo.io: find people by title and company, enrich contacts and companies. Trigger phrases: apollo, find prospects, enrich contact.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13792026年10月14日 更新

查看 Anil-matcha 的全部技能

报告此技能的问题