Discover and control Apple media/AirPlay devices (HomePod, Apple TV, AirPlay speakers) from macOS. Use when you want to scan for AirPlay devices, map names→IPs/IDs, pair/connect, and control playback/volume using pyatv (atvremote) and Airfoil.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install apple-media-officialpm或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install apple-media-officialpm⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/apple-media-officialpm/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: apple-media description: Discover and control Apple media/AirPlay devices (HomePod, Apple TV, AirPlay speakers) from macOS. Use when you want to scan for AirPlay devices, map names→IPs/IDs, pair/connect, and control playback/volume using pyatv (atvremote) and Airfoil. ---
Author: Parth Maniar — @officialpm
This skill is a thin workflow wrapper around two tools:
atvremote) for discovering Apple TVs/HomePods and (when supported/paired) remote-control style commands.airfoil skill) for reliable speaker connect/disconnect + volume control across AirPlay speakers (including HomePods).This skill uses pyatv installed via pipx.
Install/repair (pinned to Python 3.12 to avoid Python 3.14 asyncio issues):
pipx install pyatv || pipx upgrade pyatv
pipx reinstall pyatv --python python3.12
Verify:
atvremote --help | head
# Fast scan (5s)
./scripts/scan.sh 5
# Faster scan when you know IP(s)
./scripts/scan-hosts.sh "10.0.0.28,10.0.0.111" 3
# Or JSON output
node ./scripts/scan-json.js 5
You’ll see devices like:
Use Airfoil for speaker control (reliable for HomePods):
# List speakers Airfoil can see
../airfoil/airfoil.sh list
# Connect and set volume
./scripts/connect.sh "Living Room"
./scripts/volume.sh "Living Room" 35
# Disconnect (direct)
../airfoil/airfoil.sh disconnect "Living Room"
First, scan to find the Apple TV name or id, then run commands:
# Examples (device name can be Apple TV or other targets)
atvremote -n "TV" playing
atvremote -n "TV" play_pause
atvremote -n "TV" turn_on
atvremote -n "TV" turn_off
If you get auth/protocol errors, pairing/credentials are needed (device-dependent).
- When pyatv fails for HomePod playback/volume, prefer Airfoil for volume + speaker routing.
atvremote scan is the source of truth for IP/ID discovery.scripts/scan.shRuns atvremote scan with a configurable timeout.
./scripts/scan.sh 5
scripts/scan-json.jsParses atvremote scan output into a compact JSON summary (name, address, model, services).
node ./scripts/scan-json.js安装 Apple Media 后,可以对 AI 说这些话来触发它
Help me get started with Apple Media
Explains what Apple Media does, walks through the setup, and runs a quick demo based on your current project
Use Apple Media to discover and control Apple media/AirPlay devices (HomePod, Apple TV...
Invokes Apple Media with the right parameters and returns the result directly in the conversation
What can I do with Apple Media in my general tools workflow?
Lists the top use cases for Apple Media, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/apple-media-officialpm/ 目录(个人级,所有项目可用),或 .claude/skills/apple-media-officialpm/(项目级)。重启 AI 客户端后,用 /apple-media-officialpm 主动调用,或让 AI 根据上下文自动发现并使用。
Apple Media 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Apple Media 可免费安装使用。请查阅仓库了解许可证信息。
Discover and control Apple media/AirPlay devices (HomePod, Apple TV, AirPlay speakers) from macOS. Use when you want to scan for AirPlay devices, map names→IPs/IDs, pair/connect, and control playback/volume using pyatv (atvremote) and Airfoil.
Apple Media 属于「General Tools」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my general tools tasks using Apple Media
Identifies repetitive steps in your workflow and sets up Apple Media to handle them automatically