Install Guide Swift Testing
Pick your agent. Every command is ready to paste.
npx skills add Prisma-Labs-Dev/apple-skills --skill guide-swift-testingThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads guide-swift-testing when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the guide-swift-testing skill”. In Codex, type $guide-swift-testing.
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
- Ensure tests follow core conventions using
references/core-rules.md. - Validate structure, assertions, dependency injection, and best practices using
references/writing-better-tests.md. - Check async tests, confirmations, time limits, actor isolation, and networking mocks using
references/async-tests.md. - Ensure new features like raw identifiers, exit tests, and attachments are used correctly using
references/new-features.md. - If migrating from XCTest, follow
references/migrating-from-xctest.md.
If doing partial work, load only the relevant reference files.
References
| Topic | Reference |
|---|---|
Structs over classes, @Suite, parallel execution, withKnownIssue, tags |
references/core-rules.md |
Test hygiene, structure, DI, #expect vs #require, Issue.record(), verification methods |
references/writing-better-tests.md |
Serialized tests, confirmation(), time limits, actor isolation, mocking networking |
references/async-tests.md |
| Raw identifiers, exit tests, attachments, test scoping traits, range-based confirmations | references/new-features.md |
| XCTest-to-Swift Testing conversion, assertion mappings, floating-point tolerance | references/migrating-from-xctest.md |
Tips for Guide Swift Testing
- • Start a fresh session after installing so your agent picks up the new skill.
- • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
- • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Guide Swift Testing
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 Prisma-Labs-Dev/apple-skills --skill guide-swift-testing" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Guide Swift Testing work in Cursor and Codex?
Yes. Guide Swift Testing uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is Guide Swift Testing free?
Guide Swift Testing is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Guide Swift Testing?
Guide Swift Testing is published by Prisma-Labs-Dev in the Prisma-Labs-Dev/apple-skills repository, together with 29 other skills.


