← 返回 Skills 市场
skaravind

Apple Music Play

作者 S K Aravind · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ 安全检测通过
124
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install apple-music-play
功能描述
Play Apple Music songs on macOS using clawtunes with keyboard navigation to stream catalog tracks via the Music app and local library.
使用说明 (SKILL.md)

Clawtunes Play

Use clawtunes as the first choice for Apple Music control on this Mac.

Workflow

  1. For library items, try direct playback first.
  2. For songs likely not in the library, search the Apple Music catalog and open the selected result in Music.
  3. For catalog playback, prefer the wrapper script that tries the best-known keyboard sequence automatically:
    • Tab + Tab + Enter
    • fallback: Tab + Enter
    • fallback: Shift-Tab + Enter
  4. Check whether playback actually changed to the requested song.
  5. If playback did not switch, say so plainly.

Commands

  • Direct library-style play:
    • clawtunes_play --song "\x3Csong>"
  • Catalog play wrapper:
    • catalog_play "\x3Cquery>"
  • Status only:
    • clawtunes_play --status
  • Experimental step-by-step catalog workflow:
    • catalog_play_experiment "\x3Cquery>" --index 1 --strategy tab-tab-enter

Requirements

This skill assumes these local tools are available on macOS:

  • clawtunes
  • python3
  • osascript
  • open

It also needs macOS Accessibility / Automation permission so System Events can send keyboard input to Music.

Install / Use

  • Keep repo in skills/clawtunes-play
  • Commands: clawtunes_play, catalog_play, catalog_play_experiment
  • For catalog playback, use the wrapper script in scripts/catalog_play_wrapper.sh

Notes

  • clawtunes play song targets library playback.
  • clawtunes catalog search opens the streaming result in Music, but Music may not autoplay unless the UI focus lands correctly.
  • The current best-known workaround is keyboard navigation after opening the result.
  • This is macOS UI-state dependent; it is usable, but not a guaranteed Apple primitive.
安全使用建议
This skill appears to do what it says: it uses clawtunes, the Apple iTunes Search API, opens music:// URLs, and automates the Music app with osascript/System Events. Before installing, ensure you: (1) trust the source of the skill and the clawtunes binary (this code executes local commands), (2) are comfortable granting macOS Accessibility/Automation permission (this allows sending keystrokes to the Music app and could interact with other UI if focus changes), (3) verify network access to itunes.apple.com is acceptable (the scripts query the iTunes Search API), and (4) review the included scripts locally (they are small, readable Python scripts) if you have concerns. If you do not trust the repository owner or clawtunes, don’t grant Accessibility permissions or install/run the scripts.
功能分析
Type: OpenClaw Skill Name: apple-music-play Version: 2.0.0 The skill provides macOS Apple Music control, specifically implementing a workaround for playing streaming catalog tracks using AppleScript and System Events to automate UI keystrokes (Tab, Enter). The scripts (catalog_play.py, playlist_create.py) interact with the legitimate iTunes Search API (itunes.apple.com) and local tools like clawtunes and osascript. The behavior is transparently documented in SKILL.md and INSTALL.md, and the code uses safe subprocess execution patterns to prevent shell injection.
能力评估
Purpose & Capability
Name/description (Apple Music playback via clawtunes and UI automation) align with what the files do: use clawtunes for library/catalog actions, call the iTunes Search API, open music:// URLs, and drive Music via osascript/System Events.
Instruction Scope
SKILL.md explicitly instructs use of clawtunes, python3, osascript, and open and documents Accessibility/Automation permission. The runtime scripts do UI automation (send keystrokes) and call the Apple iTunes Search endpoint — these are within the claimed scope but require macOS Accessibility permission and can mis-target input if the UI focus changes.
Install Mechanism
No install spec; this is instruction-only with included scripts. Nothing downloads or extracts remote archives or installs third-party packages during install, so install risk is low.
Credentials
The skill requests no environment variables or credentials. It does need local tools (clawtunes, python3, osascript, open) and macOS Accessibility/Automation permission — these are proportional to its UI-automation purpose.
Persistence & Privilege
always is false, and the skill does not claim to modify other skills or global agent settings. Autonomous invocation is allowed by default but not coupled with elevated privileges or broad credential access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install apple-music-play
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /apple-music-play 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
Rename for discoverability; keep Mac Apple Music + catalog play support
元数据
Slug apple-music-play
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Apple Music Play 是什么?

Play Apple Music songs on macOS using clawtunes with keyboard navigation to stream catalog tracks via the Music app and local library. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 124 次。

如何安装 Apple Music Play?

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

Apple Music Play 是免费的吗?

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

Apple Music Play 支持哪些平台?

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

谁开发了 Apple Music Play?

由 S K Aravind(@skaravind)开发并维护,当前版本 v2.0.0。

💬 留言讨论