Spotify
하는 일
이 스킬은 검색, 플레이리스트 구성, 곡 저장, 재생 제어처럼 Spotify 계정에 직접 작업합니다. 화면 대신 명령으로 음악을 관리하고 싶은 청취자를 위한 스킬입니다.
사용하는 경우
- ✓곡 목록으로 플레이리스트를 만들고 싶을 때.
- ✓지금 무엇이 재생 중인지 보고 싶을 때.
- ✓트랙을 라이브러리에 추가하거나 플레이리스트를 팔로우하고 싶은 경우.
스킬 링크
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Spotify/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“밝은 인디 곡으로 Spotify 플레이리스트를 만들어 주시고, 지난주 제가 좋아한 곡을 추가해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 명령줄 도구를 통해 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
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
LifeOS
20k에이전트가 LifeOS를 설정하도록 돕습니다. LifeOS는 인터뷰와 대시보드를 통해 현재 상태를 이상적인 상태에 연결하는 개인 시스템입니다.
AnnualReports
20k에이전트가 주요 업체의 사이버보안 연간 보고서에서 침해와 랜섬웨어 추세를 찾아 비교하고, 모든 수치에 출처를 붙이도록 돕습니다.
ApertureOscillation
20k에이전트가 설계 질문 하나를 좁은 범위와 넓은 범위에서 검토하고, 만들기 전에 두 답이 충돌하는 지점을 짚도록 가르칩니다.
Aphorisms
20k에이전트가 큐레이션된 컬렉션에서 출처가 밝혀진 인용문을 찾고 맞추고 관리하며, 최근 뉴스레터에 쓴 인용문은 피하도록 돕습니다.