← 返回 Skills 市场
leo7723

MusicRouter

作者 leo7723 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
263
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install music-router
功能描述
Automatically converts music sharing links across Chinese and major international platforms, extracting song details and album artwork for seamless multi-pla...
使用说明 (SKILL.md)

Music Router Skill

This skill solves the problem of incompatible music sharing links between different platforms. It provides direct links for Chinese platforms and automatically resolves all major international platforms via the Odesli (song.link) API.

Features

  • Auto-Identification: Automatically identifies the platform of the input music sharing link.
  • Precise Extraction: Automatically extracts song name, artist information, and album artwork.
  • Multi-Platform Resolution:
    • Chinese Platforms: Direct links for Netease Cloud Music and QQ Music.
    • International Platforms: Resolves direct links for Spotify, Apple Music, YouTube, YouTube Music, Amazon Music, Tidal, Deezer, and SoundCloud.
  • Optional Logging: Conversion details can be recorded in music-router/data/converter.log via a command-line flag.

Agent Usage Guide

1. Basic Call (Link Only)

The Agent can pass the sharing link directly.

python3 music-router/scripts/converter.py "https://y.music.163.com/m/song?id=1988907896"

2. Precise Call (Link + Song/Artist)

If the Agent already knows the song name and artist, it can be passed as the second argument to improve matching accuracy for Chinese platforms.

python3 music-router/scripts/converter.py "https://open.spotify.com/track/315aBOUD3xtj7sUMXtRgMV" "In The Stars Benson Boone"

3. Enabling Logs (Optional)

To enable detailed logging for debugging, add the --log flag. Logging is disabled by default.

python3 music-router/scripts/converter.py "https://open.spotify.com/track/123" --log

Output Example (JSON)

{
  "original_platform": "Spotify",
  "detected_song": "In The Stars Benson Boone",
  "thumbnail": "https://m.media-amazon.com/images/I/31OJGk6XaLL.jpg",
  "conversions": {
    "网易云音乐": "https://music.163.com/#/song?id=1941928009",
    "QQ音乐": "https://y.qq.com/n/ryqq/songDetail/001Paon617ueUC",
    "Apple Music": "https://geo.music.apple.com/us/album/_/1621221545?i=1621221910...",
    "YouTube": "https://www.youtube.com/watch?v=ZLck_PSMNew",
    "Amazon Music": "https://music.amazon.com/albums/B0B5FKVB4P?trackAsin=B0B5FK4MM1",
    "Tidal": "https://listen.tidal.com/track/226476015",
    "song.link (Aggregation)": "https://song.link/s/315aBOUD3xtj7sUMXtRgMV"
  }
}

Supported Platforms

  • Direct Resolution: Netease Cloud Music, QQ Music.
  • International Resolution: Spotify, Apple Music, YouTube, YouTube Music, Amazon Music, Tidal, Deezer, SoundCloud.

Notes

  • Odesli (song.link): This skill uses the Odesli API to resolve international links and fetch album artwork, ensuring high accuracy and a rich visual experience.
安全使用建议
This skill is coherent with its purpose, but exercise basic caution: (1) Review the full converter.py before running — the provided manifest snippet appears truncated near the end (an undefined variable 'r' in the truncated output suggests you should confirm the real file is complete and correct). (2) Test with non-sensitive public links first — user-provided URLs and search queries will be sent to song.link and platform search APIs. (3) Avoid enabling logging (--log) if you don't want conversion details persisted on disk. (4) Run the script in a sandboxed environment if you want to limit network or filesystem exposure. If you want, provide the complete converter.py file (not a truncated listing) and I can re-check for bugs or hidden behavior.
功能分析
Type: OpenClaw Skill Name: music-router Version: 1.0.0 The Music Router skill is a legitimate tool designed to convert music sharing links between various international and Chinese platforms. The core logic in `scripts/converter.py` uses the Odesli (song.link) API and direct platform searches (Netease, QQ Music) to resolve links, which is consistent with the stated purpose. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found in the code or documentation (SKILL.md, AGENT_GUIDE.md).
能力评估
Purpose & Capability
The name/description (convert music links, fetch artwork) aligns with the included code and instructions: the script uses Odesli (song.link) for international resolutions and queries Netease/QQ endpoints for Chinese platforms. There are no unrelated environment variables, binaries, or install steps requested.
Instruction Scope
SKILL.md and AGENT_GUIDE instruct the agent to call the included Python script with the user-supplied link (and optionally song/artist and --log). That is scoped to the stated purpose. Important: the script issues HTTP requests to the provided URL and to third-party APIs (song.link, music.163.com, c.y.qq.com, etc.), and optional logging will write conversion details to music-router/data/converter.log. This means user-supplied links and derived metadata will be transmitted to external services and may be persisted locally when --log is used.
Install Mechanism
No install spec or external downloads are present; the skill is instruction-only plus an included Python script. No archive downloads or third-party installers are invoked.
Credentials
The skill requests no environment variables or credentials, which is appropriate. Caveat: it transmits user-supplied URLs and derived queries to remote APIs (song.link, Netease/QQ search endpoints). If users supply private or pre-release links, those will be sent to external services. Logging (--log) will persist details to the skill's data directory.
Persistence & Privilege
always is false and the skill does not request elevated privileges. The only persistent effect is optional creation of music-router/data/converter.log within the skill directory when logging is enabled; no modifications to other skills or system-wide settings are indicated.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install music-router
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /music-router 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the Music Router Skill. - Automatically identifies the source platform of music sharing links. - Extracts song name, artist, and album artwork. - Provides direct conversion for Netease Cloud Music and QQ Music. - Resolves international links using the Odesli (song.link) API, covering Spotify, Apple Music, YouTube, Amazon Music, Tidal, Deezer, and SoundCloud. - Optional logging feature via command-line flag for conversion records.
元数据
Slug music-router
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

MusicRouter 是什么?

Automatically converts music sharing links across Chinese and major international platforms, extracting song details and album artwork for seamless multi-pla... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 263 次。

如何安装 MusicRouter?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install music-router」即可一键安装,无需额外配置。

MusicRouter 是免费的吗?

是的,MusicRouter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

MusicRouter 支持哪些平台?

MusicRouter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 MusicRouter?

由 leo7723(@leo7723)开发并维护,当前版本 v1.0.0。

💬 留言讨论