Agent skill

Xcode Sync

by steipete in steipete/agent-scripts

Xcode fleet sync: signed archives, compatibility, install, selection, first launch.

MITAuto-check: notesMobile

Install Xcode Sync

skills CLI
$ npx skills add steipete/agent-scripts --skill xcode-sync -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install steipete/agent-scripts xcode-sync --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/steipete/agent-scripts.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/xcode-sync .claude/skills/xcode-sync && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
xcode-sync
GitHub stars
7.3k
Token cost
~2.1k tokens
SKILL.md length
918 words
Files
6 (incl. scripts)
Skills in repo
45
Repo updated
First seen
Licence
MIT

At a glance

Xcode fleet sync: signed archives, compatibility, install, selection, first launch.

  • Works in 4 steps: Read ~/Projects/manager/computers.yaml;… → Exclude handed-off and unknown hosts.… → Deduplicate Tailscale nodes by hardware… → …
  • Tasks that involve iOS development
  • SKILL.md covers Inventory, Simulator hygiene, Inspect source and Compatibility, plus 2 more sections
  • Runs Shell scripts from its folder; calls xcodebuild, ssh and rsync

What it does

Xcode Sync is an agent skill from steipete/agent-scripts. Xcode fleet sync: signed archives, compatibility, install, selection, first launch.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts (for example `agents/openai.yaml`, `scripts/xcode-host-inventory.sh` and `scripts/xcode-post-install-smoke.sh`).

It sits in Mobile, covering iOS development. It works with Xcode. The repository describes itself as: Scripts for agents, shared between my repositories. The licence is MIT.

When your agent uses it

  • Tasks that involve iOS development

Example prompts

  • “/xcode-sync”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Read ~/Projects/manager/computers.yaml; use live tailscale status --json for reachability/IPs.
  2. Exclude handed-off and unknown hosts. Verify hostname, user, macOS, architecture, and hardware UUID before writes.
  3. Deduplicate Tailscale nodes by hardware UUID; one Mac may have multiple live node records.
  4. Run scripts/xcode-host-inventory.sh locally or remotely

What it can do on your machine

