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
9200 skills5 MCP

Claude Code

$ npx -y skills add gaelic-ghost/socket --skill swift-package-build-run-workflow --agent claude-code

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
@gaelic-ghost
Ships withsocket

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

9200 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of gaelic-ghost/socket on GitHub, a chart by star-history.com

Other skills on socket.

orchestrate-agent-work

orchestrate-agent-work

Coordinate bounded worker tasks with a launch envelope, report-back, escalation, and synthesis contract. Use before spawning,…

@gaelic-ghost@gaelic-ghostInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about swift-package-build-run-workflow.

Which coding agents can use swift-package-build-run-workflow?
swift-package-build-run-workflow installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.