Agent skill

Apple Music

by HybridAIOne in HybridAIOne/hybridclaw

Control Apple Music playback, inspect now playing, start playlists, and automate the macOS Music app.

MITAuto-check passed

Install Apple Music

skills CLI
$ npx skills add HybridAIOne/hybridclaw --skill apple-music -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HybridAIOne/hybridclaw apple-music --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HybridAIOne/hybridclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/apple-music .claude/skills/apple-music && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
apple-music
GitHub stars
159
Token cost
~2.1k tokens
SKILL.md length
1,053 words
Files
3 (incl. scripts)
Skills in repo
72
Repo updated
First seen
Licence
MIT

At a glance

Control Apple Music playback, inspect now playing, start playlists, and automate the macOS Music app.

  • Works in 8 steps: Confirm whether the user wants local Mac… → Distinguish generic transport requests… → For content-specific requests such as an… → …
  • SKILL.md covers Scope, Default Strategy, Core Commands and URL Workflow, plus 3 more sections
  • Runs Shell scripts from its folder; calls osascript and bash; reaches music.apple.com

What it does

Apple Music is an agent skill from HybridAIOne/hybridclaw. Control Apple Music playback, inspect now playing, start playlists, and automate the macOS Music app.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/play-url.sh` and `scripts/search.sh`).

It works with macOS. The repository describes itself as: Enterprise-ready self-hosted AI assistant runtime with sandboxed execution, secure credentials, approvals, and memory. The licence is MIT.

Example prompts

  • “/apple-music”

Requirements

  • A Bash shell

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Confirm whether the user wants local Mac playback control or just information
  2. Distinguish generic transport requests from content-specific requests.
  3. For content-specific requests such as an artist radio, station, playlist,
  4. For generic playback control on macOS, prefer small osascript actions
  5. Do not modify playlists or library state unless the user asks.
  6. If the user already asked you to play, pause, skip, or open something in
  7. When you already have an exact Apple Music URL for playback, prefer the
  8. If you need to resolve a content target from a plain-language query first,

What it can do on your machine

Read from SKILL.md and the folder at commit 8162701. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • osascript
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • music.apple.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Apple Music loads about 2.1k tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 1,053 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from HybridAIOne/hybridclaw at commit 8162701, republished under its MIT licence (© HybridAIOne). 1,053 words, ~2,102 tokens.

Download SKILL.mdSave it as .claude/skills/apple-music/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
apple-music
description
Control Apple Music playback, inspect now playing, start playlists, and automate the macOS Music app.
user-invocable
true
requires.os
darwin

Apple Music

Use this skill for the macOS Music app and Apple Music playback workflows.

Scope

  • play, pause, skip, or resume playback
  • inspect what is currently playing
  • open the Music app or a music URL
  • trigger simple host-side playback actions on the Mac

Default Strategy

  1. Confirm whether the user wants local Mac playback control or just information about Apple Music content.
  2. Distinguish generic transport requests from content-specific requests.
  3. For content-specific requests such as an artist radio, station, playlist, album, or song, resolve a directly playable target first and hand that target to the Music app itself.
  4. For generic playback control on macOS, prefer small osascript actions against the Music app.
  5. Do not modify playlists or library state unless the user asks.
  6. If the user already asked you to play, pause, skip, or open something in Music, do not ask for a separate "yes" just to be safe. Attempt the host-side action and rely on the runtime approval flow if the command needs approval.
  7. When you already have an exact Apple Music URL for playback, prefer the bundled play-url.sh helper instead of inventing a new open or UI-automation sequence.
  8. If you need to resolve a content target from a plain-language query first, use the bundled search.sh helper. Do not invent additional helper names.

Core Commands

Open the app:

bash
open -a Music

Playback controls:

bash
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:

bash
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".

URL Workflow

Open Music directly only for app launch or page-view requests:

bash
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.

Targeted Content Workflow

For content-specific requests like "Play Phil Collins Radio on Apple Music":

  1. Resolve the exact Apple Music target first.
  2. For artist-only requests like "Play Phil Collins", prefer an artist radio or other directly playable station/song/album/playlist URL. Do not use the artist profile page itself as the playback target.
  3. If the user already provided an Apple Music URL, hand that URL to Music with AppleScript open location.
  4. Otherwise, find the best matching Apple Music station, album, playlist, or track URL.
  5. For playback, hand the resolved URL to Music with AppleScript open location, then trigger playback in Music.
  6. Verify playback state before claiming success.
  7. Only fall back to generic 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.sh
  • skills/apple-music/scripts/search.sh

No 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
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
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
bash skills/apple-music/scripts/search.sh --resolve-only "Phil Collins Radio"

Use read-only verification after a station or stream handoff when helpful:

applescript
osascript <<'APPLESCRIPT'
tell application "Music"
  get {player state, current stream title, current stream URL}
end tell
APPLESCRIPT
Show full SKILL.md (416 more words)Show less

Working Rules

  • Confirm before starting playback if the user may already be in a call or focused work session.
  • Do not add a second confirmation step when the user already explicitly asked for playback control; let the runtime approval prompt handle host-side approval if needed.
  • For play ... requests, success means Music started playback, not merely that a page, search results, or the app window opened.
  • For exact URL playback, prefer bash skills/apple-music/scripts/play-url.sh "<resolved-url>" over handwritten inline AppleScript.
  • For plain-language content requests without an exact URL, prefer bash skills/apple-music/scripts/search.sh "<query>" so target resolution and playback stay in one approved action.
  • If Music is not already open, launch the Music app first before sending the playback URL or transport command.
  • For artist-only playback requests, resolve an artist radio or another directly playable item. Do not treat an artist profile page as playable.
  • The helper only counts playback as successful when Music exposes real playback evidence such as a loaded track/stream or an advancing player position, and when the target replaced the previous playback state. missing value is not success.
  • Do not satisfy a content-specific request with activate + play, playpause, or other generic transport controls alone.
  • Do not satisfy a content-specific request with open "https://music.apple.com/...", open "https://music.apple.com/search?term=...", or other browser-first URL opens.
  • Do not pass /artist/... or /search... Apple Music URLs to play-url.sh; those are browse pages, not direct playback targets.
  • Do not invent additional helper filenames under skills/apple-music/scripts/. If you have not read or listed the exact script path, do not call it.
  • Do not degrade an exact station or playlist request into a generic search page or an artist query and then claim success.
  • Prefer read-only now-playing queries before issuing playback changes.
  • Keep actions small and reversible: play or pause first, deeper library edits only on request.
  • If the user wants durable automations, suggest a Shortcuts or scheduled host workflow instead of a one-off manual command.

Pitfalls

  • Do not assume Apple Music streaming is available if the Music app is only used for local media on that Mac.
  • Do not change library organization, ratings, or playlists without explicit confirmation.
  • Do not use plain shell open on a https://music.apple.com/... URL as the playback step. That is a browser open, not a deterministic Music playback action.
  • Do not use an Apple Music artist profile page as if it were a playable URL.
  • Do not treat "play artist radio/station/playlist/album/song" as equivalent to "resume whatever is already loaded in Music."
  • Do not pretend host playback control will work on non-macOS environments.

© HybridAIOne, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in skills/apple-music of HybridAIOne/hybridclaw.

  • SKILL.md
  • scripts/play-url.sh
  • scripts/search.sh

Open the folder on GitHubat commit 8162701

Compare with similar skills

Apple Music next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Apple Music compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Apple Music this skillHybridAIOne/hybridclaw159—~2.1kAutomated safety check: PassMIT
Site ArchitectureAvdLee/RocketSimApp80611 repos~3.3kAutomated safety check: PassCustom licence
Engine Whats Newflutter/flutter180k—~978Automated safety check: PassBSD-3-Clause
macOS Spm App PackagingDimillian/Skills4k5 repos~1.2kAutomated safety check: PassMIT
Openclaw Live Updateropenclaw/openclaw392k—~3.7kAutomated safety check: PassMIT
Orca iOS Simulator Controlstablyai/orca89k1 repos~584Automated safety check: PassApache-2.0

Similar skills

  • Site Architecture

    AvdLee/RocketSimApp

    When the user wants to plan, map, or restructure their website's page hierarchy, navigation, URL structure, or internal linking.

    806 GitHub starsUsed in 11 repos~3.3k tokens
    Marketing & SEOAuto-check passed
  • Engine Whats New

    flutter/flutter

    Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).

    180k GitHub stars~978 tokensUpdated today
    MobileAuto-check passed
  • macOS Spm App Packaging

    Dimillian/Skills

    Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project.

    4k GitHub starsUsed in 5 repos~1.2k tokens
    MobileAuto-check passed
  • Openclaw Live Updater

    openclaw/openclaw

    Maintain the canonical live OpenClaw main checkout, macOS LaunchAgent-managed Gateway, local macOS app, exact-head main CI, and recurring full release validation.

    392k GitHub stars~3.7k tokensUpdated today
    DevOps & CloudAuto-check passed
  • iOS Simulator control from inside Orca, with the live device view in Orca's emulator pane. Use when driving a booted Apple Simulator on macOS: taps, gestures…

    89k GitHub starsUsed in 1 repo~584 tokens
    MobileAuto-check passed
  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    70k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed

More from HybridAIOne/hybridclaw

All 72 skills in this repo
  • Hermes3000 Writing

    HybridAIOne/hybridclaw

    Use Hermes3000 to plan, draft, revise, save, check consistency, and export long-form manuscripts through the Hermes3000 AI writing portal API.

    159 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Manim Video

    HybridAIOne/hybridclaw

    Plan, script, render, and stitch Manim Community Edition videos in Python.

    159 GitHub stars~4.7k tokensUpdated today
    Auto-check: notes
  • Skill Creator

    HybridAIOne/hybridclaw

    Create and update SKILL.md-based skills with strong trigger metadata, lean docs, and reliable init, validate, package, and publish workflows.

    159 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • XLSX

    HybridAIOne/hybridclaw

    Create, edit, inspect, and analyze .xlsx spreadsheets and Excel workbooks.

    159 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Excalidraw

    HybridAIOne/hybridclaw

    Create and revise editable .excalidraw diagrams as Excalidraw JSON for architecture diagrams, flowcharts, sequence diagrams, concept maps, and other hand-drawn explainers.

    159 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Google Ads

    HybridAIOne/hybridclaw

    Manage Google Ads accounts with safe GAQL reporting, campaign planning, guarded mutations, and gateway-proxied REST API calls.

    159 GitHub stars~4k tokensUpdated today
    Auto-check passed

Works with

Questions about Apple Music

What does Apple Music do?

Control Apple Music playback, inspect now playing, start playlists, and automate the macOS Music app. Apple Music is an agent skill from HybridAIOne/hybridclaw. Control Apple Music playback, inspect now playing, start playlists, and automate the macOS Music app.

How do I install Apple Music in Claude Code?

Run `npx skills add HybridAIOne/hybridclaw --skill apple-music -a claude-code`. Or copy the skill folder (skills/apple-music in HybridAIOne/hybridclaw) into .claude/skills/apple-music in your project. Claude Code loads it when a task matches its description.

How do I install Apple Music in Codex?

Run `npx skills add HybridAIOne/hybridclaw --skill apple-music -a codex`. Or copy the skill folder (skills/apple-music in HybridAIOne/hybridclaw) into .agents/skills/apple-music in your project. Codex loads it when a task matches its description.

Can I use Apple Music in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HybridAIOne/hybridclaw --skill apple-music -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/apple-music, .gemini/skills/apple-music, .github/skills/apple-music and .opencode/skills/apple-music in your project.

What does Apple Music need to run?

Going by SKILL.md and its folder, Apple Music needs a shell for the scripts in its folder and the command-line tools its instructions call (osascript and bash). Our summary lists: A Bash shell.

Does Apple Music access the network?

SKILL.md names 1 domain. In commands or code: music.apple.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Apple Music safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Apple Music use?

Apple Music is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Apple Music use?

About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Apple Music?

Skills that share tags, products or a category with Apple Music: Site Architecture (AvdLee/RocketSimApp, 806 stars), Engine Whats New (flutter/flutter, 180k stars), macOS Spm App Packaging (Dimillian/Skills, 4k stars) and Openclaw Live Updater (openclaw/openclaw, 392k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Apple Music?

HybridAIOne (a GitHub organization) maintains it in HybridAIOne/hybridclaw, which has 159 GitHub stars. The repository holds 72 skills in this directory. The repository was last updated on October 9, 2026.

Source: HybridAIOne/hybridclaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.