ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 jasonzh0

claudify

Claude Code の中で Spotify を使えます。アカウントを接続し、セッションの横にプレーヤーのサイドバーを置いて、`/spotify` または Claude への依頼("put on some lofi focus music")で再生を操作します。

翻訳済み

この mod について

claudify

Claude Code の中で Spotify を使えます。アカウントを接続し、セッションの横にプレーヤーのサイドバーを置いて、/spotify または Claude への依頼("put on some lofi focus music")で再生を操作します。

  • アルバムカバー(カラーのブロックアート、グラフィック非対応の表示では ASCII)と、タイトル、アーティスト、アルバム、ライブ進行バー、キュー、デバイスを表示するサイドバー
  • 操作:再生/一時停止、次/前、シャッフル、リピート、音量バー、ミュート(サイドバーにフォーカスがあるときのキーは p n b s r m)
  • 音楽が始まると自動的に開く
  • ターミナル(Ghostty を検出)、アルバムの色、または任意の hex カラーに合わせた背景

再生操作には Spotify Premium が必要です。カバーアートには macOS の sips を使います。

インストール

ターミナルで次を実行します。

claude plugin marketplace add jasonzh0/claudify
claude plugin install claudify@claudify

Claude Code 内で /plugin marketplace add jasonzh0/claudify、続けて /plugin install claudify@claudify を実行しても構いません。読み込むには Claude Code を再起動します。

ログイン

/spotify login

ブラウザで Spotify の同意ページが開くので、承認すると接続されます。

組み込みの claudify Spotify アプリは Spotify の開発モードで動作し、所有者が追加したアカウント(最大 25 個)だけに提供します。アカウントが Spotify に拒否された場合は追加を依頼するか、自分のアプリを使ってください(約 1 分、上限なし)。

  1. https://developer.spotify.com/dashboard でアプリを作成
  2. リダイレクト URI http://127.0.0.1:8888/callback を追加し、"Web API" にチェックを入れる
  3. /spotify setup <client-id>、続けて /spotify login を実行

どこにもクライアントシークレットは使いません(Authorization Code with PKCE)。トークンは手元の Claude Code プラグインストレージに保存されます。

開発

インストール済みのコピーではなく、claude --plugin-dir /path/to/claudify でチェックアウトを読み込めます。または ~/.claude/settings.json の env ブロックで CLAUDE_CODE_PLUGIN_DIRS を設定します。

コマンド

/spotify                        open the player sidebar
/spotify play [query]           resume, or search a track and play it
/spotify playlist <query>       search a playlist and play it
/spotify pause | toggle | next | prev
/spotify vol <0-100> | mute
/spotify shuffle on|off | repeat off|context|track
/spotify bg terminal|none|album|#rrggbb
/spotify devices | now | close | logout | help
/spotify setup <client-id> | setup default

テスト

claude plugin validate .
claude plugin test .

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add jasonzh0/claudify
claude plugin install claudify
原文 / README

claudify

Spotify inside Claude Code. Connect your account, keep a player sidebar next to your session, and control playback with /spotify or by asking Claude ("put on some lofi focus music").

  • Sidebar with album cover art (colored block art; ASCII on surfaces without graphics), title, artist, album, live progress bar, queue and device
  • Controls: play/pause, next/previous, shuffle, repeat, volume bar, mute (keys p n b s r m when the sidebar has focus)
  • Opens by itself when music starts
  • Background that matches your terminal (Ghostty detected), the album's color, or any hex color

Playback control needs Spotify Premium; cover art uses macOS's sips.

Install

In a terminal:

claude plugin marketplace add jasonzh0/claudify
claude plugin install claudify@claudify

or inside Claude Code: /plugin marketplace add jasonzh0/claudify, then /plugin install claudify@claudify. Restart Claude Code to load it.

Log in

/spotify login

Your browser opens Spotify's consent page; approve it and you're connected.

The built-in claudify Spotify app is in Spotify's development mode, which only serves accounts its owner has added (up to 25). If Spotify refuses your account, ask to be added, or use your own app (about a minute, no limit):

  1. Create an app at https://developer.spotify.com/dashboard
  2. Add the Redirect URI http://127.0.0.1:8888/callback and tick "Web API"
  3. /spotify setup <client-id>, then /spotify login

No client secret is involved anywhere (Authorization Code with PKCE); tokens stay in Claude Code's plugin storage on your machine.

Develop

Load a checkout instead of the installed copy with claude --plugin-dir /path/to/claudify, or set CLAUDE_CODE_PLUGIN_DIRS in the env block of ~/.claude/settings.json.

Commands

/spotify                        open the player sidebar
/spotify play [query]           resume, or search a track and play it
/spotify playlist <query>       search a playlist and play it
/spotify pause | toggle | next | prev
/spotify vol <0-100> | mute
/spotify shuffle on|off | repeat off|context|track
/spotify bg terminal|none|album|#rrggbb
/spotify devices | now | close | logout | help
/spotify setup <client-id> | setup default

Test

claude plugin validate .
claude plugin test .

関連作品