Skip to content
Development
Skill

/swift-package-build-run-workflow

Guide ordinary build, run, manifest, dependency, resource, Metal-packaging, and Release-versus-Debug work in existing Swift Package Manager repositories. Use when Package.swift is the source of truth and the task is package build or run work rather than testing or package

From plugin
socket
7200 skills5 MCP
Install
$ npx -y skills add gaelic-ghost/socket --skill swift-package-build-run-workflow --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/swift-package-build-run-workflow

Context preview

The summary Claude sees to decide when to auto-load this skill.

Guide ordinary build, run, manifest, dependency, resource, Metal-packaging, and Release-versus-Debug work in existing Swift Package Manager repositories. Use when Package.swift is the source of truth and the task is package build or run work rather than testing or package

SKILL.md

swift-package-build-run-workflow.SKILL.md
name: swift-package-build-run-workflow
description: Guide ordinary build, run, manifest, dependency, resource, Metal-packaging, and Release-versus-Debug work in existing Swift Package Manager repositories. Use when Package.swift is the source of truth and the task is package build or run work rather than testing or package extensions.

Swift Package Build Run Workflow

Purpose

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.

When To Use

  • Use this skill for ordinary build and run work inside an existing Swift package repo.
  • Use this skill for ordinary manifest, target, product, dependency, and package-resource work driven by `Package.swift`.
  • Recommend `swift-package-extension-workflow` for package plugins, macros, traits, generated source, or plugin permissions.
  • Use this skill for package resources, `Bundle.module`, `.process(...)`, `.copy(...)`, `.embedInCode(...)`, and package-local fixture layout decisions.
  • Use this skill for Metal library packaging, distribution, and the SwiftPM side of Metal-related package work before Xcode-managed Apple toolchain behavior becomes the real concern.
  • Use this skill for Debug-versus-Release validation, build artifacts, and tagged-release package expectations.
  • Use this skill for Swift Package Index readiness checks in package repositories, but hand external add-package submission to Socket's guarded `scripts/spi_add_package.py` issue-form flow when that script is available.
  • Do not use this skill for package-testing-first work, test-plan execution, XCTest or Swift Testing diagnosis, or test-specific filtering and retries.
  • Do not use this skill for brand-new package bootstrap from nothing.
  • Do not use this skill for repo-guidance alignment in an existing package repo.
  • Do not use this skill as the default path for Xcode workspace, scheme, preview, simulator, or navigator-driven work.
  • Recommend `swift-package-testing-workflow` when the request is primarily about running, diagnosing, organizing, or evolving tests.
  • Recommend `bootstrap-xcode-workspace --operation create --component-kind library` when the package repo does not exist yet.
  • Recommend root workspace `just align` when product guidance needs to be refreshed.
  • Recommend `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.
  • Recommend `explore-apple-swift-docs` when the user needs Apple or Swift docs exploration before implementation or package changes.

Single-Path Workflow

1. Classify the request into one operation type:

  • package inspection
  • read or search
  • manifest or dependency changes
  • build
  • run
  • package extension handoff
  • toolchain management
  • mutation

2. Apply the Apple and Swift docs gate before any design, architecture, implementation, or refactor guidance:

  • use `explore-apple-swift-docs` to gather the relevant SwiftPM, Swift, or Apple documentation first
  • when SwiftPM behavior, manifest syntax, package plugins, resources, products, targets, or dependency rules matter, prefer the Dash.app docset workflow with the `swiftlang/swift-package-manager` docset first
  • fall back to the canonical `swiftlang/swift-package-manager` GitHub repository only when the local Dash docset is unavailable or insufficient
  • state the documented API behavior, package rule, or workflow requirement being relied on before proposing changes
  • do not rely on memory as the primary source when docs exist
  • if the docs and the current code conflict, stop and report that conflict
  • if no relevant docs can be found, say that explicitly before proceeding

3. Apply the shared Swift-package policy before giving implementation guidance:

  • apply the detailed local policy in `references/snippets/apple-swift-package-core.md` when package-policy wording is needed
  • preserve its simplicity-first, shape-preserving, and anti-ceremony Swift guidance
  • preserve its explicit `swiftLanguageModes: [.v6]` package-manifest default and prefer that spelling over the legacy `swiftLanguageVersions` alias on current manifest surfaces
  • preserve its package-appropriate logging, telemetry, and structured-concurrency guidance

4. Run `scripts/run-workflow.fsx` to resolve the nearest package root, confirm the request stays on the build/run surface, and plan the SwiftPM command path. 5. Use `references/cli-command-matrix.md` for agent-executed SwiftPM commands and terminal-first editor workflows. 6. Use `references/package-resources-testing-and-builds.md` when the request touches package resources, Metal artifacts, `Bundle.module`, or Debug/Release and tagged-release validation. 7. Apply `../../shared/execution-surface-routing.md`; use `xcode-build-run-workflow` only when the requested operation needs Xcode-owned state. 8. For Swift Package Index add-package work, distinguish local readiness from external submission:

  • local readiness may include `Package.swift`, semantic-version tag, `swift package dump-package`, `swift build`, `swift test`, `.spi.yml`, and DocC checks
  • external submission must use the official `SwiftPackageIndex/PackageList` Add Package issue form
  • when working from Socket, run `uv run /Users/galew/Workspace/gaelic-ghost/socket/scripts/spi_add_package.py hands-free <package-root>` and follow its Codex Computer Use handoff
  • never create PackageList issues with `gh issue create`, apply labels manually, fork PackageList, edit `packages.json`, or open PackageList PRs

9. Report which parts were agent-executed, the docs relied on, the resolved

Read more
Ships withsocket

Stuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo

Get the whole plugin

Other skills on socket.