Agent skill · writing content · sundial-org
ytmusic-librarian
Manage YouTube Music library, playlists, and discovery via ytmusicapi.
Why this skill is useful
Provides specific commands and workflows for managing YouTube Music that the AI wouldn't reliably generate on its own.
What it needs
Requires python, ytmusicapi installed locally. About 1k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
YTMusic Librarian This skill uses the ytmusicapi Python library to interact with YouTube Music. Prerequisites Python 3.x ytmusicapi package: pip install ytmusicapi Authentication file (oauth.json or browser.json) in the skill folder. Setup Instructions 1. Install the library: 2. Generate Authentication (The "cURL Handshake"): Open Microsoft Edge and visit music.youtube.com (ensure you are logged in). Press F12 to open DevTools, go to the Network tab. Click your Profile Icon -> Library on the page. Look for a request named browse in the network list. Right-click the browse request -> Copy -> Copy as cURL (bash). Paste that cURL command into a file named headers.txt in the skill folder. Run the following Python snippet to generate browser.json: Ensure browser.json is located in the skill folder. 3. Verify: Workflows Library Management List songs/albums: yt.getlibrarysongs(), yt.getlibraryalbums() Add/Remove: yt.ratesong(videoId, 'LIKE'), yt.editsonglibrarystatus(feedbackToken) Playlist Management Create: yt.createplaylist(title, description) Add Tracks: yt.addplaylistitems(playlistId, [videoIds]) Remove Tracks: yt.removeplaylistitems(playlistId, [videoIds]) Metadata & Discovery Get Lyrics: yt.getlyrics(browseId) Get Related: yt.getwatchplaylist(videoId) -> related
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/ytmusic-librarian