bootstrap-xcode-workspace

A workflow for creating and maintaining one Xcode workspace for an Apple product containing apps, extensions, shared Swift packages, and services.

In plain words
What is it for?
Use it to bootstrap or extend a Swift product repository, generate its root workspace and project, and organize apps, packages, services, configurations, and shared build settings.
Why use it?
It establishes a consistent repository layout and generated Xcode project so related Swift components stay aligned.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/gaelic-ghost/socket/bootstrap-xcode-workspace
Any agent
npx skills add gaelic-ghost/socket --skill bootstrap-xcode-workspace
Clone the repo
git clone --depth 1 https://github.com/gaelic-ghost/socket

Made for: Claude Code, Codex.

Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,075 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.02075
Opus 5 $0.00018 $0.01038
Sonnet 5 $0.00007 $0.00415
Haiku 4.5 $0.00004 $0.00208

Measured yesterday against content hash 8f6f81f2420b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bootstrap-xcode-workspace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/apple-dev-skills/skills/bootstrap-xcode-workspace/SKILL.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bootstrap Apple Product Workspace

Purpose

Create one product repository with one root .xcworkspace and one root XcodeGen project materialized as the generated root .xcodeproj. Apps/ contains platform-specific targets in that project; Packages/ contains shared SwiftPM modules, and Services/ contains deployable SwiftPM executables. This is the entrypoint for app-first, service-first, and combined products.

Run scripts/run-workflow.fsx before creating files. It generates the root XcodeGen project, creates the workspace wrapper, initializes the first local Swift package with SwiftPM, and installs the xcode-workspace maintenance profile through repository-skills.

Required Shape

Product/
  Product.xcworkspace/
  Product.xcodeproj/                 # generated from project.yml
  project.yml                        # root project graph
  Configurations/                    # Debug, Staging, Release, AppStore, DirectDistribution, AltStore
  AGENTS.md  CONTRIBUTING.md  Justfile
  Apps/
    apps-shared.yml                  # target and scheme templates
    Apps-shared.xcconfig             # shared app build settings
    ProductiOS/
      target.yml
      Configurations/
      Sources/ Resources/ Configurations/ target.yml
    ProductShareExtension/          # peer Xcode target, explicitly embedded by its host app
      Sources/ Resources/ Configurations/ target.yml
    ProductiOSTests/  ProductiOSUITests/
    ProductmacOS/
      target.yml
      Configurations/
      Sources/ Resources/ Tests/
  Packages/
    packages-shared.yml              # XcodeGen local-package registry
    ProductCore/
      Package.swift
  Services/
    services-shared.yml              # XcodeGen service-package registry
    ProductAPI/
      Package.swift
  docs/  Scripts/  .github/workflows/

Ownership

  • project.yml owns project identity, configurations, file groups, and the included project graph.
  • Apps/apps-shared.yml owns common target and scheme templates.
  • Apps/<Target>/target.yml owns one target's platform, source roots, target-local configurations, and product dependencies.
  • Packages/packages-shared.yml registers local packages with XcodeGen.
  • Services/services-shared.yml registers deployable service packages with XcodeGen.
  • Each Package.swift owns its package products, targets, and dependencies.
  • Root Configurations/ owns project-wide settings. Apps/Apps-shared.xcconfig and target-local .xcconfig files layer app and target settings without duplicating the project baseline.
  • Generated .xcodeproj data is build-critical output. Edit its XcodeGen and SwiftPM sources, then regenerate; never hand-edit .pbxproj.

Read the full file on GitHub · 186 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 186 lines · 36 tokens per session scan A 8f6f81f2420b

Subscribe to this mod's changes

bootstrap-xcode-workspace is a skill published in the GitHub repository gaelic-ghost/socket (6 stars, last pushed 6d ago), licensed Apache-2.0. It adds 36 tokens to every session and 2,075 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

xcode-disk-cleanup

Audit and safely clean Xcode-related developer storage on macOS. Use whenever a developer mentions low disk space, Xcode storage, DerivedData, simulator devices or runtimes, stale beta platforms in Xcode Settings, DeviceSupport, archives, dSYMs, CocoaPods caches, simulator dyld caches, project .build folders…

AvdLee/Xcode-Disk-Cleanup-Agent-Skill · 147 tokens

storescreens

Set up and run storescreens-cli to automate App Store screenshot capture for iOS apps: render captioned/framed App Store-ready screenshots with device bezels, markdown captions, and panoramic backgrounds; upload screenshots + per-locale metadata (name, subtitle, description, keywords, what's new, promotional text) to…

ciscoriordan/storescreens-skill · 331 tokens

poll-github-work

Poll and rank open GitHub issues, RFCs, and pull requests for maintainer work, or start one explicitly selected item. Use when a user asks what to work on, requests backlog priorities, says "poll work," wants actionable issues or pull requests, or says "start.

trycua/cua · 61 tokens

test

Run tests. Use after code changes to validate. Arguments: unit (default, no GPU), e2e (with models), filter name, or all.

soniqo/speech-swift · 34 tokens

baocut

BaoCut-only operator for the installed bcut CLI and .bcut projects. Implicitly trigger only when the request explicitly names BaoCut or bcut, targets a .bcut project or BaoCut Subtitle Studio, or continues a BaoCut workflow already established in the conversation. Do not trigger solely for generic audio or video…

JimLiu/baocut · 160 tokens

release

Build, sign, notarize, and publish a new DroidProxy release. Use when the user wants to cut a release, merge a PR and ship it, or asks to build/notarize/publish. Covers the full pipeline: PR merge, version bump, swift build, code signing, Apple notarization, Sparkle appcast update, and GitHub release creation.

nikships/droidproxy · 80 tokens