agentleFS
m0nkmasterm0nkmaster/agent-skills/apple-find/SKILL.md

apple-find

Skill2 starsChanged 8 months agoMITView on GitHub

Query Apple Find (Find My) network to locate Apple devices, check their status, and get location information. Use when user mentions Find My, Find My iPhone, Find My Mac, tracking Apple devices, or locating lost Apple devices.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    What stays local: All credentials should be stored in environment variables, never hardcoded.

    line 149
  2. Distinctive:

    App-specific passwords: Always use app-specific passwords, never your main Apple ID password.

    line 150
  3. Distinctive:

    Verify your Apple ID and password are correct

    line 156
  4. Distinctive:

    If 2FA is enabled, use an app-specific password

    line 157
  5. Distinctive:

    Check that Find My is enabled on your device

    line 158
  6. Distinctive:

    Check the device name matches exactly (case-sensitive)

    line 163

≈ “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

Apple Find

Query the Apple Find My network to locate Apple devices associated with your iCloud account. This skill uses the findmy npm package to interact with Apple's Find My service.

Important: This skill uses community-maintained libraries that interact with Apple's unofficial Find My API. Use responsibly and never hardcode credentials.

Quick Start

# Install dependencies
cd /path/to/apple-find && npm install

# List devices
node index.js list

# Get location of a specific device
node index.js location "iPhone"

# Get status of all devices
node index.js status

Required Environment Variables

VariableDescription
APPLE_IDYour Apple ID email (iCloud email)
APPLE_PASSWORDYour Apple ID password or app-specific password

For 2FA accounts: Generate an app-specific password at appleid.apple.com and use that as APPLE_PASSWORD.

Set these in your shell or in OpenClaw's skill config (~/.openclaw/openclaw.json under skills.entries.apple-find.env).

CLI Commands

list - List all devices

node index.js list

Returns a list of all devices associated with your iCloud account, including:

  • Device name (as set in Find My)
  • Device model
  • Device ID
  • Online/offline status

location [deviceName] - Get device location

# Location of specific device
node index.js location "iPhone"

# Location of all devices
node index.js location --all

Returns:

  • Latitude and longitude
  • Timestamp of last location update
  • Address (if available)
  • Accuracy

status - Full device status

node index.js status
node index.js status "iPhone"

Returns detailed status including:

  • Battery level
  • Online/offline status
  • Last seen timestamp
  • Location coordinates
  • Device model

play-sound [deviceName] - Play sound on device

node index.js play-sound "iPhone"

Plays a sound on the specified device (requires device to be online).

lost-mode [deviceName] - Enable Lost Mode

node index.js lost-mode "iPhone" --phone "1234567890"

Enables Lost Mode and optionally sets a phone number to display on the device.

When to use this skill

  • User asks to locate an Apple device (iPhone, iPad, Mac, AirPods, Apple Watch)
  • User wants to check if a device is online or offline
  • User needs to find the last known location of a lost device
  • User wants to play a sound on a device to locate it
  • User mentions "Find My", "Find My iPhone", or "Find My Mac"

Authentication

The skill uses the findmy npm package which communicates with Apple's Find My API. First-time login may require 2FA if enabled on the Apple ID.

Generating an App-Specific Password

  1. Go to https://appleid.apple.com
  2. Sign in with your Apple ID
  3. Navigate to "Sign-In and Security" → "App-Specific Passwords"
  4. Generate a new password and use it as APPLE_PASSWORD

Architecture

apple-find/
├── SKILL.md           # This file
├── index.js           # Main entry point with CLI
├── package.json       # Dependencies
├── lib/
│   └── findmy.js      # Find My API wrapper
└── tests/
    └── findmy.test.js # Unit tests

External Endpoints

This skill makes requests to Apple's Find My service. No data is sent to third-party servers.

PurposeEndpointData sent
Authenticationicloud.comApple ID credentials
Find My APIfmip.icloud.comDevice location requests
Location dataApple MapsReverse geocoding (optional)

Security and Privacy

  • What leaves the machine: Apple ID credentials and device location queries are sent to Apple's servers.
  • What stays local: All credentials should be stored in environment variables, never hardcoded.
  • App-specific passwords: Always use app-specific passwords, never your main Apple ID password.
  • Autonomous invocation: The agent may invoke this skill when the user asks about device locations or Find My.

Troubleshooting

"Authentication failed"

  • Verify your Apple ID and password are correct
  • If 2FA is enabled, use an app-specific password
  • Check that Find My is enabled on your device

"Device not found"

  • The device may be offline (no connection for 7+ days)
  • The device may not have Find My enabled
  • Check the device name matches exactly (case-sensitive)

"Location unavailable"

  • Device is offline or in AirPlane Mode
  • Location Services disabled on device
  • Device has location sharing turned off

References

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.