hemang11/agent-core/spotify-to-ytmusic

Claude Code and agent skill by hemang11/agent-core

Trust tier 3
  • community
Source check pending

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-ytmusic

SKILL.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-playlists for an account-wide playlist export.
  • Use --liked-songs to 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-run first unless the user explicitly wants the live migration immediately.

Choose The Spotify Source

Use the simplest source that is already available:

  1. If the user has a fresh Spotify bearer token, pass --spotify-access-token or set SPOTIFY_ACCESS_TOKEN.
  2. If the user has a Spotify app client ID, use PKCE with --spotify-client-id or SPOTIFY_CLIENT_ID. Do not ask for a client secret; this workflow does not require one.
  3. 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:
bash
pbpaste | python3 <path-to-skill>/scripts/spotify_to_ytmusic.py --setup-yt-browser

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:

bash
python3 <path-to-skill>/scripts/spotify_extract_liked_json.py \
/path/to/liked.json \
--output /path/to/liked_flat.json

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:

bash
SPOTIFY_ACCESS_TOKEN='...' \
python3 <path-to-skill>/scripts/spotify_to_ytmusic.py \
--spotify-playlist "<spotify-playlist-url>" \
--yt-auth /path/to/browser.json \
--dry-run

All playlists:

bash
SPOTIFY_ACCESS_TOKEN='...' \
python3 <path-to-skill>/scripts/spotify_to_ytmusic.py \
--all-playlists \
--yt-auth /path/to/browser.json \
--report-file /tmp/spotify_export_report.json

Liked songs from flattened JSON:

bash
python3 <path-to-skill>/scripts/spotify_to_ytmusic.py \
--liked-songs \
--spotify-liked-json /path/to/liked_flat.json \
--yt-auth /path/to/browser.json \
--report-file /tmp/spotify_liked_report.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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hemang11/agent-core/spotify-to-ytmusic/badge)](https://verified-skill.com/skills/hemang11/agent-core/spotify-to-ytmusic)

Something wrong with this skill or its page? Tell us.