Token导航 LogoToken导航

Agent Skill · 音频生成

ytmusic-player(音乐播放器)

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

ytmusic-player 是音频生成类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为操作浏览器;许可证为 MIT-0,第三方扫描已通过,按安装量在音频生成类的 283 个 Skill 里排第 92。

总安装 5,040周安装 210GitHub Stars 公开资料未说明下载 1,680核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
0.2.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ytmusic-player(音乐播放器)
来源仓库:https://github.com/kadaliao/ytmusic-player
安装命令:
openclaw skills install ytmusic-player
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ytmusic-player

这个 Skill 是做什么的

音频生成类 Skill 处理配音、配乐和音频素材的生成与转换。

通过自然语言控制 YouTube Music,支持歌曲搜索、播放列表管理与歌词查看。适用于音乐发现、播放控制与个性化推荐相关场景。输入语音指令即可操作播放、收藏与推荐,提升音乐体验效率。依赖 YouTube Music 账户与 API 权限,需登录与授权验证。注意隐私设置,避免播放记录与个人偏好被第三方访问。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install ytmusic-player;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ytmusic-player 怎么安装?

在终端执行 openclaw skills install ytmusic-player。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ytmusic-player 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ytmusic-player 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

ytmusic-player 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

ytmusic-player 用的人多吗?

公开数据是累计安装 5,040 次,近一周安装 210 次,下载 1,680 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ytmusic-player 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理音频生成类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

音频生成类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
music-cog

音乐齿轮 · OpenClaw

121,1044需要联网MIT-0通过
elevenlabs-music

十一实验室音乐 · OpenClaw

108,6181接触敏感数据MIT-0通过
music-generation

音乐一代 · OpenClaw

100,1385需要联网MIT-0有提醒
ace-music

王牌音乐 · OpenClaw

95,8682接触敏感数据MIT-0有提醒
mcp-applemusic

MCP applemusic 音频 · OpenClaw

79,3893调用外部服务MIT-0有提醒
ytmusic-player

音乐播放器 · 本页

5,040—操作浏览器MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
ytmusic
description
Operate YouTube Music via natural language. Search songs, artists, albums, playlists, lyrics, charts, recommendations, and control playback. Browse personal library, manage playlists, rate tracks, and inspect account info. Use this skill whenever the user asks about YouTube Music, wants to play music, manage playlists, search by song or artist name, inspect lyrics, or control playback.
version
0.2.0
metadata
openclaw
requires
bins
config
skillKey
ytmusic
homepage
https://github.com/kadaliao/ytmusic-skill

YouTube Music Skill

Run bundled scripts from the skill root:

  • scripts/helper.py: search, library, playlists, lyrics, ratings, account
  • scripts/player.py: playback client and daemon management
  • scripts/player_daemon.py: persistent Playwright browser daemon
  • Runtime state is local to ./.ytmusic/
  • Playback uses a dedicated Playwright-managed browser profile in ./.ytmusic/playwright-profile

Workflow

  1. If the user gives names instead of IDs, search first.
  2. For auth-required actions, run auth check first.
  3. If auth is missing, switch into auth-guidance mode and do not continue yet.
  4. Only after auth succeeds, execute the original command.
  5. Format JSON into short tables or lists.

ID Resolution

Use search to resolve videoId, browseId, or playlistId:

uv run --with ytmusicapi python scripts/helper.py search "<query>" --type songs --limit 5
uv run --with ytmusicapi python scripts/helper.py search "<query>" --type artists --limit 3
uv run --with ytmusicapi python scripts/helper.py search "<query>" --type albums --limit 3

If results are ambiguous, ask the user which one they want.

Auth

Check auth before library, playlist, rate, subscribe, home, history, taste, upload, or auth account:

uv run --with ytmusicapi python scripts/helper.py auth check

If auth is missing, do not continue with the requested action yet.

You must explicitly guide the user to provide one of these:

  • a Cookie string copied from a logged-in music.youtube.com request
  • a cookies JSON export file path

This is a hard rule:

  • Do not just say "auth missing"
  • Do not stop after showing a shell error
  • Do not ask a vague question like "please log in first"
  • Do ask for the exact artifact you need next: Cookie string or cookies JSON file path
  • Mirror the user's language when possible; if the user's language is unclear, default to concise English
  • Treat the English templates below as defaults and translate or adapt them to match the user's language

