用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/HybridAIOne/hybridclaw --skill apple-music命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | apple-music |
| description | Control Apple Music playback, inspect now playing, start playlists, and automate the macOS Music app. |
| user-invocable | true |
| metadata | {"hybridclaw":{"category":"apple","short_description":"Apple Music playback.","tags":["apple","music","media","macos"]}} |
Use this skill for the macOS Music app and Apple Music playback workflows.
osascript actions
against the Music app.play-url.sh helper instead of inventing a new open or
UI-automation sequence.search.sh helper. Do not invent additional helper names.Open the app:
open -a Music
Playback controls:
osascript -e 'tell application "Music" to playpause'
osascript -e 'tell application "Music" to pause'
osascript -e 'tell application "Music" to next track'
osascript -e 'tell application "Music" to previous track'
Now playing:
osascript -e 'tell application "Music" to get player state'
osascript -e 'tell application "Music" to if player state is playing then get {name of current track, artist of current track, album of current track}'
Use these only for generic transport actions like "play", "pause", "resume", "next", or "what is playing". Do not use them to satisfy a request for specific content such as "Play Phil Collins Radio".
Open Music directly only for app launch or page-view requests:
open -a Music
open "music://"
Use this when the user asked to open Music or show a page. Do not use plain
shell open "https://music.apple.com/..." for a playback request, because that
opens the default browser instead of issuing an in-app playback command.
For content-specific requests like "Play Phil Collins Radio on Apple Music":
open location.open location, then trigger playback in Music.play or playpause if the user asked for
generic playback and there is no content target to resolve.Shipped helpers in this skill:
skills/apple-music/scripts/play-url.shskills/apple-music/scripts/search.shNo other helper filenames are shipped here. Do not guess names like
lookup.sh, radio.sh, or any other sibling script that you have not
actually read or listed.
Preferred playback helper:
bash skills/apple-music/scripts/play-url.sh "https://music.apple.com/us/station/bruce-springsteen/ra.1691955673"
The helper launches Music first when the app is not already running, opens the
resolved URL inside Music, nudges playback once, and prints verification
fields. For music.apple.com links it rewrites the handoff to a native
music://... deep link before asking Music to open it. Treat exit code 0 as
success. If it exits nonzero or prints ok=false, playback did not start
cleanly and you should not claim that music is playing. The helper rejects
Apple Music browse pages such as /artist/... or /search... because those
are not direct playback targets.
Preferred query-resolution helper when you do not already have a directly playable URL:
bash skills/apple-music/scripts/search.sh "Phil Collins"
The search helper resolves a best-effort playable Apple Music target from the
query and, by default, immediately hands that URL to play-url.sh so playback
starts within the same approved action. Use --resolve-only only when you need
the resolved URL without playback:
bash skills/apple-music/scripts/search.sh --resolve-only "Phil Collins Radio"
Use read-only verification after a station or stream handoff when helpful:
osascript <<'APPLESCRIPT'
tell application "Music"
get {player state, current stream title, current stream URL}
end tell
APPLESCRIPT
play ... requests, success means Music started playback, not merely that
a page, search results, or the app window opened.bash skills/apple-music/scripts/play-url.sh "<resolved-url>" over handwritten inline AppleScript.bash skills/apple-music/scripts/search.sh "<query>" so target resolution and
playback stay in one approved action.missing value is not success.activate + play,
playpause, or other generic transport controls alone.open "https://music.apple.com/...",
open "https://music.apple.com/search?term=...", or other browser-first URL
opens./artist/... or /search... Apple Music URLs to
play-url.sh; those are browse pages, not direct playback targets.skills/apple-music/scripts/.
If you have not read or listed the exact script path, do not call it.open on a https://music.apple.com/... URL as the
playback step. That is a browser open, not a deterministic Music playback
action.