music

music is a skill for Claude Code, Codex from wende/macbeth. It costs 16 tokens per session (160 once invoked), scanned A, original, MIT.

A skill for controlling Apple Music on macOS with AppleScript and accessibility actions.

In plain words
What is it for?
Read the currently playing track, search the library and play the first matching result, and click Music controls by their labels.
Why use it?
It lets an agent handle playback and library tasks through direct commands, while still controlling interface elements that do not support scripting.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/wende/macbeth/music
Any agent
npx skills add wende/macbeth --skill music
Clone the repo
git clone --depth 1 https://github.com/wende/macbeth

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 music

README.md
[![agentmods](https://agentmods.dev/badge/skills/wende/macbeth/music.svg)](https://agentmods.dev/skills/wende/macbeth/music)
Your own site
<a href="https://agentmods.dev/skills/wende/macbeth/music"><img src="https://agentmods.dev/badge/skills/wende/macbeth/music.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 160 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00016 $0.00160
Opus 5 $0.00008 $0.00080
Sonnet 5 $0.00003 $0.00032
Haiku 4.5 $0.00002 $0.00016

Measured 3d ago against content hash 2176a97fb2a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

music 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 3d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/click-control-ax.mjs, scripts/now-playing.mjs, scripts/search-and-play.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/Music/SKILL.md · 27 lines

What it actually says

Music Automation

Connect

connect_app({ name: "Music" })

Backends

  • Primary: AppleScript for playback and library commands
  • Supplemental: AX automation for UI controls without direct script support

Runnable Scripts

  • now-playing.mjs — read current track metadata
  • search-and-play.mjs — search library and play first match
  • click-control-ax.mjs — click a UI button by title/pattern

Gotchas

  1. Search-and-play uses the first matching track result.
  2. AX button labels differ across macOS versions/locales.
  3. Destructive library operations are intentionally omitted.
Files

What ships with it

3 files 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. 3d ago First seen · 27 lines · 16 tokens per session scan A 2176a97fb2a6

Subscribe to this mod's changes

music is a skill published in the GitHub repository wende/macbeth (3 stars, last pushed 8d ago), licensed MIT. It adds 16 tokens to every session and 160 once invoked, about $0.0001 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-08-31.

Related

Other skills, from other repositories

b123d-modeling

Use this skill when asked to model, build, or modify a 3D part or assembly with build123d — from a text description, a technical drawing (image or PDF), dimensions in a spec, or an existing STEP/STL file.

pzfreo/build123d-mcp · 0 tokens

b123d-edit

Use this skill when the task is to change an existing build123d model or script: "make this bracket 5 mm taller", "move the holes inward", "add a counterbore", "remove this rib", "make it fit this mating part", or "repair the code so the intended edit remains parametric".

pzfreo/build123d-mcp · 0 tokens

authoring-decorators

Use when the user wants to write a new prompt decorator - either a personal one for their repo or a contribution back to the upstream catalogue. Walks through the JSON schema, the extensions/ convention, how to verify a new decorator end-to-end through the hook, and how to diagnose failures using debug logging and…

synaptiai/prompt-decorators · 72 tokens

b123d-drawing

../../../src/build123dmcp/skills/b123d-drawing/SKILL.md.

pzfreo/build123d-mcp · 0 tokens

hmem-release

Pre-publish checklist for hmem: skills synced, version bumped, tests green, nothing forgotten. Use before npm publish or when the user says 'release', 'publish', 'push a release', or 'neue Version'.

Bumblebiber/hmem · 50 tokens

mlflow-traces

Use when working with MLflow traces: debugging via MCP tools, analyzing performance, logging feedback, writing custom scorers/evaluations, or cleaning up trace data.

Galbaz1/video-research-mcp · 37 tokens