मुख्य सामग्री पर जाएँ
Skillpedia
विविध20k · #10459

Spotify

यह क्या करती है

यह स्किल आपके Spotify खाते पर काम करती है, जैसे खोजना, प्लेलिस्ट बनाना, ट्रैक सहेजना और प्लेबैक नियंत्रित करना। यह उन श्रोताओं के लिए है जो स्क्रीन की बजाय एक कमांड से अपना संगीत संभालना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप गानों की सूची से प्लेलिस्ट बनाना चाहते हों।
  • ✓जब आप देखना चाहते हों कि अभी क्या चल रहा है।
  • ✓जब आप अपनी लाइब्रेरी में ट्रैक जोड़ना या कोई प्लेलिस्ट फ़ॉलो करना चाहते हों।

Skill का लिंक

https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“उत्साही indie गानों की एक Spotify प्लेलिस्ट बनाइए और पिछले हफ़्ते के मेरे पसंदीदा गाने उसमें जोड़िए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल एक कमांड लाइन टूल के ज़रिए सीधे Spotify वेब इंटरफ़ेस को कॉल करती है। access tokens अपने-आप रिफ़्रेश होते हैं, और हर अनुरोध खाते को उसी तरह बदलता है जैसा आपने माँगा।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Spotify

Acts on the principal's real Spotify account through Tools/Spotify.ts — a deterministic CLI that calls the Spotify Web API directly. No MCP, no server process, no session registration: any session can invoke it via Bash immediately.

bun ~/.claude/skills/Spotify/Tools/Spotify.ts <command> [flags]   # --help for the full list

Ideal State

  • Every requested account change (follow, playlist build, library read, queue, playback) is one Tools/Spotify.ts call keyed by IDs or URIs, and the account state afterwards matches the request.
  • Auth is set up once and never repeated by hand: tokens refresh per invocation, and a dead token or redirect mismatch is traced to its real fix (re-run auth, or fix the dashboard URI).
  • Playback is attempted only on a Premium account with an active device, so a Free account still gets search, playlists and library.

Intent Routing

Intent Trigger File
Authorize "set up spotify", "authorize spotify", "connect spotify", auth broken Intents/Authorize.md
Manage play / search / playlists / queue / library ops Intents/Manage.md
File Read when
Setup.md first-time install: the developer app, the three .env keys, the proof command
Tools/ Spotify.help.md is the full flag reference (same as --help); EnvText.ts is the pure env-file helper Spotify.ts writes tokens with

Data & Config

This skill reads no files under LIFEOS/USER/. Credentials are env-only: SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET and SPOTIFY_REFRESH_TOKEN in ~/.claude/.env (names only here, never values). First-time setup, the Spotify developer app and the proof command are in Setup.md. Tokens auto-refresh per invocation; a missing refresh token means run Intents/Authorize.md. With the credentials missing, the tool exits 1 and points at Setup.md.

Gotchas

  • search works before user auth (client-credentials fallback); every other command needs the refresh token.
  • 401 on every call → the refresh token died (password change, revoked access); re-run auth (Intents/Authorize.md). The tool persists rotated refresh tokens automatically.
  • /me/playlists returns tracks: null on playlist rows (observed) — never assume tracks.total exists; the CLI omits the count when absent.

Examples

  • "Add this playlist link to my Spotify" → Manage → the playlist is followed with follow-playlist --id <ID> (ID from the URL) and shows in playlists.
  • "Make me a focus-music playlist and fill it" → Manage → a new playlist from create-playlist, holding the tracks search resolved, added with add-tracks.
  • "What's playing?" → Manage → the now-playing result.
  • "Skip this / turn it down" → Manage → next / volume --percent 30 on the active Premium device.
अक्सर पूछे जाने वाले सवाल

क्या इसके लिए पेड Spotify खाता चाहिए?

प्लेबैक नियंत्रण के लिए सक्रिय डिवाइस वाला Premium खाता चाहिए। खोज, प्लेलिस्ट और लाइब्रेरी मुफ़्त खाते पर भी चलते हैं।

क्या पहले सेटअप करना होगा?

हाँ। एक बार के सेटअप में Spotify developer app और तीन keys चाहिए।

अगर कनेक्शन काम करना बंद कर दे तो?

प्राधिकरण चरण फिर से चलाने से आमतौर पर ठीक हो जाता है, या developer dashboard में redirect पता सुधारना पड़ता है।

जानकारी

लेखक का मूल विवरण

Acts on the principal's Spotify account via a deterministic CLI (Tools/Spotify.ts): search, playlists, now-playing, library, and playback across devices. USE WHEN spotify, play on spotify, add to my spotify, follow this playlist, save playlist, create a spotify playlist, add tracks, what's playing, my playlists, queue this, skip track, set volume, spotify search, control spotify, my spotify library. NOT FOR music taste or recommendations, generating songs, editing audio (AudioEditor).

repo: danielmiessler/LifeOS

लोकप्रियता

GitHub स्टार
20k
रैंकिंग में स्थान
#10459
लाइसेंस
MIT
अपडेट की गई
28/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

LifeOS

20k

आपके एजेंट को LifeOS सेट करने में मदद करती है, एक निजी प्रणाली जो एक इंटरव्यू और डैशबोर्ड से आपकी मौजूदा स्थिति को आपके आदर्श लक्ष्य से जोड़ती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

AnnualReports

20k

आपके एजेंट को प्रमुख विक्रेताओं की साइबर सुरक्षा वार्षिक रिपोर्ट खोजने और तुलना करने में मदद करती है, जैसे उल्लंघन और ransomware के रुझान, हर आँकड़े के स्रोत के साथ।

लेखन और डॉक्यूमेंटरिसर्च

ApertureOscillation

20k

आपके एजेंट को एक डिज़ाइन सवाल को संकीर्ण और व्यापक दायरे में परखना सिखाती है, फिर बनाने से पहले बताना कि दोनों जवाब कहाँ टकराते हैं।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

Aphorisms

20k

आपके एजेंट को एक चुने हुए संग्रह से श्रेय वाले उद्धरण खोजने, मिलाने और उनका रिकॉर्ड रखने देती है, और हाल में आपके न्यूज़लेटर में इस्तेमाल हुए उद्धरण छोड़ देती है।

मार्केटिंगकॉपी और सेल्स

मिलती-जुलती skills