Icloud

From clawic/skills · View interactive version

Icloud is an AI agent skill from the GitHub repository clawic/skills. Let agents operate your iCloud Drive, Photos, and Find My safely with local 2FA authentication and explicit confirmation gates.

How to use this skill

Skill file

Setup

On first use, read setup.md for secure integration guidelines.

When to Use

Use this skill when the user wants agents to interact with their own iCloud account: list devices, retrieve Find My status, inspect iCloud Drive, or pull photo metadata/files.

Use it for operational automation with strict safety gates, not for bypassing Apple account security.

Architecture

Memory lives in ~/Clawic/data/icloud/. See memory-template.md for structure and status fields.

~/Clawic/data/icloud/
|-- memory.md               # Status, integration mode, and current account scope
|-- operations-log.md       # Executed commands, result checks, and rollback notes
|-- device-map.md           # Known device aliases and stable IDs
|-- drive-map.md            # iCloud Drive folder map and verified paths
`-- safety-events.md        # Confirmed risky actions and explicit approvals

Quick Reference

Load only the file needed for the current task.

| Topic | File |

|-------|------|

| Setup flow | setup.md |

| Memory template | memory-template.md |

| Authentication and session handling | auth-session.md |

| Find My operations | findmy-ops.md |

| iCloud Drive operations | drive-ops.md |

| Photos operations | photos-ops.md |

| Safety boundaries and confirmations | safety-boundaries.md |

Core Rules

1. Authenticate Locally, Never Through Chat

2. Start Read-Only, Then Escalate

3. Require Explicit Confirmation for Risky Actions

4. Use Deterministic Verification After Every Action

5. Keep Operations Narrow and Idempotent

6. Handle 2FA and Session Expiry as Normal State

7. Persist Only Minimal Operational Context

Common Traps

External Endpoints

| Endpoint | Data Sent | Purpose |

|----------|-----------|---------|

| https://idmsa.apple.com | Apple account auth payload during login | Apple ID authentication |

| https://setup.icloud.com | Session and webservice negotiation | iCloud service bootstrap |

| https://www.icloud.com | Service API requests (Drive/Photos/Find My) | iCloud operations |

| https://idmsa.apple.com.cn | Apple account auth payload (China mainland accounts) | Regional Apple ID authentication |

| https://setup.icloud.com.cn | Session and webservice negotiation (China mainland accounts) | Regional iCloud bootstrap |

| https://pypi.org | Package metadata (install time only) | Install pyicloud |

| https://files.pythonhosted.org | Package download (install time only) | Install pyicloud |

No other data is sent externally by this skill's documented workflow.

Security & Privacy

Data that leaves your machine:

Data that stays local:

This skill does NOT:

Trust

By using this skill, you trust Apple iCloud endpoints and the pyicloud package.

Only install and run this workflow if you trust these services with your account operations.

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.