An agentic skills framework & software development methodology that works.
Swift Testing skill pack for agent tools
This repository packages Swift Testing guidance into an Agent Skills format that AI coding tools can use during test writing and review. The skill points agents to concise references for expectations, migration from XCTest, parameterized tests, traits, parallelism, and async waiting.
Builders who want their agent to write and review Swift tests with modern Swift Testing patterns.
You can migrate and maintain Swift test suites with better defaults, fewer flaky tests, and clearer assertions.
What it does
Swift Testing playbook
Guidance for `@Test`, suites, naming, and test organization in `swift-testing-expert/references/fundamentals.md`.
Expectation patterns
Examples for `#expect`, `#require`, thrown errors, and known-issue handling in `swift-testing-expert/references/expectations.md`.
XCTest migration
Incremental coexistence and mapping from XCTest patterns in `swift-testing-expert/references/migration-from-xctest.md`.
Parameterized tests
Rules for single-argument, multi-argument, and zipped parameterized tests in `swift-testing-expert/references/parameterized-testing.md`.
Parallel and isolated tests
Advice for randomized order, parallel defaults, isolation, and `.serialized` in `swift-testing-expert/references/parallelization-and-isolation.md`.
Traits and tags
Coverage for traits, tags, conditions, bug links, and filtering in `swift-testing-expert/references/traits-and-tags.md`.
How to get it
- 1Install this skill with a single command
npx skills add https://github.com/avdlee/swift-testing-agent-skill --skill swift-testing-expert
- 2Add the marketplace
/plugin marketplace add AvdLee/Swift-Testing-Agent-Skill
- 3Install the Skill
/plugin install swift-testing-expert@swift-testing-agent-skill
- 4If Claude Code still shows an older version after a new GitHub release, refresh the…
/plugin marketplace update swift-testing-agent-skill
README
Swift Testing Agent Skill
Expert guidance for any AI coding tool that supports the Agent Skills open format - modern Swift Testing APIs, XCTest migration, parameterized tests, traits/tags, async testing, and parallel execution patterns.
This repository distills practical Swift Testing best practices into actionable, concise references for agents and code review workflows.
Who this is for
- Teams adopting Swift Testing who want quick, correct defaults
- Developers migrating existing XCTest suites incrementally
- Anyone debugging flaky tests, parallel test behavior, or async test reliability
See also my other skills:
How to Use This Skill
Option A: Using skills.sh (recommended)
Install this skill with a single command:
npx skills add https://github.com/avdlee/swift-testing-agent-skill --skill swift-testing-expert
For more information, visit the skills.sh platform page.
Then use the skill in your AI agent, for example:
Use the swift testing skill and review this test target for migration opportunities and flaky parallel behavior.
Option B: Claude Code Plugin
Personal Usage
To install this Skill for your personal use in Claude Code:
- Add the marketplace:
/plugin marketplace add AvdLee/Swift-Testing-Agent-Skill
- Install the Skill:
/plugin install swift-testing-expert@swift-testing-agent-skill
Updating After a Release
If Claude Code still shows an older version after a new GitHub release, refresh the marketplace before reinstalling or updating the Skill:
/plugin marketplace update swift-testing-agent-skill
Claude Code reads available plugin versions from your local marketplace copy, so updating the marketplace is what pulls the latest .claude-plugin/marketplace.json.
Project Configuration
To automatically provide this Skill to everyone working in a repository, configure the repository's .claude/settings.json:
{
"enabledPlugins": {
"swift-testing-expert@swift-testing-agent-skill": true
},
"extraKnownMarketplaces": {
"swift-testing-agent-skill": {
"source": {
"source": "github",
"repo": "AvdLee/Swift-Testing-Agent-Skill"
}
}
}
}
When team members open the project, Claude Code will prompt them to install the Skill.
Option C: Manual install
- Clone this repository.
- Install or symlink the
swift-testing-expert/folder following your tool's official skills installation docs (see links below). - Use your AI tool as usual and ask it to use the "swift-testing-expert" skill for Swift Testing tasks.
Where to Save Skills
Follow your tool's official documentation, here are a few popular ones:
- Codex: Where to save skills
- Claude: Using Skills
- Cursor: Enabling Skills
How to verify:
Your agent should reference the routing/playbook in swift-testing-expert/SKILL.md and jump into the relevant file in swift-testing-expert/references/.
What This Skill Offers
This skill gives your AI coding tool practical Swift Testing guidance. It can:
Guide Your Test Architecture Decisions
- Choose when to use suites, traits, tags, and display names
- Convert repetitive tests into parameterized tests with clean argument design
- Apply parallel-safe patterns and know when
.serializedis a temporary compromise - Set up tag-driven test plan filtering and report analysis workflows
Write Better Swift Tests
- Use
#expecteffectively with rich diagnostics - Use
#requirefor prerequisite flow and safer unwrapping - Model thrown-error expectations clearly
- Improve output readability with test-specific descriptions
Migrate from XCTest Pragmatically
- Coexist Swift Testing and XCTest in one target during migration
- Map common
XCTAssert*patterns to Swift Testing macros - Keep XCTest where still required (
XCUIApplication,XCTMetric, Objective-C tests) - Convert duplicated XCTest methods into parameterized Swift Testing coverage
Improve Reliability and Performance
- Remove hidden inter-test dependencies surfaced by randomized, parallel execution
- Stabilize server-side tests with repository isolation and in-memory implementations
- Bridge callback APIs to async/await for deterministic tests
- Reduce CI noise with known-issue handling and actionable trait metadata
What Makes This Skill Different
Source-grounded: Built from SwiftLee's complete Swift Testing article set plus WWDC 2024 sessions "Meet Swift Testing" and "Go further with Swift Testing."
Non-Opinionated: Focuses on test correctness, readability, and maintainability without forcing a project architecture.
Modern-first: Prioritizes Swift Testing primitives, parallel defaults, and macro-based diagnostics over legacy assertion styles.
Practical and concise: Emphasizes playbooks and decision points teams actually use during migrations and ongoing test maintenance.
Skill Structure
swift-testing-expert/
SKILL.md
references/
_index.md
async-testing-and-waiting.md - Async waiting, continuations, and callback-event testing
expectations.md - #expect, #require, throw checks, and known issues
fundamentals.md - @Test, suites, structure, and naming patterns
migration-from-xctest.md - Incremental XCTest coexistence and migration strategy
parallelization-and-isolation.md - Parallel defaults, randomized order, and .serialized usage
parameterized-testing.md - Single/multi-argument tests, zip pairing, and scaling
performance-and-best-practices.md - High-signal testing defaults for speed, determinism, and flakiness prevention
traits-and-tags.md - Traits, tags, conditions, bug links, and test-plan filtering
xcode-workflows.md - Test navigator/report workflows and diagnostics practices
Resources
This skill is based on:
- Swift Testing category on SwiftLee - complete article set on modern Swift Testing patterns
- WWDC 2024-10179: Meet Swift Testing transcript - foundational APIs and migration context
- WWDC 2024-10195: Go further with Swift Testing transcript - advanced workflows for tags, test plans, and parallelism
- Defining test functions (Apple Developer Documentation) - canonical guidance on declaring and customizing tests
- Organizing test functions with suite types (Apple Developer Documentation) - suite behavior, inheritance, and initializer/availability constraints
- Migrating a test from XCTest (Apple Developer Documentation) - official migration mappings and async/testing semantics
Contributing
Contributions are welcome! This repository follows the Agent Skills open format, which has specific structural requirements.
We strongly recommend using AI assistance for contributions:
- Use the skill-creator skill to ensure proper formatting
- This helps maintain the Agent Skills format and ensures your contribution works correctly with AI agents
Please read CONTRIBUTING.md for:
- How to update
SKILL.mdand references safely - Agent Skills format requirements
- Quality standards and review criteria
- Pull request process
About the Author
Created by Antoine van der Lee. This skill distills Swift Testing guidance from SwiftLee articles and WWDC material into an implementation-oriented playbook for AI assistants.
License
This skill is open-source and available under the MIT License. See LICENSE for details.
Files in the repo
- .claude-plugin
- .github
- swift-testing-expert
- .gitignore
- CONTRIBUTING.md
- LICENSE
- README.md
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More skills

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.
Public repository for Agent Skills
Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

Production-grade engineering skills for AI coding agents.