Guides build, run, manifest, dependency, resource, and Metal package workflows for Swift Package Manager repositories. Use when Package.swift is the source of truth and the task is build/run rather than testing.
Ships in apple-dev-skills. 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.
Use this skill as the primary execution workflow for ordinary non-testing work in existing Swift package components. Keep it focused on manifest and dependency changes, package resources, builds, runs, and Release-versus-Debug validation. scripts/run-workflow.fsx resolves the nearest package root and plans commands without classifying the containing repository.
Package.swift.swift-package-extension-workflow for package plugins, macros, traits, generated source, or plugin permissions.Bundle.module, .process(...), .copy(...), .embedInCode(...), and package-local fixture layout decisions.scripts/spi_add_package.py issue-form flow when that script is available.swift-package-testing-workflow when the request is primarily about running, diagnosing, organizing, or evolving tests.bootstrap-xcode-workspace --operation create --component-kind library when the package repo does not exist yet.just align when product guidance needs to be refreshed.xcode-build-run-workflow when the task depends on active Xcode workspace state, scheme-aware execution, previews, navigator diagnostics, simulator or device flows, or guarded mutation inside Xcode-managed scope.explore-apple-swift-docs when the user needs Apple or Swift docs exploration before implementation or package changes.explore-apple-swift-docs to gather the relevant SwiftPM, Swift, or Apple documentation firstswiftlang/swift-package-manager docset firstswiftlang/swift-package-manager GitHub repository only when the local Dash docset is unavailable or insufficientreferences/snippets/apple-swift-package-core.md when package-policy wording is neededswiftLanguageModes: [.v6] package-manifest default and prefer that spelling over the legacy swiftLanguageVersions alias on current manifest surfacesscripts/run-workflow.fsx to resolve the nearest package root, confirm the request stays on the build/run surface, and plan the SwiftPM command path.references/cli-command-matrix.md for agent-executed SwiftPM commands and terminal-first editor workflows.references/package-resources-testing-and-builds.md when the request touches package resources, Metal artifacts, Bundle.module, or Debug/Release and tagged-release validation.../../shared/execution-surface-routing.md; use xcode-build-run-workflow only when the requested operation needs Xcode-owned state.Package.swift, semantic-version tag, swift package dump-package, swift build, swift test, .spi.yml, and DocC checksSwiftPackageIndex/PackageList Add Package issue formuv run /Users/galew/Workspace/gaelic-ghost/socket/scripts/spi_add_package.py hands-free <package-root> and follow its Codex Computer Use handoffgh issue create, apply labels manually, fork PackageList, edit packages.json, or open PackageList PRsoperation_type: one of the operation types listed above.request: optional short natural-language request text used to infer operation_type when the explicit operation is omitted.repo_root: optional absolute path for the target package repo.scripts/run-workflow.fsxrepo_root=. when omittedoperation_type from --request text when the request wording is clear enoughswift package, swift build, and swift runstatus
success: the workflow completed on the SwiftPM-first pathhandoff: the workflow is handing off to another skill because testing or Xcode-managed behavior is the safer surfaceblocked: prerequisites or package-root resolution prevented completionpath_type
primary: the SwiftPM-first path completedfallback: a non-mutating planned command path was returnedoutput
planned_commandsblocked when the package root cannot be resolved.blocked when the repo does not contain Package.swift.handoff when the request is really package-testing or package-extension work.handoff only when the requested operation requires an Xcode scheme, destination, preview, target membership, build phase, or app bundle integration.handoff when the requested work crosses into Xcode project membership, scheme, preview, simulator, or other Xcode-managed concerns.blocked when no safe SwiftPM-first command path exists for the requested operation.blocked when Swift Package Index submission is requested but the package is only locally ready, the official Add Package issue form is unavailable, the Socket guarded script reports incomplete readiness, or the created issue cannot be verified with the Add Package label.swift-package-testing-workflow when the request becomes primarily about tests, test plans, or test diagnosis.swift-package-extension-workflow when the request becomes primarily about plugins, macros, traits, generated source, or plugin permissions.xcode-build-run-workflow when package build or distribution work depends on:
.xcodeproj, .xcworkspace, or .pbxproj managed scopejust align when the request is really about product guidance instead of execution.bootstrap-xcode-workspace --operation create --component-kind library when the repository still needs to be created from scratch.scripts/run-workflow.fsx enforces the fixed SwiftPM-first policy without runtime customization.references/workflow-policy.mdreferences/cli-command-matrix.mdreferences/package-resources-testing-and-builds.md../../shared/execution-surface-routing.mdreferences/snippets/apple-swift-package-core.md when the user needs reusable SwiftPM baseline policy wording in an end-user repo.references/snippets/apple-swift-package-core.md/Users/galew/Workspace/gaelic-ghost/socket/scripts/spi_add_package.py and /Users/galew/Workspace/gaelic-ghost/socket/docs/maintainers/spi-add-package-automation-plan.md.scripts/run-workflow.fsxagents/openai.yaml (opens in a new tab)references/cli-command-matrix.md (opens in a new tab)references/package-resources-testing-and-builds.md (opens in a new tab)references/snippets/apple-swift-package-core.md (opens in a new tab)references/workflow-policy.md (opens in a new tab)scripts/run-workflow.fsx (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/apple-dev-skills:swift-package-build-run-workflowfrom apple-dev-skills
npx claudepluginhub gaelic-ghost/socket --plugin apple-dev-skills65 skills in this plugin
/app-extension-architecture-workflowRoute Apple app-extension work across extension points, targets, isolation, entitlements, shared containers, lifecycle, privacy, testing, signing, distribution, and handoffs. Use when the extension point is not settled./app-intents-workflowDesign, implement, validate, and troubleshoot App Intents, App Entities, App Shortcuts, and system-surface integrations. Use when exposing a focused app action or content to Siri, Spotlight, Shortcuts, widgets, controls, Live Activities, or hardware interactions./appkit-app-architecture-workflowGuide AppKit app-structure decisions for macOS apps across app delegates, status-item menu bar apps, responder-chain menus, windows, controllers, restoration, archiving, Observation, and mixed AppKit/SwiftUI composition. Use when the user wants help deciding where AppKit responsibilities belong or how to avoid steering a macOS app into SwiftUI-only structure when AppKit owns the behavior./apple-developer-provisioning-workflowPlan and safely automate officially supported Apple Developer provisioning and CloudKit workflows through the App Store Connect REST API, Xcode-aware local discovery, cktool, and CKTool JS. Use when inspecting or changing bundle IDs, capabilities, certificates, devices, provisioning profiles, CloudKit schemas, or sandbox test data while keeping portal-only configuration, credentials, dry runs, and confirmation gates explicit./apple-image-representation-workflowGuide Apple image decoding, encoding, metadata, thumbnails, multi-frame sources, and representation bridging across Image I/O, Core Graphics, AppKit NSImage and NSImageRep, UIKit UIImage, Core Image, and Core Video. Use when image work involves files, data, representations, orientation, scale, color, metadata, or conversion rather than pixel effects or visual recognition./apple-runtime-telemetry-workflowAdd and verify privacy-aware Apple unified logging and signposts in macOS, iOS, and related Apple apps. Use when designing Logger categories, diagnosing intermittent runtime behavior, collecting focused evidence, or measuring an operation with OSSignposter.Other plugins' skills for the same job