hemang11/agent-core/spotify-to-ytmusic
Claude Code and agent skill by hemang11/agent-core
- community
Checking that the SKILL.md file is still in the repository.
Migrate Spotify playlists or liked songs into YouTube Music. Use when the user wants to copy one playlist, all playlists, or liked songs from Spotify to YT Music, especially when they have a Spotify playlist URL, a Spotify bearer token, a Spotify client ID for PKCE, or a local liked-song JSON export that needs to be flattened and imported.
Install
npx vskill@latest install hemang11/agent-core/spotify-to-ytmusicSKILL.md
The same SKILL.md was published earlier as hemang11/agent-core/spotify-to-ytmusic.
Spotify To YouTube Music
Use the bundled scripts instead of rebuilding this workflow from scratch.
Quick Start
- Run the main migrator with
python3 <path-to-skill>/scripts/spotify_to_ytmusic.py --help. - Use
--spotify-playlist <url-or-id>for one playlist. - Use
--all-playlistsfor an account-wide playlist export. - Use
--liked-songsto apply YouTube Music likes instead of creating a playlist. - Use
--spotify-liked-json <path>when liked songs come from a local JSON dump instead of the Spotify API. - Always pass
--dry-runfirst unless the user explicitly wants the live migration immediately.
Choose The Spotify Source
Use the simplest source that is already available:
- If the user has a fresh Spotify bearer token, pass
--spotify-access-tokenor setSPOTIFY_ACCESS_TOKEN. - If the user has a Spotify app client ID, use PKCE with
--spotify-client-idorSPOTIFY_CLIENT_ID. Do not ask for a client secret; this workflow does not require one. - If liked songs are only available as a local GraphQL-style JSON export, flatten them first with
spotify_extract_liked_json.py, then feed the output into--spotify-liked-json.
Prepare YouTube Music Auth
The migrator expects a ytmusicapi auth file such as browser.json or oauth.json.
- If the user already has a YT Music auth file, pass
--yt-auth /path/to/browser.json. - If the user can copy authenticated request headers from
music.youtube.com, create browser auth with:
If ytmusicapi is missing, install it in a virtual environment rather than system-wide.
Handle Liked Songs JSON Exports
When the user provides a large liked.json or another nested export with the shape data.me.library.tracks.items[*].track.data, do not load the full file into context. Flatten it with the bundled extractor:
The extractor keeps only the import-relevant fields and reports whether the source file looks partial.
If the user cannot access liked songs through the Spotify API, use the browser helper at scripts/spotify_export_liked_songs_browser.js in the Spotify Web Player console, save the resulting JSON, then flatten it if needed.
Common Runs
Single playlist:
All playlists:
Liked songs from flattened JSON:
Review And Rerun
- Read the JSON report after each live run.
- Expect some noisy YT Music matches such as remix, acoustic, live, cover, or sped-up variants.
- If the user cares about accuracy, review the unmatched and weak matches and rerun only the affected playlist or liked-song subset.
- When matched songs collapse to the same YouTube
video_id, the like step deduplicates them before applying likes.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/public/spotify-to-ytmusic/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hemang11/agent-core/spotify-to-ytmusic)