agentleFS
trac3r00trac3r00/core-skills/skills/apple-tv/SKILL.md

apple-tv

Skill0 starsChanged 10 days agoMITView on GitHub

Read and control the macOS TV app via AppleScript: library search, now playing, playback. Use for TV.app on this Mac. Not for Spotify (spotify).

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is 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.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read --json status before any change.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

TV app

scripts/apple_tv.py uses TV.app's AppleScript dictionary only: no System Events keystrokes, clicks, or browser automation. Run it from this skill's directory.

python3 scripts/apple_tv.py --json status
python3 scripts/apple_tv.py search "The Big Short"      # local library only, not Apple's catalog
python3 scripts/apple_tv.py play-item "The Big Short"   # needs one exact library name match
python3 scripts/apple_tv.py play                         # also: pause, toggle, next, previous
python3 scripts/apple_tv.py volume 35                   # 0-100, only during playback
  • status returns state, volume, and, when not stopped, name, show, album, duration and position of the current track.
  • play-item fails with exit 1 if no item or more than one item has that exact name.
  • volume fails with exit 1 when playback is stopped (TV.app would defer the setting) or when TV.app keeps a different level.
  • --json works before or after the command.

Procedure

  1. Read --json status before any change.
  2. Change playback or volume only on request. Done when the command exits 0; confirm with a second --json status.
  3. TV.app may launch to answer AppleScript. After a temporary test, restore the prior playback and volume, and do not quit TV.app if another session was using it.

Boundaries and exit codes

  • This controls TV.app on this Mac, not an Apple TV set-top box.
  • For clicks, typing, or window control this helper does not cover, use the opencua skill (OpenCUA, formerly apple-cua; CLI opencua). Never write an ad-hoc input script or use OmO's native computer-use.
  • 0 success, 1 app-level failure, 2 invalid usage, non-macOS, or missing Automation permission (AppleScript error -1743). Grant TV Automation permission to the process running the script.

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.