agentsclimarketplace

Netease music cli

Skill wings1848/netease-music-cli/netease-music-cli

使用 ncm-cli 操作网易云音乐,当用户想播放音乐、搜索歌曲、控制播放(暂停、下一首、上一首、调音量)、管理播放队列、查看播放状态、播放歌单时触发。From its SKILL.md

Install
npx -y skills add wings1848/netease-music-cli --skill netease-music-cli

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.8 KB, 594 tokens by cl100k_base, as published. Nobody here has run it

网易云音乐 CLI(ncm-cli)

通过 ncm-cli 命令行工具操作网易云音乐。

  • 仅命令失败时参考'reference/ncm-cli-setup.md'执行检查和安装
  • 搜索结果两种为ID:加密 ID(32位hex)和明文 ID(数字)

命令速查

# 获取当前命令树
ncm-cli commands

# 获取帮助
ncm-cli help <command>

命令速查

# 查看可用命令
ncm-cli commands

# 查看命令帮助
ncm-cli <command> --help

# 播放歌单(正确参数格式)
ncm-cli play --playlist --encrypted-id <加密ID> --original-id <原始ID>

# 播放单曲
ncm-cli play --song --encrypted-id <加密ID> --original-id <原始ID>

# 播放控制
ncm-cli prev/next          # 上一首/下一首
ncm-cli pause/resume        # 暂停/继续
ncm-cli volume 80   # 调节音量

# 搜索
ncm-cli search song --keyword <关键词> --limit 10
ncm-cli search playlist --keyword <关键词> --limit 10

播放注意事项

  • 先测再跑复杂命令:新命令先用已知歌曲测试,确认环境正常
  • 换歌单前清空队列:用 ncm-cli queue clear 避免历史歌曲混入
  • 查看帮助再执行:参数格式与预期常有差异,先 --help 确认
  • 播放异步:发送播放命令后等待2-3秒再用 ncm-cli state 查看状态

用户友好

  • 返回资源给用户时使用明文ID生成链接,便于查看和收藏:
https://music.163.com/#/song?id=<明文ID>
https://music.163.com/#/playlist?id=<明文ID>
https://music.163.com/#/album?id=<明文ID>
https://music.163.com/#/artist?id=<明文ID>
  • 请求超限停止时任务并告知用户

What ships with it: 3 files

17.1 KB alongside SKILL.md, 1 of them executable

references/

scripts/

Keep looking

Skills are one crate of 326,696. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.