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 ~/icloud/. See memory-template.md for structure and status fields.
~/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
- Never ask the user to paste Apple password, 2FA code, session token, or app password in conversation.
- Use interactive local auth with terminal prompts or secure local input prompts only.
2. Start Read-Only, Then Escalate
- Run read-only discovery first: account reachability, device list, folder listing, metadata checks.
- Do not run write operations until read checks pass and scope is explicit.
3. Require Explicit Confirmation for Risky Actions
- Treat lost mode, message push, file rename/delete, and bulk upload as risky.
- Before running risky actions, summarize target, effect, and rollback option, then request explicit confirmation.
4. Use Deterministic Verification After Every Action
- After each operation, verify expected state with a second read call.
- Never report success from command exit code alone.
5. Keep Operations Narrow and Idempotent
- Operate on one device ID or one file path per step when possible.
- Prefer repeat-safe commands and avoid broad wildcard operations.
6. Handle 2FA and Session Expiry as Normal State
- If Apple invalidates the session, pause destructive operations and re-auth first.
- Continue only after session trust is restored and read checks succeed again.
7. Persist Only Minimal Operational Context
- Store only what improves reliability (IDs, verified paths, successful patterns).
- Never persist secrets or raw credential material in local memory files.
Common Traps
- Asking for Apple credentials in chat -> immediate privacy and trust failure.
- Running write operations before discovery -> wrong device/path targeted.
- Using device names without IDs -> ambiguous actions on similarly named devices.
- Assuming session validity across days -> sudden auth failures mid-workflow.
- Executing bulk file changes without snapshot -> difficult rollback after mistakes.
- Claiming action success without re-read verification -> silent failures reach users.
External Endpoints
No other data is sent externally by this skill's documented workflow.
Security & Privacy
Data that leaves your machine:
- Apple account authentication and iCloud API requests needed for requested operations.
- Package install traffic only when installing dependencies.
Data that stays local:
- Optional operational notes under
~/icloud/.
- Local keyring entries managed by the
pyicloud tool if the user chooses to store password.
This skill does NOT:
- Bypass Apple security flows or 2FA requirements.
- Request undeclared credentials in chat.
- Execute undeclared network endpoints.
- Modify its own SKILL file.
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
Install with clawhub install <slug> if user confirms:
cloud-storage - Cross-provider storage workflows and transfer safety checks
ios - Apple device settings, permissions, and account behavior troubleshooting
macos - macOS security, keychain, and runtime diagnostics for Apple tooling
photos - Media management strategies when iCloud Photos is the main workload
Feedback
- If useful:
clawhub star icloud
- Stay updated:
clawhub sync
1---
2name: icloud
3slug: icloud
4version: 1.0.0
5homepage: https://clawic.com/skills/icloud
6description: Let agents operate your iCloud Drive, Photos, and Find My safely with local 2FA authentication and explicit confirmation gates.
7changelog: Initial release with secure iCloud account integration, read-first workflows, and confirmation gates for risky actions.
8metadata:
9 source: https://skillmd.com/skills/modbender/icloud
10 clawdbot:
11 emoji: ☁️
12 requires:
13 bins:
14 - python3
15 install:
16 - id: pyicloud
17 kind: pip
18 package: pyicloud==2.4.1
19 label: Install pyicloud 2.4.1 (pip)
20 os:
21 - linux
22 - darwin
23 - win32
24---
25
26## Setup
27
28On first use, read `setup.md` for secure integration guidelines.
29
30## When to Use
31
32Use 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.
33Use it for operational automation with strict safety gates, not for bypassing Apple account security.
34
35## Architecture
36
37Memory lives in `~/icloud/`. See `memory-template.md` for structure and status fields.
38
39```text
40~/icloud/
41|-- memory.md # Status, integration mode, and current account scope
42|-- operations-log.md # Executed commands, result checks, and rollback notes
43|-- device-map.md # Known device aliases and stable IDs
44|-- drive-map.md # iCloud Drive folder map and verified paths
45`-- safety-events.md # Confirmed risky actions and explicit approvals
46```
47
48## Quick Reference
49
50Load only the file needed for the current task.
51
52| Topic | File |
53|-------|------|
54| Setup flow | `setup.md` |
55| Memory template | `memory-template.md` |
56| Authentication and session handling | `auth-session.md` |
57| Find My operations | `findmy-ops.md` |
58| iCloud Drive operations | `drive-ops.md` |
59| Photos operations | `photos-ops.md` |
60| Safety boundaries and confirmations | `safety-boundaries.md` |
61
62## Core Rules
63
64### 1. Authenticate Locally, Never Through Chat
65- Never ask the user to paste Apple password, 2FA code, session token, or app password in conversation.
66- Use interactive local auth with terminal prompts or secure local input prompts only.
67
68### 2. Start Read-Only, Then Escalate
69- Run read-only discovery first: account reachability, device list, folder listing, metadata checks.
70- Do not run write operations until read checks pass and scope is explicit.
71
72### 3. Require Explicit Confirmation for Risky Actions
73- Treat lost mode, message push, file rename/delete, and bulk upload as risky.
74- Before running risky actions, summarize target, effect, and rollback option, then request explicit confirmation.
75
76### 4. Use Deterministic Verification After Every Action
77- After each operation, verify expected state with a second read call.
78- Never report success from command exit code alone.
79
80### 5. Keep Operations Narrow and Idempotent
81- Operate on one device ID or one file path per step when possible.
82- Prefer repeat-safe commands and avoid broad wildcard operations.
83
84### 6. Handle 2FA and Session Expiry as Normal State
85- If Apple invalidates the session, pause destructive operations and re-auth first.
86- Continue only after session trust is restored and read checks succeed again.
87
88### 7. Persist Only Minimal Operational Context
89- Store only what improves reliability (IDs, verified paths, successful patterns).
90- Never persist secrets or raw credential material in local memory files.
91
92## Common Traps
93
94- Asking for Apple credentials in chat -> immediate privacy and trust failure.
95- Running write operations before discovery -> wrong device/path targeted.
96- Using device names without IDs -> ambiguous actions on similarly named devices.
97- Assuming session validity across days -> sudden auth failures mid-workflow.
98- Executing bulk file changes without snapshot -> difficult rollback after mistakes.
99- Claiming action success without re-read verification -> silent failures reach users.
100
101## External Endpoints
102
103| Endpoint | Data Sent | Purpose |
104|----------|-----------|---------|
105| https://idmsa.apple.com | Apple account auth payload during login | Apple ID authentication |
106| https://setup.icloud.com | Session and webservice negotiation | iCloud service bootstrap |
107| https://www.icloud.com | Service API requests (Drive/Photos/Find My) | iCloud operations |
108| https://idmsa.apple.com.cn | Apple account auth payload (China mainland accounts) | Regional Apple ID authentication |
109| https://setup.icloud.com.cn | Session and webservice negotiation (China mainland accounts) | Regional iCloud bootstrap |
110| https://pypi.org | Package metadata (install time only) | Install `pyicloud` |
111| https://files.pythonhosted.org | Package download (install time only) | Install `pyicloud` |
112
113No other data is sent externally by this skill's documented workflow.
114
115## Security & Privacy
116
117Data that leaves your machine:
118- Apple account authentication and iCloud API requests needed for requested operations.
119- Package install traffic only when installing dependencies.
120
121Data that stays local:
122- Optional operational notes under `~/icloud/`.
123- Local keyring entries managed by the `pyicloud` tool if the user chooses to store password.
124
125This skill does NOT:
126- Bypass Apple security flows or 2FA requirements.
127- Request undeclared credentials in chat.
128- Execute undeclared network endpoints.
129- Modify its own SKILL file.
130
131## Trust
132
133By using this skill, you trust Apple iCloud endpoints and the `pyicloud` package.
134Only install and run this workflow if you trust these services with your account operations.
135
136## Related Skills
137Install with `clawhub install <slug>` if user confirms:
138- `cloud-storage` - Cross-provider storage workflows and transfer safety checks
139- `ios` - Apple device settings, permissions, and account behavior troubleshooting
140- `macos` - macOS security, keychain, and runtime diagnostics for Apple tooling
141- `photos` - Media management strategies when iCloud Photos is the main workload
142
143## Feedback
144
145- If useful: `clawhub star icloud`
146- Stay updated: `clawhub sync`