What problem does it solve? Writing reliable Swift tests requires choosing the right framework, mocking strategy, and async patterns, and mistakes lead to flaky or incomplete coverage. This Skill guides an agent through a structured workflow for creating, fixing, and improving Swift tests using XCTest or the Swift Testing framework. ## Core Features & Use Cases - Phased Test Generation: Follows a five-phase protocol covering context analysis, strategy selection, test case design, code generation, and verification. - Framework Guidance: Provides decision trees for choosing between XCTest, Swift Testing (@Test, @Suite), XCUITest, and protocol-based manual mocks. - Coverage and CI Support: Includes commands for code coverage with llvm-cov and xccov, plus GitHub Actions CI integration examples. - Use Case: Ask the agent to write unit tests for a Swift networking service, and it will design protocol-based mocks, async/await test methods, boundary cases, and the commands to run and verify them. ## Quick Start Ask the agent to write XCTest unit tests with async coverage and edge cases for a specific Swift class in your package.