xcode-package

A set of tools for managing Swift and Apple project dependencies with Swift Package Manager, CocoaPods, and Carthage. It also helps migrate dependency settings from a Podfile to Swift Package Manager.

In plain words
What is it for?
Use it to resolve, update, inspect, add, or remove dependencies; manage CocoaPods and Carthage; reset package caches; and calculate Swift package checksums.
Why use it?
It removes the need to remember separate commands and file formats for different Apple package managers.

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/yanxreal/xcode-mpc/xcode-package
Any agent
npx skills add YanxReal/Xcode-MPC --skill xcode-package
Clone the repo
git clone --depth 1 https://github.com/YanxReal/Xcode-MPC

Made for: Claude Code, Codex.

Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 918 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00080 $0.00918
Opus 5 $0.00040 $0.00459
Sonnet 5 $0.00016 $0.00184
Haiku 4.5 $0.00008 $0.00092

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

Security

Grade C, and why

xcode-package scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `package_reset_cache` — `xcodebuild -resetPackageCaches` + `rm -rf ~/Library/Caches/org.swift.swiftpm` + `find DerivedData/SourcePackages`
skills/xcode-package/SKILL.md · 65 lines

How it starts

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

Xcode Package Management

Covers SPM (6) + CocoaPods/Carthage (4) + migrate (1) — 11 tools for all package managers.

Tools

SPM (6):

  • package_resolveswift package resolve vs xcodebuild -resolvePackageDependencies (auto-detects Package.swift vs .xcworkspace/.xcodeproj)
  • package_updateswift package update vs xcodebuild -updatePackageDependencies
  • package_list_dependenciesswift package show-dependencies --format json
  • package_read_resolved — reads Package.resolved (v1/v2/v3) → {version, totalDependencies, pins:[{identity,location,version,revision}]}
  • package_reset_cachexcodebuild -resetPackageCaches + rm -rf ~/Library/Caches/org.swift.swiftpm + find DerivedData/SourcePackages
  • package_compute_checksumswift package compute-checksum <zip>

SPM Editing (2):

  • spm_add_dependency — injects .package(url: "...", from: "...") into dependencies:[] in Package.swift (regex, preserves formatting)
  • spm_remove_dependency — removes line containing dependencyUrlOrName + cleans trailing ,

CocoaPods/Carthage (3):

  • cocoapods_managepod install|update|deintegrate|outdated [--repo-update] (checks Podfile + which pod)
  • carthage_managecarthage update|bootstrap|build --platform --use-xcframeworks (checks Cartfile)
  • cocoapods_to_spm_migrate — parses Podfile (pod 'SnapKit', '~> 5.0'.upToNextMajor, pod 'Alamofire', '5.8.0'exact, :git => → custom URL), supports dryRun preview + injects into Package.swift.

Workflows

SPM Resolve → Inspect:

package_resolve {projectPath:".../MyApp.xcodeproj"}
→ package_list_dependencies {packageDirectory:"..."}
→ package_read_resolved {resolvedFilePath:".../Package.resolved"}

Add/Remove:

spm_add_dependency {packageSwiftPath:".../Package.swift", url:"https://github.com/Alamofire/Alamofire.git", requirement:"from: \\"5.8.0\\""}
→ spm_remove_dependency {packageSwiftPath:"...", dependencyUrlOrName:"Alamofire"}

Read the full file on GitHub · 65 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 · 65 lines · 0 tokens per session scan C e4d28f9f5003

Subscribe to this mod's changes

xcode-package is a skill published in the GitHub repository YanxReal/Xcode-MPC (1 stars, last pushed yesterday), licensed MIT. It adds 80 tokens to every session and 918 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

shortcuts-playground

Build, validate, sign, archive, and REMIX macOS/iOS Shortcuts by creating plist files. Use when asked to create, modify, or remix shortcuts; automate workflows; build .shortcut files; or generate Shortcuts plists. Covers WF actions, AppIntents, third-party actions, variable references, and control flow using bundled…

viticci/shortcuts-playground-plugin · 81 tokens

programming-swift

Provides the complete content of 'The Swift Programming Language (6.4 beta)' book by Apple. Use this skill when you need to verify Swift syntax, look up language features, understand concurrency, resolve compiler errors, or consult the formal language reference.

kylehughes/the-unofficial-swift-programming-language-skill · 55 tokens

apple-design

Complete Apple Human Interface Guidelines (HIG) and Apple Design System standard. Use when designing, building, or auditing UI/UX for iOS, iPadOS, macOS, watchOS, visionOS, or Apple-styled web and mobile applications.

billythekidz/apple-design-skill · 55 tokens

ipaship-audit

Use when auditing iOS/Android app submissions for compliance with Apple App Store Review Guidelines or Google Play Developer Policies. Scan .ipa, .apk, or .zip files against official store policies, generate structured compliance reports, and identify violations with remediation steps.

atharvnaik1/ipaship-audit · 57 tokens

apple-legal-max

Legal and privacy compliance for Apple-platform apps (iOS/iPadOS/macOS/watchOS/tvOS/visionOS). Use this skill WHENEVER a task touches - privacy policy, terms of service, ToS, EULA, license agreement, privacy manifest, PrivacyInfo.xcprivacy, required reason APIs, App Tracking Transparency, ATT, IDFA, tracking domains…

Dev869/swift-tothemax · 235 tokens

Apple Shortcuts Integration

Create and trigger Apple Shortcuts for iOS/macOS automation and cross-platform workflows.

claude-office-skills/skills · 21 tokens