ytmusic-hub
Skill by OpenMinis
Lets an AI assistant read and write YouTube Music data with Python and ytmusicapi, using browser cookies for login. Covers playlists, liked songs, search, charts and lyrics, for users who want programmatic access to their account.
Install ytmusic-hub
Built from the published package, never by AI.
git clone --depth 1 https://github.com/OpenMinis/MinisSkills /tmp/MinisSkills && mkdir -p ~/.claude/skills && cp -r /tmp/MinisSkills/ytmusic-hub ~/.claude/skills/ytmusic-hubRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/OpenMinis/MinisSkills /tmp/MinisSkills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/MinisSkills/ytmusic-hub ~/.gemini/antigravity-cli/skills/ytmusic-hubAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
ytmusic-hub is an agent skill that lets an AI assistant read and write YouTube Music data using the ytmusicapi Python library. It covers fetching playlists and liked songs, creating, editing and deleting playlists, adding and removing tracks, searching, browsing recommendations and charts, and reading lyrics.
Authentication uses browser cookies collected with browser_use get_cookies, then a setup script writes a browser-auth file. A shared client module handles DNS pollution and SSL issues in iSH. The skill is aimed at users who want programmatic access to their own YouTube Music account, for example to build a playlist from liked songs or export a playlist as Markdown.
Written from the project's SKILL.md and checked against it.
What it can do
- Playlist managementGet, create, edit and delete playlists, and add or remove tracks.
- Liked songs and libraryFetch liked songs, library songs, albums and artists, and like or unlike songs.
- SearchSearch YouTube Music with optional filters for songs, videos, albums and artists.
- Browse and recommendationsRead the home feed, global or country charts, and mood playlists.
- LyricsFind a song's lyrics through its watch playlist data.
- Artists and albumsLook up artist, album, user and user playlist details.
What you need
- Python
- ytmusicapi (pip install)
- A YouTube Music login in a browser
- browser_use tool to collect cookies
- Access to music.youtube.com
Try asking
- Search for a song and add it to my YouTube Music playlist
- Create a private playlist with my 20 most recent liked songs
- Export my YouTube Music playlist as a Markdown list
Good to know
- ytmusicapi is unofficial, so bulk operations may trigger Google rate limiting
- Cookies typically last days to weeks and must be refreshed when they expire
- The auth file contains login credentials and should not be shared
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: ytmusic-hub/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
evals/evals.json3 KB -
scripts/export_playlist.py1 KB -
scripts/list_playlists.py535 B -
scripts/recommend_from_likes.py5 KB
Show all 11 files
-
scripts/recommend_from_seed_jay.py2 KB -
scripts/recommend_from_seed_jay_v2.py4 KB -
scripts/search_and_add.py856 B -
scripts/setup_auth.py2 KB -
scripts/test_auth.py780 B -
scripts/ytmusic_client.py5 KB
Alternatives to ytmusic-hub
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
ytmusic-hub: common questions
How does ytmusic-hub log in to YouTube Music?
It uses browser cookies gathered with browser_use get_cookies, and a setup script turns them into a browser-auth file at a fixed workspace path.
How do I remove a song from a playlist?
Use the track's setVideoId, which is its position-specific ID in the playlist, not the videoId. The skill's example code shows how to match it.
Is ytmusic-hub an official YouTube Music tool?
The source does not say it is official. It states that ytmusicapi is unofficial and that bulk operations may hit rate limits.
How do I install ytmusic-hub?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ytmusic-hub free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ytmusic-hub safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ytmusic-hub?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
