Guides test-focused work in existing Swift Package Manager repositories: Swift Testing, XCTest holdouts, code coverage, async test design, test-fixture organization, and package-level test diagnosis.
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 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.
.xctestplan execution when the package surface needs Xcode test-plan follow-through.swift-package-build-run-workflow when the request is primarily about ordinary package build/run, manifest, dependency, resource, or Metal-distribution work.swift-package-extension-workflow when trait matrices, macro/plugin test shape, or generated-source validation is the primary concern.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-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.apple-ui-accessibility-workflow when the request is primarily about accessibility semantics or review rather than package-side testing strategy.xcode-build-run-workflow when package test work crosses into guarded mutation, file membership, or other Xcode-managed project-integrity work.explore-apple-swift-docs when the user needs Apple or Swift docs exploration before implementation or test changes.explore-apple-swift-docs to gather the relevant SwiftPM, Swift, or Apple documentation firstreferences/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 testing surface, and plan the package-testing command path.references/code-coverage.md when the request needs SwiftPM collection, exported-JSON discovery, coverage reporting, comparison, or an explicit coverage-gate boundary.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.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.../../shared/execution-surface-routing.md; use xcode-testing-workflow only for .xctestplan, XCUITest, scheme, or destination work.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.scripts/run-workflow.fsxrepo_root=. when omittedoperation_type from --request text when the request wording is clear enoughswift test, filtered swift test runs, and xcodebuild test-plan follow-through only when the package surface truly needs itstatus
success: the workflow completed on the package-testing pathhandoff: the workflow is handing off to another skill because build/run or Xcode-managed behavior is the safer surfaceblocked: prerequisites or package-root resolution prevented completionpath_type
primary: the package-testing 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 ordinary package build/run, manifest, dependency, resource, or Metal-distribution work.handoff only when the requested operation requires .xctestplan, XCUITest, scheme, simulator, or device behavior.handoff when the requested work crosses into Xcode project membership, scheme, preview, simulator, or other Xcode-managed concerns.blocked when no safe package-testing command path exists for the requested operation.swift-package-build-run-workflow when the request becomes primarily about package build/run, manifest, dependencies, plugins, package resources, or Metal-distribution work.swift-package-extension-workflow when test planning is primarily shaped by package traits, macro expansion, plugin execution, or generated output.xcode-testing-workflow when package test work depends on:
.xctestplan execution or package test behavior that is more authoritative through Xcode-managed Apple SDK integration.xctestplan handling inside an Xcode-managed workspace.trace artifact interpretation, or xctrace capture that depends on Xcode-managed schemes, destinations, app hosts, or test plansapple-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.xcode-build-run-workflow when package test work instead crosses into direct changes inside .xcodeproj, .xcworkspace, or .pbxproj managed scope.just 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 package-testing policy without runtime customization.references/workflow-policy.mdreferences/code-coverage.mdreferences/package-resources-testing-and-builds.mdreferences/performance-sensitive-testing-and-profiling.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.mdscripts/run-workflow.fsxagents/openai.yaml (opens in a new tab)references/cli-command-matrix.md (opens in a new tab)references/code-coverage.md (opens in a new tab)references/package-resources-testing-and-builds.md (opens in a new tab)references/performance-sensitive-testing-and-profiling.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-testing-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