/media-master:hifi-downloadfrom media-master
Discovers music via Spotify and Last.fm, downloads high-fidelity FLAC/Hi-Res audio from Qobuz or TIDAL. Use for music discovery, recommendations, and lossless downloads.
Ships in media-master. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Music discovery (Spotify, Last.fm) and Hi-Res audio downloads (Qobuz, TIDAL) through a unified CLI.
Match user's language: Respond in the same language the user uses.
All commands use bash ${SKILL_PATH}/run.sh <script> [args...], which activates the venv and runs the corresponding Python script. Output is human-readable by default; use --json where supported for structured output.
bash ${SKILL_PATH}/scripts/setup.sh check
Output is key=value pairs. If VENV=missing, run install first.
bash ${SKILL_PATH}/scripts/setup.sh install [--with-qobuz] [--with-tidal]
Creates .venv, installs core dependencies (spotipy, pylast, requests, python-dotenv), and optionally installs download backends.
IMPORTANT: Do NOT ask the user for credentials in chat. Instead:
.env from template if not exists: cp ${SKILL_PATH}/.env.example ${SKILL_PATH}/.env${SKILL_PATH}/.env with their credentialsWhere to get credentials:
tiddl auth login in venv for OAuth (no .env entry needed)bash ${SKILL_PATH}/run.sh status
Shows which services are READY, DISABLED, or need setup. Only use services marked READY.
| Check | Fix (macOS) | Fix (Linux) |
|---|---|---|
PYTHON=missing | brew install python3 | sudo apt install python3 |
VENV=missing | bash ${SKILL_PATH}/scripts/setup.sh install | Same |
| Core deps missing (SPOTIPY, PYLAST, etc.) | bash ${SKILL_PATH}/scripts/setup.sh install --force | Same |
ENV_FILE=missing | cp ${SKILL_PATH}/.env.example ${SKILL_PATH}/.env then edit | Same |
| Spotify: NOT CONFIGURED | Edit .env: set SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET | Same |
| Last.fm: NOT CONFIGURED | Edit .env: set LASTFM_API_KEY | Same |
| Qobuz: NOT CONFIGURED | Edit .env: set QOBUZ_EMAIL and QOBUZ_PASSWORD | Same |
| TIDAL: NOT CONFIGURED | Run tiddl auth login inside the venv | Same |
| Spotify/Last.fm/Qobuz: ERROR (validation failed) | Check credentials in .env are correct, re-obtain from dashboard if needed | Same |
| TIDAL: ERROR (token expired) | Run tiddl auth refresh or tiddl auth login inside the venv | Same |
| Type | Services | Purpose |
|---|---|---|
| Discovery | Spotify, Last.fm | Search, recommendations, similar artists |
| Downloads | Qobuz, TIDAL | High-quality audio (FLAC, Hi-Res) |
All 4 services (Spotify, Last.fm, Qobuz, TIDAL) are optional. After running status, apply this table:
| Scenario | Strategy |
|---|---|
| No Last.fm | Skip & continue — Use Spotify only for discovery |
| No Spotify | Skip & continue — Use Last.fm only for discovery |
| No discovery services at all | Halt & guide — Tell user at least one discovery service is needed and guide setup |
| No Qobuz | Auto-fallback — Use TIDAL for downloads |
| No TIDAL | Auto-fallback — Use Qobuz for downloads |
| No download services at all | Discovery only — Inform user that downloads are unavailable, continue with discovery features only |
When a fallback is used, tell the user which service is being used and why.
bash ${SKILL_PATH}/run.sh lastfm_artists "Radiohead"
Returns a list of similar artists with match scores.
bash ${SKILL_PATH}/run.sh lastfm_tracks "Karma Police" "Radiohead"
Arguments: track name, then artist name.
bash ${SKILL_PATH}/run.sh lastfm_taste
Returns the user's top artists and tracks from listening history.
bash ${SKILL_PATH}/run.sh spotify_search "OK Computer"
Searches Spotify catalog for tracks, albums, and artists.
bash ${SKILL_PATH}/run.sh spotify_user tracks|artists
Gets the user's saved tracks or followed artists (requires OAuth).
bash ${SKILL_PATH}/run.sh spotify_info SPOTIFY_URI_OR_ID
bash ${SKILL_PATH}/run.sh platform_search "Album Name" -p qobuz|tidal
Searches the download platform's catalog. Returns IDs for use with download command.
bash ${SKILL_PATH}/run.sh platform_download ID -p qobuz|tidal -t album|track
Queues the download in a background process and returns a download_id immediately. The agent is free to continue other work. Use download_status to poll progress.
To block until the download completes (legacy behavior):
bash ${SKILL_PATH}/run.sh platform_download ID -p qobuz -t album --sync
bash ${SKILL_PATH}/run.sh download_status DOWNLOAD_ID
bash ${SKILL_PATH}/run.sh download_status --all
bash ${SKILL_PATH}/run.sh download_status --active
bash ${SKILL_PATH}/run.sh download_status --json
Poll the status of a specific download or list all downloads. Use --active to show only pending/in_progress tasks. Use --json for structured output.
bash ${SKILL_PATH}/run.sh download_ui
Opens a web dashboard at http://localhost:8765 showing real-time download status with progress bars. Auto-refreshes every 3 seconds.
bash ${SKILL_PATH}/run.sh disable_service spotify --reason "No account"
bash ${SKILL_PATH}/run.sh enable_service spotify
status to check available serviceslastfm_artists or lastfm_tracks to find similar musicspotify_search to look up specific tracks/albumsplatform_search → platform_downloadPrint this checklist at the start, update as you go:
Download Progress:
- [ ] Step 1: Check service status
- [ ] Step 2: Search platform catalog
- [ ] Step 3: Present results to user
- [ ] Step 4: Start download
- [ ] Step 5: Monitor progress
- [ ] Step 6: Verify completion
- [ ] Step 7: Report results
status to confirm download service is READYplatform_search "Album Name" -p qobuzplatform_download ID -p qobuz -t album (returns download_id immediately)download_ui for visual monitoringdownload_status DOWNLOAD_ID until completedAfter a download finishes, present this report to the user:
MusicMaster Download Complete!
Input: [album/track] - [title] by [artist]
Platform: [Qobuz/TIDAL]
Quality: [Hi-Res 24-bit / FLAC 16-bit / etc.]
Result:
- Track count: [N tracks]
- Total size: [X MB]
- Download path: [/path/to/files]
Files:
- [file1.flac] (XX MB)
- [file2.flac] (XX MB)
- ...
Next Steps:
- Open folder: open "[download path]"
- Download more: "download [another album]"
Gather file paths and sizes from the download_status output and by listing the download directory.
| Error | Detection | Resolution |
|---|---|---|
| Venv missing | run.sh exits with venv_missing | Run bash ${SKILL_PATH}/scripts/setup.sh install |
| Service not configured | status shows NOT CONFIGURED | Guide user to edit ${SKILL_PATH}/.env (see Preflight Check -> Fix Table) |
| Spotify OAuth expired | Spotify commands fail with auth error | Run bash ${SKILL_PATH}/run.sh spotify_auth to re-authorize |
| TIDAL token expired | status shows ERROR for TIDAL | Run tiddl auth refresh or tiddl auth login in venv |
| Service disabled by user | status shows DISABLED | Run enable_service if user wants to re-enable |
| No results | Search returns empty | Try different keywords or check service availability |
spotify_auth script handles this)tiddl CLI tool, not stored in .env.env (sensitive — ensure file is in .gitignore)~/Music/Qobuz and ~/Music/TIDALreferences/musicmaster.md (opens in a new tab)references/setup_guide.md (opens in a new tab)run.sh (opens in a new tab)scripts/_download_worker.py (opens in a new tab)scripts/disable_service.py (opens in a new tab)scripts/download_status.py (opens in a new tab)scripts/download_ui.py (opens in a new tab)scripts/enable_service.py (opens in a new tab)scripts/lastfm_artists.py (opens in a new tab)scripts/lastfm_taste.py (opens in a new tab)scripts/lastfm_tracks.py (opens in a new tab)scripts/lib/__init__.py (opens in a new tab)scripts/lib/config.py (opens in a new tab)scripts/lib/download_state.py (opens in a new tab)scripts/lib/lastfm.py (opens in a new tab)scripts/lib/platform.py (opens in a new tab)scripts/lib/preferences.py (opens in a new tab)scripts/lib/spotify.py (opens in a new tab)scripts/platform_download.py (opens in a new tab)scripts/platform_search.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
music-discovery, high-res-audio, flac-downloads, qobuz, tidal, spotify
3 skills in this plugin
/quark-downloadSearch, validate, and save cloud drive resources via PanSou aggregation API and local Quark desktop APP integration. This skill should be used when the user wants to find and download resources from cloud drives (网盘资源搜索下载), especially when they mention keywords like "搜资源", "找片", "下载", "网盘", "夸克", "quark", "panso", "盘搜". Requires Quark desktop APP running and logged in with membership./zlib-downloadSearch and download books from Z-Library and Anna's Archive. Use when user wants to find, search, download, or look up books, papers, or ebooks. Trigger phrases include "find book", "search book", "download book", "找书", "下载书籍", "搜书", "book search", "zlibrary", "anna's archive".Generated from the plugin's indexed repository (psylch/media-master) — no native marketplace selected
npx claudepluginhub p/psylch-media-masterOther plugins' skills for the same job