icloud-pp-cli
БесплатноБез исполняемых скриптовНе проверенQuery your Apple iCloud data from the command line — Photos library storage analysis, iMessage history search and export, largest-file finder, and delete via…
от mvanhorn★ 2 170 звёзд на GitHubОб этом скилле
Apple iCloud — CLI Skill
Prerequisites: Install the CLI
This skill drives the icloud-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:npx -y @mvanhorn/printing-press-library install icloud --cli-only - Verify:
icloud-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/icloud/cmd/icloud-pp-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
Pre-flight Check
Always run doctor first to confirm your setup:
icloud-pp-cli doctor
Verifies: macOS, Photos.app installed, library path found, database schema valid, asset count queryable, chat.db readable (Full Disk Access).
If your Photos library is in a non-default location:
icloud-pp-cli doctor --library "/Volumes/External/Photos Library.photoslibrary/database/Photos.sqlite"
Messages: Full Disk Access required
messages subcommands read ~/Library/Messages/chat.db directly, which on
macOS requires Full Disk Access (FDA) for the terminal app invoking the binary.
If a messages command fails with "Full Disk Access not granted", open System
Settings > Privacy & Security > Full Disk Access, add your terminal, quit and
reopen the terminal, and rerun. doctor reports FDA state automatically.
Command Reference
photos — Query and manage your Photos library.
icloud-pp-cli photos stats— Quick summary: total items and total library size.icloud-pp-cli photos storage— Storage breakdown by media type (photo/video) and by year.icloud-pp-cli photos top— Top heaviest files across all media types.icloud-pp-cli photos videos— List your largest videos sorted by file size.icloud-pp-cli photos delete <uuid...>— Move items to Recently Deleted in Photos.app (requires--confirm).icloud-pp-cli photos download [uuid...] --output <dir>— Export originals from iCloud to a local folder. Photos.app downloads from iCloud automatically if Optimize Mac Storage is enabled.icloud-pp-cli photos download --sensitive --confirm --output <dir>— Export items Apple's on-device ML has flagged as containing nudity (--confirmrequired).
messages — Read your iMessage history from ~/Library/Messages/chat.db. Requires Full Disk Access.
icloud-pp-cli messages list-chats— Chats ordered by most-recent activity. Flags:--limit,--since,--include-empty.icloud-pp-cli messages search <query>— Full-text search across message bodies (decoded fromattributedBodywhentextis NULL). Flags:--chat,--handle,--from-me,--from-others,--since,--until,--limit.icloud-pp-cli messages stats— Total messages / chats / handles, by-year breakdown, top N handles. Flags:--top-handles,--include-tapbacks.icloud-pp-cli messages export --chat <guid|all>— Export a chat (or every chat) to JSON with attachment paths. Flags:--out,--since,--until,--include-tapbacks.
doctor — Run pre-flight checks before using any other command.
Agent Mode
Add --agent to any command. Expands to --json --compact --no-color.
icloud-pp-cli photos top --agent
icloud-pp-cli photos storage --agent | jq '.by_year'
icloud-pp-cli photos stats --agent
icloud-pp-cli messages list-chats --limit 10 --agent | jq '[.[] | {chat: .display_name // .chat_identifier, last: .last_message_date}]'
icloud-pp-cli messages search "lunch" --limit 5 --agent
icloud-pp-cli messages stats --agent
icloud-pp-cli messages export --chat <guid> --out /tmp/chat.json
Output is always JSON on stdout with no color. Pipe-friendly — commands also auto-detect pipes and switch to JSON without --agent. Messages JSON includes a text_source field on every row (decoded, text_column, or unrecoverable) so agents can detect coverage gaps from the typedstream decoder.
Common Workflows
Find what's eating storage
# Overview
icloud-pp-cli photos stats
# Breakdown by year and type
icloud-pp-cli photos storage
# Top 25 heavie
Установить icloud-pp-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashFAQ
Что делает скилл icloud-pp-cli?
Query your Apple iCloud data from the command line — Photos library storage analysis, iMessage history search and export, largest-file finder, and delete via AppleScript. macOS only. No network calls or iCloud API token required.
Как установить скилл icloud-pp-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл icloud-pp-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic