/XcodeBuildTools:swift-packagefrom XcodeBuildTools
Build, test, run, and manage Swift Package Manager projects. Use when working with Package.swift projects, running "swift build", "swift test", or "swift run", managing package executables, or cleaning SPM build artifacts.
Ships in XcodeBuildTools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Tool routing: Use this skill for Swift package command-line build/test/run workflows, also when the project prefers the Xcode MCP: a package opened as an Xcode workspace can build through the MCP, but
swift build/swift test/swift rungo through this skill.
Manage Swift Package Manager projects.
For build/test output parsing: brew install xcsift
Build isolation is automatic The plugin ships a swift wrapper on PATH ahead of /usr/bin, so every invocation — direct or nested inside a build script — runs inside the plugin's build sandbox (kept per worktree in Claude Code). Just call swift normally.
cd /path/to/package
# Build
swift build 2>&1 | tee ${TMPDIR:-/tmp}/build.log | xcsift --format toon --warnings --executable
# Build release
swift build -c release 2>&1 | tee ${TMPDIR:-/tmp}/build.log | xcsift --format toon --warnings --executable
# Test
swift test 2>&1 | tee ${TMPDIR:-/tmp}/test.log | xcsift --format toon --warnings --executable
# Test with filter
swift test --filter "testLogin" 2>&1 | tee ${TMPDIR:-/tmp}/test.log | xcsift --format toon --warnings --executable
# Run default executable
scripts/swift-package-run.py --package-path <path> [--executable <name>] [--background]
# List running background processes
scripts/swift-package-list.py
# Stop a process
scripts/swift-package-stop.py --pid <pid> [--force]
# Clean build artifacts
swift package clean
# Or remove .build directory directly
rm -rf /path/to/package/.build
Output from xcsift --format toon --executable: token-optimized output with errors, warnings, and executable path. Check log files for full output.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gpambrozio/claudecodeplugins --plugin XcodeBuildTools11 skills in this plugin
/device-appManage apps on physical Apple devices (iPhone, iPad, Watch, TV, Vision Pro). Use when listing connected devices, installing apps on physical devices, launching or stopping apps on devices./macos-appLaunch and stop macOS applications. Use after building a macOS app to run it, or to terminate running macOS applications./sim-logCapture logs from iOS Simulator apps. Use when debugging simulator apps, monitoring app output, or capturing logs for analysis./sparkle-integrationIntegrate Sparkle 2.x auto-update framework into macOS apps. Use when adding auto-update functionality for macOS applications./swift-code-analysisUse when reviewing Swift code for architecture, memory, SwiftUI, dead code, optional handling, or code quality issues./swiftui-modernizeUse when reviewing SwiftUI files for deprecated APIs, modern alternatives, Apple docs-backed modernization, or SwiftUI best practices.