Read from SKILL.md and the folder at commit 79150cf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • xcodebuild
    • ssh
    • rsync
    • git
    • python3
    • xcrun

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use ssh, rsync and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Xcode Sync loads about 2.1k tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 918 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:92
    s` directly. Otherwise use passwordless `sudo -n`; if admin approval is required, show a local macOS authorization promp
  • NoteRuns commands with sudoSKILL.md:107
    sudo env DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -license accept
  • NoteRuns commands with sudoSKILL.md:108
    sudo env DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -runFirstLaunch

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from steipete/agent-scripts at commit 79150cf, republished under its MIT licence (© steipete). 918 words, ~2,086 tokens.

Download SKILL.mdSave it as .claude/skills/xcode-sync/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
xcode-sync
description
Xcode fleet sync: signed archives, compatibility, install, selection, first launch.

Xcode Sync

Synchronize exact Xcode builds across Peter's supported Macs. Use $remote-mac for fleet topology and SSH rules.

Inventory

  1. Read ~/Projects/manager/computers.yaml; use live tailscale status --json for reachability/IPs.
  2. Exclude handed-off and unknown hosts. Verify hostname, user, macOS, architecture, and hardware UUID before writes.
  3. Deduplicate Tailscale nodes by hardware UUID; one Mac may have multiple live node records.
  4. Run scripts/xcode-host-inventory.sh locally or remotely:
bash
skills/xcode-sync/scripts/xcode-host-inventory.sh
ssh -o RequestTTY=no -o RemoteCommand=none HOST 'bash -s' \
  < skills/xcode-sync/scripts/xcode-host-inventory.sh

Treat unreachable hosts as pending, not synchronized. Try live Tailscale IP, Tailscale SSH, then mDNS/LAN only when network topology permits.

Simulator hygiene

Every fleet Mac must pass the simulator-hygiene audit, including worker Macs where the correct result is not-applicable because Xcode and simctl are absent. Apple CoreSimulator's own classifications are authoritative: remove runtime images reported by simctl runtime delete --outdated --dry-run or --unusable --dry-run, plus simulator devices attached to unavailable runtimes. Do not classify a runtime as stale from its version number alone; stable and beta Xcodes can legitimately need different runtime generations on the same Mac.

Run the dependency-light audit locally or stream it to a remote Mac:

bash
skills/xcode-sync/scripts/xcode-simulator-hygiene.sh
ssh -o RequestTTY=no -o RemoteCommand=none HOST 'bash -s' \
  < skills/xcode-sync/scripts/xcode-simulator-hygiene.sh

The audit exits 1 for drift. After verifying the host identity and current Xcode work, repair with --repair; the action deletes unavailable devices and Apple's outdated/unusable runtime candidates, then re-audits. It refuses repair while a simulator device is booted. Do not use age-based runtime deletion, --notUsedSinceDays, or all for routine fleet maintenance.

Inspect source

Prefer the user's downloaded .xip; do not redownload it.

bash
pkgutil --check-signature "$archive"
shasum -a 256 "$archive"
stage=$(mktemp -d /tmp/xcode.XXXXXX)
cleanup() { rm -rf "$stage"; }
trap cleanup EXIT
(cd "$stage" && xip --expand "$archive")
set -- "$stage"/Xcode*.app
[[ $# == 1 && -d "$1" ]]
app=$1
plutil -extract CFBundleShortVersionString raw -o - "$app/Contents/Info.plist"
plutil -extract ProductBuildVersion raw -o - "$app/Contents/version.plist"
plutil -extract LSMinimumSystemVersion raw -o - "$app/Contents/Info.plist"
DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -version
cleanup
trap - EXIT

Require Apple Software signature. Compare ProductBuildVersion, not version label alone: two archives named Xcode 26.6 may contain different builds. Do not use DTXcodeBuild as the sync key; it can differ from the build reported by xcodebuild -version.

Compatibility

  • Require Apple silicon for an Apple-silicon-only archive.
  • Require host macOS >= LSMinimumSystemVersion.
  • Fleet rule: install Xcode 26.6 only on macOS 26 Tahoe, version 26.2 or newer. Skip macOS 27 Golden Gate even if the bundle launches.
  • Apply explicit user exclusions after technical checks.

Never change a host OS to make an Xcode build eligible unless explicitly requested.

Transfer and install

  1. Transfer the signed archive, not an expanded app; preserve resumability:
bash
rsync -a --partial --progress -e 'ssh -o RequestTTY=no -o RemoteCommand=none' \
  "$archive" HOST:Downloads/
  1. Verify the remote SHA-256 and signature before expansion.
  2. Expand on the destination. Use a single-quoted remote script or ssh HOST 'bash -s'; never let the local shell expand remote $variables or $(commands).
  3. Keep this app policy:
    • current stable: /Applications/Xcode.app
    • newest prerelease, beta or RC: /Applications/Xcode-beta.app
    • previous-major stable: /Applications/Xcode-previous.app, only for three months after a new stable major ships unless the user sets another window
  4. Replace same-major point releases and same-channel prereleases; do not preserve them. An RC replaces the beta slot. Validate the staged app, move the old app to a temporary rollback path, install and verify the new app, then delete the rollback copy. Run the CLI smoke gate below before deleting any rollback copy. Restore the old app on other failures; the smoke gate retains a failing unselected app for diagnosis.
  5. When stable advances to a new major, rotate transactionally: move any existing Xcode-previous.app to a temporary rollback path, move the former stable to Xcode-previous.app, install and verify the new stable, then delete the older rollback copy. Pass the former stable's new path as the smoke gate's rollback. If it restores stable, also restore the older previous-major rollback to Xcode-previous.app. Restore both channel paths on other failures; retain both rollback copies on an unselected smoke failure. Record the new previous-major removal date in the task report.
  6. Stop on unexpected destination collisions. Never delete an app outside these known channels without explicit confirmation.
  7. Preserve xcode-select unless the user requests a switch. Replacing the app at the already-selected path preserves selection.

Use writable /Applications directly. Otherwise use passwordless sudo -n; if admin approval is required, show a local macOS authorization prompt or report the exact pending step. Do not bypass receipts or license state.

Show full SKILL.md (281 more words)Show less

First launch and verification

Keep the rollback copy through first-launch setup and the CLI smoke gate. Confirm GNU timeout (or gtimeout, from coreutils) is available before replacing a bundle. For every installed app:

bash
DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -version
codesign --verify --deep --strict "$app"
DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -checkFirstLaunchStatus

If first-launch status is nonzero:

bash
sudo env DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -license accept
sudo env DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -runFirstLaunch

Recheck until status 0. If sudo/admin UI is unavailable, the app is installed but not ready; report that distinction.

After every installation or replacement, once license/first-launch setup is complete and before rollback cleanup, run the CLI smoke gate. xcrun may reject a healthy bundle until its license is accepted:

bash
skills/xcode-sync/scripts/xcode-post-install-smoke.sh "$app" "$rollback"
# For a fresh install without an old bundle, omit the rollback argument.

One 20-second deadline covers the installed bundle's Contents/Developer/usr/bin/git --version and Contents/Developer/usr/bin/python3 -V, plus xcrun --find git when the bundle is the persistent xcode-select target. Selection lookup ignores the caller's DEVELOPER_DIR workaround. On failure, the helper exits nonzero and restores the supplied rollback at a selected path; it moves the failed app aside and prints its location. An unselected failure keeps the installed app and rollback, records failed-kept, and prints the workaround. A selected fresh install has no rollback: treat failed-no-rollback as immediate operator recovery. Use the same /Applications write privileges as the installation, and recheck the restored bundle. Never change xcode-select without the user's request.

Observed failure signature: Git and Python sleep forever at dyld start (sample shows _dyld_start), near-zero CPU, no children. Diagnose with timeout 8 /usr/bin/git --version; when a broken Xcode-beta is selected, use export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer in the affected session and every work order. Check the persistent target separately with env -u DEVELOPER_DIR xcode-select -p.

Finish with a host matrix: macOS, desired version/build, installed path, selected path, signature, CLI smoke status (including rollback/failed-bundle paths), first-launch state, simulator-hygiene state, previous-major removal date, and skip/failure reason. Keep source archives unless deletion is explicitly requested.

© steipete, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts) in skills/xcode-sync of steipete/agent-scripts.

  • SKILL.md
  • agents/openai.yaml
  • scripts/xcode-host-inventory.sh
  • scripts/xcode-post-install-smoke.sh
  • scripts/xcode-post-install-smoke.test.sh
  • scripts/xcode-simulator-hygiene.sh

Open the folder on GitHubat commit 79150cf

Compare with similar skills

Xcode Sync next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Xcode Sync compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xcode Sync this skillsteipete/agent-scripts7.3k—~2.1kAutomated safety check: NotesMIT
Xcsiftldomaradzki/xcsift489—~1.2kAutomated safety check: PassMIT
Swift Testingdpearson2699/swift-ios-skills1.2k—~2.8kAutomated safety check: PassCustom licence
Apple History Utilitiespdparchitect/noodle151—~149Automated safety check: PassApache-2.0
Performance Profilingnirholas/three.ws2271 repos~1.5kAutomated safety check: PassApache-2.0
Sfsymbol Generatorsundial-org/awesome-openclaw-skills663—~429Automated safety check: PassNone

Similar skills

  • Xcsift

    ldomaradzki/xcsift

    Use xcsift for all Swift and Xcode build commands. An agent skill from ldomaradzki/xcsift.

    489 GitHub stars~1.2k tokensUpdated 3 days ago
    MobileAuto-check passed
  • Swift Testing

    dpearson2699/swift-ios-skills

    Writes and migrates Swift Testing framework tests with @Test, @Suite, expect, require, confirmation, traits, withKnownIssue, Attachment.record, processExitsWith exit tests and capture lists…

    1.2k GitHub stars~2.8k tokensUpdated 2 mo ago
    MobileAuto-check passed
  • Apple History Utilities

    pdparchitect/noodle

    Upkeep of the Apple utilities copied into NoodleAppleRuntime.

    151 GitHub stars~149 tokensUpdated today
    MobileAuto-check passed
  • Performance Profiling

    nirholas/three.ws

    Guide performance profiling for Apple platform apps with Instruments, Xcode diagnostics, and MetricKit.

    227 GitHub starsUsed in 1 repo~1.5k tokens
    MobileAuto-check passed
  • Sfsymbol Generator

    sundial-org/awesome-openclaw-skills

    Generate an Xcode SF Symbol asset catalog .symbolset from an SVG.

    663 GitHub stars~429 tokensUpdated 7 mo ago
    MobileAuto-check passed
  • macOS Spm App Packaging

    Dimillian/Skills

    Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project.

    4k GitHub starsUsed in 5 repos~1.2k tokens
    MobileAuto-check passed

More from steipete/agent-scripts

All 45 skills in this repo
  • Mac Fleet Maintenance

    steipete/agent-scripts

    Inventories and maintains a fleet of Macs from a desired-state file: package updates, repo and Xcode sync, and disk, backup and security health reports.

    7.3k GitHub stars~4.8k tokensUpdated 3 days ago
    Auto-check passed
  • Agent Transcript for PRs

    steipete/agent-scripts

    Finds a coding agent's session log, trims and redacts it, and inserts it into a GitHub PR or issue only when the user has asked for a transcript.

    7.3k GitHub starsUsed in 1 repo~698 tokens
    Auto-check passed
  • Parallels macOS VM Lab

    steipete/agent-scripts

    Uses a clean Parallels macOS VM to test GUI automation, TCC permission prompts and screenshot tools like Peekaboo, verifying results from outside the guest.

    7.3k GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check passed
  • ClawSweeper Status

    steipete/agent-scripts

    Reports ClawSweeper's status with a bundled script: workflow health, active workers, queue health and recently merged, reviewed, commented and closed items.

    7.3k GitHub stars~972 tokensUpdated 3 days ago
    Auto-check passed
  • GitHub Project Triage

    steipete/agent-scripts

    Produces maintainer-facing triage cards for a project's GitHub issues and pull requests, each with its URL, risk, test state, blockers and a next action.

    7.3k GitHub stars~4k tokensUpdated 3 days ago
    Auto-check passed
  • Nano Banana Image Generation

    steipete/agent-scripts

    Generates and edits images with Google's Nano Banana 2 (Gemini 3.1 Flash Image) through a uv script, with a draft-then-final workflow and sizes from 512 to 4K.

    7.3k GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed

Works with

Categories

Questions about Xcode Sync

What does Xcode Sync do?

Xcode fleet sync: signed archives, compatibility, install, selection, first launch. Xcode Sync is an agent skill from steipete/agent-scripts. Xcode fleet sync: signed archives, compatibility, install, selection, first launch.

When should I use Xcode Sync?

Xcode Sync fits situations like: tasks that involve iOS development.

How do I install Xcode Sync in Claude Code?

Run `npx skills add steipete/agent-scripts --skill xcode-sync -a claude-code`. Or copy the skill folder (skills/xcode-sync in steipete/agent-scripts) into .claude/skills/xcode-sync in your project. Claude Code loads it when a task matches its description.

How do I install Xcode Sync in Codex?

Run `npx skills add steipete/agent-scripts --skill xcode-sync -a codex`. Or copy the skill folder (skills/xcode-sync in steipete/agent-scripts) into .agents/skills/xcode-sync in your project. Codex loads it when a task matches its description.

Can I use Xcode Sync in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add steipete/agent-scripts --skill xcode-sync -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xcode-sync, .gemini/skills/xcode-sync, .github/skills/xcode-sync and .opencode/skills/xcode-sync in your project.

What does Xcode Sync need to run?

Going by SKILL.md and its folder, Xcode Sync needs a shell for the scripts in its folder and the command-line tools its instructions call (xcodebuild, ssh, rsync, git, python3 and xcrun). Our summary lists: Python 3; A Bash shell.

Does Xcode Sync access the network?

SKILL.md contains no URLs. Its commands use ssh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Xcode Sync safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Xcode Sync use?

Xcode Sync is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Xcode Sync use?

About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Xcode Sync?

Skills that share tags, products or a category with Xcode Sync: Xcsift (ldomaradzki/xcsift, 489 stars), Swift Testing (dpearson2699/swift-ios-skills, 1.2k stars), Apple History Utilities (pdparchitect/noodle, 151 stars) and Performance Profiling (nirholas/three.ws, 227 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xcode Sync?

steipete (a GitHub user) maintains it in steipete/agent-scripts, which has 7,273 GitHub stars. The repository holds 45 skills in this directory. The repository was last updated on October 4, 2026.

Source: steipete/agent-scripts on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.