Xpersona
M

Music Skill

CLAWHUB · Unverified

Search songs, download playable audio, fetch lyrics, parse music share links, configure platform cookies, and switch music sources through a local go-music-a...

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17eqdf33q5na7sr7qh883wyh583h3h9:go-music-skill
  1. Install using `clawhub skill install s17eqdf33q5na7sr7qh883wyh583h3h9:go-music-skill` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/scavin/go-music-skill before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-scavin-go-music-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

15,809 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: go-music-api
description: Search songs, download playable audio, fetch lyrics, parse music share links, configure platform cookies, and switch music sources through a local go-music-api backend on Linux, macOS, and Windows. Use when the user asks to search music, play or download a song, get lyrics, resolve music share links, configure cookies for login-required tracks, or retry playback from another source after failures. If the backend is missing or unhealthy, install and start go-music-api first.
repository: https://github.com/scavin/Music-Skill
---

# go-music-api

Use this skill to install and run a local `go-music-api` backend, search tracks across sources, download audio, embed metadata, and recover from source failures.

## Primary workflow

Prefer the bundled scripts instead of reimplementing the flow by hand.

### Route by platform

- On Linux or macOS, use `scripts/install.sh` and `scripts/play.sh`.
- On Windows, read `docs/windows.md` before proceeding.
- When the user mentions cookies, VIP-only tracks, grey tracks, or login-required tracks, read `docs/cookies.md`.

### Linux/macOS install

Run:

```bash
scripts/install.sh
```

The install script should:
- install `go-music-api` into `~/.openclaw/music`
- choose a usable local port
- start the backend in the background
- verify health with a local API request

### Linux/macOS download

Run:

```bash
scripts/play.sh "稻香" "$HOME/.openclaw/media/daoxiang.mp3"
```

The play script should:
- search by query
- handle nested search payloads such as `data.data`, `data.list`, or `data.songs`
- rank candidates by song title, artist, and source quality
- avoid karaoke, cover, remix, live, DJ, and instrumental variants when possible
- download the audio stream to the requested path
- reuse cached files when an equivalent file already exists
- call `scripts/embed_metadata.py` to write title, artist, album, cover art, and embedded lyrics when available

Prefer saving final media under a sendable location such as `~/.openclaw/media/`.

## Manual API workflow

Use this only for debugging or when the helper scripts need changes.

1. Ensure the backend is installed and running.
2. Read `~/.openclaw/music/port` on Linux/macOS or `%USERPROFILE%\.openclaw\music\port` on Windows; default to `8080` if absent.
3. Search with `GET /api/v1/music/search?q={q}`.
4. Parse list results from the top-level response or nested `data.*` collections.
5. Choose the best candidate.
6. Download audio with `GET /api/v1/music/stream?id={id}&source={source}`.
7. Treat the `stream` response as audio bytes, not JSON.
8. If playback fails, try `GET /api/v1/music/switch?...` to switch source and retry.
9. If user provides account cookies, read `docs/cookies.md`, set them with `POST /api/v1/system/cookies`, and verify with `GET /api/v1/system/cookies`.
10. Fetch lyrics with `GET /api/v1/music/lyric?id={id}&source={source}` when needed.

## Files and state

Runtime files live under `~/.openclaw/music` (Linux/macOS) or `%U

_meta.json

{
  "ownerId": "kn72qembtpbq8qxx127w0mxyxs83gdc6",
  "slug": "go-music-skill",
  "version": "0.0.2",
  "publishedAt": 1774492330734
}

CHANGELOG.md

# Changelog

All notable changes to this project will be documented in this file.

## [Unreleased]

- No changes yet.

## [2026-03-26]

### Added

- Added cookie configuration guidance to the skill documentation.
- Added trigger conditions for cookie-related user requests (VIP/login-only/grey tracks).
- Added ready-to-run cookie setup commands for Linux/macOS and Windows PowerShell.
- Added manual API workflow step for `POST /api/v1/system/cookies` and `GET /api/v1/system/cookies`.

## [2026-03-25]

### Added

- Added `repository` URL to `SKILL.md` frontmatter.
- Added Windows support with PowerShell scripts (`scripts/install.ps1`, `scripts/play.ps1`).

docs/cookies.md

# Cookie Configuration

Load this document only when the user mentions cookies, VIP-only tracks, grey tracks, or login-required tracks.

`go-music-api` supports:
- startup loading from `cookies.json`
- runtime updates with `POST /api/v1/system/cookies`

Prefer the runtime API in this skill.

## Linux/macOS

```bash
PORT="$(cat "$HOME/.openclaw/music/port" 2>/dev/null || echo 8080)"
curl -fsS -X POST "http://localhost:${PORT}/api/v1/system/cookies" \
  -H "Content-Type: application/json" \
  -d '{
    "netease": "MUSIC_U=xxx; __csrf=yyy;",
    "qq": "qm_keyst=xxx; uin=yyy;",
    "soda": "sessionid=xxx;"
  }'
curl -fsS "http://localhost:${PORT}/api/v1/system/cookies"
```

## Windows

```powershell
$portFile = Join-Path $env:USERPROFILE ".openclaw\music\port"
$port = if (Test-Path $portFile) { (Get-Content $portFile).Trim() } else { "8080" }
$body = @{
  netease = "MUSIC_U=xxx; __csrf=yyy;"
  qq      = "qm_keyst=xxx; uin=yyy;"
  soda    = "sessionid=xxx;"
} | ConvertTo-Json
Invoke-RestMethod -Method Post -Uri "http://localhost:$port/api/v1/system/cookies" -ContentType "application/json" -Body $body
Invoke-RestMethod -Method Get -Uri "http://localhost:$port/api/v1/system/cookies"
```

## Notes

- Do not print full cookie values back to the user unless explicitly requested.
- After setting cookies, retry the same track before switching source.
- If runtime update fails, fall back to upstream `cookies.json` support.

docs/windows.md

# Windows Workflow

Load this document only when the user is on Windows or explicitly asks for Windows instructions.

## Requirements

- PowerShell 5.1 or later
- Windows amd64
- Access to GitHub Releases
- Python 3 for playback, cache handling, and metadata embedding

`go-music-api` upstream only provides the Windows amd64 release asset.

## Install and start the backend

Run:

```powershell
powershell -ExecutionPolicy Bypass -File scripts/install.ps1
```

What the script does:
- installs `go-music-api.exe` into `%USERPROFILE%\.openclaw\music`
- chooses a usable local port
- starts the backend in the background
- verifies health with a local API request

If installation fails:
- verify PowerShell version
- verify GitHub Releases reachability
- inspect `%USERPROFILE%\.openclaw\music\log.txt`
- confirm the downloaded file is `go-music-api_windows_amd64.zip`

## Download a song

Run:

```powershell
powershell -ExecutionPolicy Bypass -File scripts/play.ps1 "稻香" "$env:USERPROFILE\.openclaw\media\daoxiang.mp3"
```

The Windows playback flow:
- finds Python in this order: `py -3`, `python`, `python3`
- tries `winget install --id Python.Python.3.12` if Python is missing
- searches with the local backend
- selects the best candidate
- downloads the stream to the requested path
- reuses cached files when possible
- runs `scripts/embed_metadata.py` when available

## Cookie support on Windows

If the user mentions cookies, VIP-only tracks, grey tracks, or login-required tracks, load `docs/cookies.md`.

Sponsored

Ads related to Music Skill and adjacent AI workflows.