MCPInstall

guide-swift-testing

Swift Testing patterns — structs over classes, async confirmations, parameterized tests, exit tests, attachments, common agent mistakes. Use when writing, reviewing, or migrating Swift Testing code.

Installs
445
Last 24h
+13
Trending rank
#7782
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/prisma-labs-dev/apple-skills --skill guide-swift-testing
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads guide-swift-testing automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Guide Skill — This is an expert workflow/pattern guide, not API reference documentation. Originally from twostraws/Swift-Testing-Agent-Skill by Paul Hudson. MIT License.

Swift Testing Patterns

Write and review Swift Testing code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems — do not nitpick or invent issues.

Core Instructions

  • Target Swift 6.2 or later, using modern Swift concurrency.
  • Swift Testing does not support UI tests — XCTest must be used there.
  • Do not rewrite existing XCTest to Swift Testing unless requested.

Review Process

  1. Ensure tests follow core conventions using references/core-rules.md.
  2. Validate structure, assertions, dependency injection, and best practices using references/writing-better-tests.md.
  3. Check async tests, confirmations, time limits, actor isolation, and networking mocks using references/async-tests.md.
  4. Ensure new features like raw identifiers, exit tests, and attachments are used correctly using references/new-features.md.
  5. If migrating from XCTest, follow references/migrating-from-xctest.md.

If doing partial work, load only the relevant reference files.

References

TopicReference
Structs over classes, @Suite, parallel execution, withKnownIssue, tagsreferences/core-rules.md
Test hygiene, structure, DI, #expect vs #require, Issue.record(), verification methodsreferences/writing-better-tests.md
Serialized tests, confirmation(), time limits, actor isolation, mocking networkingreferences/async-tests.md
Raw identifiers, exit tests, attachments, test scoping traits, range-based confirmationsreferences/new-features.md
XCTest-to-Swift Testing conversion, assertion mappings, floating-point tolerancereferences/migrating-from-xctest.md

FAQ

What does the guide-swift-testing skill do?

Swift Testing patterns — structs over classes, async confirmations, parameterized tests, exit tests, attachments, common agent mistakes. Use when writing, reviewing, or migrating Swift Testing code.

How do I install guide-swift-testing?

Run npx skills add https://github.com/prisma-labs-dev/apple-skills --skill guide-swift-testing in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/guide-swift-testing/ (personal) or .claude/skills/guide-swift-testing/ (project).

Which AI agents can use guide-swift-testing?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is guide-swift-testing safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains guide-swift-testing?

It is published by prisma-labs-dev in prisma-labs-dev/apple-skills. It has 445 recorded installs.

More from prisma-labs-dev/apple-skills

View all →

hig

prisma-labs-dev/apple-skills

Fact lookup: Apple Human Interface Guidelines corpus (greppable markdown). Query on demand for accessibility and ergonomic minimums (hit-target sizes, Dynamic Type), platform terminology, system component capabilities, and App-Review-relevant conventions. Not design direction.

Frontend & Design899 installs

ios-liquid-glass

prisma-labs-dev/apple-skills

API reference: Liquid Glass (iOS 26+). Query for glass effects, navigation patterns, GlassEffect modifiers, design principles.

Mobile816 installs

apple-docs-index

prisma-labs-dev/apple-skills

Index of Apple developer documentation for iOS, macOS, and related frameworks. Use when looking up what APIs exist in a framework, browsing available documentation, or deciding what docs to fetch. Covers SwiftUI, UIKit, Core Animation (QuartzCore), XCTest, HealthKit, Combine, SwiftData, and more.

Docs & Writing782 installs

healthkit

prisma-labs-dev/apple-skills

API reference: HealthKit. Query for HKHealthStore, HKQuantitySample, workouts, health data read/write.

Backend & APIs724 installs

ios-dev

prisma-labs-dev/apple-skills

Start here for any iOS or SwiftUI task. Coordinates best-practice guides, correctness checks, and full Apple API references. Use before navigating to other Apple skills — for building, reviewing, refactoring, or debugging iOS apps.

Mobile713 installs

xcuitest

prisma-labs-dev/apple-skills

API reference: XCUITest. Query for element queries, waiting patterns, Swift 6 @MainActor, assertions, screenshots, launch arguments.

Backend & APIs696 installs

Popular testing & qa skills

View category →

tdd

mattpocock/skills

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

Testing & QA1.2M installs

grilling

mattpocock/skills

Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

Testing & QA996.2K installs

migrate-to-shoehorn

mattpocock/skills

Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.

Testing & QA484.1K installs

run-train

lllllllama/rigorpilot-skills

Rigor Train skill for deep learning research repositories. Use when a documented or selected training command should be run conservatively for startup verification, short-run verification, full kickoff, or resume, with command, config, seed, log, checkpoint, status, and metric evidence written to standardized trainoutputs/. Do not use for environment setup, exploratory sweeps, speculative idea implementation, or end-to-end orchestration.

Testing & QA337.8K installs

test-driven-development

obra/superpowers

Use when implementing any feature or bugfix, before writing implementation code

Testing & QA261.8K installs

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

Testing & QA216.8K installs