youtube-music
SKILL.md
YouTube Music Skill
Overview
Enables Claude to interact with YouTube Music for streaming songs, creating playlists, accessing music videos, and discovering new music through personalized recommendations.
Quick Install
curl -sSL https://canifi.com/skills/youtube-music/install.sh | bash
Or manually:
cp -r skills/youtube-music ~/.canifi/skills/
Setup
Configure via canifi-env:
# First, ensure canifi-env is installed:
# curl -sSL https://canifi.com/install.sh | bash
canifi-env set GOOGLE_EMAIL "your-email@example.com"
Privacy & Authentication
Your credentials, your choice. Canifi LifeOS respects your privacy.
Option 1: Manual Browser Login (Recommended)
If you prefer not to share credentials with Claude Code:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
Option 2: Environment Variables
If you're comfortable sharing credentials, you can store them locally:
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
Capabilities
- Stream songs, albums, and playlists
- Create and manage custom playlists
- Access official music videos
- View listening history and recommendations
- Like songs and manage library
Usage Examples
Example 1: Create Playlist
User: "Create a chill vibes playlist on YouTube Music"
Claude: I'll create a new playlist called "Chill Vibes" and start adding relaxing tracks.
Example 2: Find Music Video
User: "Play the music video for Bohemian Rhapsody"
Claude: I'll find and play the official music video for Bohemian Rhapsody.
Example 3: Explore New Releases
User: "What's new in hip-hop this week?"
Claude: I'll check the new releases section for recent hip-hop albums and singles.
Authentication Flow
- Navigate to music.youtube.com via Playwright MCP
- Click "Sign In" button
- Enter Google account credentials
- Handle 2FA if enabled
- Maintain session for subsequent requests
Error Handling
- Login Failed: Retry authentication up to 3 times, then notify via iMessage
- Session Expired: Re-authenticate with Google
- 2FA Required: Wait for code via iMessage or authenticator
- Rate Limited: Implement exponential backoff
- Content Unavailable: Check regional restrictions
Self-Improvement Instructions
When encountering new UI patterns:
- Document YouTube Music interface changes
- Update selectors for new layouts
- Track playlist sync with YouTube
- Monitor Premium vs Free feature differences
Notes
- YouTube Premium provides ad-free experience
- Library syncs with main YouTube account
- Background play requires Premium on mobile
- Uploads feature allows personal music
Weekly Installs
30
Repository
andrejones92/canifi-life-osFirst Seen
Jan 24, 2026
Installed on
claude-code27
gemini-cli23
opencode23
cursor21
antigravity20
codex20