Source profileQuality 91/100

gaelic-ghost/socket/plugins/apple-dev-skills/skills/swift-package-testing-workflow/SKILL.md

swift-package-testing-workflow

Guide Swift Testing, XCTest holdouts, code coverage, xctestplan handoff conditions, async test design, semantic accessibility-test boundaries, test-fixture organization, and package test-diagnosis work in existing Swift Package Manager repositories. Use when Package.swift is the source of truth and the task is primarily about testing rather than package build or run work.

Source repository stars
6
Declared platforms
0
Static risk flags
0
Last source update
2026-08-26
Source checked
2026-08-28

Decision brief

What it does: where it fits

Guide Swift Testing, XCTest holdouts, code coverage, xctestplan handoff conditions, async test design, semantic accessibility-test boundaries, test-fixture organization, and package test-diagnosis work in existing Swift Package Manager repositories. swift is the source of truth and the task is primarily about testing rather than package build or run work.

Best for

  • Use this skill for running, diagnosing, organizing, or evolving tests in an existing Swift package repo.
  • Use this skill for Swift Testing-first package work, XCTest holdouts, async-test design, semantic accessibility-test boundaries, and test-fixture organization.
  • Use this skill for package-level .xctestplan execution when the package surface needs Xcode test-plan follow-through.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/gaelic-ghost/socket --skill "plugins/apple-dev-skills/skills/swift-package-testing-workflow"
Safe inspection promptEditorial

Inspect the Agent Skill "swift-package-testing-workflow" from https://github.com/gaelic-ghost/socket/blob/ccbde05d2d542ce20d1645b425c75dc531b53721/plugins/apple-dev-skills/skills/swift-package-testing-workflow/SKILL.md at commit ccbde05d2d542ce20d1645b425c75dc531b53721. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Single-Path Workflow

    1. Classify the request into one operation type: - package inspection - read or search - test - 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, S…

    Classify the request into one operation type:package inspectionread or search
  2. 02

    Workflow References

    references/workflow-policy.md

    references/workflow-policy.mdreferences/code-coverage.mdreferences/package-resources-testing-and-builds.md
  3. 03

    Purpose

    Use this skill as the primary execution workflow for test-focused work in existing Swift package components. Keep it focused on Swift Testing, XCTest holdouts, code coverage, .xctestplan handoff conditions, async-test guidance, semantic accessibility-test boundaries, performance…

    Use this skill as the primary execution workflow for test-focused work in existing Swift package components. Keep it focused on Swift Testing, XCTest holdouts, code coverage, .xctestplan handoff conditions, async-test g…
  4. 04

    When To Use

    Use this skill for running, diagnosing, organizing, or evolving tests in an existing Swift package repo.

    Use this skill for running, diagnosing, organizing, or evolving tests in an existing Swift package repo.Use this skill for Swift Testing-first package work, XCTest holdouts, async-test design, semantic accessibility-test boundaries, and test-fixture organization.Use this skill for package-level .xctestplan execution when the package surface needs Xcode test-plan follow-through.
  5. 05

    Inputs

    operationtype: one of the operation types listed above.

    operationtype: one of the operation types listed above.request: optional short natural-language request text used to infer operationtype when the explicit operation is omitted.reporoot: optional absolute path for the target package repo.

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score91/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars6SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
gaelic-ghost/socket
Skill path
plugins/apple-dev-skills/skills/swift-package-testing-workflow/SKILL.md
Commit
ccbde05d2d542ce20d1645b425c75dc531b53721
License
Apache-2.0
Collected
2026-08-28
Default branch
main
View the original SKILL.md

Swift Package Testing Workflow

Purpose

Use this skill as the primary execution workflow for test-focused work in existing Swift package components. Keep it focused on Swift Testing, XCTest holdouts, code coverage, .xctestplan handoff conditions, async-test guidance, semantic accessibility-test boundaries, performance-sensitive package workload profiling, filters, retries, fixtures, and package-level test diagnosis. scripts/run-workflow.fsx resolves the nearest package root and plans the test surface without classifying the containing repository.

When To Use

  • Use this skill for running, diagnosing, organizing, or evolving tests in an existing Swift package repo.
  • Use this skill for Swift Testing-first package work, XCTest holdouts, async-test design, semantic accessibility-test boundaries, and test-fixture organization.
  • Use this skill for package-level .xctestplan execution when the package surface needs Xcode test-plan follow-through.
  • Use this skill when the request is about test selection, filtering, retries, failures, flaky tests, or test-only Debug/Release validation.
  • Use this skill when the request is about package-first performance-sensitive testing, signpost placement, Release workload harnesses, or profiling-ready package test design for Audio, Metal, MLX, local AI, streaming, or other Apple silicon-sensitive workloads.
  • Do not use this skill for broad manifest edits, dependency work, package resources, package-extension design, or ordinary build and run work.
  • 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-build-run-workflow when the request is primarily about ordinary package build/run, manifest, dependency, resource, or Metal-distribution work.
  • Recommend swift-package-extension-workflow when trait matrices, macro/plugin test shape, or generated-source validation is the primary concern.
  • 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-testing-workflow when test work depends on active Xcode workspace state, navigator diagnostics, simulator or device flows, XCUITest, runtime accessibility verification, or Xcode-native test plans and test execution.
  • Recommend apple-ui-accessibility-workflow when the request is primarily about accessibility semantics or review rather than package-side testing strategy.
  • Recommend xcode-build-run-workflow when package test work crosses into guarded mutation, file membership, or other Xcode-managed project-integrity work.
  • Recommend explore-apple-swift-docs when the user needs Apple or Swift docs exploration before implementation or test changes.

