now
Skill4 starsChanged 5 months agoMITView on GitHub
Show what's currently playing on this Mac (any app — Spotify, Apple Music, browsers). Use when the user asks what song/track/music is playing, who the artist is, or wants playback status.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
If duration is absent (live stream): the bar comes back empty.
- Very specific: line 21
If the JSON is null: tell the user nothing is playing right now.
- Very specific: line 22
If the JSON contains "degraded": true or a stderr hint appeared: add one short note that the plugin is in fallback mode and /media:doctor …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Current system-wide now-playing state (JSON):
!"${CLAUDE_PLUGIN_ROOT}/scripts/media.sh" now
The progress bar, already rendered (empty when the bar is switched off, when nothing is playing, or when the track has no duration):
!"${CLAUDE_PLUGIN_ROOT}/scripts/media.sh" bar
Present the state to the user exactly in this format, as plain markdown lines — NOT inside a code block, so the bold/italic styling renders:
- Line 1:
▶︎ **<title>** — *<artist>* · <appName>— use▶︎whenplayingis true,⏸when false; title bold, artist italic. IfappNameis missing, usebundleIdentifier. - Line 2 (only when the bar above is non-empty): the bar copied verbatim, then two spaces and
**m:ss** / m:ss(elapsed time bold). Never redraw the bar, re-space it, change its width, or substitute its characters —media.sh baris the same builder that draws the statusline segment, and copying it byte-for-byte is what keeps the two surfaces agreeing. Most presets cannot be reproduced by hand anyway: they are computed waveforms whose glyphs depend on the playback position. - The elapsed
m:ssis ALWAYSelapsedTimeNow(useelapsedTimeonly whenelapsedTimeNowis absent) —elapsedTimeis the app's last snapshot and can lag minutes behind; the statusline segment showselapsedTimeNow, so anything else here would contradict it. The totalm:ssisduration. - If
durationis absent (live stream): the bar comes back empty; show**m:ss** / LIVE(same elapsed rule). - If the JSON is
null: tell the user nothing is playing right now. - If the JSON contains
"degraded": trueor a stderr hint appeared: add one short note that the plugin is in fallback mode and/media:doctorhas details.
Example (the markdown you output):
▶︎ **Neon Horizon** — *Midnight Arcade* · Firefox
━━━━━━━━━━━───────── **2:07** / 3:48Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

