/suno-toolkits:suno-downloadfrom suno-toolkits
Download a Suno workspace as lossless WAV + full-metadata sidecar JSON by running scripts/download.mjs. Use when the user wants to download Suno songs, export a workspace, fetch WAV files, grab generated tracks, or invokes "/suno-download". Do NOT drive the browser turn by turn - launch the script, which resolves the workspace, waits for rendering clips, converts, downloads with size verification, writes sidecars and _download_result.json in one process. Shares the persistent Chrome profile (and one-time --login) with suno-submit. A model-driven Claude in Chrome loop remains as the documented fallback in references/path-b.md.
Ships in suno-toolkits. 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.
Download every song (or a subset) from a Suno workspace as lossless WAV (48 kHz / 16-bit / stereo PCM) plus a complete metadata sidecar JSON per track.
Run the script. Do not drive the browser by hand. scripts/download.mjs performs the whole
job in one process; your part is to launch it with the right arguments and report from
_download_result.json. A 60-clip workspace costs ~2 model turns this way versus ~25 driving
the API calls yourself (and the tool channel blocks the signed download URLs, which forced a
browser-download detour on every manual run).
Path B (the model-driven Claude-in-Chrome loop) lives in references/path-b.md and is the
fallback, not an equal option. Read it only when the script fails and the download is
urgent — then fix the script.
--out — where the files land. Use the project's audio/ folder when one exists
(<project>/audio); otherwise ask. Always pass it — the default is the current directory.--only a,b (optional) — each item matches a clip id exactly or a title substring.node "<skill>/scripts/download.mjs" "<workspace>" --out "<dir>" --dry-run
~20 s, opens Chrome, lists every clip with status, duration and the planned filename, downloads
nothing. Skip this when the workspace was just created by /suno-submit in this session.
Conversion + download of a full workspace takes minutes (first-run WAV conversion is server-side
and not instant; 112 clips took ~3–4 min just to convert). Always run_in_background: true.
You will be notified when it exits.
node "<skill>/scripts/download.mjs" "<workspace>" --out "<dir>" # + --only … if used
Do not poll it — checking progress every few seconds spends the turns this script exists to save. How you wait depends on whether anything can wake you back up:
echo waiting, a sleep loop, repeated jobs/ls checks).timeout (10 min
covers a few clips; a whole workspace needs more), or launch it in the background and then make
one blocking call that waits for the result file, e.g.
until [ -f "<dir>/_download_result.json" ]; do sleep 10; done. One blocking call is not
polling; a stream of status checks is.Do not start a second run while one is in flight either: both would open the same Chrome profile
and the second is refused (the profile is file-locked). /suno-submit shares that profile, so the
same applies across the two skills.
The script waits for rendering clips (up to 20 min, --wait-timeout <min> to change,
--no-wait to download only what is complete). Launching it right after /suno-submit is fine.
Read <dir>/_download_result.json. Report ok / selected, and surface every entry with
ok: false (its error says why: still rendering, convert refused, size mismatch after 3
tries). Exit 0 means every selected clip is on disk and passed the size check.
Re-running is safe and cheap: files already on disk that pass verification are skipped, so a partial run is resumed by launching the same command again.
How much to verify yourself: the script already checks every file's size against its duration
and its embedded clip id, and _download_result.json records the outcome per clip — so reading
that file is normally the whole job. One independent spot-check of a single file (ffprobe for
codec/duration, or the RIFF header) is worth it when the result matters or something looked odd.
Beyond that, stop: re-verifying all of them by hand duplicates what the script just did.
<skill> is this skill's own directory — the script sits beside this file.npm install && npx playwright install chrome
in the plugin root — <skill>/../.., the directory holding package.json. For a marketplace
install that is the versioned plugin cache (~/.claude/plugins/cache/<marketplace>/suno-toolkits/<version>/),
not a repo, and each update lands in a new directory without node_modules. If the script reports
playwright missing it prints the exact cd … && npm install … line: run that (foreground, it is
quick), then retry. After that comes a one-time sign-in, which survives updates (the profile lives
outside the plugin). If the script prints sign-in required (no TTY), give the user
the command it printed and ask them to run it with a ! prefix in this session:
! node "<skill>/scripts/download.mjs" --login
(the same profile serves /suno-submit, so a sign-in done there counts here).GET /api/studio/clip/{id}/download?format=wav), which serves the same 48 kHz/16-bit file
and was measured not to touch download_usage (see docs/2026-09-suno-download-limits.md).
It prints the allowance before and after the run (Downloads : used/limit and
this run was not counted). Accounts without Studio access fall back to the legacy
convert_wav + wav_file/ route with a warning — that route is counted server-side
(measured 2026-09-09: 2 clips → downloads_used 0 → 2), so there a batch larger than the
remaining allowance is refused unless --force; prefer --only to download just the chosen
takes. A longform's 60 takes would consume a Premier month on the legacy route.
If /api/billing/info/ cannot be read at all the script stops rather than guessing the
route — an unreadable response is indistinguishable from "no Studio access", and guessing wrong
means silently spending the month's allowance. Re-run, or pass --legacy-wav --force to accept
the counted route unguarded.--force overrides the stop; stoppedByQuotaTripwire in the
result file records why./api/project/{id}. Verified identical (41 keys) to what
/api/feed/ returns, so there is no second metadata round-trip.{workspace} - {title}_{a|b}.wav — the takes of a title ordered by
created_at, then id. Never by batch_index: that field is transient (present right
after a Create, gone from the same endpoint a day later), so a name built from it cannot be
reproduced and a re-run silently swaps a/b under existing files. A title with >2 clips (double
submit) gets _c, _d, …. Illegal characters → _; paths over 240 chars drop the prefix.RIFF header and only shows up as a short file — the script checks
size ≈ duration × 192000 + 44 (±3 %). Two takes of one title are often within 3 % of each
other, so it also reads the clip id Suno embeds in every WAV (ICMT … id=<clip id>) and
requires it to equal the clip being downloaded. Failures retry up to 3 times with a fresh
signed URL (the old one may have expired). On a re-run, only files passing both checks are
skipped.studio-api calls run 5-wide while the renders are kicked off and up to
8-wide once the download pool is polling for its own URLs, all with 429 backoff; transfers run 8-wide
against the CDN, which is a separate system.--legacy-wav it does. WAV
export needs a paid plan (a 401/403 while preparing a clip is reported per clip).--out <dir> · --only a,b · --dry-run · --no-wait · --wait-timeout <min> (20) ·
--legacy-wav (old convert_wav route) · --force (ignore the allowance guard on the legacy
route) · --login · --profile "<dir>" · --headless (headed is the default; same fingerprint
reasoning as submit.mjs).
<dir>/{name}.wav + <dir>/{name}.json per clip, and <dir>/_download_result.json:
{ workspace, projectId, outDir, wavRoute: "studio"|"legacy", downloadUsage: { before, after }, stoppedByQuotaTripwire, selected, ok, skipped, failed, at, clips: [{ id, title, variant, file, duration, ok, size | error, skippedByTripwire? }] }.
references/path-b.md — the model-driven Claude-in-Chrome procedure and its JS blocks
(workspace/clip listing, convert+poll, URL-map export, sidecar bundle). Fallback only.<repo>/lib/session.mjs — the shared Chrome profile / login / api() helper, used by both
skills (so one --login serves /suno-submit too).<repo>/extension/src/core/ — the pure logic (filenames, --only, paging, WAV verification,
billing/quota, poll reading), imported by scripts/download.mjs through
<repo>/lib/download-core.mjs and loaded verbatim by the Chrome extension, so the two can
never name or verify the same clip differently.<repo>/extension/, see the Extension section of the repo README) — no Node, no plugin.
It is an alternative for the user, not for you: when this skill is invoked, run the script.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub romanticamaj/suno-toolkits --plugin suno-toolkits2 skills in this plugin