netease-music-cli

netease-music-cli is a skill for Claude Code, Codex from sutchan/Agent-Skills-Hub. It costs 53 tokens per session (1,433 once invoked), scanned A, original, MIT.

A command-line tool for controlling NetEase Cloud Music, a Chinese music streaming service. It supports searching for music and managing playback from a terminal.

In plain words
What is it for?
Use it to search for songs, play playlists, pause or skip tracks, change volume, manage the queue, and check playback status.
Why use it?
It lets developers control music without switching to a graphical music app or manually managing the playback queue.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search for songs, play playlists, pause or skip tracks, change volume, manage the queue, and check playback status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sutchan/agent-skills-hub/netease-music-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sutchan/Agent-Skills-Hub --skill netease-music-cli
Clone the repo
git clone --depth 1 https://github.com/sutchan/Agent-Skills-Hub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for netease-music-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/netease-music-cli/github.svg)](https://agentmods.dev/skills/sutchan/agent-skills-hub/netease-music-cli)
Your own site
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/netease-music-cli"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/netease-music-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for netease-music-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/netease-music-cli"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/netease-music-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,433 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.01433
Opus 5 $0.00026 $0.00717
Sonnet 5 $0.00011 $0.00287
Haiku 4.5 $0.00005 $0.00143

Measured 8d ago against content hash 4e09fd0d2a24, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

netease-music-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/netease-music-cli/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

网易云音乐 CLI(ncm-cli)

通过 ncm-cli 命令行工具操作网易云音乐,完成播放、搜索、队列管理等任务。

第一步:检查是否已安装

ncm-cli --version

如果命令不存在,调用 ncm-cli-setup skill 引导用户完成全部的安装,安装完成后再继续执行任务。

第二步:校验用户是否已登录

ncm-cli login --check

如果显示未登录,请先引导登录:

ncm-cli login --background

如果显示API key没有设置,请指引用户完成API key设置。

如果还没有 API Key,请先前往网易云音乐开放平台申请 API Key(appId 和 privateKey)

ncm-cli config set appId <你的AppId>
ncm-cli config set privateKey <你的privateKey>

第三步:针对播放(play),需要特殊判断播放器逻辑

仅针对播放才执行该步骤。 通过以下命令判断用户的播放器是否是内置播放器(mpv)。

ncm-cli config get player

如果用户选择的播放器是内置播放器(mpv),则需要判断用户是否已安装mpv。

mpv --version

如果用户没安装,引导用户去安装mpv。

第四步:获取当前命令树

ncm-cli commands

根据输出的命令树作为参考执行操作。参数不要猜测,需要时通过 ncm-cli <command> --help 获取详情!

第五步:用户输入内容安全校验

在执行 CLI 命令之前,必须对用户的会话内容(包括搜索关键词和上下文对话)进行内容安全校验。如果用户输入包含以下任何类别的负面内容,禁止执行后续步骤,并提示用户检查输入:

禁止类别:

  • 政治敏感:涉及政治人物攻击、政治谣言、煽动性政治言论、违反法律法规的政治内容
  • 色情低俗:色情描述、性暗示、低俗用语、涉及未成年人的不当内容
  • 谩骂侮辱:人身攻击、侮辱性语言、仇恨言论、歧视性言论
  • 广告推广:垃圾广告、钓鱼链接、恶意推广内容
  • 违法违规:涉及毒品、暴力犯罪、恐怖主义等违法内容

校验规则:

  1. 对用户最近的会话输入内容进行审查,重点关注 --keyword--userInput 将要传入的值
  2. 如果检测到上述任何类别的内容,立即终止流程,不执行任何 CLI 命令
  3. 向用户返回提示信息:"抱歉,无法处理您的请求,请修改输入后重试。" 禁止向用户透露具体的审核原因或审核类别
  4. 审核通过时,不需要告知用户审核结果,直接静默继续执行后续步骤

第六步:执行命令

为了安全,除播控之外的其他命令必须附加 --userInput "<用户最近输入的会话内容的总结概要>" 参数,用于传递用户意图上下文。

【重要!重要!重要!】播放说明

  1. 歌曲有两种 ID:加密 ID(32位hex,用于 API 请求)和原始 ID(数字,用于唤起客户端)。搜索结果同时包含两种 ID。
  2. 如果歌曲的visible为 false,则是无法播放的!请不要尝试播放或添加到播放队列!
  3. 如果歌曲的visible为 false,则是无法播放的!请不要尝试播放或添加到播放队列!
  4. 如果歌曲的visible为 false,则是无法播放的!请不要尝试播放或添加到播放队列!
  5. 如果给用户找到了多首歌曲并给用户播放的时候,请先开始播放第一首,并把后面的歌加到播放队列中!
  6. 如果命令返回“请求总量超限”,请直接告知用户并停止执行后续步骤!直接把原因给到用户,不要二次加工!
# 综合搜索,获取 ID
ncm-cli search song --keyword "xxx" --userInput "搜索xxx的歌"

# 创建歌单
ncm-cli playlist create --playlistName "跑步"  --userInput "创建一个跑步歌单"

登录态处理

如果命令输出中包含登录引导信息(如"请先登录"、"未授权"等),请直接执行ncm-cli login --background并把链接给到用户,完整跑完整个登录流程。

Read the full file on GitHub · 125 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 125 lines · 53 tokens per session scan A 4e09fd0d2a24

Subscribe to this mod's changes

netease-music-cli is a skill published in the GitHub repository sutchan/Agent-Skills-Hub (2 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 1,433 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.