Spotify
ما الذي تفعله
تتصرف هذه المهارة في حساب Spotify الخاص بك، مثل البحث وبناء قوائم التشغيل وحفظ المقطوعات والتحكم في التشغيل. وهي موجهة لمن يريد إدارة موسيقاه بأمر بدل الشاشة.
متى تستخدمها
- ✓عندما تريد إنشاء قائمة تشغيل من قائمة أغانٍ.
- ✓عندما تريد معرفة ما يُشغَّل الآن.
- ✓عندما تريد إضافة مقطوعات إلى مكتبتك أو متابعة قائمة تشغيل.
رابط المهارة
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ قائمة Spotify لأغاني indie المبهجة، وأضف مفضلاتي من الأسبوع الماضي.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تستدعي المهارة واجهة ويب Spotify مباشرة عبر أداة سطر أوامر. تتجدد رموز الوصول تلقائياً، ويغيّر كل طلب الحساب بالطريقة التي طلبتها.
المحتوى التقني (ملف 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.tscall 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
searchworks 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/playlistsreturnstracks: nullon playlist rows (observed) — never assumetracks.totalexists; 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 inplaylists. - "Make me a focus-music playlist and fill it" → Manage → a new playlist from
create-playlist, holding the trackssearchresolved, added withadd-tracks. - "What's playing?" → Manage → the
now-playingresult. - "Skip this / turn it down" → Manage →
next/volume --percent 30on the active Premium device.
الأسئلة الشائعة
هل يحتاج إلى حساب Spotify مدفوع؟
عناصر التحكم في التشغيل تحتاج إلى حساب Premium مع جهاز نشط. أما البحث وقوائم التشغيل والمكتبة فتعمل على الحساب المجاني.
هل أحتاج إلى إعداد أولاً؟
نعم. يحتاج إلى إعداد لمرة واحدة مع تطبيق مطوّر في Spotify وثلاثة مفاتيح.
ماذا لو توقف الاتصال عن العمل؟
تشغيل خطوة التفويض مرة أخرى يحل المشكلة غالباً، أو يجب تصحيح عنوان إعادة التوجيه في لوحة المطور.
التفاصيل
الوصف الأصلي من المؤلف
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
التعليقات
- …
المزيد من المهارات من هذا المستودع
LifeOS
20kيساعد وكيلك على إعداد LifeOS، وهو نظام شخصي يربط حالتك الحالية بحالتك المثالية عبر مقابلة ولوحة متابعة.
AnnualReports
20kيساعد وكيلك على إيجاد التقارير السنوية للأمن السيبراني من كبار المزودين ومقارنتها، مثل اتجاهات الاختراقات وبرامج الفدية، مع مصدر لكل رقم.
ApertureOscillation
20kيعلّم وكيلك اختبار سؤال تصميم واحد على نطاق ضيق ونطاق واسع، ثم تسمية النقاط التي تتعارض فيها الإجابتان قبل البناء.
Aphorisms
20kيساعد وكيلك على إيجاد الاقتباسات المنسوبة إلى أصحابها من مجموعة منتقاة ومطابقتها وتتبعها، مع تجنّب ما استُخدم منها مؤخراً في نشرتك.
مهارات مشابهة
blucli
394kيساعد وكيلك على البحث عن مكبرات Bluesound وNAD وتشغيلها وإيقافها وتجميعها وضبط مستوى صوتها عبر الأمر blu.
camsnap
394kيساعد وكيلك على التقاط صور لقطية أو مقاطع قصيرة أو أحداث حركة من كاميرات الشبكة وكاميرات الويب المحلية التي أعددتها.
eightctl
394kيساعد وكيلك على فحص وحدة Eight Sleep والتحكم فيها، بما في ذلك درجة حرارتها ومنبهاتها وجداول النوم.