Guides Xcode test execution, diagnosis, filtering, retries, and test-plan work for Swift, XCTest, XCUITest, and XCUIAutomation in Xcode-managed projects.
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.
Use this skill as the primary execution workflow for test-focused work in or around Xcode-managed projects and workspaces. Keep it focused on Swift Testing, XCTest, XCUITest, XCUIAutomation-oriented mechanics, code coverage, .xctestplan, destinations, launch arguments, interruption handling, attachments, accessibility-verification follow-through, Instruments profiling, xctrace trace capture, filters, retries, diagnostics, and test-specific Debug/Release validation instead of broad build/run or toolchain work. scripts/run-workflow.fsx is the runtime entrypoint for MCP-first test execution, official CLI fallback planning, and the remaining .pbxproj warning boundary when mutation enters project-file territory.
.xctestplan, flaky-test diagnosis, accessibility-verification follow-through, and test-only configuration validation.xctrace follow-through when performance-sensitive tests need Time Profiler, Metal System Trace, Allocations, VM Tracker, Points of Interest, signpost-aligned traces, or .trace artifact interpretation.xcode-coding-intelligence-workflow when the request is primarily about Xcode Intelligence setup, Xcode-hosted agents, external-agent access through xcrun mcpbridge, command/tool permissions, or Xcode-only agent configuration homes.xcode-build-run-workflow when the task is primarily about build, run, previews, file membership, archives, toolchains, or guarded non-test mutation work.explore-apple-swift-docs when the user needs Apple or Swift documentation lookup rather than execution work.swift-package-testing-workflow when the task is package-first testing outside Xcode-managed execution.bootstrap-xcode-workspace --operation align when an existing Apple product workspace needs managed guidance alignment rather than active engineering work.explore-apple-swift-docs to gather the relevant Apple documentation firstreferences/snippets/apple-xcode-project-core.mdscripts/run-workflow.fsx to apply runtime configuration, .pbxproj warning safeguards, and CLI fallback planning.references/code-coverage.md for Xcode coverage collection, .xcresult artifacts, xccov reporting, comparison, and the Xcode 27 MCP boundaryreferences/xctestplan-configurations-and-matrix.md for .xctestplan, launch-argument matrices, named configurations, and Debug/Release test coveragereferences/xcuitest-and-xcuiautomation.md for UI automation mechanics, waits, interruption handling, activities, and attachmentsreferences/ios-ui-automation-destinations.md for iOS simulator-versus-physical-device XCUITest decisions, destination evidence, and physical-device debugging handoffsreferences/ui-accessibility-verification.md for accessibility-specific runtime verification expectations and coordination with apple-ui-accessibility-workflowreferences/macos-ui-test-permission-ownership.md for macOS prompt attribution, test-host ownership, app launch/restore boundaries, and opt-in prompt-heavy test plansreferences/instruments-performance-profiling.md for Instruments, xctrace, Time Profiler, Metal System Trace, Allocations, VM Tracker, Points of Interest, and signpost-aligned trace evidencereferences/testing-plans-file-membership-and-configurations.md for the condensed cross-cutting summary and file-membership reminderreferences/xcodegen-project-maintenance.md when the repo is XcodeGen-backed and the task touches generated test targets, scheme test actions, test-plan references, launch arguments, environment variables, or test bundle membership.scripts/run-workflow.fsx together with references/cli-fallback-matrix.md..pbxproj diff that must be staged and committed with the branch, and any required next step.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.workspace_path: optional absolute path for the target Xcode or Swift workspace.tab_identifier: optional MCP tab identifier when already known.mcp_failure_reason: optional input when continuing from an earlier MCP failure.direct_pbxproj_edit: optional flag when the requested mutation would directly edit a .pbxproj file.direct_pbxproj_edit_opt_in: optional explicit opt-in after the user has been warned about direct .pbxproj edit risks.scripts/run-workflow.fsxoperation_type from --request text when the request wording is clear enough.pbxprojstatus
success: the workflow completed on its primary or fallback pathhandoff: the workflow is handing off to another skill because the request is actually build/run-focusedblocked: prerequisites, policy, or mutation safeguards prevented completionpath_type
primary: the guided agent-side MCP path completed successfullyfallback: the official CLI fallback path completed successfullyoutput
guard_resultfallback_commandsreferences/mutation-risk-policy.md only when the operation type is mutation..pbxproj edits..pbxproj files.handoff when the request is really build/run or toolchain work.blocked when the required workspace context cannot be resolved and the operation cannot safely continue.blocked when allowlist or sandbox rules prevent the official CLI fallback and no safe alternative exists.references/mcp-failure-handoff.md for the canonical fallback and handoff payload.references/allowlist-guidance.md when a safe official CLI fallback is blocked by local rules.xcode-coding-intelligence-workflow when the request becomes Xcode Intelligence setup, Xcode-hosted agent setup, external-agent MCP configuration, or command/tool permission work.xcode-build-run-workflow when the request becomes primarily about build, run, previews, archives, file membership, or toolchains.explore-apple-swift-docs directly when the task becomes Apple or Swift docs exploration work.swift-package-testing-workflow directly when the task becomes package-first test execution, package workload design, signpost placement, or SwiftPM-first profiling harness work.apple-ui-accessibility-workflow directly when the task is primarily about accessibility semantics or review rather than runtime test execution.format-swift-sources directly when the task becomes SwiftLint or SwiftFormat setup, config export, or style-tooling maintenance work.structure-swift-sources directly when the task becomes structural source cleanup work.bootstrap-xcode-workspace --operation align directly when the repo needs Xcode-specific guidance alignment rather than execution.scripts/run-workflow.fsx plans fallback commands; MCP execution itself remains agent-side tool usage guided by this skill.scripts/run-workflow.fsx enforces the fixed MCP-first execution policy.references/workflow-policy.mdreferences/mcp-tool-matrix.mdreferences/cli-fallback-matrix.mdreferences/code-coverage.mdreferences/xctestplan-configurations-and-matrix.mdreferences/xcuitest-and-xcuiautomation.mdreferences/ios-ui-automation-destinations.mdreferences/ui-accessibility-verification.mdreferences/macos-ui-test-permission-ownership.mdreferences/instruments-performance-profiling.mdreferences/testing-plans-file-membership-and-configurations.mdreferences/xcodegen-project-maintenance.mdreferences/mutation-risk-policy.mdreferences/mutation-via-mcp.mdreferences/mcp-failure-handoff.mdexplore-apple-swift-docs when the user needs Apple or Swift docs exploration or Dash-compatible docs access.format-swift-sources when the user needs SwiftLint or SwiftFormat setup rather than active Xcode testing work.structure-swift-sources when the user needs structural Swift source cleanup rather than active Xcode testing work.bootstrap-xcode-workspace --operation align when the user needs repo guidance aligned inside an existing Apple product workspace.references/snippets/apple-xcode-project-core.md when the user needs to add or merge the shared Xcode-project guidance into an end-user repo.references/allowlist-guidance.mdreferences/skills-installation.mdreferences/skills-discovery.mdreferences/snippets/apple-xcode-project-core.mdscripts/run-workflow.fsxscripts/detect-xcode-managed-scope.fsxagents/openai.yaml (opens in a new tab)references/allowlist-guidance.md (opens in a new tab)references/cli-fallback-matrix.md (opens in a new tab)references/code-coverage.md (opens in a new tab)references/dash-docs-flow.md (opens in a new tab)references/instruments-performance-profiling.md (opens in a new tab)references/ios-ui-automation-destinations.md (opens in a new tab)references/macos-ui-test-permission-ownership.md (opens in a new tab)references/mcp-failure-handoff.md (opens in a new tab)references/mcp-tool-matrix.md (opens in a new tab)references/mutation-risk-policy.md (opens in a new tab)references/mutation-via-mcp.md (opens in a new tab)references/skills-discovery.md (opens in a new tab)references/skills-installation.md (opens in a new tab)references/snippets/apple-swift-core.md (opens in a new tab)references/snippets/apple-xcode-project-core.md (opens in a new tab)references/testing-plans-file-membership-and-configurations.md (opens in a new tab)references/toolchain-management.md (opens in a new tab)references/ui-accessibility-verification.md (opens in a new tab)references/workflow-policy.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/apple-dev-skills:xcode-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-workflowOther plugins' skills for the same job