qq-music-mac-control

qq-music-mac-control: Controls playback functions of the macOS QQ Music client, such as play, pause, next track, and shuffle.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "qq-music-mac-control" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-48efd077ac0818b07cb40544edbcb1efc327ca3905e63d1f658e7b4f5cb18167. Verify the upstream source and version against https://skillhub.cn/skills/user_4f6c1333/qq-music-mac-control before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

qq-music-mac-control: Controls playback functions of the macOS QQ Music client, such as play, pause, next track, and shuffle.

0 Downloads

Introduction source: third_party · user_4f6c1333 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: qq-music-control
slug: qq-music-mac-control
displayName: QQ音乐控制
version: 1.0.0
description: 控制 macOS QQ 音乐客户端播放、暂停、下一首、随机播放等
category: entertainment
platforms:
  - WorkBuddy
  - Claude Code
  - Cursor
license: MIT-0
author: WorkBuddy User
homepage: https://github.com/workbuddy/qq-music-control

trigger:

  • 播放音乐
  • 放首歌
  • 下一首
  • 上一首
  • 随机播放
  • 暂停音乐
  • QQ音乐
  • 音量
  • play music
  • next song
  • shuffle

QQ 音乐控制 Skill

通过 macOS MediaRemote 私有框架控制 QQ 音乐客户端,无需 Accessibility 权限。

支持的命令

用户说的 执行命令 说明
"播放音乐" / "放首歌" / "暂停" play 切换播放/暂停
"下一首" / "换一首" next 跳到下一首
"上一首" prev 回到上一首
"随机播放一首" / "随便来首歌" random 随机跳转 1-5 次后播放
"音量大一点" volume-up 增加音量
"音量小一点" volume-down 减小音量
"QQ音乐状态" / "QQ音乐在运行吗" status 检查运行状态

执行方式

所有命令通过 Python 脚本执行。脚本仅使用 Python 标准库(ctypes, subprocess),任何 Python 3 均可运行:

# 优先使用系统 Python(任何 Python 3 都行)
python3 ~/.workbuddy/skills/qq-music-control/scripts/qq_music.py <command>

# 或使用 WorkBuddy 管理 Python
~/.workbuddy/binaries/python/versions/3.13.12/bin/python3 ~/.workbuddy/skills/qq-music-control/scripts/qq_music.py <command>

命令列表:play start pause next prev random volume-up volume-down status launch

技术原理

  • 控制方式:通过 MediaRemote.framework(macOS 私有框架)的 MRMediaRemoteSendCommand 函数发送媒体控制命令
  • 命令常量:Play=0, Pause=1, Toggle=2, Stop=3, Next=4, Previous=5, VolUp=6, VolDown=7
  • 优势:不需要 Accessibility 权限、不需要 AppleScript 自动化权限,系统级媒体控制
  • 作用范围:QQ 音乐作为当前 "Now Playing" 应用接收命令
  • 前提条件:QQ 音乐已安装(/Applications/QQMusic.app),首次使用会自动启动
  • 无需安装任何依赖:仅使用 ctypes(Python 内置)调用系统框架

多机器使用

此 Skill 安装在 ~/.workbuddy/skills/ 用户级别目录,所有项目通用。 在多台 Mac 上各自安装一份,每台机器控制本机的 QQ 音乐客户端。 只需确保:

  1. 每台 Mac 都安装了 QQ 音乐(/Applications/QQMusic.app)
  2. 每台 Mac 都有 Python 3(macOS 自带或通过 brew/miniforge 安装)

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value65/100

Highlights

  • 提供 macOS QQ 音乐客户端的完整播放控制功能,包括播放/暂停、切歌、音量调节、随机播放等
  • 技术实现巧妙,利用 macOS MediaRemote 私有框架,无需 Accessibility 权限,用户体验佳
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含中英文多种自然语言变体,边界清晰,用户易于触发
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Minor

    文档结构良好但未包含 When to Use 章节和端到端完整调用示例

    Recommendation: 建议补充 When to Use 说明和具体的命令调用示例,帮助用户快速上手

Highlights

  • 文档结构清晰,frontmatter 完整,技术原理说明详细,命令表格直观易懂
Execution Reliability70/100

Areas to improve

  • 异常处理机制未明确说明 Reported severity: Minor

    未说明 QQ 音乐未安装、未运行或命令执行失败时的异常处理机制

    Recommendation: 建议补充异常处理说明,如应用未安装时的提示、命令执行失败的回退机制等

Highlights

  • 使用 Python 标准库实现,无需额外依赖,技术方案稳定可靠
  • 命令常量定义明确,执行方式清晰,支持多 Python 环境
Evidence Verifiability (mean of the first four)75/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.