通过 iCloud 查询家庭设备的“查找我的位置”和电池状态。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install icloud-findmy或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install icloud-findmy⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/icloud-findmy/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: icloud-findmy description: Query Find My locations and battery status for family devices via iCloud. homepage: https://github.com/picklepete/pyicloud metadata: {"clawdbot":{"emoji":"📍","requires":{"bins":["icloud"]},"install":[{"id":"pipx","kind":"shell","command":"brew install pipx && pipx install pyicloud","bins":["icloud"],"label":"Install PyiCloud (pipx)"}]}} ---
Access Find My device locations and battery status via the iCloud CLI (pyicloud).
brew install pipx
pipx install pyicloud
Ask the user for their Apple ID, then run:
icloud --username [email protected] --with-family --list
They'll need to enter their password and complete 2FA. The session will be saved and lasts 1-2 months.
Add the Apple ID to your TOOLS.md or workspace config so you remember it for future queries:
## iCloud Find My
Apple ID: [email protected]
icloud --username APPLE_ID --with-family --list
Output format:
------------------------------
Name - Liam's iPhone
Display Name - iPhone 15 Pro
Location - {'latitude': 52.248, 'longitude': 0.761, 'timeStamp': 1767810759054, ...}
Battery Level - 0.72
Battery Status - NotCharging
Device Class - iPhone
------------------------------
Parsing tips:
------------------------------eval() or parse with regex)latitude, longitude, timeStamp (milliseconds), horizontalAccuracyFind a specific device by grepping the output:
icloud --username APPLE_ID --with-family --list | grep -A 10 "iPhone"
Extract and format location data:
icloud --username APPLE_ID --with-family --list | \
grep -A 10 "Device Name" | \
grep "Location" | \
sed "s/Location.*- //"
Then parse the Python dict string with Python or extract coordinates with regex.
icloud --username APPLE_ID --with-family --list | \
grep -A 10 "Device Name" | \
grep "Battery Level"
Device names come from iCloud and may include:
Use case-insensitive matching and normalize apostrophes if needed.
Check battery before going out:
# Get battery for specific device
icloud --username ID --with-family --list | \
grep -B 2 -A 5 "iPhone" | \
grep "Battery Level"
Get current location:
# Extract location dict and parse coordinates
icloud --username ID --with-family --list | \
grep -A 10 "iPhone" | \
grep "Location" | \
sed "s/.*- //" | \
python3 -c "import sys; loc = eval(sys.stdin.read()); print(f\"{loc['latitude']}, {loc['longitude']}\")"
Check if device is charging:
icloud --username ID --with-family --list | \
grep -A 10 "iPhone" | \
grep "Battery Status"
Authentication errors:
No location available:
Device not found:
--list安装 iCloud 查找我的 后,可以对 AI 说这些话来触发它
Help me get started with iCloud Find My
Explains what iCloud Find My does, walks through the setup, and runs a quick demo based on your current project
Use iCloud Find My to query Find My locations and battery status for family devices via i...
Invokes iCloud Find My with the right parameters and returns the result directly in the conversation
What can I do with iCloud Find My in my data & analytics workflow?
Lists the top use cases for iCloud Find My, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/icloud-findmy/ 目录(个人级,所有项目可用),或 .claude/skills/icloud-findmy/(项目级)。重启 AI 客户端后,用 /icloud-findmy 主动调用,或让 AI 根据上下文自动发现并使用。
iCloud 查找我的 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
iCloud 查找我的 可免费安装使用。请查阅仓库了解许可证信息。
通过 iCloud 查询家庭设备的“查找我的位置”和电池状态。
iCloud 查找我的 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using iCloud Find My
Identifies repetitive steps in your workflow and sets up iCloud Find My to handle them automatically