Use this flow:

  1. Tell the user authentication is required before you can access their library, playlists, account, uploads, or full playback.
  2. Ask them to open music.youtube.com in a logged-in browser.
  3. Offer two options:

- Cookie string: open DevTools, Network, filter /browse, reload, open any matching request, copy the Cookie header value, send it back - Cookies JSON: export cookies for music.youtube.com with a cookie extension and send the file path back

  1. When the user replies with either the cookie string or a JSON file path, run auth setup.
  2. Retry the original command after auth setup succeeds.

Preferred default user-facing wording:

You need to sign in to YouTube Music before I can access your library, playlists, account, uploads, or full playback.

Please send me one of these:
1. A Cookie string
2. A cookies JSON file path

Cookie string instructions:

Open a logged-in music.youtube.com page
Open DevTools -> Network
Filter /browse and reload the page
Open any matching request
Copy the Cookie request header value
Send the full Cookie string back to me

Cookies JSON instructions:

Use a cookie export extension such as Cookie-Editor on music.youtube.com
Export cookies as JSON
Save the exported file locally
Send me the file path

Setup commands:

uv run --with ytmusicapi python scripts/helper.py auth setup --cookie '<cookie string>'
uv run --with ytmusicapi python scripts/helper.py auth setup --cookies-file /path/to/cookies.json

Common Commands

uv run --with ytmusicapi python scripts/helper.py search "<query>" [--type songs|artists|albums|playlists|videos]
uv run --with ytmusicapi python scripts/helper.py library playlists
uv run --with ytmusicapi python scripts/helper.py playlist get <playlistId>
uv run --with ytmusicapi python scripts/helper.py playlist create --title "<name>"
uv run --with ytmusicapi python scripts/helper.py playlist add <playlistId> <videoId...>
uv run --with ytmusicapi python scripts/helper.py lyrics <videoId>
uv run --with ytmusicapi python scripts/helper.py related <videoId>
uv run --with ytmusicapi python scripts/helper.py rate <videoId> LIKE|DISLIKE|INDIFFERENT
uv run --with ytmusicapi python scripts/helper.py charts [--country CN|US|KR|JP|ZZ]

Full command reference: references/commands.md

Playback

Playback runs through a persistent Playwright browser daemon. The first playback command auto-starts a dedicated browser window and reuses it for later open, play, pause, next, prev, seek, volume, and status commands.

uv run --with playwright python scripts/player.py daemon-start
uv run --with playwright python scripts/player.py open <videoId>
uv run --with playwright python scripts/player.py play
uv run --with playwright python scripts/player.py pause
uv run --with playwright python scripts/player.py next
uv run --with playwright python scripts/player.py prev
uv run --with playwright python scripts/player.py status
uv run --with playwright python scripts/player.py volume <0-100>
uv run --with playwright python scripts/player.py seek <seconds>
uv run --with playwright python scripts/player.py daemon-status
uv run --with playwright python scripts/player.py daemon-stop

Important behavior:

  • The daemon launches a dedicated persistent browser profile in ./.ytmusic/playwright-profile
  • On first launch, the user may need to sign in to music.youtube.com in that browser window
  • The user does not need to start Chrome or open a debugging port manually
  • If open <videoId> loads the page but playback is still paused, autoplay was likely blocked and the user may need to click play once in the daemon-managed window
  • daemon-status checks whether the background browser is alive without starting a new one

If playback commands fail, first verify:

  • The daemon-managed browser window is still open
  • The user is signed in at music.youtube.com in that browser window if the requested track requires it
  • The requested song page can actually play in that browser session
  • ./.ytmusic/player-daemon.log does not show a launch or Playwright error

Output

  • Search results: numbered table with title, artist, album, duration
  • Playlist tracks: numbered list with title, artist, album
  • Lyrics: print plain text
  • Playback: ▶ {title} — {artist} ({position} / {duration})
  • Errors: state cause and next action

After success, suggest one natural next step such as play, add to playlist, show lyrics, or fetch related tracks.

适合场景

01

生成背景音乐

02

生成歌曲或旋律

03

视频和播客配乐

04

社媒内容音频素材

能力概览

能力 1

调用音乐生成模型

能力 2

支持文本到音乐或歌曲生成

能力 3

提供 CLI 示例和使用场景

能力 4

适合音频内容工作流

平台分布

OpenClaw

83.35%
按下载量换算1,400

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills