agentleFS
cpodercpoder/claude-apple-plugin/skills/setup/SKILL.md

setup

Skill0 starsChanged 30 days agoMITView on GitHub

Configure credentials for the Apple plugin (App Store Connect, App Store Server, Apple Music, WeatherKit, Maps, CloudKit, APNs, Sign in with Apple, Business Manager, Search Ads, News, iCloud) and build/check the Rust MCP server. Use when the user wants to set up, connect, or add an Apple service.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-voice-transcription, add-discord and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • juancruzmunozalbeloSkill

    add-voice-transcription

    Add voice message transcription to NanoClaw using OpenAI's Whisper API. Automatically transcribes WhatsApp voice notes so the agent can read and respond to them.

    Also in 5 projects that use this

  • MicrosoftSkill

    add-discord

    Add Discord bot channel integration via Chat SDK.

    Also in 11 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 11 projects that use this

  • juancruzmunozalbeloSkill

    add-telegram-swarm

    Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".

    Also in 7 projects that use this

  • +8 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If $ARGUMENTS names a service, map it to its section and use --want <section>.

    line 31
  2. Very specific:

    Search Ads · Apple News Publisher · iCloud (Calendar/Contacts/Mail) · iCloud web extras (Reminders/Notes/Drive/Photos/Find My/Hide My …

    line 35
  3. Distinctive:

    Do not list portals or fields for services the user did not choose.

    line 67
  4. Distinctive:

    Never echo a secret or a private key back.

    line 87
  5. Very specific:

    If the plugin's MCP server (apple, listed as plugin:apple-services:apple in /mcp) is connected, call apple_test_service (no reconnect …

    line 91
  6. Very specific:

    If it is not connected (first install: the launcher built in the background and refused the first connection), tell the user to run /mcp …

    line 93
  7. Very specific:

    Run … scripts/apple-mcp icloud login.

    line 106
  8. Very specific:

    If Apple answers that updated iCloud terms must be accepted, the user signs in once at https://www.icloud.com/ and accepts them, then … …

    line 109

“Common” is measured: kept by at least 6 in 10 of the 170 edited versions of this file we could read. “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-services:setup — connect Apple services

Requested service (may be empty): $ARGUMENTS

Talk to the user in their language. The setup is automated by the server binary: you never write the JSON config by hand and you never ask for something the report does not list. Apple only forces one manual step per key: clicking "generate" in a web console and downloading the key once. Everything else (finding the key file, reading its id, testing it against every Apple API, deriving the Team ID and bundle ids, writing the config) is done by:

APPLE_MCP_DATA_DIR="${CLAUDE_PLUGIN_DATA}" bash "${CLAUDE_PLUGIN_ROOT}/scripts/apple-mcp" setup auto --json [--want a,b] [section.key=value …]

The first run builds the Rust binary (needs cargo; several minutes). If cargo is missing, tell the user to install Rust from https://rustup.rs and stop.

Section names: app_store_connect, app_store_server, music, weatherkit, maps, cloudkit, apns, sign_in_with_apple, business_manager, search_ads, news, icloud.

1. Which services

If $ARGUMENTS names a service, map it to its section and use --want <section>. Otherwise ask once (AskUserQuestion, several allowed) which of these the user wants: App Store Connect · App Store Server (in-app purchases) · Apple Music · WeatherKit · Apple Maps · CloudKit · APNs push · Sign in with Apple · Business/School Manager · Search Ads · Apple News Publisher · iCloud (Calendar/Contacts/Mail) · iCloud web extras (Reminders/Notes/Drive/Photos/Find My/Hide My Email, see §5). Then run setup auto --json --want <sections>.

2. Read the report, show links, collect only what is missing

The JSON report contains:

  • keys[]: key files found (also in ~/Downloads, ~/Desktop, and the Windows profile under WSL) and imported into ~/.config/apple-mcp/keys/, with key_id and used_by.
  • team_id, apps[] (name + bundle id) derived from App Store Connect when it works.
  • services[]: status is ok, needs or skipped. For needs, each entry of needs[] has field (section.key), how (what to do) and url (the exact page to click). choices lists candidate values (e.g. several apps for a bundle id).
  • public_keys: PEM public keys to paste into the CloudKit / Search Ads consoles.
  • changed, warnings.

Present it like this:

  1. One line per service: ✅ configured and verified / ⏳ needs … / ⏭ skipped.
  2. For the services that need something, group by url so the user opens each Apple page once. Show the URL as a clickable link, then the how text for each field. Offer to open the page for them: … setup open <portal> (works from Linux, macOS and WSL).
  3. Tell the user the three ways to hand a key over, all equivalent:
    • download AuthKey_<ID>.p8 / SubscriptionKey_<ID>.p8 and leave it in Downloads (Windows or Linux): the next run picks it up;
    • paste the content of the .p8 file into the chat;
    • paste the path of the file. For ids (issuer id, service id, client id, key id, app-specific password…) they paste the value.
  4. For a field with choices, use AskUserQuestion with those choices.
  5. Show public_keys.<section> in a code block only for CloudKit / Search Ads when they are wanted and not yet ok ("paste this in the console, then give me the Key ID").

Do not list portals or fields for services the user did not choose. Do not ask for a Team ID if App Store Connect is among the wanted services and not yet configured: it is derived from it.

3. Apply the answers and re-run

Pass values on the command line (team_id=…, weatherkit.service_id=…); the config is merged, never replaced. For secrets and PEM content use --stdin with a JSON object so the secret never appears in a command line:

APPLE_MCP_DATA_DIR="${CLAUDE_PLUGIN_DATA}" bash "${CLAUDE_PLUGIN_ROOT}/scripts/apple-mcp" setup auto --json --want music,maps --stdin <<'EOF'
{"team_id": "ABCDE12345", "music": {"private_key_path": "-----BEGIN PRIVATE KEY-----\n…\n-----END PRIVATE KEY-----"}}
EOF

A PEM given as any field value is saved as a key file (mode 600) and private_key_path is set. A file path the user gives: --key <path> (it is imported). Every run re-probes everything and rewrites the config, so there is no separate "verify" step. Repeat §2–§3 until every wanted service is ok, or the user wants to stop (what is done stays configured).

Never echo a secret or a private key back; refer to key files by name.

4. Final check

  • If the plugin's MCP server (apple, listed as plugin:apple-services:apple in /mcp) is connected, call apple_test_service (no reconnect needed: the server reloads the config file when it changes) and report its table.
  • If it is not connected (first install: the launcher built in the background and refused the first connection), tell the user to run /mcp and reconnect plugin:apple-services:apple, or restart Claude Code. … scripts/apple-mcp doctor gives the same verification from the shell meanwhile.
  • WeatherKit can take ~30 minutes to activate after enabling it on the key / Services ID: a 401 right after creation is expected; say so.

5. iCloud web extras (Reminders, Notes, Drive, Photos, Find My, Hide My Email)

Built into the Rust server. They need the full Apple ID password in icloud.password (warn: it is the real account password, stored in the 600-mode config file, used against Apple's private icloud.com APIs) and one two-factor code. Only if the user explicitly wants these:

  1. Save the password with --stdin: {"icloud": {"apple_id": "…", "password": "…"}}.
  2. Run … scripts/apple-mcp icloud login. If it reports two_factor_required, Apple pushed a 6-digit code to the user's devices: ask for it and run … icloud 2fa <code> right away (codes expire). No prompt on the devices → … icloud sms sends it by SMS, then icloud 2fa <code>. If Apple answers that updated iCloud terms must be accepted, the user signs in once at https://www.icloud.com/ and accepts them, then … icloud login again (no 2FA this time).
  3. Prove it with … icloud lists (Reminders lists). The session is cached; later logins are silent.

Reference: other setup commands

CommandUse
setup links [portal]print the Apple URLs (asc-keys, iap-keys, dev-keys, services-ids, cloudkit, abm, searchads, news, icloud-passwords, membership, vendor)
setup open <portal>open that page in the user's browser
setup discoverlist / import key files without probing
setup pubkey cloudkit|search_adsprint the public key to paste (generated once)
setup set k=v … | --stdinwrite values without probing
setup wizardinteractive terminal version (for a human in a shell: ! bash "${CLAUDE_PLUGIN_ROOT}/scripts/apple-mcp" setup is not interactive; they should run it in a separate terminal)

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.