Single-Path Workflow

  1. Classify the request into one operation type:
    • package inspection
    • read or search
    • test
    • 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
    • state the documented API behavior, testing 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, structured-concurrency, and Swift Testing guidance
  4. Run scripts/run-workflow.fsx to resolve the nearest package root, confirm the request stays on the testing surface, and plan the package-testing command path.
  5. Use references/code-coverage.md when the request needs SwiftPM collection, exported-JSON discovery, coverage reporting, comparison, or an explicit coverage-gate boundary.
  6. Use references/package-resources-testing-and-builds.md when the request touches Swift Testing, XCTest, .xctestplan, accessibility-related semantic tests, fixtures, async test discipline, or test-related Debug/Release validation.
  7. Use references/performance-sensitive-testing-and-profiling.md when the request touches package-first instrumentation, OSSignposter, xctrace, Time Profiler, Metal System Trace, Allocations, VM Tracker, Audio, MLX, local AI, streaming, or other performance-sensitive Apple silicon workloads.
  8. Apply ../../shared/execution-surface-routing.md; use xcode-testing-workflow only for .xctestplan, XCUITest, scheme, or destination work.
  9. Report which parts were agent-executed, the docs relied on, the resolved package context, and any required next step or handoff.

Inputs

  • operation_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.
  • Defaults:
    • runtime entrypoint: executable scripts/run-workflow.fsx
    • repo_root=. when omitted
    • the runtime may infer operation_type from --request text when the request wording is clear enough
    • package testing prefers swift test, filtered swift test runs, and xcodebuild test-plan follow-through only when the package surface truly needs it
    • Xcode files do not change package routing

Outputs

  • status
    • success: the workflow completed on the package-testing path
    • handoff: the workflow is handing off to another skill because build/run or Xcode-managed behavior is the safer surface
    • blocked: prerequisites or package-root resolution prevented completion
  • path_type
    • primary: the package-testing path completed
    • fallback: a non-mutating planned command path was returned
  • output
    • operation type
    • resolved package root
    • package context
    • planned_commands
    • one concise next step or handoff payload

Guards and Stop Conditions

  • Stop with blocked when the package root cannot be resolved.
  • Stop with blocked when the repo does not contain Package.swift.
  • Stop with handoff when the request is really ordinary package build/run, manifest, dependency, resource, or Metal-distribution work.
  • Stop with handoff only when the requested operation requires .xctestplan, XCUITest, scheme, simulator, or device behavior.
  • Stop with handoff when the requested work crosses into Xcode project membership, scheme, preview, simulator, or other Xcode-managed concerns.
  • Stop with blocked when no safe package-testing command path exists for the requested operation.

Fallbacks and Handoffs

  • SwiftPM and ordinary filesystem edits inside package-managed scope are the default execution surface for this skill.
  • The only current fallback is a non-mutating planned command result when the user asked for guidance rather than immediate execution.
  • Hand off to swift-package-build-run-workflow when the request becomes primarily about package build/run, manifest, dependencies, plugins, package resources, or Metal-distribution work.
  • Hand off to swift-package-extension-workflow when test planning is primarily shaped by package traits, macro expansion, plugin execution, or generated output.
  • Hand off to xcode-testing-workflow when package test work depends on:
    • active Xcode workspace or scheme state
    • previews, snippet execution, simulator, or device flows
    • navigator issues or Xcode build-log inspection
    • Xcode MCP mutation tools
    • .xctestplan execution or package test behavior that is more authoritative through Xcode-managed Apple SDK integration
    • direct test execution through Xcode-native destinations, UI testing, or .xctestplan handling inside an Xcode-managed workspace
    • Instruments UI inspection, .trace artifact interpretation, or xctrace capture that depends on Xcode-managed schemes, destinations, app hosts, or test plans
  • Recommend apple-ui-accessibility-workflow when the user is really asking how the UI should expose semantics to assistive technologies instead of how a package-side test should be organized.
  • Hand off to xcode-build-run-workflow when package test work instead crosses into direct changes inside .xcodeproj, .xcworkspace, or .pbxproj managed scope.
  • Recommend root workspace just align when the request is really about product guidance instead of execution.
  • Recommend bootstrap-xcode-workspace --operation create --component-kind library when the repository still needs to be created from scratch.
  • When maintaining this repository itself, refresh guidance-sync consumers after substantial package-testing policy changes and keep the top-level export-surface docs aligned. Do not tell users to rely on repo-local installer workflows; this repository does not ship them.

Fixed Policy

  • scripts/run-workflow.fsx enforces the fixed package-testing policy without runtime customization.

References

Workflow References

  • references/workflow-policy.md
  • references/code-coverage.md
  • references/package-resources-testing-and-builds.md
  • references/performance-sensitive-testing-and-profiling.md
  • ../../shared/execution-surface-routing.md

Contract References

Support References

  • Recommend references/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

Script Inventory

  • scripts/run-workflow.fsx

Frequently asked questions

What to verify before installation and use

What does the swift-package-testing-workflow source document cover?

Guide Swift Testing, XCTest holdouts, code coverage, xctestplan handoff conditions, async test design, semantic accessibility-test boundaries, test-fixture organization, and package test-diagnosis work in existing Swift Package Manager repositories. swift is the source of truth and the task is primarily about testing rather than package build or run work.

How do I install swift-package-testing-workflow?

The source record exposes this install command: npx skills add https://github.com/gaelic-ghost/socket --skill "plugins/apple-dev-skills/skills/swift-package-testing-workflow". Inspect the command and pinned source before running it.

Alternatives

Compare before choosing